Branch libreoffice-5-0-4
[LibreOffice.git] / include / svx / grafctrl.hxx
blobba4124de41e18ccdbaa776c0295b2116f07ab8d1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVX_GRAFCTRL_HXX
21 #define INCLUDED_SVX_GRAFCTRL_HXX
23 #include <svl/lstner.hxx>
24 #include <svl/intitem.hxx>
25 #include <sfx2/tbxctrl.hxx>
26 #include <svx/svxdllapi.h>
29 // - TbxImageItem -
32 class SVX_DLLPUBLIC TbxImageItem : public SfxUInt16Item
34 public:
35 TYPEINFO_OVERRIDE();
36 TbxImageItem( sal_uInt16 nWhich = 0, sal_uInt16 nImage = 0 );
38 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
39 virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
43 // - SvxGrafFilterToolBoxControl -
46 class SVX_DLLPUBLIC SvxGrafFilterToolBoxControl : public SfxToolBoxControl
48 public:
50 SFX_DECL_TOOLBOX_CONTROL();
52 SvxGrafFilterToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
53 virtual ~SvxGrafFilterToolBoxControl();
55 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
56 virtual SfxPopupWindowType GetPopupWindowType() const SAL_OVERRIDE;
57 virtual VclPtr<SfxPopupWindow> CreatePopupWindow() SAL_OVERRIDE;
61 // - SvxGrafToolBoxControl -
64 class SvxGrafToolBoxControl : public SfxToolBoxControl
66 public:
67 SvxGrafToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
68 virtual ~SvxGrafToolBoxControl();
70 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
71 virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) SAL_OVERRIDE;
75 // - SvxGrafRedToolBoxControl -
78 class SVX_DLLPUBLIC SvxGrafRedToolBoxControl : public SvxGrafToolBoxControl
80 public:
81 SFX_DECL_TOOLBOX_CONTROL();
82 SvxGrafRedToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
86 // - SvxGrafGreenToolBoxControl -
89 class SVX_DLLPUBLIC SvxGrafGreenToolBoxControl : public SvxGrafToolBoxControl
91 public:
92 SFX_DECL_TOOLBOX_CONTROL();
93 SvxGrafGreenToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
97 // - SvxGrafBlueToolBoxControl -
100 class SVX_DLLPUBLIC SvxGrafBlueToolBoxControl : public SvxGrafToolBoxControl
102 public:
103 SFX_DECL_TOOLBOX_CONTROL();
104 SvxGrafBlueToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
108 // - SvxGrafLuminanceToolBoxControl -
111 class SVX_DLLPUBLIC SvxGrafLuminanceToolBoxControl : public SvxGrafToolBoxControl
113 public:
114 SFX_DECL_TOOLBOX_CONTROL();
115 SvxGrafLuminanceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
119 // - SvxGrafContrastToolBoxControl -
122 class SVX_DLLPUBLIC SvxGrafContrastToolBoxControl : public SvxGrafToolBoxControl
124 public:
125 SFX_DECL_TOOLBOX_CONTROL();
126 SvxGrafContrastToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
130 // - SvxGrafGammaToolBoxControl -
133 class SVX_DLLPUBLIC SvxGrafGammaToolBoxControl : public SvxGrafToolBoxControl
135 public:
136 SFX_DECL_TOOLBOX_CONTROL();
137 SvxGrafGammaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
141 // - SvxGrafTransparenceToolBoxControl -
144 class SVX_DLLPUBLIC SvxGrafTransparenceToolBoxControl : public SvxGrafToolBoxControl
146 public:
147 SFX_DECL_TOOLBOX_CONTROL();
148 SvxGrafTransparenceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
152 // - SvxGrafModeToolBoxControl -
155 class SVX_DLLPUBLIC SvxGrafModeToolBoxControl : public SfxToolBoxControl, public SfxListener
157 public:
158 SFX_DECL_TOOLBOX_CONTROL();
159 SvxGrafModeToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
160 virtual ~SvxGrafModeToolBoxControl();
162 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
163 virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) SAL_OVERRIDE;
167 // - SvxGrafAttrHelper -
170 class SdrView;
171 class SfxRequest;
173 class SVX_DLLPUBLIC SvxGrafAttrHelper
175 public:
177 static void ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView );
178 static void GetGrafAttrState( SfxItemSet& rSet, SdrView& rView );
181 #endif // INCLUDED_SVX_GRAFCTRL_HXX
183 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */