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: labdlg.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_LABDLG_HXX
31 #define _SVX_LABDLG_HXX
33 // include ---------------------------------------------------------------
36 #ifndef _FIELD_HXX //autogen
37 #include <vcl/field.hxx>
39 #ifndef _LSTBOX_HXX //autogen
40 #include <vcl/lstbox.hxx>
42 #ifndef _FIXED_HXX //autogen
43 #include <vcl/fixed.hxx>
45 #include <svtools/valueset.hxx>
46 #include <sfx2/tabdlg.hxx>
49 // class SvxCaptionTabPage -----------------------------------------------
51 const sal_uInt16 CAPTYPE_BITMAPS_COUNT
= 3;
53 class SvxCaptionTabPage
: public SfxTabPage
56 ValueSet aCT_CAPTTYPE
;
57 FixedText aFT_ABSTAND
;
58 MetricField aMF_ABSTAND
;
64 MetricField aMF_ANSATZ
;
65 FixedText aFT_ANSATZ_REL
;
66 ListBox aLB_ANSATZ_REL
;
68 MetricField aMF_LAENGE
;
71 Image
* mpBmpCapTypes
[CAPTYPE_BITMAPS_COUNT
];
72 Image
* mpBmpCapTypesH
[CAPTYPE_BITMAPS_COUNT
];
89 USHORT nAnsatzTypePos
;
90 USHORT nWinkelTypePos
;
92 #ifdef _SVX_LABDLG_CXX
93 void SetupAnsatz_Impl( USHORT nType
);
94 void SetupType_Impl( USHORT nType
);
95 DECL_LINK( AnsatzSelectHdl_Impl
, ListBox
* );
96 DECL_LINK( AnsatzRelSelectHdl_Impl
, ListBox
* );
97 DECL_LINK( LineOptHdl_Impl
, Button
* );
98 DECL_LINK( SelectCaptTypeHdl_Impl
, void * );
101 const SfxItemSet
& rOutAttrs
;
102 const SdrView
* pView
;
105 SvxCaptionTabPage( Window
* pParent
, const SfxItemSet
& rInAttrs
);
106 virtual ~SvxCaptionTabPage();
108 static SfxTabPage
* Create( Window
*, const SfxItemSet
& );
109 static USHORT
* GetRanges();
111 virtual BOOL
FillItemSet( SfxItemSet
& );
112 virtual void Reset( const SfxItemSet
& );
114 void SetView( const SdrView
* pSdrView
)
115 { pView
= pSdrView
; }
117 virtual void DataChanged( const DataChangedEvent
& rDCEvt
);
121 // class SvxCaptionTabDialog ---------------------------------------------
123 class SvxCaptionTabDialog
: public SfxTabDialog
126 // const SfxItemSet& rOutAttrs;
127 const SdrView
* pView
;
132 virtual void PageCreated( USHORT nId
, SfxTabPage
&rPage
);
136 SvxCaptionTabDialog(Window
* pParent
, const SdrView
* pView
,
137 USHORT nAnchorTypes
= 0 );
139 ~SvxCaptionTabDialog();
141 //link for the Writer to validate positions
142 void SetValidateFramePosLink( const Link
& rLink
);
146 #endif //_SVX_LABDLG_HXX