1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: measure.hxx,v $
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>
41 #include "measctrl.hxx"
45 /*************************************************************************
47 |* Dialog zum "Andern von TextAttributen
49 \************************************************************************/
51 class SvxMeasurePage
: public SvxTabPage
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
;
71 FixedText aFtPosition
;
72 SvxRectCtl aCtlPosition
;
73 TriStateBox aTsbAutoPosV
;
74 TriStateBox aTsbAutoPosH
;
75 TriStateBox aTsbShowUnit
;
77 TriStateBox aTsbParallel
;
79 SvxXMeasurePreview aCtlPreview
;
83 const SfxItemSet
& rOutAttrs
;
88 BOOL bPositionModified
;
90 #ifdef _SVX_MEASURE_CXX
93 DECL_LINK( ClickAutoPosHdl_Impl
, void * );
94 DECL_LINK( ChangeAttrHdl_Impl
, void * );
99 SvxMeasurePage( Window
* pWindow
, const SfxItemSet
& rInAttrs
);
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
);
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
125 SvxMeasureDialog( Window
* pParent
, const SfxItemSet
& rAttr
,
126 const SdrView
* pView
);
131 #endif // _SVX_MEASURE_HXX