Kaydet (Commit) a2dbaac6 authored tarafından Caolán McNamara's avatar Caolán McNamara

default assignment and ctor are fine here

Change-Id: I50edc71ee8bb4398764f2e15180a0269aac233ce
üst 04311182
......@@ -34,7 +34,7 @@ namespace vcl { class Window; }
struct ImplToolItem
{
VclPtr<vcl::Window> mpWindow;
VclPtr<vcl::Window> mpWindow; //don't dispose mpWindow - we get copied around
void* mpUserData;
Image maImage;
Image maImageOriginal;
......@@ -75,10 +75,6 @@ struct ImplToolItem
ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
const OUString& rTxt,
ToolBoxItemBits nItemBits );
~ImplToolItem();
ImplToolItem( const ImplToolItem& );
ImplToolItem& operator=(const ImplToolItem&);
// returns the size of a item, taking toolbox orientation into account
// the default size is the precomputed size for standard items
......
......@@ -127,78 +127,6 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
init(nItemId, nItemBits, false);
}
ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
mpWindow ( rItem.mpWindow ),
mpUserData ( rItem.mpUserData ),
maImage ( rItem.maImage ),
maImageOriginal ( rItem.maImageOriginal ),
mnImageAngle ( rItem.mnImageAngle ),
mbMirrorMode ( rItem.mbMirrorMode ),
maText ( rItem.maText ),
maQuickHelpText ( rItem.maQuickHelpText ),
maHelpText ( rItem.maHelpText ),
maCommandStr ( rItem.maCommandStr ),
maHelpId ( rItem.maHelpId ),
maRect ( rItem.maRect ),
maCalcRect ( rItem.maCalcRect ),
maMinimalItemSize ( rItem.maMinimalItemSize ),
maItemSize ( rItem.maItemSize ),
mnSepSize ( rItem.mnSepSize ),
mnDropDownArrowWidth ( rItem.mnDropDownArrowWidth ),
maContentSize ( rItem.maContentSize ),
meType ( rItem.meType ),
mnBits ( rItem.mnBits ),
meState ( rItem.meState ),
mnId ( rItem.mnId ),
mbEnabled ( rItem.mbEnabled ),
mbVisible ( rItem.mbVisible ),
mbEmptyBtn ( rItem.mbEmptyBtn ),
mbShowWindow ( rItem.mbShowWindow ),
mbBreak ( rItem.mbBreak ),
mbVisibleText ( rItem.mbVisibleText ),
mbExpand ( rItem.mbExpand )
{
}
ImplToolItem::~ImplToolItem()
{
// don't dispose mpWindow - we get copied around.
}
ImplToolItem& ImplToolItem::operator=( const ImplToolItem& rItem )
{
mpWindow = rItem.mpWindow;
mpUserData = rItem.mpUserData;
maImage = rItem.maImage;
maImageOriginal = rItem.maImageOriginal;
mnImageAngle = rItem.mnImageAngle;
mbMirrorMode = rItem.mbMirrorMode;
maText = rItem.maText;
maQuickHelpText = rItem.maQuickHelpText;
maHelpText = rItem.maHelpText;
maCommandStr = rItem.maCommandStr;
maHelpId = rItem.maHelpId;
maRect = rItem.maRect;
maCalcRect = rItem.maCalcRect;
mnSepSize = rItem.mnSepSize;
mnDropDownArrowWidth = rItem.mnDropDownArrowWidth;
maContentSize = rItem.maContentSize;
maMinimalItemSize = rItem.maMinimalItemSize;
maItemSize = rItem.maItemSize;
mbVisibleText = rItem.mbVisibleText;
mbExpand = rItem.mbExpand;
meType = rItem.meType;
mnBits = rItem.mnBits;
meState = rItem.meState;
mnId = rItem.mnId;
mbEnabled = rItem.mbEnabled;
mbVisible = rItem.mbVisible;
mbEmptyBtn = rItem.mbEmptyBtn;
mbShowWindow = rItem.mbShowWindow;
mbBreak = rItem.mbBreak;
return *this;
}
Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, const Size& rDefaultSize )
{
Size aSize( rDefaultSize ); // the size of 'standard' toolbox items
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment