LibreOffice Module svx (master) 1
fontwork.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_FONTWORK_HXX
20#define INCLUDED_SVX_FONTWORK_HXX
21
22#include <sfx2/dockwin.hxx>
23#include <sfx2/ctrlitem.hxx>
24#include <svx/svxdllapi.h>
25#include <vcl/idle.hxx>
26#include <vcl/weld.hxx>
27
28class ColorListBox;
29
41
47
49{
51
52 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState,
53 const SfxPoolItem* pState) override;
54
55public:
57};
58
63{
64 public:
67};
68
73{
74#define CONTROLLER_COUNT 11
75
78
82
87
89
90 std::unique_ptr<weld::Toolbar> m_xTbxStyle;
91 std::unique_ptr<weld::Toolbar> m_xTbxAdjust;
92
93 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDistance;
94 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldTextStart;
95
96 std::unique_ptr<weld::Toolbar> m_xTbxShadow;
97
98 std::unique_ptr<weld::Image> m_xFbShadowX;
99 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldShadowX;
100 std::unique_ptr<weld::Image> m_xFbShadowY;
101 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldShadowY;
102
103 std::unique_ptr<ColorListBox> m_xShadowColorLB;
104
107
108 DECL_LINK( SelectStyleHdl_Impl, const OString&, void );
109 DECL_LINK( SelectAdjustHdl_Impl, const OString&, void );
110 DECL_LINK( SelectShadowHdl_Impl, const OString&, void );
111
112 DECL_LINK( ModifyInputHdl_Impl, weld::MetricSpinButton&, void );
113 DECL_LINK( InputTimeoutHdl_Impl, Timer*, void );
114
115 DECL_LINK( ColorSelectHdl_Impl, ColorListBox&, void );
116
117 void SetStyle_Impl(const XFormTextStyleItem*);
118 void SetAdjust_Impl(const XFormTextAdjustItem*);
119 void SetDistance_Impl(const XFormTextDistanceItem*);
120 void SetStart_Impl(const XFormTextStartItem*);
121 void SetMirror_Impl(const XFormTextMirrorItem*);
122 void SetShowForm_Impl(const XFormTextHideFormItem*);
123 void SetOutline_Impl(const XFormTextOutlineItem*);
124 void SetShadow_Impl(const XFormTextShadowItem*, bool bRestoreValues = false);
125 void SetShadowColor_Impl(const XFormTextShadowColorItem*);
126 void SetShadowXVal_Impl(const XFormTextShadowXValItem*);
127 void SetShadowYVal_Impl(const XFormTextShadowYValItem*);
128
129 void ApplyImageList();
130
131 virtual SfxChildAlignment CheckAlignment( SfxChildAlignment eActAlign,
132 SfxChildAlignment eAlign ) override;
133public:
135 vcl::Window* pParent);
136 virtual ~SvxFontWorkDialog() override;
137 virtual void dispose() override;
138};
139
140#endif // INCLUDED_SVX_FONTWORK_HXX
141
142/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxChildAlignment
virtual void dispose()
Derived from SfxChildWindow as "container" for fontwork dialog.
Definition: fontwork.hxx:63
SFX_DECL_CHILDWINDOW_WITHID(SvxFontWorkChildWindow)
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: fontwork.cxx:62
SvxFontWorkDialog & rFontWorkDlg
Definition: fontwork.hxx:50
SvxFontWorkControllerItem(sal_uInt16 nId, SvxFontWorkDialog &, SfxBindings &)
Definition: fontwork.cxx:48
Floating window for setting attributes of text effects.
Definition: fontwork.hxx:73
OString m_sLastStyleTbxId
Definition: fontwork.hxx:79
DECL_LINK(InputTimeoutHdl_Impl, Timer *, void)
SfxBindings & rBindings
Definition: fontwork.hxx:76
OString m_sLastShadowTbxId
Definition: fontwork.hxx:81
tools::Long nSaveShadowX
Definition: fontwork.hxx:83
DECL_LINK(SelectAdjustHdl_Impl, const OString &, void)
DECL_LINK(ColorSelectHdl_Impl, ColorListBox &, void)
OString m_sLastAdjustTbxId
Definition: fontwork.hxx:80
std::unique_ptr< weld::Image > m_xFbShadowY
Definition: fontwork.hxx:100
DECL_LINK(ModifyInputHdl_Impl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldShadowX
Definition: fontwork.hxx:99
std::unique_ptr< ColorListBox > m_xShadowColorLB
Definition: fontwork.hxx:103
DECL_LINK(SelectShadowHdl_Impl, const OString &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldTextStart
Definition: fontwork.hxx:94
std::unique_ptr< weld::Image > m_xFbShadowX
Definition: fontwork.hxx:98
tools::Long nSaveShadowY
Definition: fontwork.hxx:84
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldDistance
Definition: fontwork.hxx:93
std::unique_ptr< weld::Toolbar > m_xTbxStyle
Definition: fontwork.hxx:90
tools::Long nSaveShadowAngle
Definition: fontwork.hxx:85
std::unique_ptr< weld::Toolbar > m_xTbxAdjust
Definition: fontwork.hxx:91
std::unique_ptr< weld::Toolbar > m_xTbxShadow
Definition: fontwork.hxx:96
DECL_LINK(SelectStyleHdl_Impl, const OString &, void)
tools::Long nSaveShadowSize
Definition: fontwork.hxx:86
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldShadowY
Definition: fontwork.hxx:101
#define CONTROLLER_COUNT
Definition: fontwork.hxx:74
long Long
SfxItemState
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
#define SAL_WARN_UNUSED