1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _SVX_ALIGN_HXX 28 #define _SVX_ALIGN_HXX 29 30 // include --------------------------------------------------------------- 31 32 #include <svx/orienthelper.hxx> 33 #include <vcl/field.hxx> 34 #include <vcl/button.hxx> 35 #include <vcl/fixed.hxx> 36 #include <vcl/lstbox.hxx> 37 #include <sfx2/tabdlg.hxx> 38 #include <svtools/valueset.hxx> 39 #include <svx/dialcontrol.hxx> 40 #include <svx/wrapfield.hxx> 41 #include <svx/frmdirlbox.hxx> 42 43 namespace svx { 44 45 // ============================================================================ 46 47 class AlignmentTabPage : public SfxTabPage 48 { 49 using TabPage::DeactivatePage; 50 51 public: 52 virtual ~AlignmentTabPage(); 53 54 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); 55 static sal_uInt16* GetRanges(); 56 57 virtual void Reset( const SfxItemSet& rSet ); 58 virtual int DeactivatePage( SfxItemSet* pSet ); 59 virtual void DataChanged( const DataChangedEvent& rDCEvt ); 60 61 private: 62 explicit AlignmentTabPage( Window* pParent, const SfxItemSet& rCoreSet ); 63 64 void InitVsRefEgde(); 65 void UpdateEnableControls(); 66 67 DECL_LINK( UpdateEnableHdl, void* ); 68 69 private: 70 FixedLine maFlAlignment; 71 FixedText maFtHorAlign; 72 ListBox maLbHorAlign; 73 FixedText maFtIndent; 74 MetricField maEdIndent; 75 FixedText maFtVerAlign; 76 ListBox maLbVerAlign; 77 78 FixedLine maFlOrient; 79 DialControl maCtrlDial; 80 FixedText maFtRotate; 81 WrapField maNfRotate; 82 FixedText maFtRefEdge; 83 ValueSet maVsRefEdge; 84 TriStateBox maCbStacked; 85 TriStateBox maCbAsianMode; 86 OrientationHelper maOrientHlp; 87 88 FixedLine maFlProperties; 89 TriStateBox maBtnWrap; 90 TriStateBox maBtnHyphen; 91 TriStateBox maBtnShrink; 92 FixedText maFtFrameDir; 93 FrameDirListBox maLbFrameDir; 94 }; 95 96 // ============================================================================ 97 98 } // namespace svx 99 100 #endif 101 102