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_MEASURE_HXX 28 #define _SVX_MEASURE_HXX 29 30 // include --------------------------------------------------------------- 31 32 #include <vcl/fixed.hxx> 33 #include <vcl/group.hxx> 34 #include <sfx2/basedlgs.hxx> 35 #include <svx/dlgctrl.hxx> 36 #include <svx/measctrl.hxx> 37 38 class SdrView; 39 40 /************************************************************************* 41 |* 42 |* Dialog zum "Andern von TextAttributen 43 |* 44 \************************************************************************/ 45 46 class SvxMeasurePage : public SvxTabPage 47 { 48 private: 49 50 FixedLine aFlLine; 51 FixedText aFtLineDist; 52 MetricField aMtrFldLineDist; 53 FixedText aFtHelplineOverhang; 54 MetricField aMtrFldHelplineOverhang; 55 FixedText aFtHelplineDist; 56 MetricField aMtrFldHelplineDist; 57 FixedText aFtHelpline1Len; 58 MetricField aMtrFldHelpline1Len; 59 FixedText aFtHelpline2Len; 60 MetricField aMtrFldHelpline2Len; 61 TriStateBox aTsbBelowRefEdge; 62 FixedText aFtDecimalPlaces; 63 MetricField aMtrFldDecimalPlaces; 64 65 FixedLine aFlLabel; 66 FixedText aFtPosition; 67 SvxRectCtl aCtlPosition; 68 TriStateBox aTsbAutoPosV; 69 TriStateBox aTsbAutoPosH; 70 TriStateBox aTsbShowUnit; 71 ListBox aLbUnit; 72 TriStateBox aTsbParallel; 73 74 SvxXMeasurePreview aCtlPreview; 75 76 FixedLine aFlVert; 77 78 const SfxItemSet& rOutAttrs; 79 SfxItemSet aAttrSet; 80 const SdrView* pView; 81 SfxMapUnit eUnit; 82 83 sal_Bool bPositionModified; 84 85 #ifdef _SVX_MEASURE_CXX 86 void FillUnitLB(); 87 88 DECL_LINK( ClickAutoPosHdl_Impl, void * ); 89 DECL_LINK( ChangeAttrHdl_Impl, void * ); 90 #endif 91 92 public: 93 94 SvxMeasurePage( Window* pWindow, const SfxItemSet& rInAttrs ); 95 ~SvxMeasurePage(); 96 97 static SfxTabPage* Create( Window*, const SfxItemSet& ); 98 static sal_uInt16* GetRanges(); 99 100 virtual sal_Bool FillItemSet( SfxItemSet& ); 101 virtual void Reset( const SfxItemSet & ); 102 103 virtual void PointChanged( Window* pWindow, RECT_POINT eRP ); 104 105 void Construct(); 106 void SetView( const SdrView* pSdrView ) { pView = pSdrView; } 107 virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001 108 }; 109 110 /************************************************************************* 111 |* 112 |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode 113 |* benachrichtigt werden zu k"onnen. 114 |* 115 \************************************************************************/ 116 117 class SvxMeasureDialog : public SfxSingleTabDialog 118 { 119 public: 120 SvxMeasureDialog( Window* pParent, const SfxItemSet& rAttr, 121 const SdrView* pView ); 122 ~SvxMeasureDialog(); 123 }; 124 125 126 #endif // _SVX_MEASURE_HXX 127 128