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 24cdf0e10cSrcweir #ifndef _SVX_GRAFCTRL_HXX 25cdf0e10cSrcweir #define _SVX_GRAFCTRL_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <svl/lstner.hxx> 28cdf0e10cSrcweir #include <svl/intitem.hxx> 29cdf0e10cSrcweir #include <sfx2/tbxctrl.hxx> 30cdf0e10cSrcweir #include "svx/svxdllapi.h" 31cdf0e10cSrcweir 32cdf0e10cSrcweir // ---------------- 33cdf0e10cSrcweir // - TbxImageItem - 34cdf0e10cSrcweir // ---------------- 35cdf0e10cSrcweir 36cdf0e10cSrcweir class SVX_DLLPUBLIC TbxImageItem : public SfxUInt16Item 37cdf0e10cSrcweir { 38cdf0e10cSrcweir public: 39cdf0e10cSrcweir TYPEINFO(); 40cdf0e10cSrcweir TbxImageItem( sal_uInt16 nWhich = 0, sal_uInt16 nImage = 0 ); 41cdf0e10cSrcweir 42cdf0e10cSrcweir virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; 43cdf0e10cSrcweir virtual int operator==( const SfxPoolItem& ) const; 44cdf0e10cSrcweir }; 45cdf0e10cSrcweir 46cdf0e10cSrcweir // ------------------------------- 47cdf0e10cSrcweir // - SvxGrafFilterToolBoxControl - 48cdf0e10cSrcweir // ------------------------------- 49cdf0e10cSrcweir 50cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafFilterToolBoxControl : public SfxToolBoxControl 51cdf0e10cSrcweir { 52cdf0e10cSrcweir public: 53cdf0e10cSrcweir 54cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 55cdf0e10cSrcweir 56cdf0e10cSrcweir SvxGrafFilterToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 57cdf0e10cSrcweir ~SvxGrafFilterToolBoxControl(); 58cdf0e10cSrcweir 59cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); 60cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 61cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 62cdf0e10cSrcweir }; 63cdf0e10cSrcweir 64cdf0e10cSrcweir // ------------------------- 65cdf0e10cSrcweir // - SvxGrafToolBoxControl - 66cdf0e10cSrcweir // ------------------------- 67cdf0e10cSrcweir 68cdf0e10cSrcweir class SvxGrafToolBoxControl : public SfxToolBoxControl 69cdf0e10cSrcweir { 70cdf0e10cSrcweir public: 71cdf0e10cSrcweir 72cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 73cdf0e10cSrcweir SvxGrafToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 74cdf0e10cSrcweir ~SvxGrafToolBoxControl(); 75cdf0e10cSrcweir 76cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); 77cdf0e10cSrcweir virtual Window* CreateItemWindow( Window *pParent ); 78cdf0e10cSrcweir }; 79cdf0e10cSrcweir 80cdf0e10cSrcweir // ---------------------------- 81cdf0e10cSrcweir // - SvxGrafRedToolBoxControl - 82cdf0e10cSrcweir // ---------------------------- 83cdf0e10cSrcweir 84cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafRedToolBoxControl : public SvxGrafToolBoxControl 85cdf0e10cSrcweir { 86cdf0e10cSrcweir public: 87cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 88cdf0e10cSrcweir SvxGrafRedToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 89cdf0e10cSrcweir }; 90cdf0e10cSrcweir 91cdf0e10cSrcweir // ------------------------------ 92cdf0e10cSrcweir // - SvxGrafGreenToolBoxControl - 93cdf0e10cSrcweir // ------------------------------ 94cdf0e10cSrcweir 95cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafGreenToolBoxControl : public SvxGrafToolBoxControl 96cdf0e10cSrcweir { 97cdf0e10cSrcweir public: 98cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 99cdf0e10cSrcweir SvxGrafGreenToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 100cdf0e10cSrcweir }; 101cdf0e10cSrcweir 102cdf0e10cSrcweir // ----------------------------- 103cdf0e10cSrcweir // - SvxGrafBlueToolBoxControl - 104cdf0e10cSrcweir // ----------------------------- 105cdf0e10cSrcweir 106cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafBlueToolBoxControl : public SvxGrafToolBoxControl 107cdf0e10cSrcweir { 108cdf0e10cSrcweir public: 109cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 110cdf0e10cSrcweir SvxGrafBlueToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 111cdf0e10cSrcweir }; 112cdf0e10cSrcweir 113cdf0e10cSrcweir // ---------------------------------- 114cdf0e10cSrcweir // - SvxGrafLuminanceToolBoxControl - 115cdf0e10cSrcweir // ---------------------------------- 116cdf0e10cSrcweir 117cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafLuminanceToolBoxControl : public SvxGrafToolBoxControl 118cdf0e10cSrcweir { 119cdf0e10cSrcweir public: 120cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 121cdf0e10cSrcweir SvxGrafLuminanceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 122cdf0e10cSrcweir }; 123cdf0e10cSrcweir 124cdf0e10cSrcweir // --------------------------------- 125cdf0e10cSrcweir // - SvxGrafContrastToolBoxControl - 126cdf0e10cSrcweir // --------------------------------- 127cdf0e10cSrcweir 128cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafContrastToolBoxControl : public SvxGrafToolBoxControl 129cdf0e10cSrcweir { 130cdf0e10cSrcweir public: 131cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 132cdf0e10cSrcweir SvxGrafContrastToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 133cdf0e10cSrcweir }; 134cdf0e10cSrcweir 135cdf0e10cSrcweir // ------------------------------ 136cdf0e10cSrcweir // - SvxGrafGammaToolBoxControl - 137cdf0e10cSrcweir // ------------------------------ 138cdf0e10cSrcweir 139cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafGammaToolBoxControl : public SvxGrafToolBoxControl 140cdf0e10cSrcweir { 141cdf0e10cSrcweir public: 142cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 143cdf0e10cSrcweir SvxGrafGammaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 144cdf0e10cSrcweir }; 145cdf0e10cSrcweir 146cdf0e10cSrcweir // ------------------------------------- 147cdf0e10cSrcweir // - SvxGrafTransparenceToolBoxControl - 148cdf0e10cSrcweir // ------------------------------------- 149cdf0e10cSrcweir 150cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafTransparenceToolBoxControl : public SvxGrafToolBoxControl 151cdf0e10cSrcweir { 152cdf0e10cSrcweir public: 153cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 154cdf0e10cSrcweir SvxGrafTransparenceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 155cdf0e10cSrcweir }; 156cdf0e10cSrcweir 157cdf0e10cSrcweir // ----------------------------- 158cdf0e10cSrcweir // - SvxGrafModeToolBoxControl - 159cdf0e10cSrcweir // ----------------------------- 160cdf0e10cSrcweir 161cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafModeToolBoxControl : public SfxToolBoxControl, public SfxListener 162cdf0e10cSrcweir { 163cdf0e10cSrcweir public: 164cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 165cdf0e10cSrcweir SvxGrafModeToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 166cdf0e10cSrcweir ~SvxGrafModeToolBoxControl(); 167cdf0e10cSrcweir 168cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); 169cdf0e10cSrcweir virtual Window* CreateItemWindow( Window *pParent ); 170cdf0e10cSrcweir }; 171cdf0e10cSrcweir 172cdf0e10cSrcweir // --------------------- 173cdf0e10cSrcweir // - SvxGrafAttrHelper - 174cdf0e10cSrcweir // --------------------- 175cdf0e10cSrcweir 176cdf0e10cSrcweir class SdrView; 177cdf0e10cSrcweir class SfxRequest; 178cdf0e10cSrcweir 179cdf0e10cSrcweir class SVX_DLLPUBLIC SvxGrafAttrHelper 180cdf0e10cSrcweir { 181cdf0e10cSrcweir public: 182cdf0e10cSrcweir 183cdf0e10cSrcweir static void ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView ); 184cdf0e10cSrcweir static void GetGrafAttrState( SfxItemSet& rSet, SdrView& rView ); 185cdf0e10cSrcweir }; 186cdf0e10cSrcweir 187cdf0e10cSrcweir #endif // _SVX_GRAFCTRL_HXX 188