Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / sidebar / AreaTransparencyGradientPopup.hxx
blob833d6d8bb9f56d188d6fa284d8bd37a170de701e
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 .
19 #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREATRANSPARENCYGRADIENTPOPUP_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREATRANSPARENCYGRADIENTPOPUP_HXX
22 #include <vcl/edit.hxx>
23 #include <vcl/field.hxx>
24 #include <vcl/floatwin.hxx>
25 #include <vcl/toolbox.hxx>
27 class XFillFloatTransparenceItem;
29 namespace svx { namespace sidebar {
31 class AreaTransparencyGradientControl;
32 class AreaPropertyPanelBase;
34 class AreaTransparencyGradientPopup : public FloatingWindow
36 private:
37 AreaPropertyPanelBase& mrAreaPropertyPanel;
38 VclPtr<VclContainer> maCenterGrid;
39 VclPtr<VclContainer> maAngleGrid;
40 VclPtr<MetricField> maMtrTrgrCenterX;
41 VclPtr<MetricField> maMtrTrgrCenterY;
42 VclPtr<MetricField> maMtrTrgrAngle;
43 VclPtr<ToolBox> maBtnLeft45;
44 VclPtr<ToolBox> maBtnRight45;
45 VclPtr<MetricField> maMtrTrgrStartValue;
46 VclPtr<MetricField> maMtrTrgrEndValue;
47 VclPtr<MetricField> maMtrTrgrBorder;
49 void InitStatus(XFillFloatTransparenceItem* pGradientItem);
50 void ExecuteValueModify(sal_uInt8 nStartCol, sal_uInt8 nEndCol);
51 DECL_LINK(ModifiedTrgrHdl_Impl, Edit&, void);
52 DECL_LINK(Left_Click45_Impl, ToolBox*, void);
53 DECL_LINK(Right_Click45_Impl, ToolBox*, void);
54 public:
55 AreaTransparencyGradientPopup(AreaPropertyPanelBase& rPanel);
56 virtual ~AreaTransparencyGradientPopup() override;
57 void Rearrange (XFillFloatTransparenceItem* pItem);
58 virtual void dispose() override;
61 } } // end of namespace svx::sidebar
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */