LibreOffice Module svx (master) 1
AreaTransparencyGradientPopup.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREATRANSPARENCYGRADIENTPOPUP_HXX
20#define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREATRANSPARENCYGRADIENTPOPUP_HXX
21
22#include <vcl/weld.hxx>
24
26
27namespace svx::sidebar
28{
29class AreaTransparencyGradientControl;
30class AreaPropertyPanelBase;
31
33{
34private:
36 std::unique_ptr<weld::Widget> mxCenterGrid;
37 std::unique_ptr<weld::Widget> mxAngleGrid;
38 std::unique_ptr<weld::MetricSpinButton> mxMtrTrgrCenterX;
39 std::unique_ptr<weld::MetricSpinButton> mxMtrTrgrCenterY;
40 std::unique_ptr<weld::MetricSpinButton> mxMtrTrgrAngle;
41 std::unique_ptr<weld::Toolbar> mxBtnLeft45;
42 std::unique_ptr<weld::Toolbar> mxBtnRight45;
43 std::unique_ptr<weld::MetricSpinButton> mxMtrTrgrStartValue;
44 std::unique_ptr<weld::MetricSpinButton> mxMtrTrgrEndValue;
45 std::unique_ptr<weld::MetricSpinButton> mxMtrTrgrBorder;
46
47 void InitStatus(XFillFloatTransparenceItem const* pGradientItem);
48 void ExecuteValueModify(sal_uInt8 nStartCol, sal_uInt8 nEndCol);
49 DECL_LINK(ModifiedTrgrHdl_Impl, weld::MetricSpinButton&, void);
50 DECL_LINK(Left_Click45_Impl, const OString&, void);
51 DECL_LINK(Right_Click45_Impl, const OString&, void);
52
53public:
54 AreaTransparencyGradientPopup(const css::uno::Reference<css::frame::XFrame>& rFrame,
55 AreaPropertyPanelBase& rPanel, weld::Widget* pParent);
57
58 void Rearrange(XFillFloatTransparenceItem const* pItem);
59 virtual void GrabFocus() override;
60};
61
62} // end of namespace svx::sidebar
63
64#endif
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::MetricSpinButton > mxMtrTrgrCenterX
std::unique_ptr< weld::MetricSpinButton > mxMtrTrgrStartValue
std::unique_ptr< weld::MetricSpinButton > mxMtrTrgrEndValue
AreaTransparencyGradientPopup(const css::uno::Reference< css::frame::XFrame > &rFrame, AreaPropertyPanelBase &rPanel, weld::Widget *pParent)
DECL_LINK(Right_Click45_Impl, const OString &, void)
void InitStatus(XFillFloatTransparenceItem const *pGradientItem)
std::unique_ptr< weld::MetricSpinButton > mxMtrTrgrAngle
DECL_LINK(Left_Click45_Impl, const OString &, void)
std::unique_ptr< weld::MetricSpinButton > mxMtrTrgrCenterY
void Rearrange(XFillFloatTransparenceItem const *pItem)
DECL_LINK(ModifiedTrgrHdl_Impl, weld::MetricSpinButton &, void)
void ExecuteValueModify(sal_uInt8 nStartCol, sal_uInt8 nEndCol)
std::unique_ptr< weld::MetricSpinButton > mxMtrTrgrBorder
unsigned char sal_uInt8