diff options
author | Kai Ahrens <ka@openoffice.org> | 2000-11-24 17:04:58 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2000-11-24 17:04:58 +0000 |
commit | af0d3b9735c3d2d7028c14b4ee2f37320bc050bf (patch) | |
tree | 0ab8d719e5cf3a08ade42012150bf572e4458284 /svx/source/tbxctrls/grafctrl.cxx | |
parent | 28572ad6fb549926f94c04a0a9ff774258774ccd (diff) |
#80752#: added TbxImageItem
Diffstat (limited to 'svx/source/tbxctrls/grafctrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/grafctrl.cxx | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 0832b2a3ae7e..83bb41c79854 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: grafctrl.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: ka $ $Date: 2000-11-18 11:23:34 $ + * last change: $Author: ka $ $Date: 2000-11-24 18:04:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -105,6 +105,33 @@ #define SYMBOL_TO_FIELD_OFFSET 4 +// ---------------- +// - TbxImageItem - +// ---------------- + +TYPEINIT1( TbxImageItem, SfxUInt16Item ); + +//--------------------------------------------------------- + +TbxImageItem::TbxImageItem( USHORT nWhich, UINT16 nImage ) : + SfxUInt16Item( nWhich, nImage ) +{ +} + +//--------------------------------------------------------- + +SfxPoolItem* TbxImageItem::Clone( SfxItemPool* pPool ) const +{ + return new TbxImageItem( *this ); +} + +//--------------------------------------------------------- + +int TbxImageItem::operator==( const SfxPoolItem& rItem ) const +{ + return( ( (TbxImageItem&) rItem ).GetValue() == GetValue() ); +} + // ----------------------- // - ImplGrafMetricField - // ----------------------- @@ -587,7 +614,7 @@ IMPL_LINK( ImplGrafFilterPopup, TbxSelectHdl, void*, EMPTYARG ) // - SvxGrafFilterToolBoxControl - // ------------------------------- -SFX_IMPL_TOOLBOX_CONTROL( SvxGrafFilterToolBoxControl, SfxEnumItem ); +SFX_IMPL_TOOLBOX_CONTROL( SvxGrafFilterToolBoxControl, TbxImageItem ); // ----------------------------------------------------------------------------- |