1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _SVX_TABSTPGE_HXX 28*cdf0e10cSrcweir #define _SVX_TABSTPGE_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir // include --------------------------------------------------------------- 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include <vcl/group.hxx> 33*cdf0e10cSrcweir #include <vcl/edit.hxx> 34*cdf0e10cSrcweir #include <vcl/field.hxx> 35*cdf0e10cSrcweir #include <vcl/fixed.hxx> 36*cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir #include <editeng/tstpitem.hxx> 39*cdf0e10cSrcweir #include <svx/flagsdef.hxx> 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir // forward --------------------------------------------------------------- 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir class TabWin_Impl; 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir // define ---------------------------------------------------------------- 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir // Bitfelder f"ur DisableControls() 48*cdf0e10cSrcweir //CHINA001 #define TABTYPE_LEFT 0x0001 49*cdf0e10cSrcweir //CHINA001 #define TABTYPE_RIGHT 0x0002 50*cdf0e10cSrcweir //CHINA001 #define TABTYPE_CENTER 0x0004 51*cdf0e10cSrcweir //CHINA001 #define TABTYPE_DEZIMAL 0x0008 52*cdf0e10cSrcweir //CHINA001 #define TABTYPE_ALL 0x000F 53*cdf0e10cSrcweir //CHINA001 54*cdf0e10cSrcweir //CHINA001 #define TABFILL_NONE 0x0010 55*cdf0e10cSrcweir //CHINA001 #define TABFILL_POINT 0x0020 56*cdf0e10cSrcweir //CHINA001 #define TABFILL_DASHLINE 0x0040 57*cdf0e10cSrcweir //CHINA001 #define TABFILL_SOLIDLINE 0x0080 58*cdf0e10cSrcweir //CHINA001 #define TABFILL_SPECIAL 0x0100 59*cdf0e10cSrcweir //CHINA001 #define TABFILL_ALL 0x01F0 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir // class SvxTabulatorTabPage --------------------------------------------- 62*cdf0e10cSrcweir /* 63*cdf0e10cSrcweir {k:\svx\prototyp\dialog\tabstop.bmp} 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir [Beschreibung] 66*cdf0e10cSrcweir In dieser TabPage werden Tabulatoren verwaltet. 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir [Items] 69*cdf0e10cSrcweir <SvxTabStopItem><SID_ATTR_TABSTOP> 70*cdf0e10cSrcweir <SfxUInt16Item><SID_ATTR_TABSTOP_DEFAULTS> 71*cdf0e10cSrcweir <SfxUInt16Item><SID_ATTR_TABSTOP_POS> 72*cdf0e10cSrcweir <SfxInt32Item><SID_ATTR_TABSTOP_OFFSET> 73*cdf0e10cSrcweir */ 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir class SvxTabulatorTabPage : public SfxTabPage 76*cdf0e10cSrcweir { 77*cdf0e10cSrcweir using TabPage::DeactivatePage; 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir public: 80*cdf0e10cSrcweir ~SvxTabulatorTabPage(); 81*cdf0e10cSrcweir 82*cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 83*cdf0e10cSrcweir static sal_uInt16* GetRanges(); 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 86*cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir void DisableControls( const sal_uInt16 nFlag ); 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir protected: 91*cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir private: 94*cdf0e10cSrcweir SvxTabulatorTabPage( Window* pParent, const SfxItemSet& rSet ); 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir // Tabulatoren und Positionen 97*cdf0e10cSrcweir FixedLine aTabLabel; 98*cdf0e10cSrcweir MetricBox aTabBox; 99*cdf0e10cSrcweir FixedLine aTabLabelVert; 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir FixedLine aTabTypeLabel; 102*cdf0e10cSrcweir // TabType 103*cdf0e10cSrcweir RadioButton aLeftTab; 104*cdf0e10cSrcweir RadioButton aRightTab; 105*cdf0e10cSrcweir RadioButton aCenterTab; 106*cdf0e10cSrcweir RadioButton aDezTab; 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir TabWin_Impl* pLeftWin; 109*cdf0e10cSrcweir TabWin_Impl* pRightWin; 110*cdf0e10cSrcweir TabWin_Impl* pCenterWin; 111*cdf0e10cSrcweir TabWin_Impl* pDezWin; 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir FixedText aDezCharLabel; 114*cdf0e10cSrcweir Edit aDezChar; 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir FixedLine aFillLabel; 117*cdf0e10cSrcweir // Fuellzeichen 118*cdf0e10cSrcweir RadioButton aNoFillChar; 119*cdf0e10cSrcweir RadioButton aFillPoints; 120*cdf0e10cSrcweir RadioButton aFillDashLine ; 121*cdf0e10cSrcweir RadioButton aFillSolidLine; 122*cdf0e10cSrcweir RadioButton aFillSpecial; 123*cdf0e10cSrcweir Edit aFillChar; 124*cdf0e10cSrcweir // Buttons 125*cdf0e10cSrcweir PushButton aNewBtn; 126*cdf0e10cSrcweir PushButton aDelAllBtn; 127*cdf0e10cSrcweir PushButton aDelBtn; 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir // lokale Variablen, interne Funktionen 130*cdf0e10cSrcweir SvxTabStop aAktTab; 131*cdf0e10cSrcweir SvxTabStopItem aNewTabs; 132*cdf0e10cSrcweir long nDefDist; 133*cdf0e10cSrcweir FieldUnit eDefUnit; 134*cdf0e10cSrcweir sal_Bool bCheck; 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir #ifdef _SVX_TABSTPGE_CXX 137*cdf0e10cSrcweir void InitTabPos_Impl( sal_uInt16 nPos = 0 ); 138*cdf0e10cSrcweir void SetFillAndTabType_Impl(); 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir // Handler 141*cdf0e10cSrcweir DECL_LINK( NewHdl_Impl, Button* ); 142*cdf0e10cSrcweir DECL_LINK( DelHdl_Impl, Button* ); 143*cdf0e10cSrcweir DECL_LINK( DelAllHdl_Impl, Button* ); 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir DECL_LINK( FillTypeCheckHdl_Impl, RadioButton* ); 146*cdf0e10cSrcweir DECL_LINK( TabTypeCheckHdl_Impl, RadioButton* ); 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir DECL_LINK( SelectHdl_Impl, MetricBox* ); 149*cdf0e10cSrcweir DECL_LINK( ModifyHdl_Impl, MetricBox* ); 150*cdf0e10cSrcweir DECL_LINK( GetFillCharHdl_Impl, Edit* ); 151*cdf0e10cSrcweir DECL_LINK( GetDezCharHdl_Impl, Edit* ); 152*cdf0e10cSrcweir #endif 153*cdf0e10cSrcweir virtual void PageCreated(SfxAllItemSet aSet); // add CHINA001 154*cdf0e10cSrcweir }; 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir #endif // #ifndef _SVX_TABSTPGE_HXX 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir 159