Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / cui / source / inc / tabstpge.hxx
blob0e4953a24d41904da160991bdf2929be3fdb9e40
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 _SVX_TABSTPGE_HXX
20 #define _SVX_TABSTPGE_HXX
22 #include <vcl/group.hxx>
23 #include <vcl/edit.hxx>
24 #include <vcl/field.hxx>
25 #include <vcl/fixed.hxx>
26 #include <sfx2/tabdlg.hxx>
28 #include <editeng/tstpitem.hxx>
29 #include <svx/flagsdef.hxx>
31 // forward ---------------------------------------------------------------
33 class TabWin_Impl;
35 // class SvxTabulatorTabPage ---------------------------------------------
37 {k:\svx\prototyp\dialog\tabstop.bmp}
39 [Description]
40 In this TabPage tabulators are managed.
42 [Items]
43 <SvxTabStopItem><SID_ATTR_TABSTOP>
44 <SfxUInt16Item><SID_ATTR_TABSTOP_DEFAULTS>
45 <SfxUInt16Item><SID_ATTR_TABSTOP_POS>
46 <SfxInt32Item><SID_ATTR_TABSTOP_OFFSET>
49 class SvxTabulatorTabPage : public SfxTabPage
51 using TabPage::DeactivatePage;
53 public:
54 ~SvxTabulatorTabPage();
56 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
57 static sal_uInt16* GetRanges();
59 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
60 virtual void Reset( const SfxItemSet& rSet );
62 void DisableControls( const sal_uInt16 nFlag );
64 protected:
65 virtual int DeactivatePage( SfxItemSet* pSet = 0 );
67 private:
68 SvxTabulatorTabPage( Window* pParent, const SfxItemSet& rSet );
70 // tabulators and positions
71 FixedLine aTabLabel;
72 MetricBox aTabBox;
73 FixedLine aTabLabelVert;
75 FixedLine aTabTypeLabel;
76 // TabType
77 RadioButton aLeftTab;
78 RadioButton aRightTab;
79 RadioButton aCenterTab;
80 RadioButton aDezTab;
82 TabWin_Impl* pLeftWin;
83 TabWin_Impl* pRightWin;
84 TabWin_Impl* pCenterWin;
85 TabWin_Impl* pDezWin;
87 FixedText aDezCharLabel;
88 Edit aDezChar;
90 FixedLine aFillLabel;
92 RadioButton aNoFillChar;
93 RadioButton aFillPoints;
94 RadioButton aFillDashLine ;
95 RadioButton aFillSolidLine;
96 RadioButton aFillSpecial;
97 Edit aFillChar;
99 PushButton aNewBtn;
100 PushButton aDelAllBtn;
101 PushButton aDelBtn;
103 // local variables, internal functions
104 SvxTabStop aAktTab;
105 SvxTabStopItem aNewTabs;
106 long nDefDist;
107 FieldUnit eDefUnit;
108 sal_Bool bCheck;
110 #ifdef _SVX_TABSTPGE_CXX
111 void InitTabPos_Impl( sal_uInt16 nPos = 0 );
112 void SetFillAndTabType_Impl();
114 // Handler
115 DECL_LINK( NewHdl_Impl, Button* );
116 DECL_LINK(DelHdl_Impl, void *);
117 DECL_LINK(DelAllHdl_Impl, void *);
119 DECL_LINK( FillTypeCheckHdl_Impl, RadioButton* );
120 DECL_LINK( TabTypeCheckHdl_Impl, RadioButton* );
122 DECL_LINK(SelectHdl_Impl, void *);
123 DECL_LINK(ModifyHdl_Impl, void *);
124 DECL_LINK( GetFillCharHdl_Impl, Edit* );
125 DECL_LINK( GetDezCharHdl_Impl, Edit* );
126 #endif
127 virtual void PageCreated(SfxAllItemSet aSet);
130 #endif // #ifndef _SVX_TABSTPGE_HXX
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */