merge the formfield patch from ooo-build
[ooovba.git] / svx / source / cui / measure.hxx
blob8b1394ea8bb0e9be794475353cc39fd92ff68304
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: measure.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_MEASURE_HXX
31 #define _SVX_MEASURE_HXX
33 // include ---------------------------------------------------------------
35 #include <vcl/fixed.hxx>
36 #include <vcl/group.hxx>
37 #include <sfx2/basedlgs.hxx>
38 #ifndef _SVX_DLGCTRL_HXX
39 #include <svx/dlgctrl.hxx>
40 #endif
41 #include "measctrl.hxx"
43 class SdrView;
45 /*************************************************************************
47 |* Dialog zum "Andern von TextAttributen
49 \************************************************************************/
51 class SvxMeasurePage : public SvxTabPage
53 private:
55 FixedLine aFlLine;
56 FixedText aFtLineDist;
57 MetricField aMtrFldLineDist;
58 FixedText aFtHelplineOverhang;
59 MetricField aMtrFldHelplineOverhang;
60 FixedText aFtHelplineDist;
61 MetricField aMtrFldHelplineDist;
62 FixedText aFtHelpline1Len;
63 MetricField aMtrFldHelpline1Len;
64 FixedText aFtHelpline2Len;
65 MetricField aMtrFldHelpline2Len;
66 TriStateBox aTsbBelowRefEdge;
67 FixedText aFtDecimalPlaces;
68 MetricField aMtrFldDecimalPlaces;
70 FixedLine aFlLabel;
71 FixedText aFtPosition;
72 SvxRectCtl aCtlPosition;
73 TriStateBox aTsbAutoPosV;
74 TriStateBox aTsbAutoPosH;
75 TriStateBox aTsbShowUnit;
76 ListBox aLbUnit;
77 TriStateBox aTsbParallel;
79 SvxXMeasurePreview aCtlPreview;
81 FixedLine aFlVert;
83 const SfxItemSet& rOutAttrs;
84 SfxItemSet aAttrSet;
85 const SdrView* pView;
86 SfxMapUnit eUnit;
88 BOOL bPositionModified;
90 #ifdef _SVX_MEASURE_CXX
91 void FillUnitLB();
93 DECL_LINK( ClickAutoPosHdl_Impl, void * );
94 DECL_LINK( ChangeAttrHdl_Impl, void * );
95 #endif
97 public:
99 SvxMeasurePage( Window* pWindow, const SfxItemSet& rInAttrs );
100 ~SvxMeasurePage();
102 static SfxTabPage* Create( Window*, const SfxItemSet& );
103 static USHORT* GetRanges();
105 virtual BOOL FillItemSet( SfxItemSet& );
106 virtual void Reset( const SfxItemSet & );
108 virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
110 void Construct();
111 void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
112 virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001
115 /*************************************************************************
117 |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode
118 |* benachrichtigt werden zu k"onnen.
120 \************************************************************************/
122 class SvxMeasureDialog : public SfxSingleTabDialog
124 public:
125 SvxMeasureDialog( Window* pParent, const SfxItemSet& rAttr,
126 const SdrView* pView );
127 ~SvxMeasureDialog();
131 #endif // _SVX_MEASURE_HXX