1*3334a7e6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*3334a7e6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*3334a7e6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*3334a7e6SAndrew Rist * distributed with this work for additional information 6*3334a7e6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*3334a7e6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*3334a7e6SAndrew Rist * "License"); you may not use this file except in compliance 9*3334a7e6SAndrew Rist * with the License. You may obtain a copy of the License at 10*3334a7e6SAndrew Rist * 11*3334a7e6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*3334a7e6SAndrew Rist * 13*3334a7e6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*3334a7e6SAndrew Rist * software distributed under the License is distributed on an 15*3334a7e6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3334a7e6SAndrew Rist * KIND, either express or implied. See the License for the 17*3334a7e6SAndrew Rist * specific language governing permissions and limitations 18*3334a7e6SAndrew Rist * under the License. 19*3334a7e6SAndrew Rist * 20*3334a7e6SAndrew Rist *************************************************************/ 21*3334a7e6SAndrew Rist 22*3334a7e6SAndrew Rist 23cdf0e10cSrcweir #ifndef _SVX_TBCONTRL_HXX 24cdf0e10cSrcweir #define _SVX_TBCONTRL_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir /*--------------------------------------------------------------*\ 27cdf0e10cSrcweir 28cdf0e10cSrcweir Beschreibung: 29cdf0e10cSrcweir ------------- 30cdf0e10cSrcweir ToolBox-Controler fuer: 31cdf0e10cSrcweir Font-Name, Font-Hoehe, Font-Farbe 32cdf0e10cSrcweir Vorder-/Hintergrundfarbe /-Muster 33cdf0e10cSrcweir Rahmen, Linien 34cdf0e10cSrcweir (Absatz-)Vorlagen 35cdf0e10cSrcweir 36cdf0e10cSrcweir Bedienung: 37cdf0e10cSrcweir ---------- 38cdf0e10cSrcweir SvxFontNameToolBoxControl 39cdf0e10cSrcweir ------------------------- 40cdf0e10cSrcweir Item-Typ: SvxFontItem 41cdf0e10cSrcweir Execute-Id: SID_ATTR_CHAR_FONT 42cdf0e10cSrcweir -> SvxFontItem 43cdf0e10cSrcweir Zusatzdaten 44cdf0e10cSrcweir aus DocShell: SvxFontListItem (SID_ATTR_CHAR_FONTLIST) 45cdf0e10cSrcweir 46cdf0e10cSrcweir SvxFontHeightToolBoxControl 47cdf0e10cSrcweir --------------------------- 48cdf0e10cSrcweir Item-Typ: SvxFontHeightItem 49cdf0e10cSrcweir Execute-Id: SID_ATTR_CHAR_FONTHEIGHT 50cdf0e10cSrcweir -> SvxFontHeightItem 51cdf0e10cSrcweir Zusatzdaten 52cdf0e10cSrcweir aus DocShell: SvxFontListItem (SID_ATTR_CHAR_FONTLIST) 53cdf0e10cSrcweir 54cdf0e10cSrcweir SvxFontColorToolBoxControl 55cdf0e10cSrcweir -------------------------- 56cdf0e10cSrcweir Item-Typ: SvxFontColorItem 57cdf0e10cSrcweir Execute-Id: SID_ATTR_CHAR_COLOR 58cdf0e10cSrcweir -> SvxFontColorItem 59cdf0e10cSrcweir Zusatzdaten 60cdf0e10cSrcweir aus DocShell: z.Zt. keine 61cdf0e10cSrcweir in Zukunft: Farbpalette 62cdf0e10cSrcweir 63cdf0e10cSrcweir class SvxFontColorExtToolBoxControl 64cdf0e10cSrcweir ----------------------------------- 65cdf0e10cSrcweir fuer die Zeichenfarbe 66cdf0e10cSrcweir Item-Typ SvxColorItem 67cdf0e10cSrcweir und SfxBoolItem 68cdf0e10cSrcweir Execute-Id SID_ATTR_CHAR_COLOR 69cdf0e10cSrcweir und SID_ATTR_CHAR_COLOR_EXT 70cdf0e10cSrcweir 71cdf0e10cSrcweir fuer den Zeichenhintergrund 72cdf0e10cSrcweir Item-Typ SvxColorItem 73cdf0e10cSrcweir und SfxBoolItem 74cdf0e10cSrcweir Execute-Id SID_ATTR_CHAR_COLOR_BACKGROUND 75cdf0e10cSrcweir und SID_ATTR_CHAR_COLOR_BACKGROUND_EXT 76cdf0e10cSrcweir 77cdf0e10cSrcweir SvxColorToolBoxControl 78cdf0e10cSrcweir -------------------------------- 79cdf0e10cSrcweir Item-Typ: SvxBrushItem 80cdf0e10cSrcweir Execute-Id: SID_BACKGROUND_COLOR 81cdf0e10cSrcweir -> SvxColorItem 82cdf0e10cSrcweir Zusatzdaten 83cdf0e10cSrcweir aus DocShell: z.Zt. keine 84cdf0e10cSrcweir in Zukunft: Farbpalette 85cdf0e10cSrcweir 86cdf0e10cSrcweir SvxPatternToolBoxControl 87cdf0e10cSrcweir ------------------------ 88cdf0e10cSrcweir Item-Typ: SvxBrushItem 89cdf0e10cSrcweir Execute-Id: SID_BACKGROUND_PATTERN 90cdf0e10cSrcweir -> SvxBrushItem 91cdf0e10cSrcweir Zusatzdaten 92cdf0e10cSrcweir aus DocShell: z.Zt. keine 93cdf0e10cSrcweir in Zukunft: Farbpalette 94cdf0e10cSrcweir Bemerkung: Auswertung des BrushItems: 95cdf0e10cSrcweir Die Brush-FillColor() wird als Schalter 96cdf0e10cSrcweir missbraucht, um zu unterscheiden, ob ein 97cdf0e10cSrcweir neuer Style oder eine neue Farbe 98cdf0e10cSrcweir gesetzt wurde: 99cdf0e10cSrcweir 100cdf0e10cSrcweir GetFillColor() == COL_BLACK -> GetStyle() auswerten, 101cdf0e10cSrcweir GetFillColor() == COL_WHITE -> GetColor() auswerten 102cdf0e10cSrcweir 103cdf0e10cSrcweir SvxFrameToolBoxControl 104cdf0e10cSrcweir ---------------------- 105cdf0e10cSrcweir Item-Typ: SvxBoxItem 106cdf0e10cSrcweir Execute-Id: SID_ATTR_BORDER 107cdf0e10cSrcweir -> SvxBoxItem & SvxBoxInfoItem 108cdf0e10cSrcweir Zusatzdaten 109cdf0e10cSrcweir aus DocShell: keine 110cdf0e10cSrcweir Bemerkung: liefert je nach gewaehltem ValueSet-Item 111cdf0e10cSrcweir nur SvxBoxItem oder zusaetzlich SvxBoxInfoItem 112cdf0e10cSrcweir Wird dem Controller ein SfxUInt16Item mit einem 113cdf0e10cSrcweir Wert != 0 geschickt, so wird der Paragraph-Mode 114cdf0e10cSrcweir eingeschaltet, d.h. die letzte Zeile wird 115cdf0e10cSrcweir ausgeblendet. Ein Wert == 0 schaltet wieder in 116cdf0e10cSrcweir den Tabellenmodus. 117cdf0e10cSrcweir 118cdf0e10cSrcweir SvxFrameLineStyleToolBoxControl 119cdf0e10cSrcweir ------------------------------- 120cdf0e10cSrcweir Item-Typ: SvxLineItem 121cdf0e10cSrcweir Execute-Id: SID_FRAME_LINESTYLE 122cdf0e10cSrcweir -> SvxLineItem 123cdf0e10cSrcweir Zusatzdaten 124cdf0e10cSrcweir aus DocShell: keine 125cdf0e10cSrcweir Bemerkung: liefert ein SvxLineItem, welches eine SvxBorderLine 126cdf0e10cSrcweir ohne Farbinformation liefert. 127cdf0e10cSrcweir 128cdf0e10cSrcweir SvxFrameLineColorToolBoxControl 129cdf0e10cSrcweir ------------------------------- 130cdf0e10cSrcweir Item-Typ: SvxColorItem 131cdf0e10cSrcweir Execute-Id: SID_FRAME_LINECOLOR 132cdf0e10cSrcweir -> SvxColorItem 133cdf0e10cSrcweir Zusatzdaten 134cdf0e10cSrcweir aus DocShell: keine 135cdf0e10cSrcweir 136cdf0e10cSrcweir SvxStyleToolBoxControl 137cdf0e10cSrcweir ---------------------- 138cdf0e10cSrcweir Item-Typ: SfxTemplateItem 139cdf0e10cSrcweir Execute-Id: SID_TEMPLATE_APPLY 140cdf0e10cSrcweir -> StyleName (SfxStringItem) 141cdf0e10cSrcweir -> eStyleFamily (SfxUInt16Item) 142cdf0e10cSrcweir Zusatzdaten 143cdf0e10cSrcweir aus DocShell: keine 144cdf0e10cSrcweir Bemerkung: Umschalten der Familie ueber Invalidate 145cdf0e10cSrcweir an den Bindings (->SfxStyleControllerItem) 146cdf0e10cSrcweir 147cdf0e10cSrcweir \*--------------------------------------------------------------*/ 148cdf0e10cSrcweir 149cdf0e10cSrcweir // include --------------------------------------------------------------- 150cdf0e10cSrcweir 151cdf0e10cSrcweir // ITEMID_...-Defines im *.cxx 152cdf0e10cSrcweir 153cdf0e10cSrcweir #include <rsc/rscsfx.hxx> 154cdf0e10cSrcweir #include <svl/lstner.hxx> 155cdf0e10cSrcweir #include <sfx2/tbxctrl.hxx> 156cdf0e10cSrcweir #include <svx/strarray.hxx> 157cdf0e10cSrcweir #include "svx/svxdllapi.h" 158cdf0e10cSrcweir 159cdf0e10cSrcweir #include <com/sun/star/awt/FontDescriptor.hpp> 160cdf0e10cSrcweir 161cdf0e10cSrcweir // wichtig im mit HeDaBu erzeugtem tbxctrls.hxx!!! 162cdf0e10cSrcweir class SvxLineItem; 163cdf0e10cSrcweir class SvxBoxInfoItem; 164cdf0e10cSrcweir class SvxFontItem; 165cdf0e10cSrcweir class SvxFontHeightItem; 166cdf0e10cSrcweir class SfxStyleControllerItem_Impl; 167cdf0e10cSrcweir class SfxStyleSheetBasePool; 168cdf0e10cSrcweir class SfxTemplateItem; 169cdf0e10cSrcweir 170cdf0e10cSrcweir namespace svx 171cdf0e10cSrcweir { 172cdf0e10cSrcweir class ToolboxButtonColorUpdater; 173cdf0e10cSrcweir } 174cdf0e10cSrcweir //######################################################################## 175cdf0e10cSrcweir 176cdf0e10cSrcweir //======================================================================== 177cdf0e10cSrcweir // class SvxStyleToolBoxControl ------------------------------------------ 178cdf0e10cSrcweir //======================================================================== 179cdf0e10cSrcweir class SVX_DLLPUBLIC SvxStyleToolBoxControl : public SfxToolBoxControl 180cdf0e10cSrcweir { 181cdf0e10cSrcweir struct Impl; 182cdf0e10cSrcweir public: 183cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 184cdf0e10cSrcweir 185cdf0e10cSrcweir SvxStyleToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 186cdf0e10cSrcweir ~SvxStyleToolBoxControl(); 187cdf0e10cSrcweir 188cdf0e10cSrcweir virtual Window* CreateItemWindow( Window *pParent ); 189cdf0e10cSrcweir 190cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 191cdf0e10cSrcweir const SfxPoolItem* pState ); 192cdf0e10cSrcweir 193cdf0e10cSrcweir DECL_LINK( VisibilityNotification, void* ); 194cdf0e10cSrcweir protected: 195cdf0e10cSrcweir // XInitialization 196cdf0e10cSrcweir virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); 197cdf0e10cSrcweir 198cdf0e10cSrcweir // XUpdatable 199cdf0e10cSrcweir virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException); 200cdf0e10cSrcweir 201cdf0e10cSrcweir // XComponent 202cdf0e10cSrcweir virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException); 203cdf0e10cSrcweir 204cdf0e10cSrcweir private: 205cdf0e10cSrcweir 206cdf0e10cSrcweir #define MAX_FAMILIES 5 207cdf0e10cSrcweir 208cdf0e10cSrcweir SfxStyleSheetBasePool* pStyleSheetPool; 209cdf0e10cSrcweir SfxStyleControllerItem_Impl* pBoundItems [MAX_FAMILIES]; 210cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > m_xBoundItems[MAX_FAMILIES]; 211cdf0e10cSrcweir SfxTemplateItem* pFamilyState[MAX_FAMILIES]; 212cdf0e10cSrcweir sal_uInt16 nActFamily; // Id in der ToolBox = Position - 1 213cdf0e10cSrcweir sal_uInt16 nActFilter; // FilterIdx 214cdf0e10cSrcweir sal_uInt16 nAppFilter; // Filter, den die App gesetzt hat 215cdf0e10cSrcweir String aCurSel; 216cdf0e10cSrcweir sal_Bool bListening; 217cdf0e10cSrcweir Impl* pImpl; 218cdf0e10cSrcweir 219cdf0e10cSrcweir SVX_DLLPRIVATE void Update(); 220cdf0e10cSrcweir SVX_DLLPRIVATE void FillStyleBox(); 221cdf0e10cSrcweir SVX_DLLPRIVATE void SelectStyle( const String& rStyleName ); 222cdf0e10cSrcweir 223cdf0e10cSrcweir friend class SfxStyleControllerItem_Impl; 224cdf0e10cSrcweir 225cdf0e10cSrcweir SVX_DLLPRIVATE void SetFamilyState ( sal_uInt16 nIdx, const SfxTemplateItem* pItem ); 226cdf0e10cSrcweir SVX_DLLPRIVATE SfxStyleFamily GetActFamily (); 227cdf0e10cSrcweir }; 228cdf0e10cSrcweir 229cdf0e10cSrcweir //======================================================================== 230cdf0e10cSrcweir // class SvxFontNameToolBoxControl --------------------------------------- 231cdf0e10cSrcweir //======================================================================== 232cdf0e10cSrcweir 233cdf0e10cSrcweir 234cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFontNameToolBoxControl : public SfxToolBoxControl 235cdf0e10cSrcweir { 236cdf0e10cSrcweir public: 237cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 238cdf0e10cSrcweir SvxFontNameToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 239cdf0e10cSrcweir 240cdf0e10cSrcweir virtual void StateChanged ( sal_uInt16 nSID, SfxItemState eState, 241cdf0e10cSrcweir const SfxPoolItem* pState ); 242cdf0e10cSrcweir virtual Window* CreateItemWindow ( Window *pParent ); 243cdf0e10cSrcweir }; 244cdf0e10cSrcweir 245cdf0e10cSrcweir 246cdf0e10cSrcweir 247cdf0e10cSrcweir //======================================================================== 248cdf0e10cSrcweir // class SvxFontHeightToolBoxControl ------------------------------------- 249cdf0e10cSrcweir //======================================================================== 250cdf0e10cSrcweir 251cdf0e10cSrcweir /* 252cdf0e10cSrcweir class SvxFontSizeItem; 253cdf0e10cSrcweir class SvxFontItem; 254cdf0e10cSrcweir class SvxFontSizeBox_Impl; 255cdf0e10cSrcweir 256cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFontHeightToolBoxControl : public SfxToolBoxControl 257cdf0e10cSrcweir { 258cdf0e10cSrcweir SvxFontSizeBox_Impl* pBox; // ItemWindow f"ur quick-access 259cdf0e10cSrcweir ::com::sun::star::awt::FontDescriptor aCurrentFont; // Kopie des aktuellen Fonts 260cdf0e10cSrcweir 261cdf0e10cSrcweir public: 262cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 263cdf0e10cSrcweir SvxFontHeightToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 264cdf0e10cSrcweir ~SvxFontHeightToolBoxControl(); 265cdf0e10cSrcweir 266cdf0e10cSrcweir // new controller API 267cdf0e10cSrcweir // XStatusListener 268cdf0e10cSrcweir virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) 269cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 270cdf0e10cSrcweir 271cdf0e10cSrcweir virtual Window* CreateItemWindow( Window *pParent ); 272cdf0e10cSrcweir }; 273cdf0e10cSrcweir */ 274cdf0e10cSrcweir 275cdf0e10cSrcweir 276cdf0e10cSrcweir //======================================================================== 277cdf0e10cSrcweir // class SvxFontColorToolBoxControl -------------------------------------- 278cdf0e10cSrcweir //======================================================================== 279cdf0e10cSrcweir 280cdf0e10cSrcweir 281cdf0e10cSrcweir 282cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFontColorToolBoxControl : public SfxToolBoxControl 283cdf0e10cSrcweir { 284cdf0e10cSrcweir ::svx::ToolboxButtonColorUpdater* pBtnUpdater; 285cdf0e10cSrcweir 286cdf0e10cSrcweir public: 287cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 288cdf0e10cSrcweir SvxFontColorToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 289cdf0e10cSrcweir ~SvxFontColorToolBoxControl(); 290cdf0e10cSrcweir 291cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 292cdf0e10cSrcweir const SfxPoolItem* pState ); 293cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 294cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 295cdf0e10cSrcweir }; 296cdf0e10cSrcweir 297cdf0e10cSrcweir 298cdf0e10cSrcweir 299cdf0e10cSrcweir //======================================================================== 300cdf0e10cSrcweir // class SvxFontColorExtToolBoxControl -------------------------------------- 301cdf0e10cSrcweir //======================================================================== 302cdf0e10cSrcweir 303cdf0e10cSrcweir 304cdf0e10cSrcweir 305cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFontColorExtToolBoxControl : public SfxToolBoxControl 306cdf0e10cSrcweir { 307cdf0e10cSrcweir using SfxToolBoxControl::StateChanged; 308cdf0e10cSrcweir using SfxToolBoxControl::Select; 309cdf0e10cSrcweir 310cdf0e10cSrcweir // SfxStatusForwarder aForward; 311cdf0e10cSrcweir ::svx::ToolboxButtonColorUpdater* pBtnUpdater; 312cdf0e10cSrcweir 313cdf0e10cSrcweir public: 314cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 315cdf0e10cSrcweir SvxFontColorExtToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 316cdf0e10cSrcweir ~SvxFontColorExtToolBoxControl(); 317cdf0e10cSrcweir 318cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 319cdf0e10cSrcweir const SfxPoolItem* pState ); 320cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 321cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 322cdf0e10cSrcweir virtual void Select( sal_Bool bMod1 = sal_False ); 323cdf0e10cSrcweir 324cdf0e10cSrcweir }; 325cdf0e10cSrcweir 326cdf0e10cSrcweir 327cdf0e10cSrcweir 328cdf0e10cSrcweir //======================================================================== 329cdf0e10cSrcweir // class SvxColorToolBoxControl ------------------------------------------ 330cdf0e10cSrcweir //======================================================================== 331cdf0e10cSrcweir 332cdf0e10cSrcweir 333cdf0e10cSrcweir class SVX_DLLPUBLIC SvxColorToolBoxControl : public SfxToolBoxControl 334cdf0e10cSrcweir { 335cdf0e10cSrcweir ::svx::ToolboxButtonColorUpdater* pBtnUpdater; 336cdf0e10cSrcweir public: 337cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 338cdf0e10cSrcweir SvxColorToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 339cdf0e10cSrcweir ~SvxColorToolBoxControl(); 340cdf0e10cSrcweir 341cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 342cdf0e10cSrcweir const SfxPoolItem* pState ); 343cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 344cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 345cdf0e10cSrcweir }; 346cdf0e10cSrcweir 347cdf0e10cSrcweir 348cdf0e10cSrcweir 349cdf0e10cSrcweir //======================================================================== 350cdf0e10cSrcweir // class SvxFrameToolBoxControl ------------------------------------------ 351cdf0e10cSrcweir //======================================================================== 352cdf0e10cSrcweir 353cdf0e10cSrcweir 354cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFrameToolBoxControl : public SfxToolBoxControl 355cdf0e10cSrcweir { 356cdf0e10cSrcweir public: 357cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 358cdf0e10cSrcweir SvxFrameToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 359cdf0e10cSrcweir 360cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 361cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 362cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 363cdf0e10cSrcweir const SfxPoolItem* pState ); 364cdf0e10cSrcweir 365cdf0e10cSrcweir }; 366cdf0e10cSrcweir 367cdf0e10cSrcweir 368cdf0e10cSrcweir 369cdf0e10cSrcweir //======================================================================== 370cdf0e10cSrcweir // class SvxLineStyleToolBoxControl -------------------------------------- 371cdf0e10cSrcweir //======================================================================== 372cdf0e10cSrcweir 373cdf0e10cSrcweir 374cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFrameLineStyleToolBoxControl : public SfxToolBoxControl 375cdf0e10cSrcweir { 376cdf0e10cSrcweir public: 377cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 378cdf0e10cSrcweir SvxFrameLineStyleToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 379cdf0e10cSrcweir 380cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 381cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 382cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 383cdf0e10cSrcweir const SfxPoolItem* pState ); 384cdf0e10cSrcweir }; 385cdf0e10cSrcweir 386cdf0e10cSrcweir 387cdf0e10cSrcweir 388cdf0e10cSrcweir //======================================================================== 389cdf0e10cSrcweir // class SvxFrameLineColorToolBoxControl --------------------------------- 390cdf0e10cSrcweir //======================================================================== 391cdf0e10cSrcweir 392cdf0e10cSrcweir 393cdf0e10cSrcweir class SVX_DLLPUBLIC SvxFrameLineColorToolBoxControl : public SfxToolBoxControl 394cdf0e10cSrcweir { 395cdf0e10cSrcweir ::svx::ToolboxButtonColorUpdater* pBtnUpdater; 396cdf0e10cSrcweir public: 397cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 398cdf0e10cSrcweir SvxFrameLineColorToolBoxControl( sal_uInt16 nSlotId, 399cdf0e10cSrcweir sal_uInt16 nId, 400cdf0e10cSrcweir ToolBox& rTbx ); 401cdf0e10cSrcweir ~SvxFrameLineColorToolBoxControl(); 402cdf0e10cSrcweir 403cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 404cdf0e10cSrcweir const SfxPoolItem* pState ); 405cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 406cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 407cdf0e10cSrcweir }; 408cdf0e10cSrcweir 409cdf0e10cSrcweir 410cdf0e10cSrcweir 411cdf0e10cSrcweir class SvxReloadControllerItem_Impl; 412cdf0e10cSrcweir class SvxReloadControllerItem : public SfxToolBoxControl 413cdf0e10cSrcweir { 414cdf0e10cSrcweir private: 415cdf0e10cSrcweir SvxReloadControllerItem_Impl* pImpl; 416cdf0e10cSrcweir 417cdf0e10cSrcweir public: 418cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 419cdf0e10cSrcweir SvxReloadControllerItem( sal_uInt16 nSlotId, 420cdf0e10cSrcweir sal_uInt16 nId, 421cdf0e10cSrcweir ToolBox& rTbx ); 422cdf0e10cSrcweir ~SvxReloadControllerItem(); 423cdf0e10cSrcweir 424cdf0e10cSrcweir protected: 425cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 426cdf0e10cSrcweir const SfxPoolItem* pState ); 427cdf0e10cSrcweir }; 428cdf0e10cSrcweir 429cdf0e10cSrcweir class SVX_DLLPUBLIC SvxSimpleUndoRedoController : public SfxToolBoxControl 430cdf0e10cSrcweir { 431cdf0e10cSrcweir private: 432cdf0e10cSrcweir ::rtl::OUString aDefaultText; 433cdf0e10cSrcweir 434cdf0e10cSrcweir public: 435cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 436cdf0e10cSrcweir SvxSimpleUndoRedoController( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 437cdf0e10cSrcweir ~SvxSimpleUndoRedoController(); 438cdf0e10cSrcweir 439cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 440cdf0e10cSrcweir const SfxPoolItem* pState ); 441cdf0e10cSrcweir }; 442cdf0e10cSrcweir 443cdf0e10cSrcweir #endif // #ifndef _SVX_TBCONTRL_HXX 444