bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / optload.hxx
blob9e27d5a396bbc5ced3488800279cec3f711129b0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _OPTLOAD_HXX
20 #define _OPTLOAD_HXX
22 #include <sfx2/tabdlg.hxx>
24 #include <vcl/group.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/lstbox.hxx>
27 #include <vcl/field.hxx>
28 #include <svx/strarray.hxx>
29 #include <sfx2/basedlgs.hxx>
30 #include <svx/checklbx.hxx>
31 #include <swlbox.hxx>
32 #include <caption.hxx>
34 class SwFldMgr;
35 class SvTreeListEntry;
36 class SwWrtShell;
38 class SwLoadOptPage : public SfxTabPage
40 private:
41 FixedLine aUpdateFL;
42 FixedText aLinkFT;
43 RadioButton aAlwaysRB;
44 RadioButton aRequestRB;
45 RadioButton aNeverRB;
47 FixedText aFieldFT;
48 CheckBox aAutoUpdateFields;
49 CheckBox aAutoUpdateCharts;
51 FixedLine aSettingsFL;
52 FixedText aMetricFT;
53 ListBox aMetricLB;
54 FixedText aTabFT;
55 MetricField aTabMF;
56 CheckBox aUseSquaredPageMode;
57 CheckBox aUseCharUnit;
58 FixedLine aWordCountFL;
59 FixedText aWordCountFT;
60 Edit aWordCountED;
62 SwWrtShell* pWrtShell;
63 sal_Bool bHTMLMode;
64 sal_uInt16 nLastTab;
65 sal_Int32 nOldLinkMode;
67 DECL_LINK(MetricHdl, void *);
69 public:
70 SwLoadOptPage( Window* pParent, const SfxItemSet& rSet );
71 ~SwLoadOptPage();
73 static SfxTabPage* Create( Window* pParent,
74 const SfxItemSet& rAttrSet);
76 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
77 virtual void Reset( const SfxItemSet& rSet );
80 class SwCaptionOptDlg : public SfxNoLayoutSingleTabDialog
82 public:
83 SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet);
84 ~SwCaptionOptDlg();
87 class CaptionComboBox : public SwComboBox
89 protected:
90 virtual void KeyInput( const KeyEvent& );
92 public:
93 CaptionComboBox( Window* pParent, const ResId& rResId)
94 : SwComboBox(pParent, rResId)
98 class SwCaptionPreview : public Window
100 private:
101 String maText;
102 Point maDrawPos;
103 public:
104 SwCaptionPreview( Window* pParent );
105 SwCaptionPreview( Window* pParent, const ResId& rResId );
106 void Init();
107 void SetPreviewText( const String& rText );
108 virtual void Paint( const Rectangle& rRect );
111 class SwCaptionOptPage : public SfxTabPage
113 private:
114 FixedText aCheckFT;
115 SvxCheckListBox aCheckLB;
117 FixedText aFtCaptionOrder;
118 ListBox aLbCaptionOrder;
120 SwCaptionPreview aPreview;
122 FixedLine aSettingsGroupFL;
123 FixedText aCategoryText;
124 CaptionComboBox aCategoryBox;
125 FixedText aFormatText;
126 ListBox aFormatBox;
127 //#i61007# order of captions
128 FixedText aNumberingSeparatorFT;
129 Edit aNumberingSeparatorED;
130 FixedText aTextText;
131 Edit aTextEdit;
132 FixedText aPosText;
133 ListBox aPosBox;
135 FixedLine aNumCaptFL;
136 FixedText aFtLevel;
137 ListBox aLbLevel;
138 FixedText aFtDelim;
139 Edit aEdDelim;
141 FixedLine aCategoryFL;
142 FixedText aCharStyleFT;
143 ListBox aCharStyleLB;
144 CheckBox aApplyBorderCB;
146 String sSWTable;
147 String sSWFrame;
148 String sSWGraphic;
149 String sOLE;
151 String sIllustration;
152 String sTable;
153 String sText;
154 String sDrawing;
156 String sBegin;
157 String sEnd;
158 String sAbove;
159 String sBelow;
161 String sNone;
163 SwFldMgr *pMgr;
164 sal_Bool bHTMLMode;
166 DECL_LINK(SelectHdl, void *);
167 DECL_LINK(ModifyHdl, void * = 0);
168 DECL_LINK( OrderHdl, ListBox* );
169 DECL_LINK(ShowEntryHdl, void *);
170 DECL_LINK(SaveEntryHdl, void *);
172 void DelUserData();
173 void SetOptions( const sal_uInt16 nPos,
174 const SwCapObjType eType,
175 const SvGlobalName *pOleId = 0);
176 void SaveEntry( SvTreeListEntry* pEntry );
177 void DrawSample();
179 public:
180 SwCaptionOptPage( Window* pParent,
181 const SfxItemSet& rSet );
182 ~SwCaptionOptPage();
184 static SfxTabPage* Create( Window* pParent,
185 const SfxItemSet& rAttrSet);
187 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
188 virtual void Reset( const SfxItemSet& rSet );
191 #endif
193 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */