Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / grafctrl.hxx
blobf50df7df77b3e071e7347b6e028464495c139e81
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 class SvxGrafToolBoxControl : public SfxToolBoxControl
31 public:
32 SvxGrafToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
33 virtual ~SvxGrafToolBoxControl() override;
35 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
36 virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
40 class SVX_DLLPUBLIC SvxGrafRedToolBoxControl : public SvxGrafToolBoxControl
42 public:
43 SFX_DECL_TOOLBOX_CONTROL();
44 SvxGrafRedToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
48 class SVX_DLLPUBLIC SvxGrafGreenToolBoxControl : public SvxGrafToolBoxControl
50 public:
51 SFX_DECL_TOOLBOX_CONTROL();
52 SvxGrafGreenToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
56 class SVX_DLLPUBLIC SvxGrafBlueToolBoxControl : public SvxGrafToolBoxControl
58 public:
59 SFX_DECL_TOOLBOX_CONTROL();
60 SvxGrafBlueToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
64 class SVX_DLLPUBLIC SvxGrafLuminanceToolBoxControl : public SvxGrafToolBoxControl
66 public:
67 SFX_DECL_TOOLBOX_CONTROL();
68 SvxGrafLuminanceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
72 class SVX_DLLPUBLIC SvxGrafContrastToolBoxControl : public SvxGrafToolBoxControl
74 public:
75 SFX_DECL_TOOLBOX_CONTROL();
76 SvxGrafContrastToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
80 class SVX_DLLPUBLIC SvxGrafGammaToolBoxControl : public SvxGrafToolBoxControl
82 public:
83 SFX_DECL_TOOLBOX_CONTROL();
84 SvxGrafGammaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
88 class SVX_DLLPUBLIC SvxGrafTransparenceToolBoxControl : public SvxGrafToolBoxControl
90 public:
91 SFX_DECL_TOOLBOX_CONTROL();
92 SvxGrafTransparenceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
96 class SVX_DLLPUBLIC SvxGrafModeToolBoxControl : public SfxToolBoxControl, public SfxListener
98 public:
99 SFX_DECL_TOOLBOX_CONTROL();
100 SvxGrafModeToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
101 virtual ~SvxGrafModeToolBoxControl() override;
103 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
104 virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
108 class SdrView;
109 class SfxRequest;
112 class SVX_DLLPUBLIC SvxGrafAttrHelper
114 public:
116 static void ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView );
117 static void GetGrafAttrState( SfxItemSet& rSet, SdrView& rView );
120 #endif // INCLUDED_SVX_GRAFCTRL_HXX
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */