1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 ---------------------------------------------------------------
35 // class SvxTabulatorTabPage ---------------------------------------------
37 {k:\svx\prototyp\dialog\tabstop.bmp}
40 In this TabPage tabulators are managed.
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
;
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
);
65 virtual int DeactivatePage( SfxItemSet
* pSet
= 0 );
68 SvxTabulatorTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
70 // tabulators and positions
73 FixedLine aTabLabelVert
;
75 FixedLine aTabTypeLabel
;
78 RadioButton aRightTab
;
79 RadioButton aCenterTab
;
82 TabWin_Impl
* pLeftWin
;
83 TabWin_Impl
* pRightWin
;
84 TabWin_Impl
* pCenterWin
;
87 FixedText aDezCharLabel
;
92 RadioButton aNoFillChar
;
93 RadioButton aFillPoints
;
94 RadioButton aFillDashLine
;
95 RadioButton aFillSolidLine
;
96 RadioButton aFillSpecial
;
100 PushButton aDelAllBtn
;
103 // local variables, internal functions
105 SvxTabStopItem aNewTabs
;
110 #ifdef _SVX_TABSTPGE_CXX
111 void InitTabPos_Impl( sal_uInt16 nPos
= 0 );
112 void SetFillAndTabType_Impl();
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
* );
127 virtual void PageCreated(SfxAllItemSet aSet
);
130 #endif // #ifndef _SVX_TABSTPGE_HXX
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */