Bump version to 6.4-15
[LibreOffice.git] / include / svx / sidebar / AreaTransparencyGradientPopup.hxx
blobcbdc5e9a114eeb0e8900d3dbe7cae8f93bce5129
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 VclContainer;
28 class XFillFloatTransparenceItem;
30 namespace svx { namespace sidebar {
32 class AreaTransparencyGradientControl;
33 class AreaPropertyPanelBase;
35 class AreaTransparencyGradientPopup final : public FloatingWindow
37 private:
38 AreaPropertyPanelBase& mrAreaPropertyPanel;
39 VclPtr<VclContainer> maCenterGrid;
40 VclPtr<VclContainer> maAngleGrid;
41 VclPtr<MetricField> maMtrTrgrCenterX;
42 VclPtr<MetricField> maMtrTrgrCenterY;
43 VclPtr<MetricField> maMtrTrgrAngle;
44 VclPtr<ToolBox> maBtnLeft45;
45 VclPtr<ToolBox> maBtnRight45;
46 VclPtr<MetricField> maMtrTrgrStartValue;
47 VclPtr<MetricField> maMtrTrgrEndValue;
48 VclPtr<MetricField> maMtrTrgrBorder;
50 void InitStatus(XFillFloatTransparenceItem const * pGradientItem);
51 void ExecuteValueModify(sal_uInt8 nStartCol, sal_uInt8 nEndCol);
52 DECL_LINK(ModifiedTrgrHdl_Impl, Edit&, void);
53 DECL_LINK(Left_Click45_Impl, ToolBox*, void);
54 DECL_LINK(Right_Click45_Impl, ToolBox*, void);
55 public:
56 AreaTransparencyGradientPopup(AreaPropertyPanelBase& rPanel);
57 virtual ~AreaTransparencyGradientPopup() override;
58 void Rearrange (XFillFloatTransparenceItem const * pItem);
59 virtual void dispose() override;
62 } } // end of namespace svx::sidebar
64 #endif
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */