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 
28 class ColorListBox;
29 
32 class XFormTextStartItem;
33 class XFormTextStyleItem;
41 
46 class SvxFontWorkDialog;
47 
49 {
51 
52  virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
53  const SfxPoolItem* pState) override;
54 
55 public:
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 
132  SfxChildAlignment eAlign ) override;
133 public:
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: */
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldShadowX
Definition: fontwork.hxx:99
virtual SfxChildAlignment CheckAlignment(SfxChildAlignment, SfxChildAlignment)
SfxBindings & rBindings
Definition: fontwork.hxx:76
OString m_sLastStyleTbxId
Definition: fontwork.hxx:79
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldTextStart
Definition: fontwork.hxx:94
std::unique_ptr< weld::Image > m_xFbShadowY
Definition: fontwork.hxx:100
OString m_sLastAdjustTbxId
Definition: fontwork.hxx:80
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldDistance
Definition: fontwork.hxx:93
#define CONTROLLER_COUNT
Definition: fontwork.hxx:74
Floating window for setting attributes of text effects.
Definition: fontwork.hxx:72
std::unique_ptr< weld::Image > m_xFbShadowX
Definition: fontwork.hxx:98
SvxFontWorkControllerItem(sal_uInt16 nId, SvxFontWorkDialog &, SfxBindings &)
Definition: fontwork.cxx:48
std::unique_ptr< weld::Toolbar > m_xTbxStyle
Definition: fontwork.hxx:90
std::unique_ptr< ColorListBox > m_xShadowColorLB
Definition: fontwork.hxx:103
std::unique_ptr< weld::Toolbar > m_xTbxShadow
Definition: fontwork.hxx:96
DECL_LINK(TimerHdl, Timer *, void)
#define SAL_WARN_UNUSED
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldShadowY
Definition: fontwork.hxx:101
std::unique_ptr< weld::Toolbar > m_xTbxAdjust
Definition: fontwork.hxx:91
OString m_sLastShadowTbxId
Definition: fontwork.hxx:81
SfxItemState
SfxChildAlignment
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: fontwork.cxx:62
#define SFX_DECL_CHILDWINDOW_WITHID(Class)
virtual void dispose() override
Derived from SfxChildWindow as "container" for fontwork dialog.
Definition: fontwork.hxx:62
SvxFontWorkDialog & rFontWorkDlg
Definition: fontwork.hxx:50