update dev300-m58
[ooovba.git] / sw / source / ui / inc / optload.hxx
blob7a570c3694a9b6d86d85618327ac17661c83e6c4
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: optload.hxx,v $
10 * $Revision: 1.13 $
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 _OPTLOAD_HXX
31 #define _OPTLOAD_HXX
33 #include <sfx2/tabdlg.hxx>
35 #ifndef _GROUP_HXX
36 #include <vcl/group.hxx>
37 #endif
38 #include <vcl/fixed.hxx>
39 #include <vcl/lstbox.hxx>
40 #include <vcl/field.hxx>
41 #include <svx/strarray.hxx>
42 #include <sfx2/basedlgs.hxx>
43 #include <svx/checklbx.hxx>
44 #include <swlbox.hxx>
45 #include <caption.hxx>
47 class SwFldMgr;
48 class SvLBoxEntry;
49 class SwWrtShell;
51 /*-----------------31.08.96 10.09-------------------
53 --------------------------------------------------*/
55 class SwLoadOptPage : public SfxTabPage
57 private:
58 FixedLine aUpdateFL;
59 FixedText aLinkFT;
60 RadioButton aAlwaysRB;
61 RadioButton aRequestRB;
62 RadioButton aNeverRB;
64 FixedText aFieldFT;
65 CheckBox aAutoUpdateFields;
66 CheckBox aAutoUpdateCharts;
68 FixedLine aSettingsFL;
69 FixedText aMetricFT;
70 ListBox aMetricLB;
71 FixedText aTabFT;
72 MetricField aTabMF;
73 CheckBox aUseSquaredPageMode;
74 CheckBox aUseCharUnit;
76 SwWrtShell* pWrtShell;
77 sal_Bool bHTMLMode;
78 UINT16 nLastTab;
79 sal_Int32 nOldLinkMode;
81 DECL_LINK(CaptionHdl, PushButton*);
82 DECL_LINK(MetricHdl, ListBox*);
84 public:
85 SwLoadOptPage( Window* pParent, const SfxItemSet& rSet );
86 ~SwLoadOptPage();
88 static SfxTabPage* Create( Window* pParent,
89 const SfxItemSet& rAttrSet);
91 virtual BOOL FillItemSet( SfxItemSet& rSet );
92 virtual void Reset( const SfxItemSet& rSet );
95 /*--------------------------------------------------------------------
96 Beschreibung:
97 --------------------------------------------------------------------*/
98 class SwCaptionOptDlg : public SfxSingleTabDialog
100 public:
101 SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet);
102 ~SwCaptionOptDlg();
104 /* -----------------23.10.98 13:19-------------------
106 * --------------------------------------------------*/
108 class CaptionComboBox : public SwComboBox
110 protected:
111 virtual void KeyInput( const KeyEvent& );
113 public:
114 CaptionComboBox( Window* pParent, const ResId& rResId)
115 : SwComboBox(pParent, rResId)
119 /*-----------------31.08.96 10.09-------------------
121 --------------------------------------------------*/
123 class SwCaptionPreview : public Window
125 private:
126 String maText;
127 Point maDrawPos;
128 public:
129 SwCaptionPreview( Window* pParent, const ResId& rResId );
130 void SetPreviewText( const String& rText );
131 virtual void Paint( const Rectangle& rRect );
134 class SwCaptionOptPage : public SfxTabPage
136 private:
137 FixedText aCheckFT;
138 SvxCheckListBox aCheckLB;
140 FixedText aFtCaptionOrder;
141 ListBox aLbCaptionOrder;
143 SwCaptionPreview aPreview;
145 FixedLine aSettingsGroupFL;
146 FixedText aCategoryText;
147 CaptionComboBox aCategoryBox;
148 FixedText aFormatText;
149 ListBox aFormatBox;
150 //#i61007# order of captions
151 FixedText aNumberingSeparatorFT;
152 Edit aNumberingSeparatorED;
153 FixedText aTextText;
154 Edit aTextEdit;
155 FixedText aPosText;
156 ListBox aPosBox;
158 FixedLine aNumCaptFL;
159 FixedText aFtLevel;
160 ListBox aLbLevel;
161 FixedText aFtDelim;
162 Edit aEdDelim;
164 FixedLine aCategoryFL;
165 FixedText aCharStyleFT;
166 ListBox aCharStyleLB;
167 CheckBox aApplyBorderCB;
169 String sSWTable;
170 String sSWFrame;
171 String sSWGraphic;
172 String sOLE;
174 String sIllustration;
175 String sTable;
176 String sText;
177 String sDrawing;
179 String sBegin;
180 String sEnd;
181 String sAbove;
182 String sBelow;
184 String sNone;
186 SwFldMgr *pMgr;
187 USHORT eType;
188 BOOL bHTMLMode;
190 DECL_LINK( SelectHdl, ListBox *pLB = 0 );
191 DECL_LINK( ModifyHdl, Edit *pEdt = 0 );
192 DECL_LINK( OrderHdl, ListBox* );
193 DECL_LINK( ShowEntryHdl, SvxCheckListBox *pLB = 0 );
194 DECL_LINK( SaveEntryHdl, SvxCheckListBox *pLB = 0 );
196 void DelUserData();
197 void SetOptions( const USHORT nPos,
198 const SwCapObjType eType,
199 const SvGlobalName *pOleId = 0);
200 void SaveEntry( SvLBoxEntry* pEntry );
201 void DrawSample();
203 public:
204 SwCaptionOptPage( Window* pParent,
205 const SfxItemSet& rSet );
206 ~SwCaptionOptPage();
208 static SfxTabPage* Create( Window* pParent,
209 const SfxItemSet& rAttrSet);
211 virtual BOOL FillItemSet( SfxItemSet& rSet );
212 virtual void Reset( const SfxItemSet& rSet );
215 #endif