1efeef26fSAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3efeef26fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4efeef26fSAndrew Rist * or more contributor license agreements. See the NOTICE file
5efeef26fSAndrew Rist * distributed with this work for additional information
6efeef26fSAndrew Rist * regarding copyright ownership. The ASF licenses this file
7efeef26fSAndrew Rist * to you under the Apache License, Version 2.0 (the
8efeef26fSAndrew Rist * "License"); you may not use this file except in compliance
9efeef26fSAndrew Rist * with the License. You may obtain a copy of the License at
10efeef26fSAndrew Rist *
11efeef26fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12efeef26fSAndrew Rist *
13efeef26fSAndrew Rist * Unless required by applicable law or agreed to in writing,
14efeef26fSAndrew Rist * software distributed under the License is distributed on an
15efeef26fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16efeef26fSAndrew Rist * KIND, either express or implied. See the License for the
17efeef26fSAndrew Rist * specific language governing permissions and limitations
18efeef26fSAndrew Rist * under the License.
19efeef26fSAndrew Rist *
20efeef26fSAndrew Rist *************************************************************/
21efeef26fSAndrew Rist
22efeef26fSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sw.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir #ifdef SW_DLLIMPLEMENTATION
28cdf0e10cSrcweir #undef SW_DLLIMPLEMENTATION
29cdf0e10cSrcweir #endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir #include "swdlgfact.hxx"
32cdf0e10cSrcweir #include <svl/style.hxx>
33cdf0e10cSrcweir #ifndef _SVX_SVXIDS_HRC
34cdf0e10cSrcweir #include <svx/svxids.hrc>
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir #include "dialog.hrc"
37cdf0e10cSrcweir #include "misc.hrc"
38cdf0e10cSrcweir #include "chrdlg.hrc"
39cdf0e10cSrcweir #include "fldui.hrc"
40cdf0e10cSrcweir #include "table.hrc"
41cdf0e10cSrcweir #include "frmui.hrc"
42cdf0e10cSrcweir #include "dbui.hrc"
43cdf0e10cSrcweir #include "globals.hrc"
44cdf0e10cSrcweir #include "fldui.hrc"
45cdf0e10cSrcweir #include "envelp.hrc"
46cdf0e10cSrcweir #include "dochdl.hrc"
47cdf0e10cSrcweir #include <index.hrc>
48cdf0e10cSrcweir #include <regionsw.hrc>
49cdf0e10cSrcweir #include <fmtui.hrc>
50cdf0e10cSrcweir
51cdf0e10cSrcweir #include <wordcountdialog.hxx>
52cdf0e10cSrcweir #include "abstract.hxx" // add for SwInsertAbstractDlg
53cdf0e10cSrcweir #include "addrdlg.hxx" // add for SwAddrDlg
54cdf0e10cSrcweir #include "ascfldlg.hxx" // add for SwAsciiFilterDlg
55cdf0e10cSrcweir #include "bookmark.hxx" //add for SwInsertBookmarkDlg
56cdf0e10cSrcweir #include "break.hxx" //add for SwBreakDlg
57cdf0e10cSrcweir #include "changedb.hxx" //add for SwChangeDBDlg
58cdf0e10cSrcweir #include "chrdlg.hxx" // add for SwCharDlg
59cdf0e10cSrcweir #include "convert.hxx" //add for SwConvertTableDlg
60cdf0e10cSrcweir #include "cption.hxx" //add for SwCaptionDialog
61cdf0e10cSrcweir #include "dbinsdlg.hxx" //add for SwInsertDBColAutoPilot
62cdf0e10cSrcweir #include "docfnote.hxx" //add for SwFootNoteOptionDlg
63cdf0e10cSrcweir #include "docstdlg.hxx" //add for SwDocStatPage
64cdf0e10cSrcweir #include "DropDownFieldDialog.hxx" //add for DropDownFieldDialog
65cdf0e10cSrcweir #include "envlop.hxx" //add for SwEnvDlg
66cdf0e10cSrcweir #include "label.hxx" //add for SwLabDlg
67cdf0e10cSrcweir #include "drpcps.hxx" //add for SwDropCapsDlg
68cdf0e10cSrcweir #include "swuipardlg.hxx" //add for SwParaDlg
69cdf0e10cSrcweir #include "pattern.hxx" //add for SwBackgroundDlg
70cdf0e10cSrcweir #include "rowht.hxx" //add for SwTableHeightDlg
71cdf0e10cSrcweir #include "selglos.hxx" //add for SwSelGlossaryDlg
72cdf0e10cSrcweir #include "splittbl.hxx" //add for SwSplitTblDlg
73cdf0e10cSrcweir #include "srtdlg.hxx" //add for SwSortDlg
74cdf0e10cSrcweir #include "tautofmt.hxx" //add for SwAutoFormatDlg
75cdf0e10cSrcweir #include "tblnumfm.hxx" //add for SwNumFmtDlg
76cdf0e10cSrcweir #include "uiborder.hxx" //add for SwBorderDlg
77cdf0e10cSrcweir #include "wrap.hxx" //add for SwWrapDlg
78cdf0e10cSrcweir #include "colwd.hxx" //add for SwTableWidthDlg
79cdf0e10cSrcweir #include "tabledlg.hxx" //add for SwTableTabDlg
80cdf0e10cSrcweir #include "fldtdlg.hxx" //add for SwFldDlg
81cdf0e10cSrcweir #include "fldedt.hxx" //add for SwFldEditDlg
82cdf0e10cSrcweir #include "swrenamexnameddlg.hxx" //add for SwRenameXNamedDlg
83cdf0e10cSrcweir #include "swmodalredlineacceptdlg.hxx" //add for SwModalRedlineAcceptDlg
84cdf0e10cSrcweir #include <frmdlg.hxx> //add for SwFrmDlg
85cdf0e10cSrcweir #include <tmpdlg.hxx> //add for SwTemplateDlg
86cdf0e10cSrcweir #include <glossary.hxx> //add for SwGlossaryDlg
87cdf0e10cSrcweir #include <inpdlg.hxx> //add for SwFldInputDlg
88cdf0e10cSrcweir #include <insfnote.hxx> //add for SwInsFootNoteDlg
89cdf0e10cSrcweir #include <insrule.hxx> //add for SwInsertGrfRulerDlg
90cdf0e10cSrcweir #include <instable.hxx> //add for SwInsTableDlg
91cdf0e10cSrcweir #include <javaedit.hxx> //add for SwJavaEditDialog
92cdf0e10cSrcweir #include <linenum.hxx> //add for SwLineNumberingDlg
93cdf0e10cSrcweir #include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
94cdf0e10cSrcweir #include <mergetbl.hxx> //add for SwMergeTblDlg
95cdf0e10cSrcweir #include <multmrk.hxx> //add for SwMultiTOXMarkDlg
96cdf0e10cSrcweir #include <num.hxx> //add for SwSvxNumBulletTabDialog
97cdf0e10cSrcweir #include <outline.hxx> //add for SwOutlineTabDialog
98cdf0e10cSrcweir #include <column.hxx> //add for SwColumnDlg
99cdf0e10cSrcweir #include <cnttab.hxx> //add for SwMultiTOXTabDialog
100cdf0e10cSrcweir #include <swuicnttab.hxx> //add for SwMultiTOXTabDialog
101cdf0e10cSrcweir #include <regionsw.hxx> //add for SwEditRegionDlg, SwInsertSectionTabDialog
102cdf0e10cSrcweir #include <optcomp.hxx> //add for SwCompatibilityOptPage
103cdf0e10cSrcweir #include <optload.hxx> //add for SwLoadOptPage
104cdf0e10cSrcweir #include <optpage.hxx> //add for OptPage
105cdf0e10cSrcweir #include <swuiidxmrk.hxx> //add for SwIndexMarkDlg, SwAuthMarkDlg, SwIndexMarkModalDlg, SwAuthMarkModalDlg
106cdf0e10cSrcweir #include <svx/dialogs.hrc>
107cdf0e10cSrcweir #include <mailmergewizard.hxx>
108cdf0e10cSrcweir #include <mailconfigpage.hxx>
109cdf0e10cSrcweir
110cdf0e10cSrcweir using namespace ::com::sun::star;
111cdf0e10cSrcweir
112cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwWordCountDialog_Impl);
113cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl);
114cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl);
115cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwAsciiFilterDlg_Impl);
116cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
117cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl);
118cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl); //add for SwBreakDlg
119cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for SwCharDlg, SwFootNoteOptionDlg, SwEnvDlg SwParaDlg SwTableTabDlg
120cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwConvertTableDlg_Impl); //add for SwConvertTableDlg
121cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwInsertDBColAutoPilot_Impl); //add for SwInsertDBColAutoPilot
122cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl); //add for DropDownFieldDialog
123cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstarctSwLabDlg_Impl);//add for SwLabDlg
124cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstarctSwSelGlossaryDlg_Impl);//add for SwSelGlossaryDlg
125cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl); //add for SwAutoFormatDlg
126cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwFldDlg_Impl); //add for SwFldDlg
127cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl); //add for SwRenameXNamedDlg
128cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl); //add for SwModalRedlineAcceptDlg
129cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl);
130cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFldInputDlg_Impl);
131cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl);
132cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsertGrfRulerDlg_Impl);
133cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsTableDlg_Impl);
134cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl);
135cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl);
136cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl);
137cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl);
138cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl);
139cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl);
140cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl);
141cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl);
142cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl);
143cdf0e10cSrcweir
144cdf0e10cSrcweir // AbstractTabDialog_Impl begin
SetCurPageId(sal_uInt16 nId)145cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
146cdf0e10cSrcweir {
147cdf0e10cSrcweir pDlg->SetCurPageId( nId );
148cdf0e10cSrcweir }
149cdf0e10cSrcweir
GetOutputItemSet() const150cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
151cdf0e10cSrcweir {
152cdf0e10cSrcweir return pDlg->GetOutputItemSet();
153cdf0e10cSrcweir }
154cdf0e10cSrcweir
GetInputRanges(const SfxItemPool & pItem)155cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
156cdf0e10cSrcweir {
157cdf0e10cSrcweir return pDlg->GetInputRanges( pItem );
158cdf0e10cSrcweir }
159cdf0e10cSrcweir
SetInputSet(const SfxItemSet * pInSet)160cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
161cdf0e10cSrcweir {
162cdf0e10cSrcweir pDlg->SetInputSet( pInSet );
163cdf0e10cSrcweir }
164cdf0e10cSrcweir //From class Window.
SetText(const XubString & rStr)165cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr )
166cdf0e10cSrcweir {
167cdf0e10cSrcweir pDlg->SetText( rStr );
168cdf0e10cSrcweir }
GetText() const169cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const
170cdf0e10cSrcweir {
171cdf0e10cSrcweir return pDlg->GetText();
172cdf0e10cSrcweir }
173cdf0e10cSrcweir
174cdf0e10cSrcweir //add for AbstractTabDialog_Impl end
175cdf0e10cSrcweir
SetValues(const SwDocStat & rCurrent,const SwDocStat & rDoc)176cdf0e10cSrcweir void AbstractSwWordCountDialog_Impl::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc)
177cdf0e10cSrcweir {
178cdf0e10cSrcweir pDlg->SetValues(rCurrent, rDoc);
179cdf0e10cSrcweir }
180cdf0e10cSrcweir
181cdf0e10cSrcweir //add for SwInsertAbstractDlg begin
GetLevel() const182cdf0e10cSrcweir sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetLevel() const
183cdf0e10cSrcweir {
184cdf0e10cSrcweir return pDlg->GetLevel();
185cdf0e10cSrcweir }
GetPara() const186cdf0e10cSrcweir sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetPara() const
187cdf0e10cSrcweir {
188cdf0e10cSrcweir return pDlg->GetPara();
189cdf0e10cSrcweir }
190cdf0e10cSrcweir //add for SwInsertAbstractDlg end
191cdf0e10cSrcweir
192cdf0e10cSrcweir //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg begin
GetOutputItemSet() const193cdf0e10cSrcweir const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
194cdf0e10cSrcweir {
195cdf0e10cSrcweir return pDlg->GetOutputItemSet();
196cdf0e10cSrcweir }
197cdf0e10cSrcweir
SetText(const XubString & rStr)198cdf0e10cSrcweir void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
199cdf0e10cSrcweir {
200cdf0e10cSrcweir pDlg->SetText( rStr );
201cdf0e10cSrcweir }
GetText() const202cdf0e10cSrcweir String AbstractSfxDialog_Impl::GetText() const
203cdf0e10cSrcweir {
204cdf0e10cSrcweir return pDlg->GetText();
205cdf0e10cSrcweir }
206cdf0e10cSrcweir
207cdf0e10cSrcweir //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg end
208cdf0e10cSrcweir
209cdf0e10cSrcweir //add for SwAsciiFilterDlg begin
FillOptions(SwAsciiOptions & rOptions)210cdf0e10cSrcweir void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions& rOptions )
211cdf0e10cSrcweir {
212cdf0e10cSrcweir pDlg->FillOptions(rOptions);
213cdf0e10cSrcweir }
214cdf0e10cSrcweir //add for SwAsciiFilterDlg end
215cdf0e10cSrcweir
216cdf0e10cSrcweir //add for SwSplitTblDlg
GetSplitMode()217cdf0e10cSrcweir sal_uInt16 AbstractSplitTableDialog_Impl::GetSplitMode()
218cdf0e10cSrcweir {
219cdf0e10cSrcweir return pDlg->GetSplitMode();
220cdf0e10cSrcweir }
221cdf0e10cSrcweir //add for SwBreakDlg begin
GetTemplateName()222cdf0e10cSrcweir String AbstractSwBreakDlg_Impl::GetTemplateName()
223cdf0e10cSrcweir {
224cdf0e10cSrcweir return pDlg->GetTemplateName();
225cdf0e10cSrcweir }
226cdf0e10cSrcweir
GetKind()227cdf0e10cSrcweir sal_uInt16 AbstractSwBreakDlg_Impl:: GetKind()
228cdf0e10cSrcweir {
229cdf0e10cSrcweir return pDlg->GetKind();
230cdf0e10cSrcweir }
231cdf0e10cSrcweir
GetPageNumber()232cdf0e10cSrcweir sal_uInt16 AbstractSwBreakDlg_Impl:: GetPageNumber()
233cdf0e10cSrcweir {
234cdf0e10cSrcweir return pDlg->GetPageNumber();
235cdf0e10cSrcweir }
236cdf0e10cSrcweir //add for SwBreakDlg end
237cdf0e10cSrcweir
238cdf0e10cSrcweir //add for SwConvertTableDlg begin
GetValues(sal_Unicode & rDelim,SwInsertTableOptions & rInsTblFlags,SwTableAutoFmt * & prTAFmt)239cdf0e10cSrcweir void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags,
240cdf0e10cSrcweir SwTableAutoFmt *& prTAFmt )
241cdf0e10cSrcweir {
242cdf0e10cSrcweir pDlg->GetValues(rDelim,rInsTblFlags, prTAFmt);
243cdf0e10cSrcweir }
244cdf0e10cSrcweir //add for SwConvertTableDlg end
245cdf0e10cSrcweir
246cdf0e10cSrcweir //add for SwInsertDBColAutoPilot begin
DataToDoc(const uno::Sequence<uno::Any> & rSelection,uno::Reference<sdbc::XDataSource> rxSource,uno::Reference<sdbc::XConnection> xConnection,uno::Reference<sdbc::XResultSet> xResultSet)247cdf0e10cSrcweir void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence< uno::Any >& rSelection,
248cdf0e10cSrcweir uno::Reference< sdbc::XDataSource> rxSource,
249cdf0e10cSrcweir uno::Reference< sdbc::XConnection> xConnection,
250cdf0e10cSrcweir uno::Reference< sdbc::XResultSet > xResultSet)
251cdf0e10cSrcweir {
252cdf0e10cSrcweir pDlg->DataToDoc(rSelection, rxSource, xConnection, xResultSet);
253cdf0e10cSrcweir }
254cdf0e10cSrcweir //add for SwInsertDBColAutoPilot end
255cdf0e10cSrcweir
256cdf0e10cSrcweir // add for DropDownFieldDialog begin
GetWindowState(sal_uLong nMask) const257cdf0e10cSrcweir ByteString AbstractDropDownFieldDialog_Impl::GetWindowState( sal_uLong nMask ) const
258cdf0e10cSrcweir {
259cdf0e10cSrcweir return pDlg->GetWindowState(nMask);
260cdf0e10cSrcweir }
SetWindowState(const ByteString & rStr)261cdf0e10cSrcweir void AbstractDropDownFieldDialog_Impl::SetWindowState( const ByteString& rStr )
262cdf0e10cSrcweir {
263cdf0e10cSrcweir pDlg->SetWindowState(rStr);
264cdf0e10cSrcweir }
265cdf0e10cSrcweir //add for DropDownFieldDialog end
266cdf0e10cSrcweir
267cdf0e10cSrcweir //add for SwLabDlg begin
268cdf0e10cSrcweir
SetCurPageId(sal_uInt16 nId)269cdf0e10cSrcweir void AbstarctSwLabDlg_Impl::SetCurPageId( sal_uInt16 nId )
270cdf0e10cSrcweir {
271cdf0e10cSrcweir pDlg->SetCurPageId( nId );
272cdf0e10cSrcweir }
273cdf0e10cSrcweir
GetOutputItemSet() const274cdf0e10cSrcweir const SfxItemSet* AbstarctSwLabDlg_Impl::GetOutputItemSet() const
275cdf0e10cSrcweir {
276cdf0e10cSrcweir return pDlg->GetOutputItemSet();
277cdf0e10cSrcweir }
278cdf0e10cSrcweir
GetInputRanges(const SfxItemPool & pItem)279cdf0e10cSrcweir const sal_uInt16* AbstarctSwLabDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
280cdf0e10cSrcweir {
281cdf0e10cSrcweir return pDlg->GetInputRanges( pItem );
282cdf0e10cSrcweir }
283cdf0e10cSrcweir
SetInputSet(const SfxItemSet * pInSet)284cdf0e10cSrcweir void AbstarctSwLabDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
285cdf0e10cSrcweir {
286cdf0e10cSrcweir pDlg->SetInputSet( pInSet );
287cdf0e10cSrcweir }
288cdf0e10cSrcweir
SetText(const XubString & rStr)289cdf0e10cSrcweir void AbstarctSwLabDlg_Impl::SetText( const XubString& rStr )
290cdf0e10cSrcweir {
291cdf0e10cSrcweir pDlg->SetText( rStr );
292cdf0e10cSrcweir }
GetText() const293cdf0e10cSrcweir String AbstarctSwLabDlg_Impl::GetText() const
294cdf0e10cSrcweir {
295cdf0e10cSrcweir return pDlg->GetText();
296cdf0e10cSrcweir }
GetBusinessCardStr() const297cdf0e10cSrcweir const String& AbstarctSwLabDlg_Impl::GetBusinessCardStr() const
298cdf0e10cSrcweir {
299cdf0e10cSrcweir return pDlg->GetBusinessCardStr();
300cdf0e10cSrcweir }
GetPrt()301cdf0e10cSrcweir Printer * AbstarctSwLabDlg_Impl::GetPrt()
302cdf0e10cSrcweir {
303cdf0e10cSrcweir return pDlg->GetPrt();
304cdf0e10cSrcweir }
305cdf0e10cSrcweir //add for SwLabDlg end
306cdf0e10cSrcweir
307cdf0e10cSrcweir
308cdf0e10cSrcweir //add for SwSelGlossaryDlg begin
309cdf0e10cSrcweir
InsertGlos(const String & rRegion,const String & rGlosName)310cdf0e10cSrcweir void AbstarctSwSelGlossaryDlg_Impl::InsertGlos(const String &rRegion, const String &rGlosName)
311cdf0e10cSrcweir {
312cdf0e10cSrcweir pDlg->InsertGlos( rRegion, rGlosName );
313cdf0e10cSrcweir }
GetSelectedIdx() const314cdf0e10cSrcweir sal_uInt16 AbstarctSwSelGlossaryDlg_Impl::GetSelectedIdx() const
315cdf0e10cSrcweir {
316cdf0e10cSrcweir return pDlg->GetSelectedIdx();
317cdf0e10cSrcweir }
SelectEntryPos(sal_uInt16 nIdx)318cdf0e10cSrcweir void AbstarctSwSelGlossaryDlg_Impl::SelectEntryPos(sal_uInt16 nIdx)
319cdf0e10cSrcweir {
320cdf0e10cSrcweir pDlg->SelectEntryPos( nIdx );
321cdf0e10cSrcweir }
322cdf0e10cSrcweir
323cdf0e10cSrcweir //add for SwSelGlossaryDlg end
324cdf0e10cSrcweir
325cdf0e10cSrcweir //add for SwAutoFormatDlg begin
326cdf0e10cSrcweir
FillAutoFmtOfIndex(SwTableAutoFmt * & rToFill) const327cdf0e10cSrcweir void AbstractSwAutoFormatDlg_Impl::FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const
328cdf0e10cSrcweir {
329cdf0e10cSrcweir pDlg->FillAutoFmtOfIndex(rToFill);
330cdf0e10cSrcweir }
331cdf0e10cSrcweir //add for SwAutoFormatDlg end
332cdf0e10cSrcweir
333cdf0e10cSrcweir //add for SwFldDlg begin
SetCurPageId(sal_uInt16 nId)334cdf0e10cSrcweir void AbstractSwFldDlg_Impl::SetCurPageId( sal_uInt16 nId )
335cdf0e10cSrcweir {
336cdf0e10cSrcweir pDlg->SetCurPageId( nId );
337cdf0e10cSrcweir }
338cdf0e10cSrcweir
GetOutputItemSet() const339cdf0e10cSrcweir const SfxItemSet* AbstractSwFldDlg_Impl::GetOutputItemSet() const
340cdf0e10cSrcweir {
341cdf0e10cSrcweir return pDlg->GetOutputItemSet();
342cdf0e10cSrcweir }
343cdf0e10cSrcweir
GetInputRanges(const SfxItemPool & pItem)344cdf0e10cSrcweir const sal_uInt16* AbstractSwFldDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
345cdf0e10cSrcweir {
346cdf0e10cSrcweir return pDlg->GetInputRanges( pItem );
347cdf0e10cSrcweir }
348cdf0e10cSrcweir
SetInputSet(const SfxItemSet * pInSet)349cdf0e10cSrcweir void AbstractSwFldDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
350cdf0e10cSrcweir {
351cdf0e10cSrcweir pDlg->SetInputSet( pInSet );
352cdf0e10cSrcweir }
353cdf0e10cSrcweir
SetText(const XubString & rStr)354cdf0e10cSrcweir void AbstractSwFldDlg_Impl::SetText( const XubString& rStr )
355cdf0e10cSrcweir {
356cdf0e10cSrcweir pDlg->SetText( rStr );
357cdf0e10cSrcweir }
GetText() const358cdf0e10cSrcweir String AbstractSwFldDlg_Impl::GetText() const
359cdf0e10cSrcweir {
360cdf0e10cSrcweir return pDlg->GetText();
361cdf0e10cSrcweir }
Start(sal_Bool bShowl)362cdf0e10cSrcweir void AbstractSwFldDlg_Impl::Start( sal_Bool bShowl )
363cdf0e10cSrcweir {
364cdf0e10cSrcweir pDlg->Start( bShowl );
365cdf0e10cSrcweir }
366cdf0e10cSrcweir
Initialize(SfxChildWinInfo * pInfo)367cdf0e10cSrcweir void AbstractSwFldDlg_Impl::Initialize(SfxChildWinInfo *pInfo)
368cdf0e10cSrcweir {
369cdf0e10cSrcweir pDlg->Initialize( pInfo );
370cdf0e10cSrcweir }
371cdf0e10cSrcweir
ReInitDlg()372cdf0e10cSrcweir void AbstractSwFldDlg_Impl::ReInitDlg()
373cdf0e10cSrcweir {
374cdf0e10cSrcweir pDlg->ReInitDlg();
375cdf0e10cSrcweir }
ActivateDatabasePage()376cdf0e10cSrcweir void AbstractSwFldDlg_Impl::ActivateDatabasePage()
377cdf0e10cSrcweir {
378cdf0e10cSrcweir pDlg->ActivateDatabasePage();
379cdf0e10cSrcweir }
GetWindow()380cdf0e10cSrcweir Window* AbstractSwFldDlg_Impl::GetWindow()
381cdf0e10cSrcweir {
382cdf0e10cSrcweir return (Window*)pDlg;
383cdf0e10cSrcweir }
ShowPage(sal_uInt16 nId)384cdf0e10cSrcweir void AbstractSwFldDlg_Impl::ShowPage( sal_uInt16 nId )
385cdf0e10cSrcweir {
386cdf0e10cSrcweir pDlg->ShowPage(nId);
387cdf0e10cSrcweir }
388cdf0e10cSrcweir //add for SwFldD end
389cdf0e10cSrcweir
390cdf0e10cSrcweir //add for SwRenameXNamedDlg begin
391cdf0e10cSrcweir
SetForbiddenChars(const String & rSet)392cdf0e10cSrcweir void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const String& rSet )
393cdf0e10cSrcweir {
394cdf0e10cSrcweir pDlg->SetForbiddenChars( rSet );
395cdf0e10cSrcweir }
396cdf0e10cSrcweir
SetAlternativeAccess(STAR_REFERENCE (container::XNameAccess)& xSecond,STAR_REFERENCE (container::XNameAccess)& xThird)397cdf0e10cSrcweir void AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess(
398cdf0e10cSrcweir STAR_REFERENCE( container::XNameAccess ) & xSecond,
399cdf0e10cSrcweir STAR_REFERENCE( container::XNameAccess ) & xThird )
400cdf0e10cSrcweir {
401cdf0e10cSrcweir pDlg->SetAlternativeAccess( xSecond, xThird);
402cdf0e10cSrcweir }
403cdf0e10cSrcweir //add for SwRenameXNamedDlg end
404cdf0e10cSrcweir
405cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg begin
406cdf0e10cSrcweir
AcceptAll(sal_Bool bAccept)407cdf0e10cSrcweir void AbstractSwModalRedlineAcceptDlg_Impl::AcceptAll( sal_Bool bAccept )
408cdf0e10cSrcweir {
409cdf0e10cSrcweir pDlg->AcceptAll( bAccept);
410cdf0e10cSrcweir }
411cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg end
412cdf0e10cSrcweir
413cdf0e10cSrcweir // AbstractGlossaryDlg_Impl begin
GetCurrGrpName() const414cdf0e10cSrcweir String AbstractGlossaryDlg_Impl::GetCurrGrpName() const
415cdf0e10cSrcweir {
416cdf0e10cSrcweir return pDlg->GetCurrGrpName();
417cdf0e10cSrcweir }
418cdf0e10cSrcweir
GetCurrShortName() const419cdf0e10cSrcweir String AbstractGlossaryDlg_Impl::GetCurrShortName() const
420cdf0e10cSrcweir {
421cdf0e10cSrcweir return pDlg->GetCurrShortName();
422cdf0e10cSrcweir }
423cdf0e10cSrcweir // AbstractGlossaryDlg_Impl end
424cdf0e10cSrcweir
425cdf0e10cSrcweir // AbstractFldInputDlg_Impl begin
SetWindowState(const ByteString & rStr)426cdf0e10cSrcweir void AbstractFldInputDlg_Impl::SetWindowState( const ByteString& rStr )
427cdf0e10cSrcweir {
428cdf0e10cSrcweir pDlg->SetWindowState( rStr );
429cdf0e10cSrcweir }
430cdf0e10cSrcweir
GetWindowState(sal_uLong nMask) const431cdf0e10cSrcweir ByteString AbstractFldInputDlg_Impl::GetWindowState( sal_uLong nMask ) const
432cdf0e10cSrcweir {
433cdf0e10cSrcweir return pDlg->GetWindowState( nMask );
434cdf0e10cSrcweir }
435cdf0e10cSrcweir // AbstractFldInputDlg_Impl end
436cdf0e10cSrcweir
437cdf0e10cSrcweir // AbstractInsFootNoteDlg_Impl begin
GetFontName()438cdf0e10cSrcweir String AbstractInsFootNoteDlg_Impl::GetFontName()
439cdf0e10cSrcweir {
440cdf0e10cSrcweir return pDlg->GetFontName();
441cdf0e10cSrcweir }
IsEndNote()442cdf0e10cSrcweir sal_Bool AbstractInsFootNoteDlg_Impl::IsEndNote()
443cdf0e10cSrcweir {
444cdf0e10cSrcweir return pDlg->IsEndNote();
445cdf0e10cSrcweir }
GetStr()446cdf0e10cSrcweir String AbstractInsFootNoteDlg_Impl::GetStr()
447cdf0e10cSrcweir {
448cdf0e10cSrcweir return pDlg->GetStr();
449cdf0e10cSrcweir }
SetHelpId(const rtl::OString & sHelpId)450cdf0e10cSrcweir void AbstractInsFootNoteDlg_Impl::SetHelpId( const rtl::OString& sHelpId )
451cdf0e10cSrcweir {
452cdf0e10cSrcweir pDlg->SetHelpId( sHelpId );
453cdf0e10cSrcweir }
SetText(const XubString & rStr)454cdf0e10cSrcweir void AbstractInsFootNoteDlg_Impl::SetText( const XubString& rStr )
455cdf0e10cSrcweir {
456cdf0e10cSrcweir pDlg->SetText( rStr );
457cdf0e10cSrcweir }
458cdf0e10cSrcweir // AbstractInsFootNoteDlg_Impl end
459cdf0e10cSrcweir
460cdf0e10cSrcweir // AbstractInsertGrfRulerDlg_Impl begin
GetGraphicName()461cdf0e10cSrcweir String AbstractInsertGrfRulerDlg_Impl::GetGraphicName()
462cdf0e10cSrcweir {
463cdf0e10cSrcweir return pDlg->GetGraphicName();
464cdf0e10cSrcweir }
IsSimpleLine()465cdf0e10cSrcweir sal_Bool AbstractInsertGrfRulerDlg_Impl::IsSimpleLine()
466cdf0e10cSrcweir {
467cdf0e10cSrcweir return pDlg->IsSimpleLine();
468cdf0e10cSrcweir }
HasImages() const469cdf0e10cSrcweir sal_Bool AbstractInsertGrfRulerDlg_Impl::HasImages() const
470cdf0e10cSrcweir {
471cdf0e10cSrcweir return pDlg->HasImages();
472cdf0e10cSrcweir }
473cdf0e10cSrcweir // AbstractInsertGrfRulerDlg_Impl end
474cdf0e10cSrcweir
475cdf0e10cSrcweir // AbstractInsTableDlg_Impl begin
GetValues(String & rName,sal_uInt16 & rRow,sal_uInt16 & rCol,SwInsertTableOptions & rInsTblFlags,String & rTableAutoFmtName,SwTableAutoFmt * & prTAFmt)476cdf0e10cSrcweir void AbstractInsTableDlg_Impl::GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
477cdf0e10cSrcweir SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
478cdf0e10cSrcweir SwTableAutoFmt *& prTAFmt )
479cdf0e10cSrcweir {
480cdf0e10cSrcweir pDlg->GetValues( rName, rRow, rCol, rInsTblFlags, rTableAutoFmtName, prTAFmt);
481cdf0e10cSrcweir }
482cdf0e10cSrcweir // AbstractInsTableDlg_Impl end
483cdf0e10cSrcweir
484cdf0e10cSrcweir // AbstractJavaEditDialog_Impl begin
GetText()485cdf0e10cSrcweir String AbstractJavaEditDialog_Impl::GetText()
486cdf0e10cSrcweir {
487cdf0e10cSrcweir return pDlg->GetText();
488cdf0e10cSrcweir }
GetType()489cdf0e10cSrcweir String AbstractJavaEditDialog_Impl::GetType()
490cdf0e10cSrcweir {
491cdf0e10cSrcweir return pDlg->GetType();
492cdf0e10cSrcweir }
IsUrl()493cdf0e10cSrcweir sal_Bool AbstractJavaEditDialog_Impl::IsUrl()
494cdf0e10cSrcweir {
495cdf0e10cSrcweir return pDlg->IsUrl();
496cdf0e10cSrcweir }
IsNew()497cdf0e10cSrcweir sal_Bool AbstractJavaEditDialog_Impl::IsNew()
498cdf0e10cSrcweir {
499cdf0e10cSrcweir return pDlg->IsNew();
500cdf0e10cSrcweir }
IsUpdate()501cdf0e10cSrcweir sal_Bool AbstractJavaEditDialog_Impl::IsUpdate()
502cdf0e10cSrcweir {
503cdf0e10cSrcweir return pDlg->IsUpdate();
504cdf0e10cSrcweir }
505cdf0e10cSrcweir // AbstractJavaEditDialog_Impl end
506cdf0e10cSrcweir
507cdf0e10cSrcweir // AbstractMailMergeDlg_Impl begin
GetMergeType()508cdf0e10cSrcweir sal_uInt16 AbstractMailMergeDlg_Impl::GetMergeType()
509cdf0e10cSrcweir {
510cdf0e10cSrcweir return pDlg->GetMergeType();
511cdf0e10cSrcweir }
GetSaveFilter() const512cdf0e10cSrcweir const ::rtl::OUString& AbstractMailMergeDlg_Impl::GetSaveFilter() const
513cdf0e10cSrcweir {
514cdf0e10cSrcweir return pDlg->GetSaveFilter();
515cdf0e10cSrcweir }
516cdf0e10cSrcweir
GetSelection() const517cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > AbstractMailMergeDlg_Impl::GetSelection() const
518cdf0e10cSrcweir {
519cdf0e10cSrcweir return pDlg->GetSelection();
520cdf0e10cSrcweir }
GetResultSet() const521cdf0e10cSrcweir uno::Reference< sdbc::XResultSet> AbstractMailMergeDlg_Impl::GetResultSet() const
522cdf0e10cSrcweir {
523cdf0e10cSrcweir return pDlg->GetResultSet();
524cdf0e10cSrcweir }
IsSaveIndividualDocs() const525cdf0e10cSrcweir bool AbstractMailMergeDlg_Impl::IsSaveIndividualDocs() const
526cdf0e10cSrcweir {
527cdf0e10cSrcweir return pDlg->IsSaveIndividualDocs();
528cdf0e10cSrcweir }
IsGenerateFromDataBase() const529cdf0e10cSrcweir bool AbstractMailMergeDlg_Impl::IsGenerateFromDataBase() const
530cdf0e10cSrcweir {
531cdf0e10cSrcweir return pDlg->IsGenerateFromDataBase();
532cdf0e10cSrcweir }
GetColumnName() const533cdf0e10cSrcweir String AbstractMailMergeDlg_Impl::GetColumnName() const
534cdf0e10cSrcweir {
535cdf0e10cSrcweir return pDlg->GetColumnName();
536cdf0e10cSrcweir }
GetPath() const537cdf0e10cSrcweir String AbstractMailMergeDlg_Impl::GetPath() const
538cdf0e10cSrcweir {
539cdf0e10cSrcweir return pDlg->GetPath();
540cdf0e10cSrcweir }
541cdf0e10cSrcweir
542cdf0e10cSrcweir // AbstractMailMergeDlg_Impl end
543cdf0e10cSrcweir // AbstractMailMergeCreateFromDlg_Impl begin
IsThisDocument() const544cdf0e10cSrcweir sal_Bool AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const
545cdf0e10cSrcweir {
546cdf0e10cSrcweir return pDlg->IsThisDocument();
547cdf0e10cSrcweir }
548cdf0e10cSrcweir // AbstractMailMergeCreateFromDlg_Impl end
549cdf0e10cSrcweir //AbstractMailMergeFieldConnectionsDlg_Impl begin
IsUseExistingConnections() const550cdf0e10cSrcweir sal_Bool AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const
551cdf0e10cSrcweir {
552cdf0e10cSrcweir return pDlg->IsUseExistingConnections();
553cdf0e10cSrcweir }
554cdf0e10cSrcweir // AbstractMailMergeFieldConnectionsDlg_Impl end
555cdf0e10cSrcweir
556cdf0e10cSrcweir // AbstractMultiTOXTabDialog_Impl begin
GetForm(CurTOXType eType)557cdf0e10cSrcweir SwForm* AbstractMultiTOXTabDialog_Impl::GetForm(CurTOXType eType)
558cdf0e10cSrcweir {
559cdf0e10cSrcweir return pDlg->GetForm(eType);
560cdf0e10cSrcweir }
GetCurrentTOXType() const561cdf0e10cSrcweir CurTOXType AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const
562cdf0e10cSrcweir {
563cdf0e10cSrcweir return pDlg->GetCurrentTOXType();
564cdf0e10cSrcweir }
GetTOXDescription(CurTOXType eTOXTypes)565cdf0e10cSrcweir SwTOXDescription& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes)
566cdf0e10cSrcweir {
567cdf0e10cSrcweir return pDlg->GetTOXDescription(eTOXTypes);
568cdf0e10cSrcweir }
GetOutputItemSet() const569cdf0e10cSrcweir const SfxItemSet* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const
570cdf0e10cSrcweir {
571cdf0e10cSrcweir return pDlg->GetOutputItemSet();
572cdf0e10cSrcweir }
573cdf0e10cSrcweir // AbstractMultiTOXTabDialog_Impl end
574cdf0e10cSrcweir
575cdf0e10cSrcweir // AbstractEditRegionDlg_Impl begin
SelectSection(const String & rSectionName)576cdf0e10cSrcweir void AbstractEditRegionDlg_Impl::SelectSection(const String& rSectionName)
577cdf0e10cSrcweir {
578cdf0e10cSrcweir pDlg->SelectSection(rSectionName);
579cdf0e10cSrcweir }
580cdf0e10cSrcweir // AbstractEditRegionDlg_Impl end
581cdf0e10cSrcweir //AbstractInsertSectionTabDialog_Impl begin
582cdf0e10cSrcweir void
SetSectionData(SwSectionData const & rSect)583cdf0e10cSrcweir AbstractInsertSectionTabDialog_Impl::SetSectionData(SwSectionData const& rSect)
584cdf0e10cSrcweir {
585cdf0e10cSrcweir pDlg->SetSectionData(rSect);
586cdf0e10cSrcweir }
587cdf0e10cSrcweir // AbstractInsertSectionTabDialog_Impl end
588cdf0e10cSrcweir
589cdf0e10cSrcweir //AbstractIndexMarkFloatDlg_Impl begin
ReInitDlg(SwWrtShell & rWrtShell)590cdf0e10cSrcweir void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
591cdf0e10cSrcweir {
592cdf0e10cSrcweir pDlg->ReInitDlg( rWrtShell);
593cdf0e10cSrcweir }
GetWindow()594cdf0e10cSrcweir Window* AbstractIndexMarkFloatDlg_Impl::GetWindow()
595cdf0e10cSrcweir {
596cdf0e10cSrcweir return (Window*)pDlg;
597cdf0e10cSrcweir }
598cdf0e10cSrcweir // AbstractIndexMarkFloatDlg_Impl end
599cdf0e10cSrcweir
600cdf0e10cSrcweir //AbstractAuthMarkFloatDlg_Impl begin
ReInitDlg(SwWrtShell & rWrtShell)601cdf0e10cSrcweir void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
602cdf0e10cSrcweir {
603cdf0e10cSrcweir pDlg->ReInitDlg( rWrtShell);
604cdf0e10cSrcweir }
GetWindow()605cdf0e10cSrcweir Window* AbstractAuthMarkFloatDlg_Impl::GetWindow()
606cdf0e10cSrcweir {
607cdf0e10cSrcweir return (Window*)pDlg;
608cdf0e10cSrcweir }
609cdf0e10cSrcweir // AbstractAuthMarkFloatDlg_Impl end
610cdf0e10cSrcweir
~AbstractMailMergeWizard_Impl()611cdf0e10cSrcweir AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl()
612cdf0e10cSrcweir {
613cdf0e10cSrcweir delete pDlg;
614cdf0e10cSrcweir }
615cdf0e10cSrcweir
StartExecuteModal(const Link & rEndDialogHdl)616cdf0e10cSrcweir void AbstractMailMergeWizard_Impl::StartExecuteModal( const Link& rEndDialogHdl )
617cdf0e10cSrcweir {
618cdf0e10cSrcweir aEndDlgHdl = rEndDialogHdl;
619cdf0e10cSrcweir pDlg->StartExecuteModal(
620cdf0e10cSrcweir LINK( this, AbstractMailMergeWizard_Impl, EndDialogHdl ) );
621cdf0e10cSrcweir }
622cdf0e10cSrcweir
GetResult()623cdf0e10cSrcweir long AbstractMailMergeWizard_Impl::GetResult()
624cdf0e10cSrcweir {
625cdf0e10cSrcweir return pDlg->GetResult();
626cdf0e10cSrcweir }
627cdf0e10cSrcweir
628cdf0e10cSrcweir #ifdef DBG_UTIL
IMPL_LINK(AbstractMailMergeWizard_Impl,EndDialogHdl,SwMailMergeWizard *,pDialog)629cdf0e10cSrcweir IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, pDialog )
630cdf0e10cSrcweir #else
631cdf0e10cSrcweir IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, EMPTYARG )
632cdf0e10cSrcweir #endif
633cdf0e10cSrcweir {
634cdf0e10cSrcweir DBG_ASSERT( pDialog == pDlg, "wrong dialog passed to EndDialogHdl!" );
635cdf0e10cSrcweir
636cdf0e10cSrcweir aEndDlgHdl.Call( this );
637cdf0e10cSrcweir aEndDlgHdl = Link();
638cdf0e10cSrcweir
639cdf0e10cSrcweir return 0L;
640cdf0e10cSrcweir }
641cdf0e10cSrcweir
SetReloadDocument(const String & rURL)642cdf0e10cSrcweir void AbstractMailMergeWizard_Impl::SetReloadDocument(const String& rURL)
643cdf0e10cSrcweir {
644cdf0e10cSrcweir pDlg->SetReloadDocument(rURL);
645cdf0e10cSrcweir }
GetReloadDocument() const646cdf0e10cSrcweir const String& AbstractMailMergeWizard_Impl::GetReloadDocument() const
647cdf0e10cSrcweir {
648cdf0e10cSrcweir return pDlg->GetReloadDocument();
649cdf0e10cSrcweir }
ShowPage(sal_uInt16 nLevel)650cdf0e10cSrcweir sal_Bool AbstractMailMergeWizard_Impl::ShowPage( sal_uInt16 nLevel )
651cdf0e10cSrcweir {
652cdf0e10cSrcweir return pDlg->skipUntil(nLevel);
653cdf0e10cSrcweir }
GetRestartPage() const654cdf0e10cSrcweir sal_uInt16 AbstractMailMergeWizard_Impl::GetRestartPage() const
655cdf0e10cSrcweir {
656cdf0e10cSrcweir return pDlg->GetRestartPage();
657cdf0e10cSrcweir }
658cdf0e10cSrcweir
659cdf0e10cSrcweir //-------------- SwAbstractDialogFactory implementation--------------
660cdf0e10cSrcweir
CreateSwWordCountDialog(Window * pParent)661cdf0e10cSrcweir AbstractSwWordCountDialog* SwAbstractDialogFactory_Impl::CreateSwWordCountDialog(Window* pParent)
662cdf0e10cSrcweir {
663cdf0e10cSrcweir SwWordCountDialog* pDlg = new SwWordCountDialog( pParent );
664cdf0e10cSrcweir return new AbstractSwWordCountDialog_Impl( pDlg );
665cdf0e10cSrcweir }
666cdf0e10cSrcweir
667cdf0e10cSrcweir //add for SwInsertAbstractDlg begin
CreateSwInsertAbstractDlg(Window * pParent,int nResId)668cdf0e10cSrcweir AbstractSwInsertAbstractDlg * SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg( Window* pParent,
669cdf0e10cSrcweir int nResId )
670cdf0e10cSrcweir {
671cdf0e10cSrcweir SwInsertAbstractDlg* pDlg=NULL;
672cdf0e10cSrcweir switch ( nResId )
673cdf0e10cSrcweir {
674cdf0e10cSrcweir case DLG_INSERT_ABSTRACT :
675cdf0e10cSrcweir pDlg = new SwInsertAbstractDlg( pParent);
676cdf0e10cSrcweir break;
677cdf0e10cSrcweir default:
678cdf0e10cSrcweir break;
679cdf0e10cSrcweir }
680cdf0e10cSrcweir
681cdf0e10cSrcweir if ( pDlg )
682cdf0e10cSrcweir return new AbstractSwInsertAbstractDlg_Impl( pDlg );
683cdf0e10cSrcweir return 0;
684cdf0e10cSrcweir }
685cdf0e10cSrcweir //add for SwInsertAbstractDlg end
686cdf0e10cSrcweir
CreateSfxDialog(Window * pParent,const SfxItemSet & rSet,const::com::sun::star::uno::Reference<::com::sun::star::frame::XFrame> &,sal_uInt32 nResId)687cdf0e10cSrcweir SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
688cdf0e10cSrcweir const SfxItemSet& rSet,
689cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >&,
690cdf0e10cSrcweir sal_uInt32 nResId
691cdf0e10cSrcweir )
692cdf0e10cSrcweir {
693cdf0e10cSrcweir SfxModalDialog* pDlg=NULL;
694cdf0e10cSrcweir switch ( nResId )
695cdf0e10cSrcweir {
696cdf0e10cSrcweir case RC_DLG_ADDR :
697cdf0e10cSrcweir pDlg = new SwAddrDlg( pParent, rSet );
698cdf0e10cSrcweir break;
699cdf0e10cSrcweir case DLG_SWDROPCAPS :
700cdf0e10cSrcweir pDlg = new SwDropCapsDlg( pParent, rSet );
701cdf0e10cSrcweir break;
702cdf0e10cSrcweir case RC_SWDLG_BACKGROUND :
703cdf0e10cSrcweir pDlg = new SwBackgroundDlg( pParent, rSet );
704cdf0e10cSrcweir break;
705cdf0e10cSrcweir case RC_DLG_SWNUMFMTDLG :
706cdf0e10cSrcweir pDlg = new SwNumFmtDlg( pParent, rSet );
707cdf0e10cSrcweir break;
708cdf0e10cSrcweir default:
709cdf0e10cSrcweir break;
710cdf0e10cSrcweir }
711cdf0e10cSrcweir
712cdf0e10cSrcweir if ( pDlg )
713cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg );
714cdf0e10cSrcweir return 0;
715cdf0e10cSrcweir }
716cdf0e10cSrcweir
717cdf0e10cSrcweir // add for SwAsciiFilterDlg begin
CreateSwAsciiFilterDlg(Window * pParent,SwDocShell & rDocSh,SvStream * pStream,int nResId)718cdf0e10cSrcweir AbstractSwAsciiFilterDlg* SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg( Window* pParent,
719cdf0e10cSrcweir SwDocShell& rDocSh,
720cdf0e10cSrcweir SvStream* pStream,
721cdf0e10cSrcweir int nResId )
722cdf0e10cSrcweir {
723cdf0e10cSrcweir SwAsciiFilterDlg* pDlg=NULL;
724cdf0e10cSrcweir switch ( nResId )
725cdf0e10cSrcweir {
726cdf0e10cSrcweir case DLG_ASCII_FILTER :
727cdf0e10cSrcweir pDlg = new SwAsciiFilterDlg( pParent, rDocSh, pStream );
728cdf0e10cSrcweir break;
729cdf0e10cSrcweir
730cdf0e10cSrcweir default:
731cdf0e10cSrcweir break;
732cdf0e10cSrcweir }
733cdf0e10cSrcweir
734cdf0e10cSrcweir if ( pDlg )
735cdf0e10cSrcweir return new AbstractSwAsciiFilterDlg_Impl( pDlg );
736cdf0e10cSrcweir return 0;
737cdf0e10cSrcweir }
738cdf0e10cSrcweir
739cdf0e10cSrcweir //add for SwAsciiFilterDlg end
740cdf0e10cSrcweir
741cdf0e10cSrcweir // add for SwInsertBookmarkDlg begin
CreateSwInsertBookmarkDlg(Window * pParent,SwWrtShell & rSh,SfxRequest & rReq,int nResId)742cdf0e10cSrcweir VclAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg( Window *pParent,
743cdf0e10cSrcweir SwWrtShell &rSh,
744cdf0e10cSrcweir SfxRequest& rReq,
745cdf0e10cSrcweir int nResId )
746cdf0e10cSrcweir {
747cdf0e10cSrcweir Dialog* pDlg=NULL;
748cdf0e10cSrcweir switch ( nResId )
749cdf0e10cSrcweir {
750cdf0e10cSrcweir case DLG_INSERT_BOOKMARK :
751cdf0e10cSrcweir pDlg = new SwInsertBookmarkDlg( pParent, rSh, rReq );
752cdf0e10cSrcweir break;
753cdf0e10cSrcweir
754cdf0e10cSrcweir default:
755cdf0e10cSrcweir break;
756cdf0e10cSrcweir }
757cdf0e10cSrcweir
758cdf0e10cSrcweir if ( pDlg )
759cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
760cdf0e10cSrcweir return 0;
761cdf0e10cSrcweir }
762cdf0e10cSrcweir
763cdf0e10cSrcweir //add for SwInsertBookmarkDlg end
764cdf0e10cSrcweir
765cdf0e10cSrcweir //add for SwBreakDlg begin
766cdf0e10cSrcweir
CreateSwBreakDlg(Window * pParent,SwWrtShell & rSh,int nResId)767cdf0e10cSrcweir AbstractSwBreakDlg * SwAbstractDialogFactory_Impl::CreateSwBreakDlg ( Window *pParent,
768cdf0e10cSrcweir SwWrtShell &rSh,
769cdf0e10cSrcweir int nResId )
770cdf0e10cSrcweir {
771cdf0e10cSrcweir SwBreakDlg* pDlg=NULL;
772cdf0e10cSrcweir switch ( nResId )
773cdf0e10cSrcweir {
774cdf0e10cSrcweir case DLG_BREAK :
775cdf0e10cSrcweir pDlg = new SwBreakDlg( pParent, rSh );
776cdf0e10cSrcweir break;
777cdf0e10cSrcweir
778cdf0e10cSrcweir default:
779cdf0e10cSrcweir break;
780cdf0e10cSrcweir }
781cdf0e10cSrcweir
782cdf0e10cSrcweir if ( pDlg )
783cdf0e10cSrcweir return new AbstractSwBreakDlg_Impl( pDlg );
784cdf0e10cSrcweir return 0;
785cdf0e10cSrcweir }
786cdf0e10cSrcweir //add for SwBreakDlg end
787cdf0e10cSrcweir
788cdf0e10cSrcweir // add for SwChangeDBDlg begin
CreateSwChangeDBDlg(SwView & rVw,int nResId)789cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg( SwView& rVw, int nResId )
790cdf0e10cSrcweir {
791cdf0e10cSrcweir Dialog* pDlg=NULL;
792cdf0e10cSrcweir switch ( nResId )
793cdf0e10cSrcweir {
794cdf0e10cSrcweir case DLG_CHANGE_DB :
795cdf0e10cSrcweir pDlg = new SwChangeDBDlg( rVw );
796cdf0e10cSrcweir break;
797cdf0e10cSrcweir
798cdf0e10cSrcweir default:
799cdf0e10cSrcweir break;
800cdf0e10cSrcweir }
801cdf0e10cSrcweir
802cdf0e10cSrcweir if ( pDlg )
803cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
804cdf0e10cSrcweir return 0;
805cdf0e10cSrcweir }
806cdf0e10cSrcweir
807cdf0e10cSrcweir // add for SwChangeDBDlg end
808cdf0e10cSrcweir
809cdf0e10cSrcweir // add for SwCharDlg begin
CreateSwCharDlg(Window * pParent,SwView & pVw,const SfxItemSet & rCoreSet,int nResId,const String * pFmtStr,sal_Bool bIsDrwTxtDlg)810cdf0e10cSrcweir SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
811cdf0e10cSrcweir const String* pFmtStr , sal_Bool bIsDrwTxtDlg )
812cdf0e10cSrcweir {
813cdf0e10cSrcweir
814cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
815cdf0e10cSrcweir switch ( nResId )
816cdf0e10cSrcweir {
817cdf0e10cSrcweir case DLG_CHAR :
818cdf0e10cSrcweir pDlg = new SwCharDlg( pParent, pVw, rCoreSet, pFmtStr, bIsDrwTxtDlg );
819cdf0e10cSrcweir break;
820cdf0e10cSrcweir default:
821cdf0e10cSrcweir break;
822cdf0e10cSrcweir }
823cdf0e10cSrcweir
824cdf0e10cSrcweir if ( pDlg )
825cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
826cdf0e10cSrcweir return 0;
827cdf0e10cSrcweir
828cdf0e10cSrcweir }
829cdf0e10cSrcweir // add for SwCharDlg end
830cdf0e10cSrcweir
831cdf0e10cSrcweir //add for SwConvertTableDlg begin
CreateSwConvertTableDlg(SwView & rView,int nResId,bool bToTable)832cdf0e10cSrcweir AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg (
833cdf0e10cSrcweir SwView& rView,int nResId, bool bToTable )
834cdf0e10cSrcweir {
835cdf0e10cSrcweir SwConvertTableDlg* pDlg=NULL;
836cdf0e10cSrcweir switch ( nResId )
837cdf0e10cSrcweir {
838cdf0e10cSrcweir case DLG_CONV_TEXT_TABLE :
839cdf0e10cSrcweir pDlg = new SwConvertTableDlg( rView, bToTable );
840cdf0e10cSrcweir break;
841cdf0e10cSrcweir default:
842cdf0e10cSrcweir break;
843cdf0e10cSrcweir }
844cdf0e10cSrcweir
845cdf0e10cSrcweir if ( pDlg )
846cdf0e10cSrcweir return new AbstractSwConvertTableDlg_Impl( pDlg );
847cdf0e10cSrcweir return 0;
848cdf0e10cSrcweir }
849cdf0e10cSrcweir
850cdf0e10cSrcweir //add for SwConvertTableDlg end
851cdf0e10cSrcweir
852cdf0e10cSrcweir //add for SwCaptionDialog begin
CreateSwCaptionDialog(Window * pParent,SwView & rV,int nResId)853cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId)
854cdf0e10cSrcweir {
855cdf0e10cSrcweir Dialog* pDlg=NULL;
856cdf0e10cSrcweir switch ( nResId )
857cdf0e10cSrcweir {
858cdf0e10cSrcweir case DLG_CAPTION :
859cdf0e10cSrcweir pDlg = new SwCaptionDialog( pParent, rV );
860cdf0e10cSrcweir break;
861cdf0e10cSrcweir
862cdf0e10cSrcweir default:
863cdf0e10cSrcweir break;
864cdf0e10cSrcweir }
865cdf0e10cSrcweir
866cdf0e10cSrcweir if ( pDlg )
867cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
868cdf0e10cSrcweir return 0;
869cdf0e10cSrcweir }
870cdf0e10cSrcweir //add for SwCaptionDialog end
871cdf0e10cSrcweir
872cdf0e10cSrcweir //add for SwInsertDBColAutoPilot begin
873cdf0e10cSrcweir
CreateSwInsertDBColAutoPilot(SwView & rView,uno::Reference<sdbc::XDataSource> rxSource,uno::Reference<sdbcx::XColumnsSupplier> xColSupp,const SwDBData & rData,int nResId)874cdf0e10cSrcweir AbstractSwInsertDBColAutoPilot* SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
875cdf0e10cSrcweir uno::Reference< sdbc::XDataSource> rxSource,
876cdf0e10cSrcweir uno::Reference<sdbcx::XColumnsSupplier> xColSupp,
877cdf0e10cSrcweir const SwDBData& rData, int nResId)
878cdf0e10cSrcweir {
879cdf0e10cSrcweir SwInsertDBColAutoPilot* pDlg=NULL;
880cdf0e10cSrcweir switch ( nResId )
881cdf0e10cSrcweir {
882cdf0e10cSrcweir case DLG_AP_INSERT_DB_SEL :
883cdf0e10cSrcweir pDlg = new SwInsertDBColAutoPilot( rView, rxSource, xColSupp, rData );
884cdf0e10cSrcweir break;
885cdf0e10cSrcweir
886cdf0e10cSrcweir default:
887cdf0e10cSrcweir break;
888cdf0e10cSrcweir }
889cdf0e10cSrcweir
890cdf0e10cSrcweir if ( pDlg )
891cdf0e10cSrcweir return new AbstractSwInsertDBColAutoPilot_Impl( pDlg );
892cdf0e10cSrcweir return 0;
893cdf0e10cSrcweir }
894cdf0e10cSrcweir //add for SwInsertDBColAutoPilot end
895cdf0e10cSrcweir //add for SwFootNoteOptionDlg begin
CreateSwFootNoteOptionDlg(Window * pParent,SwWrtShell & rSh,int nResId)896cdf0e10cSrcweir SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId)
897cdf0e10cSrcweir {
898cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
899cdf0e10cSrcweir switch ( nResId )
900cdf0e10cSrcweir {
901cdf0e10cSrcweir case DLG_DOC_FOOTNOTE :
902cdf0e10cSrcweir pDlg = new SwFootNoteOptionDlg( pParent, rSh );
903cdf0e10cSrcweir break;
904cdf0e10cSrcweir
905cdf0e10cSrcweir default:
906cdf0e10cSrcweir break;
907cdf0e10cSrcweir }
908cdf0e10cSrcweir
909cdf0e10cSrcweir if ( pDlg )
910cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
911cdf0e10cSrcweir return 0;
912cdf0e10cSrcweir }
913cdf0e10cSrcweir //add for SwFootNoteOptionDlg begin
914cdf0e10cSrcweir
915cdf0e10cSrcweir
916cdf0e10cSrcweir //add for DropDownFieldDialog begin
917cdf0e10cSrcweir
CreateDropDownFieldDialog(Window * pParent,SwWrtShell & rSh,SwField * pField,int nResId,sal_Bool bNextButton)918cdf0e10cSrcweir AbstractDropDownFieldDialog * SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
919cdf0e10cSrcweir SwField* pField,int nResId, sal_Bool bNextButton )
920cdf0e10cSrcweir {
921cdf0e10cSrcweir sw::DropDownFieldDialog* pDlg=NULL;
922cdf0e10cSrcweir switch ( nResId )
923cdf0e10cSrcweir {
924cdf0e10cSrcweir case DLG_FLD_DROPDOWN :
925cdf0e10cSrcweir pDlg = new sw::DropDownFieldDialog( pParent, rSh, pField, bNextButton );
926cdf0e10cSrcweir break;
927cdf0e10cSrcweir
928cdf0e10cSrcweir default:
929cdf0e10cSrcweir break;
930cdf0e10cSrcweir }
931cdf0e10cSrcweir
932cdf0e10cSrcweir if ( pDlg )
933cdf0e10cSrcweir return new AbstractDropDownFieldDialog_Impl( pDlg );
934cdf0e10cSrcweir return 0;
935cdf0e10cSrcweir }
936cdf0e10cSrcweir //add for DropDownFieldDialog end
937cdf0e10cSrcweir
938cdf0e10cSrcweir //add for SwEnvDlg begin
CreateSwEnvDlg(Window * pParent,const SfxItemSet & rSet,SwWrtShell * pWrtSh,Printer * pPrt,sal_Bool bInsert,int nResId)939cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet,
940cdf0e10cSrcweir SwWrtShell* pWrtSh, Printer* pPrt,
941cdf0e10cSrcweir sal_Bool bInsert,int nResId ) //add for SwEnvDlg
942cdf0e10cSrcweir {
943cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
944cdf0e10cSrcweir switch ( nResId )
945cdf0e10cSrcweir {
946cdf0e10cSrcweir case DLG_ENV :
947cdf0e10cSrcweir pDlg = new SwEnvDlg( pParent, rSet, pWrtSh,pPrt, bInsert );
948cdf0e10cSrcweir break;
949cdf0e10cSrcweir
950cdf0e10cSrcweir default:
951cdf0e10cSrcweir break;
952cdf0e10cSrcweir }
953cdf0e10cSrcweir
954cdf0e10cSrcweir if ( pDlg )
955cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
956cdf0e10cSrcweir return 0;
957cdf0e10cSrcweir }
958cdf0e10cSrcweir //add for SwEnvDlg end
959cdf0e10cSrcweir
960cdf0e10cSrcweir //add for SwLabDlg begin
961cdf0e10cSrcweir
CreateSwLabDlg(Window * pParent,const SfxItemSet & rSet,SwNewDBMgr * pNewDBMgr,sal_Bool bLabel,int nResId)962cdf0e10cSrcweir AbstarctSwLabDlg* SwAbstractDialogFactory_Impl::CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
963cdf0e10cSrcweir SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId )
964cdf0e10cSrcweir {
965cdf0e10cSrcweir SwLabDlg* pDlg=NULL;
966cdf0e10cSrcweir switch ( nResId )
967cdf0e10cSrcweir {
968cdf0e10cSrcweir case DLG_LAB :
969cdf0e10cSrcweir pDlg = new SwLabDlg( pParent, rSet, pNewDBMgr,bLabel );
970cdf0e10cSrcweir break;
971cdf0e10cSrcweir
972cdf0e10cSrcweir default:
973cdf0e10cSrcweir break;
974cdf0e10cSrcweir }
975cdf0e10cSrcweir
976cdf0e10cSrcweir if ( pDlg )
977cdf0e10cSrcweir return new AbstarctSwLabDlg_Impl( pDlg );
978cdf0e10cSrcweir return 0;
979cdf0e10cSrcweir }
980cdf0e10cSrcweir
GetSwLabDlgStaticMethod()981cdf0e10cSrcweir SwLabDlgMethod SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod ()
982cdf0e10cSrcweir {
983cdf0e10cSrcweir return SwLabDlg::UpdateFieldInformation;
984cdf0e10cSrcweir }
985cdf0e10cSrcweir
986cdf0e10cSrcweir //add for SwLabDlg end
987cdf0e10cSrcweir
988cdf0e10cSrcweir //add for SwParaDlg begin
CreateSwParaDlg(Window * pParent,SwView & rVw,const SfxItemSet & rCoreSet,sal_uInt8 nDialogMode,int nResId,const String * pCollName,sal_Bool bDraw,sal_uInt16 nDefPage)989cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwParaDlg ( Window *pParent, SwView& rVw,
990cdf0e10cSrcweir const SfxItemSet& rCoreSet ,
991cdf0e10cSrcweir sal_uInt8 nDialogMode,
992cdf0e10cSrcweir int nResId,
993cdf0e10cSrcweir const String *pCollName,
994cdf0e10cSrcweir sal_Bool bDraw , sal_uInt16 nDefPage)
995cdf0e10cSrcweir {
996cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
997cdf0e10cSrcweir switch ( nResId )
998cdf0e10cSrcweir {
999cdf0e10cSrcweir case DLG_DRAWPARA :
1000cdf0e10cSrcweir case DLG_PARA :
1001cdf0e10cSrcweir pDlg = new SwParaDlg( pParent, rVw, rCoreSet,nDialogMode, pCollName, bDraw, nDefPage );
1002cdf0e10cSrcweir break;
1003cdf0e10cSrcweir
1004cdf0e10cSrcweir default:
1005cdf0e10cSrcweir break;
1006cdf0e10cSrcweir }
1007cdf0e10cSrcweir
1008cdf0e10cSrcweir if ( pDlg )
1009cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
1010cdf0e10cSrcweir return 0;
1011cdf0e10cSrcweir }
1012cdf0e10cSrcweir //add for SwParaDlg end
1013cdf0e10cSrcweir
1014cdf0e10cSrcweir //add for SwTableHeightDlg SwSortDlg begin
CreateVclAbstractDialog(Window * pParent,SwWrtShell & rSh,int nResId)1015cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclAbstractDialog ( Window *pParent, SwWrtShell &rSh, int nResId )
1016cdf0e10cSrcweir {
1017cdf0e10cSrcweir Dialog* pDlg=NULL;
1018cdf0e10cSrcweir switch ( nResId )
1019cdf0e10cSrcweir {
1020cdf0e10cSrcweir case DLG_ROW_HEIGHT :
1021cdf0e10cSrcweir pDlg = new SwTableHeightDlg( pParent, rSh);
1022cdf0e10cSrcweir break;
1023cdf0e10cSrcweir
1024cdf0e10cSrcweir case DLG_SORTING :
1025cdf0e10cSrcweir pDlg = new SwSortDlg( pParent, rSh);
1026cdf0e10cSrcweir break;
1027cdf0e10cSrcweir case DLG_COLUMN :
1028cdf0e10cSrcweir pDlg = new SwColumnDlg( pParent, rSh );
1029cdf0e10cSrcweir break;
1030cdf0e10cSrcweir case DLG_EDIT_AUTHMARK :
1031cdf0e10cSrcweir pDlg = new SwAuthMarkModalDlg( pParent, rSh );
1032cdf0e10cSrcweir break;
1033cdf0e10cSrcweir default:
1034cdf0e10cSrcweir break;
1035cdf0e10cSrcweir }
1036cdf0e10cSrcweir
1037cdf0e10cSrcweir if ( pDlg )
1038cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
1039cdf0e10cSrcweir return 0;
1040cdf0e10cSrcweir }
1041cdf0e10cSrcweir //add for SwTableHeightDlg SwSortDlg ,end
1042cdf0e10cSrcweir //add for SwSplitTblDlg begin
CreateSplitTblDialog(Window * pParent,SwWrtShell & rSh)1043cdf0e10cSrcweir AbstractSplitTableDialog * SwAbstractDialogFactory_Impl::CreateSplitTblDialog ( Window *pParent, SwWrtShell &rSh )
1044cdf0e10cSrcweir {
1045cdf0e10cSrcweir return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent, rSh) );
1046cdf0e10cSrcweir }
1047cdf0e10cSrcweir //add SwSplitTblDlg end
1048cdf0e10cSrcweir
1049cdf0e10cSrcweir //add for SwSelGlossaryDlg begin
CreateSwSelGlossaryDlg(Window * pParent,const String & rShortName,int nResId)1050cdf0e10cSrcweir AbstarctSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId )
1051cdf0e10cSrcweir {
1052cdf0e10cSrcweir SwSelGlossaryDlg* pDlg=NULL;
1053cdf0e10cSrcweir switch ( nResId )
1054cdf0e10cSrcweir {
1055cdf0e10cSrcweir case DLG_SEL_GLOS :
1056cdf0e10cSrcweir pDlg = new SwSelGlossaryDlg( pParent, rShortName);
1057cdf0e10cSrcweir break;
1058cdf0e10cSrcweir
1059cdf0e10cSrcweir default:
1060cdf0e10cSrcweir break;
1061cdf0e10cSrcweir }
1062cdf0e10cSrcweir
1063cdf0e10cSrcweir if ( pDlg )
1064cdf0e10cSrcweir return new AbstarctSwSelGlossaryDlg_Impl( pDlg );
1065cdf0e10cSrcweir return 0;
1066cdf0e10cSrcweir }
1067cdf0e10cSrcweir
1068cdf0e10cSrcweir //add for SwSelGlossaryDlg end
1069cdf0e10cSrcweir
1070cdf0e10cSrcweir //add for SwAutoFormatDlg begin
CreateSwAutoFormatDlg(Window * pParent,SwWrtShell * pShell,int nResId,sal_Bool bSetAutoFmt,const SwTableAutoFmt * pSelFmt)1071cdf0e10cSrcweir AbstractSwAutoFormatDlg * SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell,
1072cdf0e10cSrcweir int nResId,
1073cdf0e10cSrcweir sal_Bool bSetAutoFmt,
1074cdf0e10cSrcweir const SwTableAutoFmt* pSelFmt )
1075cdf0e10cSrcweir {
1076cdf0e10cSrcweir SwAutoFormatDlg* pDlg=NULL;
1077cdf0e10cSrcweir switch ( nResId )
1078cdf0e10cSrcweir {
1079cdf0e10cSrcweir case DLG_AUTOFMT_TABLE :
1080cdf0e10cSrcweir pDlg = new SwAutoFormatDlg( pParent, pShell,bSetAutoFmt,pSelFmt);
1081cdf0e10cSrcweir break;
1082cdf0e10cSrcweir
1083cdf0e10cSrcweir default:
1084cdf0e10cSrcweir break;
1085cdf0e10cSrcweir }
1086cdf0e10cSrcweir
1087cdf0e10cSrcweir if ( pDlg )
1088cdf0e10cSrcweir return new AbstractSwAutoFormatDlg_Impl( pDlg );
1089cdf0e10cSrcweir return 0;
1090cdf0e10cSrcweir }
1091cdf0e10cSrcweir //add for SwAutoFormatDlg end
1092cdf0e10cSrcweir
1093cdf0e10cSrcweir //add for SwBorderDlg begin
CreateSwBorderDlg(Window * pParent,SfxItemSet & rSet,sal_uInt16 nType,int nResId)1094cdf0e10cSrcweir SfxAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, sal_uInt16 nType,int nResId )
1095cdf0e10cSrcweir {
1096cdf0e10cSrcweir SfxModalDialog* pDlg=NULL;
1097cdf0e10cSrcweir switch ( nResId )
1098cdf0e10cSrcweir {
1099cdf0e10cSrcweir case RC_DLG_SWBORDERDLG :
1100cdf0e10cSrcweir pDlg = new SwBorderDlg( pParent, rSet, nType );
1101cdf0e10cSrcweir break;
1102cdf0e10cSrcweir default:
1103cdf0e10cSrcweir break;
1104cdf0e10cSrcweir }
1105cdf0e10cSrcweir
1106cdf0e10cSrcweir if ( pDlg )
1107cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg );
1108cdf0e10cSrcweir return 0;
1109cdf0e10cSrcweir }
1110cdf0e10cSrcweir //add for SwBorderDlg end
1111cdf0e10cSrcweir
1112cdf0e10cSrcweir //add for SwWrapDlg begin
CreateSwWrapDlg(Window * pParent,SfxItemSet & rSet,SwWrtShell * pSh,sal_Bool bDrawMode,int nResId)1113cdf0e10cSrcweir SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId )
1114cdf0e10cSrcweir {
1115cdf0e10cSrcweir SfxModalDialog* pDlg=NULL;
1116cdf0e10cSrcweir switch ( nResId )
1117cdf0e10cSrcweir {
1118cdf0e10cSrcweir case RC_DLG_SWWRAPDLG :
1119cdf0e10cSrcweir pDlg = new SwWrapDlg( pParent, rSet, pSh, bDrawMode );
1120cdf0e10cSrcweir break;
1121cdf0e10cSrcweir default:
1122cdf0e10cSrcweir break;
1123cdf0e10cSrcweir }
1124cdf0e10cSrcweir
1125cdf0e10cSrcweir if ( pDlg )
1126cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg );
1127cdf0e10cSrcweir return 0;
1128cdf0e10cSrcweir }
1129cdf0e10cSrcweir //add for SwWrapDlg end
1130cdf0e10cSrcweir
1131cdf0e10cSrcweir //add for SwTableWidthDlg begin
CreateSwTableWidthDlg(Window * pParent,SwTableFUNC & rFnc,int nResId)1132cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg ( Window *pParent, SwTableFUNC &rFnc , int nResId )
1133cdf0e10cSrcweir {
1134cdf0e10cSrcweir Dialog* pDlg=NULL;
1135cdf0e10cSrcweir switch ( nResId )
1136cdf0e10cSrcweir {
1137cdf0e10cSrcweir case DLG_COL_WIDTH :
1138cdf0e10cSrcweir pDlg = new SwTableWidthDlg( pParent, rFnc);
1139cdf0e10cSrcweir break;
1140cdf0e10cSrcweir
1141cdf0e10cSrcweir default:
1142cdf0e10cSrcweir break;
1143cdf0e10cSrcweir }
1144cdf0e10cSrcweir
1145cdf0e10cSrcweir if ( pDlg )
1146cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
1147cdf0e10cSrcweir return 0;
1148cdf0e10cSrcweir }
1149cdf0e10cSrcweir //add for SwTableWidthDlg end
1150cdf0e10cSrcweir
1151cdf0e10cSrcweir //add for SwTableTabDlg begin
CreateSwTableTabDlg(Window * pParent,SfxItemPool & Pool,const SfxItemSet * pItemSet,SwWrtShell * pSh,int nResId)1152cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg( Window* pParent, SfxItemPool& Pool,
1153cdf0e10cSrcweir const SfxItemSet* pItemSet, SwWrtShell* pSh,int nResId )
1154cdf0e10cSrcweir {
1155cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
1156cdf0e10cSrcweir switch ( nResId )
1157cdf0e10cSrcweir {
1158cdf0e10cSrcweir case DLG_FORMAT_TABLE :
1159cdf0e10cSrcweir pDlg = new SwTableTabDlg( pParent, Pool, pItemSet,pSh );
1160cdf0e10cSrcweir break;
1161cdf0e10cSrcweir
1162cdf0e10cSrcweir default:
1163cdf0e10cSrcweir break;
1164cdf0e10cSrcweir }
1165cdf0e10cSrcweir
1166cdf0e10cSrcweir if ( pDlg )
1167cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
1168cdf0e10cSrcweir return 0;
1169cdf0e10cSrcweir }
1170cdf0e10cSrcweir //add for SwTableTabDlg end
1171cdf0e10cSrcweir
1172cdf0e10cSrcweir //add for SwFldDlg begin
CreateSwFldDlg(SfxBindings * pB,SwChildWinWrapper * pCW,Window * pParent,int nResId)1173cdf0e10cSrcweir AbstractSwFldDlg * SwAbstractDialogFactory_Impl::CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId )
1174cdf0e10cSrcweir {
1175cdf0e10cSrcweir SwFldDlg* pDlg=NULL;
1176cdf0e10cSrcweir switch ( nResId )
1177cdf0e10cSrcweir {
1178cdf0e10cSrcweir case DLG_FLD_INSERT :
1179cdf0e10cSrcweir pDlg = new SwFldDlg( pB, pCW,pParent);
1180cdf0e10cSrcweir break;
1181cdf0e10cSrcweir
1182cdf0e10cSrcweir default:
1183cdf0e10cSrcweir break;
1184cdf0e10cSrcweir }
1185cdf0e10cSrcweir
1186cdf0e10cSrcweir if ( pDlg )
1187cdf0e10cSrcweir return new AbstractSwFldDlg_Impl( pDlg );
1188cdf0e10cSrcweir return 0;
1189cdf0e10cSrcweir }
1190cdf0e10cSrcweir //add for SwFldDlg end
1191cdf0e10cSrcweir
1192cdf0e10cSrcweir //add for SwFldEditDlg begin
CreateSwFldEditDlg(SwView & rVw,int nResId)1193cdf0e10cSrcweir SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwFldEditDlg ( SwView& rVw, int nResId )
1194cdf0e10cSrcweir {
1195cdf0e10cSrcweir SfxModalDialog* pDlg=NULL;
1196cdf0e10cSrcweir switch ( nResId )
1197cdf0e10cSrcweir {
1198cdf0e10cSrcweir case RC_DLG_SWFLDEDITDLG :
1199cdf0e10cSrcweir pDlg = new SwFldEditDlg( rVw );
1200cdf0e10cSrcweir break;
1201cdf0e10cSrcweir default:
1202cdf0e10cSrcweir break;
1203cdf0e10cSrcweir }
1204cdf0e10cSrcweir
1205cdf0e10cSrcweir if ( pDlg )
1206cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg );
1207cdf0e10cSrcweir return 0;
1208cdf0e10cSrcweir }
1209cdf0e10cSrcweir //add for SwFldEditDlg
1210cdf0e10cSrcweir
1211cdf0e10cSrcweir //add for SwRenameXNamedDlg begin
CreateSwRenameXNamedDlg(Window * pParent,STAR_REFERENCE (container::XNamed)& xNamed,STAR_REFERENCE (container::XNameAccess)& xNameAccess,int nResId)1212cdf0e10cSrcweir AbstractSwRenameXNamedDlg * SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg( Window* pParent,
1213cdf0e10cSrcweir STAR_REFERENCE( container::XNamed ) & xNamed,
1214cdf0e10cSrcweir STAR_REFERENCE( container::XNameAccess ) & xNameAccess,int nResId )
1215cdf0e10cSrcweir {
1216cdf0e10cSrcweir SwRenameXNamedDlg* pDlg=NULL;
1217cdf0e10cSrcweir switch ( nResId )
1218cdf0e10cSrcweir {
1219cdf0e10cSrcweir case DLG_RENAME_XNAMED :
1220cdf0e10cSrcweir pDlg = new SwRenameXNamedDlg( pParent,xNamed, xNameAccess);
1221cdf0e10cSrcweir break;
1222cdf0e10cSrcweir default:
1223cdf0e10cSrcweir break;
1224cdf0e10cSrcweir }
1225cdf0e10cSrcweir
1226cdf0e10cSrcweir if ( pDlg )
1227cdf0e10cSrcweir return new AbstractSwRenameXNamedDlg_Impl( pDlg );
1228cdf0e10cSrcweir return 0;
1229cdf0e10cSrcweir }
1230cdf0e10cSrcweir
1231cdf0e10cSrcweir //add for SwRenameXNamedDlg end
1232cdf0e10cSrcweir
1233cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg begin
CreateSwModalRedlineAcceptDlg(Window * pParent,int nResId)1234cdf0e10cSrcweir AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId )
1235cdf0e10cSrcweir {
1236cdf0e10cSrcweir SwModalRedlineAcceptDlg* pDlg=NULL;
1237cdf0e10cSrcweir switch ( nResId )
1238cdf0e10cSrcweir {
1239cdf0e10cSrcweir case DLG_MOD_REDLINE_ACCEPT :
1240cdf0e10cSrcweir pDlg = new SwModalRedlineAcceptDlg( pParent );
1241cdf0e10cSrcweir break;
1242cdf0e10cSrcweir default:
1243cdf0e10cSrcweir break;
1244cdf0e10cSrcweir }
1245cdf0e10cSrcweir
1246cdf0e10cSrcweir if ( pDlg )
1247cdf0e10cSrcweir return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg );
1248cdf0e10cSrcweir return 0;
1249cdf0e10cSrcweir }
1250cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg end
1251cdf0e10cSrcweir
CreateSwVclDialog(int nResId,Window * pParent,sal_Bool & rWithPrev)1252cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwVclDialog( int nResId,
1253cdf0e10cSrcweir Window* pParent, sal_Bool& rWithPrev ) //add for SwMergeTblDlg
1254cdf0e10cSrcweir {
1255cdf0e10cSrcweir Dialog* pDlg=NULL;
1256cdf0e10cSrcweir switch ( nResId )
1257cdf0e10cSrcweir {
1258cdf0e10cSrcweir case DLG_MERGE_TABLE :
1259cdf0e10cSrcweir pDlg = new SwMergeTblDlg( pParent, rWithPrev );
1260cdf0e10cSrcweir break;
1261cdf0e10cSrcweir default:
1262cdf0e10cSrcweir break;
1263cdf0e10cSrcweir }
1264cdf0e10cSrcweir if ( pDlg )
1265cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
1266cdf0e10cSrcweir return 0;
1267cdf0e10cSrcweir }
CreateFrmTabDialog(int nResId,SfxViewFrame * pFrame,Window * pParent,const SfxItemSet & rCoreSet,sal_Bool bNewFrm,sal_uInt16 nResType,sal_Bool bFmt,sal_uInt16 nDefPage,const String * pFmtStr)1268cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateFrmTabDialog( int nResId,
1269cdf0e10cSrcweir SfxViewFrame *pFrame, Window *pParent,
1270cdf0e10cSrcweir const SfxItemSet& rCoreSet,
1271cdf0e10cSrcweir sal_Bool bNewFrm,
1272cdf0e10cSrcweir sal_uInt16 nResType,
1273cdf0e10cSrcweir sal_Bool bFmt,
1274cdf0e10cSrcweir sal_uInt16 nDefPage,
1275cdf0e10cSrcweir const String* pFmtStr ) //add for SwFrmDlg
1276cdf0e10cSrcweir {
1277cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
1278cdf0e10cSrcweir switch ( nResId )
1279cdf0e10cSrcweir {
1280cdf0e10cSrcweir case DLG_FRM_GRF :
1281cdf0e10cSrcweir case DLG_FRM_OLE :
1282cdf0e10cSrcweir case DLG_FRM_STD :
1283cdf0e10cSrcweir pDlg = new SwFrmDlg( pFrame, pParent, rCoreSet, bNewFrm, nResType, bFmt, nDefPage, pFmtStr );
1284cdf0e10cSrcweir break;
1285cdf0e10cSrcweir default:
1286cdf0e10cSrcweir break;
1287cdf0e10cSrcweir }
1288cdf0e10cSrcweir
1289cdf0e10cSrcweir if ( pDlg )
1290cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
1291cdf0e10cSrcweir return 0;
1292cdf0e10cSrcweir }
1293cdf0e10cSrcweir
CreateTemplateDialog(int nResId,Window * pParent,SfxStyleSheetBase & rBase,sal_uInt16 nRegion,const sal_uInt16 nSlot,SwWrtShell * pActShell,sal_Bool bNew)1294cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateTemplateDialog( int nResId,
1295cdf0e10cSrcweir Window* pParent,
1296cdf0e10cSrcweir SfxStyleSheetBase& rBase,
1297cdf0e10cSrcweir sal_uInt16 nRegion,
1298*ff0525f2SOliver-Rainer Wittmann const sal_uInt16 nSlot,
1299cdf0e10cSrcweir SwWrtShell* pActShell,
1300cdf0e10cSrcweir sal_Bool bNew ) //add for SwTemplateDlg
1301cdf0e10cSrcweir {
1302cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
1303cdf0e10cSrcweir switch ( nResId )
1304cdf0e10cSrcweir {
1305cdf0e10cSrcweir case DLG_TEMPLATE_BASE :
1306*ff0525f2SOliver-Rainer Wittmann pDlg = new SwTemplateDlg( pParent, rBase, nRegion, nSlot, pActShell, bNew );
1307cdf0e10cSrcweir break;
1308cdf0e10cSrcweir default:
1309cdf0e10cSrcweir break;
1310cdf0e10cSrcweir }
1311cdf0e10cSrcweir
1312cdf0e10cSrcweir if ( pDlg )
1313cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
1314cdf0e10cSrcweir return 0;
1315cdf0e10cSrcweir }
1316cdf0e10cSrcweir
CreateGlossaryDlg(int nResId,SfxViewFrame * pViewFrame,SwGlossaryHdl * pGlosHdl,SwWrtShell * pWrtShell)1317cdf0e10cSrcweir AbstractGlossaryDlg* SwAbstractDialogFactory_Impl::CreateGlossaryDlg( int nResId,
1318cdf0e10cSrcweir SfxViewFrame* pViewFrame,
1319cdf0e10cSrcweir SwGlossaryHdl* pGlosHdl,
1320cdf0e10cSrcweir SwWrtShell *pWrtShell) //add for SwGlossaryDlg
1321cdf0e10cSrcweir {
1322cdf0e10cSrcweir SwGlossaryDlg* pDlg=NULL;
1323cdf0e10cSrcweir switch ( nResId )
1324cdf0e10cSrcweir {
1325cdf0e10cSrcweir case DLG_RENAME_GLOS :
1326cdf0e10cSrcweir pDlg = new SwGlossaryDlg( pViewFrame, pGlosHdl, pWrtShell );
1327cdf0e10cSrcweir break;
1328cdf0e10cSrcweir default:
1329cdf0e10cSrcweir break;
1330cdf0e10cSrcweir }
1331cdf0e10cSrcweir if ( pDlg )
1332cdf0e10cSrcweir return new AbstractGlossaryDlg_Impl( pDlg );
1333cdf0e10cSrcweir return 0;
1334cdf0e10cSrcweir }
1335cdf0e10cSrcweir
CreateFldInputDlg(int nResId,Window * pParent,SwWrtShell & rSh,SwField * pField,sal_Bool bNextButton)1336cdf0e10cSrcweir AbstractFldInputDlg* SwAbstractDialogFactory_Impl::CreateFldInputDlg( int nResId,
1337cdf0e10cSrcweir Window *pParent, SwWrtShell &rSh,
1338cdf0e10cSrcweir SwField* pField, sal_Bool bNextButton ) //add for SwFldInputDlg
1339cdf0e10cSrcweir {
1340cdf0e10cSrcweir SwFldInputDlg* pDlg=NULL;
1341cdf0e10cSrcweir switch ( nResId )
1342cdf0e10cSrcweir {
1343cdf0e10cSrcweir case DLG_FLD_INPUT :
1344cdf0e10cSrcweir pDlg = new SwFldInputDlg( pParent, rSh, pField, bNextButton );
1345cdf0e10cSrcweir break;
1346cdf0e10cSrcweir default:
1347cdf0e10cSrcweir break;
1348cdf0e10cSrcweir }
1349cdf0e10cSrcweir if ( pDlg )
1350cdf0e10cSrcweir return new AbstractFldInputDlg_Impl( pDlg );
1351cdf0e10cSrcweir return 0;
1352cdf0e10cSrcweir }
1353cdf0e10cSrcweir
CreateInsFootNoteDlg(int nResId,Window * pParent,SwWrtShell & rSh,sal_Bool bEd)1354cdf0e10cSrcweir AbstractInsFootNoteDlg* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg( int nResId,
1355cdf0e10cSrcweir Window * pParent, SwWrtShell &rSh, sal_Bool bEd ) //add for SwInsFootNoteDlg
1356cdf0e10cSrcweir {
1357cdf0e10cSrcweir SwInsFootNoteDlg* pDlg=NULL;
1358cdf0e10cSrcweir switch ( nResId )
1359cdf0e10cSrcweir {
1360cdf0e10cSrcweir case DLG_INS_FOOTNOTE :
1361cdf0e10cSrcweir pDlg = new SwInsFootNoteDlg( pParent, rSh, bEd );
1362cdf0e10cSrcweir break;
1363cdf0e10cSrcweir default:
1364cdf0e10cSrcweir break;
1365cdf0e10cSrcweir }
1366cdf0e10cSrcweir if ( pDlg )
1367cdf0e10cSrcweir return new AbstractInsFootNoteDlg_Impl( pDlg );
1368cdf0e10cSrcweir return 0;
1369cdf0e10cSrcweir }
1370cdf0e10cSrcweir
CreateVclSwViewDialog(int nResId,SwView & rView,sal_Bool)1371cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId,
1372cdf0e10cSrcweir SwView& rView, sal_Bool /*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg
1373cdf0e10cSrcweir {
1374cdf0e10cSrcweir Dialog* pDlg=NULL;
1375cdf0e10cSrcweir switch ( nResId )
1376cdf0e10cSrcweir {
1377cdf0e10cSrcweir case DLG_LINE_NUMBERING :
1378cdf0e10cSrcweir pDlg = new SwLineNumberingDlg( &rView );
1379cdf0e10cSrcweir break;
1380cdf0e10cSrcweir default:
1381cdf0e10cSrcweir break;
1382cdf0e10cSrcweir }
1383cdf0e10cSrcweir
1384cdf0e10cSrcweir if ( pDlg )
1385cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
1386cdf0e10cSrcweir return 0;
1387cdf0e10cSrcweir }
1388cdf0e10cSrcweir
CreateInsertGrfRulerDlg(int nResId,Window * pParent)1389cdf0e10cSrcweir AbstractInsertGrfRulerDlg * SwAbstractDialogFactory_Impl::CreateInsertGrfRulerDlg( int nResId,
1390cdf0e10cSrcweir Window * pParent ) //add for SwInsertGrfRulerDlg
1391cdf0e10cSrcweir {
1392cdf0e10cSrcweir SwInsertGrfRulerDlg* pDlg=NULL;
1393cdf0e10cSrcweir switch ( nResId )
1394cdf0e10cSrcweir {
1395cdf0e10cSrcweir case DLG_INSERT_RULER :
1396cdf0e10cSrcweir pDlg = new SwInsertGrfRulerDlg( pParent );
1397cdf0e10cSrcweir break;
1398cdf0e10cSrcweir default:
1399cdf0e10cSrcweir break;
1400cdf0e10cSrcweir }
1401cdf0e10cSrcweir
1402cdf0e10cSrcweir if ( pDlg )
1403cdf0e10cSrcweir return new AbstractInsertGrfRulerDlg_Impl( pDlg );
1404cdf0e10cSrcweir return 0;
1405cdf0e10cSrcweir }
1406cdf0e10cSrcweir
CreateInsTableDlg(int nResId,SwView & rView)1407cdf0e10cSrcweir AbstractInsTableDlg * SwAbstractDialogFactory_Impl::CreateInsTableDlg( int nResId,
1408cdf0e10cSrcweir SwView& rView ) //add for SwInsTableDlg
1409cdf0e10cSrcweir {
1410cdf0e10cSrcweir SwInsTableDlg* pDlg=NULL;
1411cdf0e10cSrcweir switch ( nResId )
1412cdf0e10cSrcweir {
1413cdf0e10cSrcweir case DLG_INSERT_TABLE :
1414cdf0e10cSrcweir pDlg = new SwInsTableDlg( rView );
1415cdf0e10cSrcweir break;
1416cdf0e10cSrcweir default:
1417cdf0e10cSrcweir break;
1418cdf0e10cSrcweir }
1419cdf0e10cSrcweir if ( pDlg )
1420cdf0e10cSrcweir return new AbstractInsTableDlg_Impl( pDlg );
1421cdf0e10cSrcweir return 0;
1422cdf0e10cSrcweir }
1423cdf0e10cSrcweir
CreateJavaEditDialog(int nResId,Window * pParent,SwWrtShell * pWrtSh)1424cdf0e10cSrcweir AbstractJavaEditDialog * SwAbstractDialogFactory_Impl::CreateJavaEditDialog( int nResId,
1425cdf0e10cSrcweir Window* pParent, SwWrtShell* pWrtSh ) //add for SwJavaEditDialog
1426cdf0e10cSrcweir {
1427cdf0e10cSrcweir SwJavaEditDialog* pDlg=NULL;
1428cdf0e10cSrcweir switch ( nResId )
1429cdf0e10cSrcweir {
1430cdf0e10cSrcweir case DLG_JAVAEDIT :
1431cdf0e10cSrcweir pDlg = new SwJavaEditDialog( pParent, pWrtSh );
1432cdf0e10cSrcweir break;
1433cdf0e10cSrcweir default:
1434cdf0e10cSrcweir break;
1435cdf0e10cSrcweir }
1436cdf0e10cSrcweir if ( pDlg )
1437cdf0e10cSrcweir return new AbstractJavaEditDialog_Impl( pDlg );
1438cdf0e10cSrcweir return 0;
1439cdf0e10cSrcweir }
1440cdf0e10cSrcweir
CreateMailMergeDlg(int nResId,Window * pParent,SwWrtShell & rSh,const String & rSourceName,const String & rTblName,sal_Int32 nCommandType,const uno::Reference<sdbc::XConnection> & xConnection,uno::Sequence<uno::Any> * pSelection)1441cdf0e10cSrcweir AbstractMailMergeDlg * SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nResId,
1442cdf0e10cSrcweir Window* pParent, SwWrtShell& rSh,
1443cdf0e10cSrcweir const String& rSourceName,
1444cdf0e10cSrcweir const String& rTblName,
1445cdf0e10cSrcweir sal_Int32 nCommandType,
1446cdf0e10cSrcweir const uno::Reference< sdbc::XConnection>& xConnection,
1447cdf0e10cSrcweir uno::Sequence< uno::Any >* pSelection ) //add for SwMailMergeDlg
1448cdf0e10cSrcweir {
1449cdf0e10cSrcweir SwMailMergeDlg* pDlg=NULL;
1450cdf0e10cSrcweir switch ( nResId )
1451cdf0e10cSrcweir {
1452cdf0e10cSrcweir case DLG_MAILMERGE :
1453cdf0e10cSrcweir pDlg = new SwMailMergeDlg( pParent, rSh, rSourceName, rTblName, nCommandType, xConnection, pSelection );
1454cdf0e10cSrcweir break;
1455cdf0e10cSrcweir default:
1456cdf0e10cSrcweir break;
1457cdf0e10cSrcweir }
1458cdf0e10cSrcweir if ( pDlg )
1459cdf0e10cSrcweir return new AbstractMailMergeDlg_Impl( pDlg );
1460cdf0e10cSrcweir return 0;
1461cdf0e10cSrcweir }
CreateMailMergeCreateFromDlg(int nResId,Window * pParent)1462cdf0e10cSrcweir AbstractMailMergeCreateFromDlg * SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg( int nResId,
1463cdf0e10cSrcweir Window* pParent ) //add for SwMailMergeCreateFromDlg
1464cdf0e10cSrcweir {
1465cdf0e10cSrcweir SwMailMergeCreateFromDlg* pDlg=NULL;
1466cdf0e10cSrcweir switch ( nResId )
1467cdf0e10cSrcweir {
1468cdf0e10cSrcweir case DLG_MERGE_CREATE :
1469cdf0e10cSrcweir pDlg = new SwMailMergeCreateFromDlg( pParent );
1470cdf0e10cSrcweir break;
1471cdf0e10cSrcweir default:
1472cdf0e10cSrcweir break;
1473cdf0e10cSrcweir }
1474cdf0e10cSrcweir if ( pDlg )
1475cdf0e10cSrcweir return new AbstractMailMergeCreateFromDlg_Impl( pDlg );
1476cdf0e10cSrcweir return 0;
1477cdf0e10cSrcweir }
CreateMailMergeFieldConnectionsDlg(int nResId,Window * pParent)1478cdf0e10cSrcweir AbstractMailMergeFieldConnectionsDlg * SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg( int nResId,
1479cdf0e10cSrcweir Window* pParent ) //add for SwMailMergeFieldConnectionsDlg
1480cdf0e10cSrcweir {
1481cdf0e10cSrcweir SwMailMergeFieldConnectionsDlg* pDlg=NULL;
1482cdf0e10cSrcweir switch ( nResId )
1483cdf0e10cSrcweir {
1484cdf0e10cSrcweir case DLG_MERGE_FIELD_CONNECTIONS :
1485cdf0e10cSrcweir pDlg = new SwMailMergeFieldConnectionsDlg( pParent );
1486cdf0e10cSrcweir break;
1487cdf0e10cSrcweir default:
1488cdf0e10cSrcweir break;
1489cdf0e10cSrcweir }
1490cdf0e10cSrcweir if ( pDlg )
1491cdf0e10cSrcweir return new AbstractMailMergeFieldConnectionsDlg_Impl( pDlg );
1492cdf0e10cSrcweir return 0;
1493cdf0e10cSrcweir }
1494cdf0e10cSrcweir
CreateMultiTOXMarkDlg(int nResId,Window * pParent,SwTOXMgr & rTOXMgr)1495cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg( int nResId,
1496cdf0e10cSrcweir Window* pParent, SwTOXMgr &rTOXMgr ) //add for SwMultiTOXMarkDlg
1497cdf0e10cSrcweir {
1498cdf0e10cSrcweir Dialog* pDlg=NULL;
1499cdf0e10cSrcweir switch ( nResId )
1500cdf0e10cSrcweir {
1501cdf0e10cSrcweir case DLG_MULTMRK :
1502cdf0e10cSrcweir pDlg = new SwMultiTOXMarkDlg( pParent, rTOXMgr );
1503cdf0e10cSrcweir break;
1504cdf0e10cSrcweir default:
1505cdf0e10cSrcweir break;
1506cdf0e10cSrcweir }
1507cdf0e10cSrcweir if ( pDlg )
1508cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
1509cdf0e10cSrcweir return 0;
1510cdf0e10cSrcweir }
CreateSwTabDialog(int nResId,Window * pParent,const SfxItemSet * pSwItemSet,SwWrtShell & rWrtSh)1511cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTabDialog( int nResId,
1512cdf0e10cSrcweir Window* pParent,
1513cdf0e10cSrcweir const SfxItemSet* pSwItemSet,
1514cdf0e10cSrcweir SwWrtShell & rWrtSh ) //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
1515cdf0e10cSrcweir {
1516cdf0e10cSrcweir SfxTabDialog* pDlg=NULL;
1517cdf0e10cSrcweir switch ( nResId )
1518cdf0e10cSrcweir {
1519cdf0e10cSrcweir case DLG_SVXTEST_NUM_BULLET :
1520cdf0e10cSrcweir pDlg = new SwSvxNumBulletTabDialog( pParent, pSwItemSet, rWrtSh );
1521cdf0e10cSrcweir break;
1522cdf0e10cSrcweir case DLG_TAB_OUTLINE :
1523cdf0e10cSrcweir pDlg = new SwOutlineTabDialog( pParent, pSwItemSet, rWrtSh );
1524cdf0e10cSrcweir break;
1525cdf0e10cSrcweir
1526cdf0e10cSrcweir default:
1527cdf0e10cSrcweir break;
1528cdf0e10cSrcweir }
1529cdf0e10cSrcweir if ( pDlg )
1530cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg );
1531cdf0e10cSrcweir return 0;
1532cdf0e10cSrcweir }
CreateMultiTOXTabDialog(int nResId,Window * pParent,const SfxItemSet & rSet,SwWrtShell & rShell,SwTOXBase * pCurTOX,sal_uInt16 nToxType,sal_Bool bGlobal)1533cdf0e10cSrcweir AbstractMultiTOXTabDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog( int nResId,
1534cdf0e10cSrcweir Window* pParent, const SfxItemSet& rSet,
1535cdf0e10cSrcweir SwWrtShell &rShell,
1536cdf0e10cSrcweir SwTOXBase* pCurTOX, sal_uInt16 nToxType,
1537cdf0e10cSrcweir sal_Bool bGlobal ) //add for SwMultiTOXTabDialog
1538cdf0e10cSrcweir {
1539cdf0e10cSrcweir SwMultiTOXTabDialog* pDlg=NULL;
1540cdf0e10cSrcweir switch ( nResId )
1541cdf0e10cSrcweir {
1542cdf0e10cSrcweir case DLG_MULTI_TOX :
1543cdf0e10cSrcweir pDlg = new SwMultiTOXTabDialog( pParent, rSet, rShell, pCurTOX, nToxType, bGlobal );
1544cdf0e10cSrcweir break;
1545cdf0e10cSrcweir default:
1546cdf0e10cSrcweir break;
1547cdf0e10cSrcweir }
1548cdf0e10cSrcweir if ( pDlg )
1549cdf0e10cSrcweir return new AbstractMultiTOXTabDialog_Impl( pDlg );
1550cdf0e10cSrcweir return 0;
1551cdf0e10cSrcweir }
CreateEditRegionDlg(int nResId,Window * pParent,SwWrtShell & rWrtSh)1552cdf0e10cSrcweir AbstractEditRegionDlg * SwAbstractDialogFactory_Impl::CreateEditRegionDlg( int nResId,
1553cdf0e10cSrcweir Window* pParent, SwWrtShell& rWrtSh ) //add for SwEditRegionDlg
1554cdf0e10cSrcweir {
1555cdf0e10cSrcweir SwEditRegionDlg* pDlg=NULL;
1556cdf0e10cSrcweir switch ( nResId )
1557cdf0e10cSrcweir {
1558cdf0e10cSrcweir case MD_EDIT_REGION :
1559cdf0e10cSrcweir pDlg = new SwEditRegionDlg( pParent, rWrtSh );
1560cdf0e10cSrcweir break;
1561cdf0e10cSrcweir default:
1562cdf0e10cSrcweir break;
1563cdf0e10cSrcweir }
1564cdf0e10cSrcweir if ( pDlg )
1565cdf0e10cSrcweir return new AbstractEditRegionDlg_Impl( pDlg );
1566cdf0e10cSrcweir return 0;
1567cdf0e10cSrcweir }
CreateInsertSectionTabDialog(int nResId,Window * pParent,const SfxItemSet & rSet,SwWrtShell & rSh)1568cdf0e10cSrcweir AbstractInsertSectionTabDialog * SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog( int nResId,
1569cdf0e10cSrcweir Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) //add for SwInsertSectionTabDialog
1570cdf0e10cSrcweir {
1571cdf0e10cSrcweir SwInsertSectionTabDialog* pDlg=NULL;
1572cdf0e10cSrcweir switch ( nResId )
1573cdf0e10cSrcweir {
1574cdf0e10cSrcweir case DLG_INSERT_SECTION :
1575cdf0e10cSrcweir pDlg = new SwInsertSectionTabDialog( pParent, rSet, rSh );
1576cdf0e10cSrcweir break;
1577cdf0e10cSrcweir default:
1578cdf0e10cSrcweir break;
1579cdf0e10cSrcweir }
1580cdf0e10cSrcweir if ( pDlg )
1581cdf0e10cSrcweir return new AbstractInsertSectionTabDialog_Impl( pDlg );
1582cdf0e10cSrcweir return 0;
1583cdf0e10cSrcweir }
1584cdf0e10cSrcweir
CreateIndexMarkFloatDlg(int nResId,SfxBindings * pBindings,SfxChildWindow * pChild,Window * pParent,SfxChildWinInfo * pInfo,sal_Bool bNew)1585cdf0e10cSrcweir AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg( int nResId,
1586cdf0e10cSrcweir SfxBindings* pBindings,
1587cdf0e10cSrcweir SfxChildWindow* pChild,
1588cdf0e10cSrcweir Window *pParent,
1589cdf0e10cSrcweir SfxChildWinInfo* pInfo,
1590cdf0e10cSrcweir sal_Bool bNew ) //add for SwIndexMarkFloatDlg
1591cdf0e10cSrcweir {
1592cdf0e10cSrcweir SwIndexMarkFloatDlg* pDlg=NULL;
1593cdf0e10cSrcweir switch ( nResId )
1594cdf0e10cSrcweir {
1595cdf0e10cSrcweir case DLG_INSIDXMARK_CJK :
1596cdf0e10cSrcweir case DLG_INSIDXMARK :
1597cdf0e10cSrcweir pDlg = new SwIndexMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
1598cdf0e10cSrcweir break;
1599cdf0e10cSrcweir default:
1600cdf0e10cSrcweir break;
1601cdf0e10cSrcweir }
1602cdf0e10cSrcweir if ( pDlg )
1603cdf0e10cSrcweir return new AbstractIndexMarkFloatDlg_Impl( pDlg );
1604cdf0e10cSrcweir return 0;
1605cdf0e10cSrcweir }
1606cdf0e10cSrcweir
CreateAuthMarkFloatDlg(int nResId,SfxBindings * pBindings,SfxChildWindow * pChild,Window * pParent,SfxChildWinInfo * pInfo,sal_Bool bNew)1607cdf0e10cSrcweir AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( int nResId,
1608cdf0e10cSrcweir SfxBindings* pBindings,
1609cdf0e10cSrcweir SfxChildWindow* pChild,
1610cdf0e10cSrcweir Window *pParent,
1611cdf0e10cSrcweir SfxChildWinInfo* pInfo,
1612cdf0e10cSrcweir sal_Bool bNew ) //add for SwAuthMarkFloatDlg
1613cdf0e10cSrcweir {
1614cdf0e10cSrcweir SwAuthMarkFloatDlg* pDlg=NULL;
1615cdf0e10cSrcweir switch ( nResId )
1616cdf0e10cSrcweir {
1617cdf0e10cSrcweir case DLG_INSAUTHMARK :
1618cdf0e10cSrcweir pDlg = new SwAuthMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
1619cdf0e10cSrcweir break;
1620cdf0e10cSrcweir default:
1621cdf0e10cSrcweir break;
1622cdf0e10cSrcweir }
1623cdf0e10cSrcweir if ( pDlg )
1624cdf0e10cSrcweir return new AbstractAuthMarkFloatDlg_Impl( pDlg );
1625cdf0e10cSrcweir return 0;
1626cdf0e10cSrcweir }
1627cdf0e10cSrcweir
1628cdf0e10cSrcweir //add for SwIndexMarkModalDlg begin
CreateIndexMarkModalDlg(int nResId,Window * pParent,SwWrtShell & rSh,SwTOXMark * pCurTOXMark)1629cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg( int nResId,
1630cdf0e10cSrcweir Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) //add for SwIndexMarkModalDlg
1631cdf0e10cSrcweir {
1632cdf0e10cSrcweir Dialog* pDlg=NULL;
1633cdf0e10cSrcweir switch ( nResId )
1634cdf0e10cSrcweir {
1635cdf0e10cSrcweir case DLG_EDIT_IDXMARK_CJK :
1636cdf0e10cSrcweir case DLG_EDIT_IDXMARK :
1637cdf0e10cSrcweir pDlg = new SwIndexMarkModalDlg( pParent, rSh, pCurTOXMark );
1638cdf0e10cSrcweir break;
1639cdf0e10cSrcweir
1640cdf0e10cSrcweir default:
1641cdf0e10cSrcweir break;
1642cdf0e10cSrcweir }
1643cdf0e10cSrcweir
1644cdf0e10cSrcweir if ( pDlg )
1645cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg );
1646cdf0e10cSrcweir return 0;
1647cdf0e10cSrcweir }
1648cdf0e10cSrcweir //add for SwIndexMarkModalDlg end
CreateMailMergeWizard(SwView & rView,SwMailMergeConfigItem & rConfigItem)1649cdf0e10cSrcweir AbstractMailMergeWizard* SwAbstractDialogFactory_Impl::CreateMailMergeWizard(
1650cdf0e10cSrcweir SwView& rView, SwMailMergeConfigItem& rConfigItem)
1651cdf0e10cSrcweir {
1652cdf0e10cSrcweir return new AbstractMailMergeWizard_Impl( new SwMailMergeWizard(rView, rConfigItem));
1653cdf0e10cSrcweir }
1654cdf0e10cSrcweir
1655cdf0e10cSrcweir //add for static func in SwGlossaryDlg
GetGlossaryCurrGroupFunc(sal_uInt16 nId)1656cdf0e10cSrcweir GlossaryGetCurrGroup SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc( sal_uInt16 nId )
1657cdf0e10cSrcweir {
1658cdf0e10cSrcweir switch ( nId )
1659cdf0e10cSrcweir {
1660cdf0e10cSrcweir case DLG_RENAME_GLOS :
1661cdf0e10cSrcweir return SwGlossaryDlg::GetCurrGroup;
1662cdf0e10cSrcweir default:
1663cdf0e10cSrcweir break;
1664cdf0e10cSrcweir }
1665cdf0e10cSrcweir return 0;
1666cdf0e10cSrcweir }
SetGlossaryActGroupFunc(sal_uInt16 nId)1667cdf0e10cSrcweir GlossarySetActGroup SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc( sal_uInt16 nId )
1668cdf0e10cSrcweir {
1669cdf0e10cSrcweir switch ( nId )
1670cdf0e10cSrcweir {
1671cdf0e10cSrcweir case DLG_RENAME_GLOS :
1672cdf0e10cSrcweir return SwGlossaryDlg::SetActGroup;
1673cdf0e10cSrcweir default:
1674cdf0e10cSrcweir break;
1675cdf0e10cSrcweir }
1676cdf0e10cSrcweir return 0;
1677cdf0e10cSrcweir }
1678cdf0e10cSrcweir
1679cdf0e10cSrcweir //------------------ Factories for TabPages
GetTabPageCreatorFunc(sal_uInt16 nId)1680cdf0e10cSrcweir CreateTabPage SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1681cdf0e10cSrcweir {
1682cdf0e10cSrcweir CreateTabPage pRet = 0;
1683cdf0e10cSrcweir switch ( nId )
1684cdf0e10cSrcweir {
1685cdf0e10cSrcweir case TP_OPTCOMPATIBILITY_PAGE :
1686cdf0e10cSrcweir case RID_SW_TP_OPTCOMPATIBILITY_PAGE :
1687cdf0e10cSrcweir pRet = SwCompatibilityOptPage::Create;
1688cdf0e10cSrcweir break;
1689cdf0e10cSrcweir case TP_OPTLOAD_PAGE :
1690cdf0e10cSrcweir case RID_SW_TP_OPTLOAD_PAGE :
1691cdf0e10cSrcweir pRet = SwLoadOptPage::Create;
1692cdf0e10cSrcweir break;
1693cdf0e10cSrcweir case TP_OPTCAPTION_PAGE:
1694cdf0e10cSrcweir case RID_SW_TP_OPTCAPTION_PAGE:
1695cdf0e10cSrcweir return SwCaptionOptPage::Create;
1696cdf0e10cSrcweir case TP_CONTENT_OPT :
1697cdf0e10cSrcweir case RID_SW_TP_CONTENT_OPT:
1698cdf0e10cSrcweir case RID_SW_TP_HTML_CONTENT_OPT:
1699cdf0e10cSrcweir pRet = SwContentOptPage::Create;
1700cdf0e10cSrcweir break;
1701cdf0e10cSrcweir case TP_OPTSHDWCRSR :
1702cdf0e10cSrcweir case RID_SW_TP_OPTSHDWCRSR:
1703cdf0e10cSrcweir case RID_SW_TP_HTML_OPTSHDWCRSR:
1704cdf0e10cSrcweir pRet = SwShdwCrsrOptionsTabPage::Create;
1705cdf0e10cSrcweir break;
1706cdf0e10cSrcweir case RID_SW_TP_REDLINE_OPT :
1707cdf0e10cSrcweir case TP_REDLINE_OPT :
1708cdf0e10cSrcweir pRet = SwRedlineOptionsTabPage::Create;
1709cdf0e10cSrcweir break;
1710cdf0e10cSrcweir case RID_SW_TP_OPTTEST_PAGE :
1711cdf0e10cSrcweir case TP_OPTTEST_PAGE :
1712cdf0e10cSrcweir #ifdef DBG_UTIL
1713cdf0e10cSrcweir pRet = SwTestTabPage::Create;
1714cdf0e10cSrcweir #endif
1715cdf0e10cSrcweir break;
1716cdf0e10cSrcweir case TP_OPTPRINT_PAGE :
1717cdf0e10cSrcweir case RID_SW_TP_HTML_OPTPRINT_PAGE:
1718cdf0e10cSrcweir case RID_SW_TP_OPTPRINT_PAGE:
1719cdf0e10cSrcweir pRet = SwAddPrinterTabPage::Create;
1720cdf0e10cSrcweir break;
1721cdf0e10cSrcweir case TP_STD_FONT :
1722cdf0e10cSrcweir case RID_SW_TP_STD_FONT:
1723cdf0e10cSrcweir case RID_SW_TP_STD_FONT_CJK:
1724cdf0e10cSrcweir case RID_SW_TP_STD_FONT_CTL:
1725cdf0e10cSrcweir pRet = SwStdFontTabPage::Create;
1726cdf0e10cSrcweir break;
1727cdf0e10cSrcweir case TP_OPTTABLE_PAGE :
1728cdf0e10cSrcweir case RID_SW_TP_HTML_OPTTABLE_PAGE:
1729cdf0e10cSrcweir case RID_SW_TP_OPTTABLE_PAGE:
1730cdf0e10cSrcweir pRet = SwTableOptionsTabPage::Create;
1731cdf0e10cSrcweir break;
1732cdf0e10cSrcweir case TP_DOC_STAT :
1733cdf0e10cSrcweir pRet = SwDocStatPage::Create;
1734cdf0e10cSrcweir break;
1735cdf0e10cSrcweir case RID_SW_TP_MAILCONFIG:
1736cdf0e10cSrcweir pRet = SwMailConfigPage::Create;
1737cdf0e10cSrcweir break;
1738cdf0e10cSrcweir }
1739cdf0e10cSrcweir
1740cdf0e10cSrcweir return pRet;
1741cdf0e10cSrcweir }
1742cdf0e10cSrcweir
GetTabPageRangesFunc(sal_uInt16 nId)1743cdf0e10cSrcweir GetTabPageRanges SwAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1744cdf0e10cSrcweir {
1745cdf0e10cSrcweir switch ( nId )
1746cdf0e10cSrcweir {
1747cdf0e10cSrcweir case 1 : //RID_SVXPAGE_TEXTANIMATION :
1748cdf0e10cSrcweir //return SvxTextAnimationPage::GetRanges;
1749cdf0e10cSrcweir break;
1750cdf0e10cSrcweir default:
1751cdf0e10cSrcweir break;
1752cdf0e10cSrcweir }
1753cdf0e10cSrcweir
1754cdf0e10cSrcweir return 0;
1755cdf0e10cSrcweir }
1756