bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / inc / align.hxx
bloba667eb9a902b0170d0818cc74c4d9343745f110c
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_CUI_SOURCE_INC_ALIGN_HXX
20 #define INCLUDED_CUI_SOURCE_INC_ALIGN_HXX
22 // list box indexes
23 #define ALIGNDLG_HORALIGN_STD 0
24 #define ALIGNDLG_HORALIGN_LEFT 1
25 #define ALIGNDLG_HORALIGN_CENTER 2
26 #define ALIGNDLG_HORALIGN_RIGHT 3
27 #define ALIGNDLG_HORALIGN_BLOCK 4
28 #define ALIGNDLG_HORALIGN_FILL 5
29 #define ALIGNDLG_HORALIGN_DISTRIBUTED 6
31 #define ALIGNDLG_VERALIGN_STD 0
32 #define ALIGNDLG_VERALIGN_TOP 1
33 #define ALIGNDLG_VERALIGN_MID 2
34 #define ALIGNDLG_VERALIGN_BOTTOM 3
35 #define ALIGNDLG_VERALIGN_BLOCK 4
36 #define ALIGNDLG_VERALIGN_DISTRIBUTED 5
39 #include <svx/orienthelper.hxx>
40 #include <vcl/field.hxx>
41 #include <vcl/button.hxx>
42 #include <vcl/fixed.hxx>
43 #include <vcl/layout.hxx>
44 #include <vcl/lstbox.hxx>
45 #include <sfx2/tabdlg.hxx>
46 #include <svtools/valueset.hxx>
47 #include <svx/dialcontrol.hxx>
48 #include <svx/frmdirlbox.hxx>
50 namespace svx {
54 class AlignmentTabPage : public SfxTabPage
56 using TabPage::DeactivatePage;
57 friend class VclPtr<AlignmentTabPage>;
58 static const sal_uInt16 s_pRanges[];
60 public:
61 virtual ~AlignmentTabPage();
62 virtual void dispose() SAL_OVERRIDE;
64 static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );
65 static const sal_uInt16* GetRanges() { return s_pRanges; }
67 virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
68 virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
69 virtual sfxpg DeactivatePage( SfxItemSet* pSet ) SAL_OVERRIDE;
70 virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
72 private:
73 explicit AlignmentTabPage( vcl::Window* pParent, const SfxItemSet& rCoreSet );
75 void InitVsRefEgde();
76 void UpdateEnableControls();
78 bool HasAlignmentChanged( const SfxItemSet& rNew, sal_uInt16 nWhich ) const;
80 DECL_LINK( UpdateEnableHdl, void* );
82 private:
83 VclPtr<ListBox> m_pLbHorAlign;
84 VclPtr<FixedText> m_pFtIndent;
85 VclPtr<MetricField> m_pEdIndent;
86 VclPtr<FixedText> m_pFtVerAlign;
87 VclPtr<ListBox> m_pLbVerAlign;
89 VclPtr<DialControl> m_pCtrlDial;
90 VclPtr<FixedText> m_pFtRotate;
91 VclPtr<NumericField> m_pNfRotate;
92 VclPtr<FixedText> m_pFtRefEdge;
93 VclPtr<ValueSet> m_pVsRefEdge;
94 VclPtr<TriStateBox> m_pCbStacked;
95 VclPtr<TriStateBox> m_pCbAsianMode;
96 OrientationHelper* m_pOrientHlp;
98 VclPtr<VclHBox> m_pBoxDirection;
99 VclPtr<TriStateBox> m_pBtnWrap;
100 VclPtr<TriStateBox> m_pBtnHyphen;
101 VclPtr<TriStateBox> m_pBtnShrink;
102 VclPtr<FrameDirListBox> m_pLbFrameDir;
104 // hidden labels/string
105 VclPtr<FixedText> m_pFtBotLock;
106 VclPtr<FixedText> m_pFtTopLock;
107 VclPtr<FixedText> m_pFtCelLock;
108 VclPtr<FixedText> m_pFtABCD;
110 VclPtr<VclContainer> m_pAlignmentFrame;
111 VclPtr<VclContainer> m_pOrientFrame;
112 VclPtr<VclContainer> m_pPropertiesFrame;
119 #endif
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */