Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include "align.hxx" //add for SvxAlignmentTabPage
30 : : #include "dlgfact.hxx"
31 : :
32 : : #include <sfx2/basedlgs.hxx>
33 : : #include <sfx2/app.hxx>
34 : : #include <sfx2/request.hxx>
35 : : #include <cuires.hrc>
36 : : #include <svx/dialogs.hrc>
37 : : #include "numfmt.hxx"
38 : : #include "splitcelldlg.hxx"
39 : : #include "gallery.hrc"
40 : : #include "dstribut.hxx"
41 : : #include "cuiimapwnd.hxx"
42 : : #include "hlmarkwn.hxx"
43 : : #include "cuicharmap.hxx"
44 : : #include "srchxtra.hxx"
45 : : #include "textanim.hxx"
46 : : #include "autocdlg.hxx"
47 : : #include "treeopt.hxx"
48 : : #include "internationaloptions.hxx"
49 : : #include "labdlg.hxx"
50 : : #include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog
51 : : #include "showcols.hxx" //add for FmShowColsDialog
52 : : #include "zoom.hxx" //add for SvxZoomDialog
53 : : #include "cuigaldlg.hxx" //add for Gallery 6 Dialogs and 1 TabPage
54 : : #include "cuiimapwnd.hxx" //add for URLDlg
55 : : #include "hlmarkwn.hxx" //add for SvxHlinkDlgMarkWnd
56 : : #include "srchxtra.hxx" //add for SvxSearchFormatDialog
57 : : #include "transfrm.hxx" //add for SvxTransformTabDialog
58 : : #include "bbdlg.hxx" //add for SvxBorderBackgroundDlg
59 : : #include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog
60 : : #include "cuitbxform.hxx" //add for FmInputRecordNoDialog
61 : : #include "optdict.hxx" //add for SvxNewDictionaryDialog
62 : : #include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog
63 : : #include "multipat.hxx" //add for SvxMultiPathDialog
64 : : #include "multifil.hxx" //add for SvxMultiFileDialog
65 : : #include "cuihyperdlg.hxx" //add for SvxHpLinkDlg
66 : : #include "cuifmsearch.hxx" //add for FmSearchDialog
67 : : #include "cuigrfflt.hxx" //add for GraphicFilterDialog
68 : : #include "cuitabarea.hxx" //add for SvxAreaTabDialog
69 : : #include "cuitabline.hxx" //add for SvxLineTabDialog
70 : : #include "measure.hxx" //add for SvxMeasureDialog
71 : : #include "connect.hxx" //add for SvxConnectionDialog
72 : : #include "dbregister.hxx" // add for DatabaseRegistrationDialog
73 : : #include "cuioptgenrl.hxx" //add for SvxGeneralTabPage
74 : : #include "optasian.hxx"
75 : : #include "insdlg.hxx"
76 : : #include "pastedlg.hxx"
77 : : #include "linkdlg.hxx"
78 : : #include "SpellDialog.hxx"
79 : : #include "cfg.hxx" //add for SvxConfigDialog
80 : : #include "numpages.hxx" // add for
81 : : #include "paragrph.hxx" //add for
82 : : #include "tabstpge.hxx" // add for
83 : : #include "textattr.hxx" // add for SvxTextAttrPage
84 : : #include "backgrnd.hxx" //add for SvxBackgroundTabPage
85 : : #include "border.hxx" //add for SvxBorderTabPage
86 : : #include "chardlg.hxx" //add for SvxCharNamePage,SvxCharEffectsPage,SvxCharPositionPage,SvxCharTwoLinesPage
87 : : #include "page.hxx" //add for SvxPageDescPage
88 : : #include "postdlg.hxx" //add for SvxPostItDialog
89 : : #include "grfpage.hxx" //add for SvxGrfCropPage
90 : : #include "scriptdlg.hxx" // for ScriptOrgDialog
91 : : #include "selector.hxx" // for SvxScriptSelectorDialog
92 : : #include "macropg.hxx" // for SvxMacroAssignDlg
93 : : #include "sdrcelldlg.hxx"
94 : : #include "newtabledlg.hxx"
95 : : #include "macroass.hxx"
96 : : #include "acccfg.hxx"
97 : : #include "insrc.hxx"
98 : : #include "passwdomdlg.hxx"
99 : : #include "hyphen.hxx"
100 : : #include "thesdlg.hxx"
101 : : #include "about.hxx"
102 : : #include "dialmgr.hxx"
103 : :
104 : : using namespace ::com::sun::star;
105 : : using namespace ::com::sun::star::frame;
106 : : using namespace ::com::sun::star::container;
107 : :
108 : : using ::com::sun::star::uno::Reference;
109 : :
110 : : using namespace svx;
111 : : // AbstractTabDialog implementations just forwards everything to the dialog
112 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl)
[ # # ]
113 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl)
[ # # ]
114 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl);
[ # # ]
115 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
[ # # ]
116 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl);
[ # # ]
117 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl);
[ # # ]
118 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl);
[ # # ]
119 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl)
[ # # ]
120 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl)
[ # # ]
121 : :
122 : 0 : AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl() \
123 : : {
124 [ # # ][ # # ]: 0 : delete pDlg;
125 [ # # ]: 0 : }
126 : 0 : short AbstractSvxZoomDialog_Impl::Execute()
127 : : {
128 : 0 : return pDlg->Execute();
129 : : }
130 : :
131 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl);
[ # # ]
132 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl);
[ # # ]
133 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl);
[ # # ]
134 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl);
[ # # ]
135 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl);
[ # # ]
136 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl);
[ # # ]
137 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl);
[ # # ]
138 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl);
[ # # ]
139 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl);
[ # # ]
140 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl);
[ # # ]
141 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl);
[ # # ]
142 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl);
[ # # ]
143 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl);
[ # # ]
144 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl);
[ # # ]
145 : :
146 : : // #i68101#
147 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl);
[ # # ]
148 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl);
[ # # ]
149 : :
150 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl);
[ # # ]
151 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl);
[ # # ]
152 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl);
[ # # ]
153 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl);
[ # # ]
154 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl);
[ # # ]
155 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl);
[ # # ]
156 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl);
[ # # ]
157 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl);
[ # # ]
158 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl);
[ # # ]
159 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl);
[ # # ]
160 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl);
[ # # ]
161 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl);
[ # # ]
162 [ # # ][ # # ]: 0 : IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl);
[ # # ]
163 : :
164 : : //////////////////////////////////////////////////////////////////////////
165 : : // VclAbstractDialog2_Impl
166 : : //////////////////////////////////////////////////////////////////////////
167 : :
168 : : // virtual
169 : 0 : VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
170 : : {
171 [ # # ][ # # ]: 0 : delete m_pDlg;
172 [ # # ]: 0 : }
173 : :
174 : : // virtual
175 : 0 : void VclAbstractDialog2_Impl::StartExecuteModal( const Link& rEndDialogHdl )
176 : : {
177 : 0 : m_aEndDlgHdl = rEndDialogHdl;
178 : : m_pDlg->StartExecuteModal(
179 [ # # ]: 0 : LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) );
180 : 0 : }
181 : :
182 : : // virtual
183 : 0 : long VclAbstractDialog2_Impl::GetResult()
184 : : {
185 : 0 : return m_pDlg->GetResult();
186 : : }
187 : :
188 : 0 : IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog*, pDlg )
189 : : {
190 : 0 : if ( pDlg != m_pDlg )
191 : : {
192 : : SAL_WARN( "cui.factory", "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
193 : : }
194 : :
195 : 0 : m_aEndDlgHdl.Call( this );
196 : 0 : m_aEndDlgHdl = Link();
197 : :
198 : 0 : return 0L;
199 : : }
200 : :
201 : : //////////////////////////////////////////////////////////////////////////
202 : :
203 : 0 : void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
204 : : {
205 : 0 : pDlg->SetCurPageId( nId );
206 : 0 : }
207 : :
208 : 0 : const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
209 : : {
210 : 0 : return pDlg->GetOutputItemSet();
211 : : }
212 : :
213 : 0 : const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
214 : : {
215 : 0 : return pDlg->GetInputRanges( pItem );
216 : : }
217 : :
218 : 0 : void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
219 : : {
220 : 0 : pDlg->SetInputSet( pInSet );
221 : 0 : }
222 : : //From class Window.
223 : 0 : void AbstractTabDialog_Impl::SetText( const XubString& rStr )
224 : : {
225 : 0 : pDlg->SetText( rStr );
226 : 0 : }
227 : 0 : String AbstractTabDialog_Impl::GetText() const
228 : : {
229 : 0 : return pDlg->GetText();
230 : : }
231 : :
232 : :
233 : 0 : const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
234 : : {
235 : 0 : return pDlg->GetOutputItemSet();
236 : : }
237 : :
238 : 0 : void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
239 : : {
240 : 0 : pDlg->SetText( rStr );
241 : 0 : }
242 : :
243 : 0 : String AbstractSfxDialog_Impl::GetText() const
244 : : {
245 : 0 : return pDlg->GetText();
246 : : }
247 : :
248 : 0 : SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
249 : : {
250 : 0 : return pDlg->GetDistributeHor();
251 : : }
252 : 0 : SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
253 : : {
254 : 0 : return pDlg->GetDistributeVer();
255 : : }
256 : :
257 : 0 : void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult)
258 : : {
259 : 0 : pDlg->EndDialog(nResult);
260 : 0 : }
261 : :
262 : 0 : void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( sal_Bool _bVal )
263 : : {
264 : 0 : pDlg->EnableRubySupport(_bVal);
265 : 0 : }
266 : :
267 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter )
268 : : {
269 : 0 : pDlg->SetByCharacter(_bByCharacter);
270 : 0 : }
271 : :
272 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( sal_Bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection )
273 : : {
274 : 0 : pDlg->SetConversionDirectionState(_bTryBothDirections, _ePrimaryConversionDirection);
275 : 0 : }
276 : :
277 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType )
278 : : {
279 : 0 : pDlg->SetConversionFormat(_eType);
280 : 0 : }
281 : :
282 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link& _rHdl )
283 : : {
284 : 0 : pDlg->SetOptionsChangedHdl(_rHdl );
285 : 0 : }
286 : :
287 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link& _rHdl )
288 : : {
289 : 0 : pDlg->SetIgnoreHdl(_rHdl );
290 : 0 : }
291 : :
292 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link& _rHdl )
293 : : {
294 : 0 : pDlg->SetIgnoreAllHdl(_rHdl );
295 : 0 : }
296 : :
297 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link& _rHdl )
298 : : {
299 : 0 : pDlg->SetChangeHdl(_rHdl );
300 : 0 : }
301 : :
302 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link& _rHdl )
303 : : {
304 : 0 : pDlg->SetChangeAllHdl(_rHdl );
305 : 0 : }
306 : :
307 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link& _rHdl )
308 : : {
309 : 0 : pDlg->SetClickByCharacterHdl(_rHdl );
310 : 0 : }
311 : :
312 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link& _rHdl )
313 : : {
314 : 0 : pDlg->SetConversionFormatChangedHdl(_rHdl );
315 : 0 : }
316 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link& _rHdl )
317 : : {
318 : 0 : pDlg->SetFindHdl(_rHdl );
319 : 0 : }
320 : :
321 : 0 : sal_Bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
322 : : {
323 : 0 : return pDlg->GetUseBothDirections();
324 : : }
325 : :
326 : 0 : editeng::HangulHanjaConversion::ConversionDirection AbstractHangulHanjaConversionDialog_Impl::GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const
327 : : {
328 : 0 : return pDlg->GetDirection( _eDefaultDirection );
329 : : }
330 : :
331 : 0 : void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
332 : : const String& _rNewString,
333 : : const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
334 : : bool _bOriginatesFromDocument
335 : : )
336 : : {
337 : 0 : pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument);
338 : 0 : }
339 : 0 : String AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
340 : : {
341 : 0 : return pDlg->GetCurrentString();
342 : : }
343 : 0 : editeng::HangulHanjaConversion::ConversionFormat AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
344 : : {
345 : 0 : return pDlg->GetConversionFormat();
346 : : }
347 : :
348 : 0 : void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
349 : : {
350 : 0 : pDlg->FocusSuggestion();
351 : 0 : }
352 : :
353 : 0 : String AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
354 : : {
355 : 0 : return pDlg->GetCurrentSuggestion();
356 : : }
357 : :
358 : 0 : String AbstractThesaurusDialog_Impl::GetWord()
359 : : {
360 : 0 : return pDlg->GetWord();
361 : : };
362 : :
363 : 0 : sal_uInt16 AbstractThesaurusDialog_Impl::GetLanguage() const
364 : : {
365 : 0 : return pDlg->GetLanguage();
366 : : };
367 : :
368 : 0 : Window* AbstractThesaurusDialog_Impl::GetWindow()
369 : : {
370 : 0 : return pDlg;
371 : : }
372 : :
373 : 0 : void AbstractHyphenWordDialog_Impl::SelLeft()
374 : : {
375 : 0 : pDlg->SelLeft();
376 : 0 : }
377 : :
378 : 0 : void AbstractHyphenWordDialog_Impl::SelRight()
379 : : {
380 : 0 : pDlg->SelRight();
381 : 0 : }
382 : :
383 : 0 : Window* AbstractHyphenWordDialog_Impl::GetWindow()
384 : : {
385 : 0 : return pDlg;
386 : : }
387 : :
388 : 0 : Reference < com::sun::star::embed::XEmbeddedObject > AbstractInsertObjectDialog_Impl::GetObject()
389 : : {
390 : 0 : return pDlg->GetObject();
391 : : }
392 : :
393 : 0 : sal_Bool AbstractInsertObjectDialog_Impl::IsCreateNew()
394 : : {
395 : 0 : return pDlg->IsCreateNew();
396 : : }
397 : :
398 : 0 : ::Reference< ::com::sun::star::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( ::rtl::OUString* pGraphicMediaType )
399 : : {
400 : 0 : return pDlg->GetIconIfIconified( pGraphicMediaType );
401 : : }
402 : :
403 : 0 : void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat, const String & rFormatName )
404 : : {
405 : 0 : pDlg->Insert( nFormat, rFormatName );
406 : 0 : }
407 : :
408 : 0 : void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const String & rObjName )
409 : : {
410 : 0 : pDlg->SetObjName( rClass, rObjName );
411 : 0 : }
412 : :
413 : 0 : sal_uLong AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper,
414 : : const DataFlavorExVector* pFormats,
415 : : const TransferableObjectDescriptor* pDesc )
416 : : {
417 : 0 : return pDlg->GetFormat( aHelper, pFormats, pDesc );
418 : : }
419 : :
420 : 0 : void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< ::com::sun::star::container::XIndexContainer>& xCols)
421 : : {
422 : 0 : pDlg->SetColumns(xCols);
423 : 0 : }
424 : :
425 : 0 : void AbstractSvxZoomDialog_Impl::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
426 : : {
427 : 0 : pDlg->SetLimits( nMin, nMax );
428 : 0 : }
429 : :
430 : 0 : void AbstractSvxZoomDialog_Impl::HideButton( sal_uInt16 nBtnId )
431 : : {
432 : 0 : pDlg->HideButton( nBtnId );
433 : 0 : }
434 : :
435 : 0 : const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
436 : : {
437 : 0 : return pDlg->GetOutputItemSet();
438 : : }
439 : :
440 : 0 : void AbstractSpellDialog_Impl::SetLanguage( sal_uInt16 nLang )
441 : : {
442 : 0 : pDlg->SetLanguage(nLang);
443 : 0 : }
444 : :
445 : 0 : sal_Bool AbstractSpellDialog_Impl::Close()
446 : : {
447 : 0 : return pDlg->Close();
448 : : }
449 : :
450 : 0 : void AbstractSpellDialog_Impl::Invalidate()
451 : : {
452 : 0 : pDlg->InvalidateDialog();
453 : 0 : }
454 : :
455 : 0 : Window* AbstractSpellDialog_Impl::GetWindow()
456 : : {
457 : 0 : return pDlg;
458 : : }
459 : :
460 : 0 : SfxBindings& AbstractSpellDialog_Impl::GetBindings()
461 : : {
462 : 0 : return pDlg->GetBindings();
463 : : }
464 : :
465 : 0 : void AbstractSearchProgress_Impl::Update()
466 : : {
467 : 0 : pDlg->Update();
468 : 0 : }
469 : :
470 : 0 : void AbstractSearchProgress_Impl::Sync()
471 : : {
472 : 0 : pDlg->Sync();
473 : 0 : }
474 : :
475 : 0 : void AbstractSearchProgress_Impl::SetFileType( const String& rType )
476 : : {
477 : 0 : pDlg->SetFileType( rType );
478 : 0 : }
479 : :
480 : 0 : void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject& rURL )
481 : : {
482 : 0 : pDlg->SetDirectory( rURL );
483 : 0 : }
484 : 0 : PLinkStub AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl()
485 : : {
486 : 0 : return SearchProgress::LinkStubCleanUpHdl;
487 : : }
488 : :
489 : 0 : void AbstractTakeProgress_Impl::Update()
490 : : {
491 : 0 : pDlg->Update();
492 : 0 : }
493 : :
494 : 0 : void AbstractTakeProgress_Impl::Sync()
495 : : {
496 : 0 : pDlg->Sync();
497 : 0 : }
498 : :
499 : 0 : void AbstractTakeProgress_Impl::SetFile( const INetURLObject& rURL )
500 : : {
501 : 0 : pDlg->SetFile( rURL );
502 : 0 : }
503 : :
504 : 0 : PLinkStub AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl()
505 : : {
506 : 0 : return TakeProgress::LinkStubCleanUpHdl;
507 : : }
508 : :
509 : 0 : String AbstractTitleDialog_Impl::GetTitle() const
510 : : {
511 : 0 : return pDlg->GetTitle();
512 : : }
513 : :
514 : 0 : sal_uLong AbstractGalleryIdDialog_Impl::GetId() const
515 : : {
516 : 0 : return pDlg->GetId();
517 : : }
518 : :
519 : 0 : void VclAbstractRefreshableDialog_Impl::Update()
520 : : {
521 : 0 : pDlg->Update();
522 : 0 : }
523 : :
524 : 0 : void VclAbstractRefreshableDialog_Impl::Sync()
525 : : {
526 : 0 : pDlg->Sync();
527 : 0 : }
528 : :
529 : 0 : String AbstractURLDlg_Impl::GetURL() const
530 : : {
531 : 0 : return pDlg->GetURL();
532 : : }
533 : :
534 : 0 : String AbstractURLDlg_Impl::GetAltText() const
535 : : {
536 : 0 : return pDlg->GetAltText();
537 : : }
538 : :
539 : 0 : String AbstractURLDlg_Impl::GetDesc() const
540 : : {
541 : 0 : return pDlg->GetDesc();
542 : : }
543 : :
544 : 0 : String AbstractURLDlg_Impl::GetTarget() const
545 : : {
546 : 0 : return pDlg->GetTarget();
547 : : }
548 : :
549 : 0 : String AbstractURLDlg_Impl::GetName() const
550 : : {
551 : 0 : return pDlg->GetName();
552 : : }
553 : :
554 : 0 : void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( sal_uInt16 nFlags )
555 : : {
556 : 0 : ((Window*)pDlg)->Hide( nFlags );
557 : 0 : }
558 : :
559 : 0 : void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size& rNewSize )
560 : : {
561 : 0 : pDlg->SetSizePixel( rNewSize );
562 : 0 : }
563 : :
564 : 0 : Size AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const
565 : : {
566 : 0 : return pDlg->GetSizePixel();
567 : : }
568 : :
569 : 0 : sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const
570 : : {
571 : 0 : return (( Window* )pDlg)->IsVisible();
572 : : }
573 : :
574 : 0 : void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( sal_uInt16 nFlags )
575 : : {
576 : 0 : (( Window* )pDlg)->Invalidate(nFlags);
577 : 0 : }
578 : :
579 : 0 : sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos )const
580 : : {
581 : 0 : return pDlg->MoveTo(aNewPos);
582 : : }
583 : :
584 : 0 : sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( sal_Bool bDoit )const
585 : : {
586 : 0 : return pDlg->ConnectToDialog(bDoit);
587 : : }
588 : :
589 : 0 : void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL )
590 : : {
591 [ # # ]: 0 : pDlg->RefreshTree(aStrURL);
592 : 0 : }
593 : :
594 : 0 : void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark )
595 : : {
596 [ # # ]: 0 : pDlg->SelectEntry(aStrMark);
597 : 0 : }
598 : :
599 : 0 : sal_uInt16 AbstractSvxHlinkDlgMarkWnd_Impl::SetError( sal_uInt16 nError)
600 : : {
601 : 0 : return pDlg->SetError(nError);
602 : : }
603 : :
604 : 0 : sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetOther()
605 : : {
606 : 0 : return pDlg->GetOther();
607 : : }
608 : :
609 : 0 : sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
610 : : {
611 : 0 : return pDlg->GetShorter();
612 : : }
613 : :
614 : 0 : sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
615 : : {
616 : 0 : return pDlg->GetLonger();
617 : : }
618 : :
619 : 0 : sal_Bool AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
620 : : {
621 : 0 : return pDlg->IsRelaxed();
622 : : }
623 : :
624 : : // AbstractSvxTransformTabDialog implementations just forwards everything to the dialog
625 : 0 : void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
626 : : {
627 : 0 : pDlg->SetCurPageId( nId );
628 : 0 : }
629 : 0 : const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
630 : : {
631 : 0 : return pDlg->GetOutputItemSet();
632 : : }
633 : : //
634 : 0 : const sal_uInt16* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
635 : : {
636 : 0 : return pDlg->GetInputRanges( pItem );
637 : : }
638 : : //
639 : 0 : void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
640 : : {
641 : 0 : pDlg->SetInputSet( pInSet );
642 : 0 : }
643 : : //From class Window.
644 : 0 : void AbstractSvxTransformTabDialog_Impl::SetText( const XubString& rStr )
645 : : {
646 : 0 : pDlg->SetText( rStr );
647 : 0 : }
648 : 0 : String AbstractSvxTransformTabDialog_Impl::GetText() const
649 : : {
650 : 0 : return pDlg->GetText();
651 : : }
652 : 0 : void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link& rLink )
653 : : {
654 : 0 : pDlg->SetValidateFramePosLink( rLink );
655 : 0 : }
656 : :
657 : : // AbstractSvxCaptionDialog implementations just forwards everything to the dialog
658 : 0 : void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId )
659 : : {
660 : 0 : pDlg->SetCurPageId( nId );
661 : 0 : }
662 : 0 : const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
663 : : {
664 : 0 : return pDlg->GetOutputItemSet();
665 : : }
666 : : //
667 : 0 : const sal_uInt16* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
668 : : {
669 : 0 : return pDlg->GetInputRanges( pItem );
670 : : }
671 : : //
672 : 0 : void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
673 : : {
674 : 0 : pDlg->SetInputSet( pInSet );
675 : 0 : }
676 : : //From class Window.
677 : 0 : void AbstractSvxCaptionDialog_Impl::SetText( const XubString& rStr )
678 : : {
679 : 0 : pDlg->SetText( rStr );
680 : 0 : }
681 : 0 : String AbstractSvxCaptionDialog_Impl::GetText() const
682 : : {
683 : 0 : return pDlg->GetText();
684 : : }
685 : 0 : void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link& rLink )
686 : : {
687 : 0 : pDlg->SetValidateFramePosLink( rLink );
688 : 0 : }
689 : :
690 : 0 : sal_Int32 AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
691 : : {
692 : 0 : return pDlg->GetTransliterationFlags();
693 : : }
694 : :
695 : 0 : void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew)
696 : : {
697 : 0 : pDlg->SetValue(nNew);
698 : 0 : }
699 : :
700 : 0 : long AbstractFmInputRecordNoDialog_Impl::GetValue() const
701 : : {
702 : 0 : return pDlg->GetValue();
703 : : }
704 : :
705 : : ::Reference<
706 : 0 : ::com::sun::star::linguistic2::XDictionary > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
707 : : {
708 : 0 : return pDlg->GetNewDictionary();
709 : : }
710 : :
711 : 0 : void AbstractSvxNameDialog_Impl::GetName( String& rName )
712 : : {
713 : 0 : pDlg->GetName( rName );
714 : 0 : }
715 : :
716 : 0 : void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately )
717 : : {
718 : 0 : aCheckNameHdl = rLink;
719 [ # # ]: 0 : if( rLink.IsSet() )
720 [ # # ]: 0 : pDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately );
721 : : else
722 [ # # ]: 0 : pDlg->SetCheckNameHdl( Link(), bCheckImmediately );
723 : 0 : }
724 : 0 : void AbstractSvxNameDialog_Impl::SetEditHelpId(const rtl::OString& aHelpId)
725 : : {
726 : 0 : pDlg->SetEditHelpId( aHelpId );
727 : 0 : }
728 : 0 : void AbstractSvxNameDialog_Impl::SetHelpId( const rtl::OString& aHelpId )
729 : : {
730 : 0 : pDlg->SetHelpId( aHelpId );
731 : 0 : }
732 : 0 : void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr )
733 : : {
734 : 0 : pDlg->SetText( rStr );
735 : 0 : }
736 : 0 : IMPL_LINK_NOARG(AbstractSvxNameDialog_Impl, CheckNameHdl)
737 : : {
738 [ # # ]: 0 : if( aCheckNameHdl.IsSet() )
739 : 0 : return aCheckNameHdl.Call(this);
740 : 0 : return 0;
741 : : }
742 : :
743 : 0 : void AbstractSvxObjectNameDialog_Impl::GetName(String& rName)
744 : : {
745 : 0 : pDlg->GetName(rName);
746 : 0 : }
747 : :
748 : 0 : void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink, bool bCheckImmediately)
749 : : {
750 : 0 : aCheckNameHdl = rLink;
751 : :
752 [ # # ]: 0 : if(rLink.IsSet())
753 : : {
754 [ # # ]: 0 : pDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl), bCheckImmediately);
755 : : }
756 : : else
757 : : {
758 [ # # ]: 0 : pDlg->SetCheckNameHdl(Link(), bCheckImmediately);
759 : : }
760 : 0 : }
761 : :
762 : 0 : IMPL_LINK_NOARG(AbstractSvxObjectNameDialog_Impl, CheckNameHdl)
763 : : {
764 [ # # ]: 0 : if(aCheckNameHdl.IsSet())
765 : : {
766 : 0 : return aCheckNameHdl.Call(this);
767 : : }
768 : :
769 : 0 : return 0;
770 : : }
771 : :
772 : 0 : void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(String& rTitle)
773 : : {
774 : 0 : pDlg->GetTitle(rTitle);
775 : 0 : }
776 : :
777 : 0 : void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(String& rDescription)
778 : : {
779 : 0 : pDlg->GetDescription(rDescription);
780 : 0 : }
781 : :
782 : 0 : void AbstractSvxMessDialog_Impl::SetButtonText( sal_uInt16 nBtnId, const String& rNewTxt )
783 : : {
784 : 0 : pDlg->SetButtonText( nBtnId, rNewTxt );
785 : 0 : }
786 : :
787 : 0 : String AbstractSvxMultiPathDialog_Impl::GetPath() const
788 : : {
789 : 0 : return pDlg->GetPath();
790 : : }
791 : :
792 : 0 : void AbstractSvxMultiPathDialog_Impl::SetPath( const String& rPath )
793 : : {
794 : 0 : pDlg->SetPath( rPath );
795 : 0 : }
796 : :
797 : 0 : void AbstractSvxMultiPathDialog_Impl::EnableRadioButtonMode()
798 : : {
799 : 0 : pDlg->EnableRadioButtonMode();
800 : 0 : }
801 : :
802 : 0 : void AbstractSvxMultiPathDialog_Impl::SetTitle( const String& rNewTitle )
803 : : {
804 : 0 : pDlg->SetText( rNewTitle );
805 : 0 : }
806 : :
807 : 0 : String AbstractSvxMultiFileDialog_Impl::GetPath() const
808 : : {
809 : 0 : return pDlg->GetPath();
810 : : }
811 : :
812 : 0 : void AbstractSvxMultiFileDialog_Impl::SetPath( const String& rPath )
813 : : {
814 : 0 : pDlg->SetPath( rPath );
815 : 0 : }
816 : :
817 : 0 : String AbstractSvxMultiFileDialog_Impl::GetFiles() const
818 : : {
819 : 0 : return pDlg->GetFiles();
820 : : }
821 : :
822 : 0 : void AbstractSvxMultiFileDialog_Impl::SetFiles( const String& rPath )
823 : : {
824 : 0 : pDlg->SetFiles( rPath );
825 : 0 : }
826 : :
827 : 0 : void AbstractSvxMultiFileDialog_Impl::SetClassPathMode()
828 : : {
829 : 0 : pDlg->SetClassPathMode();
830 : 0 : }
831 : :
832 : 0 : void AbstractSvxMultiFileDialog_Impl::EnableRadioButtonMode()
833 : : {
834 : 0 : pDlg->EnableRadioButtonMode();
835 : 0 : }
836 : :
837 : 0 : void AbstractSvxMultiFileDialog_Impl::SetTitle( const String& rNewTitle )
838 : : {
839 : 0 : pDlg->SetText( rNewTitle );
840 : 0 : }
841 : :
842 : 0 : void AbstractSvxMultiFileDialog_Impl::SetHelpId( const rtl::OString& aHelpId )
843 : : {
844 : 0 : pDlg->SetHelpId( aHelpId );
845 : 0 : }
846 : :
847 : 0 : Window * AbstractSvxHpLinkDlg_Impl::GetWindow()
848 : : {
849 : 0 : return (Window *)pDlg;
850 : : }
851 : :
852 : 0 : sal_Bool AbstractSvxHpLinkDlg_Impl::QueryClose()
853 : : {
854 : 0 : return pDlg->QueryClose();
855 : : }
856 : :
857 : :
858 : 0 : void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk)
859 : : {
860 : 0 : pDlg->SetFoundHandler(lnk);
861 : 0 : }
862 : 0 : void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk)
863 : : {
864 : 0 : pDlg->SetCanceledNotFoundHdl(lnk);
865 : 0 : }
866 : 0 : void AbstractFmSearchDialog_Impl::SetActiveField(const String& strField)
867 : : {
868 : 0 : pDlg->SetActiveField(strField);
869 : 0 : }
870 : :
871 : 0 : Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY )
872 : : {
873 : 0 : return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY );
874 : : }
875 : :
876 : : // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
877 : 0 : void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
878 : : {
879 : 0 : pDlg->SetCurPageId( nId );
880 : 0 : }
881 : :
882 : 0 : const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
883 : : {
884 : 0 : return pDlg->GetOutputItemSet();
885 : : }
886 : :
887 : 0 : const sal_uInt16* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
888 : : {
889 : 0 : return pDlg->GetInputRanges( pItem );
890 : : }
891 : :
892 : 0 : void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
893 : : {
894 : 0 : pDlg->SetInputSet( pInSet );
895 : 0 : }
896 : : //From class Window.
897 : 0 : void AbstractSvxAreaTabDialog_Impl::SetText( const XubString& rStr )
898 : : {
899 : 0 : pDlg->SetText( rStr );
900 : 0 : }
901 : 0 : String AbstractSvxAreaTabDialog_Impl::GetText() const
902 : : {
903 : 0 : return pDlg->GetText();
904 : : }
905 : :
906 : 0 : void AbstractSvxPostItDialog_Impl::SetText( const XubString& rStr )
907 : : {
908 : 0 : pDlg->SetText( rStr );
909 : 0 : }
910 : 0 : const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
911 : : {
912 : 0 : return pDlg->GetOutputItemSet();
913 : : }
914 : 0 : void AbstractSvxPostItDialog_Impl::EnableTravel(sal_Bool bNext, sal_Bool bPrev)
915 : : {
916 : 0 : pDlg->EnableTravel( bNext, bPrev );
917 : 0 : }
918 : 0 : String AbstractSvxPostItDialog_Impl::GetNote()
919 : : {
920 : 0 : return pDlg->GetNote();
921 : : }
922 : 0 : void AbstractSvxPostItDialog_Impl::SetNote(const String& rTxt)
923 : : {
924 : 0 : pDlg->SetNote( rTxt );
925 : 0 : }
926 : 0 : void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const String& rAuthor, const String& rDate)
927 : : {
928 : 0 : pDlg->ShowLastAuthor( rAuthor, rDate );
929 : 0 : }
930 : 0 : void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
931 : : {
932 : 0 : pDlg->DontChangeAuthor();
933 : 0 : }
934 : 0 : void AbstractSvxPostItDialog_Impl::HideAuthor()
935 : : {
936 : 0 : pDlg->HideAuthor();
937 : 0 : }
938 : 0 : void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(sal_Bool bDisable)
939 : : {
940 : 0 : pDlg->SetReadonlyPostIt( bDisable );
941 : 0 : }
942 : 0 : sal_Bool AbstractSvxPostItDialog_Impl::IsOkEnabled() const
943 : : {
944 : 0 : return pDlg->IsOkEnabled();
945 : : }
946 : 0 : void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link& rLink )
947 : : {
948 : 0 : aNextHdl = rLink;
949 [ # # ]: 0 : if( rLink.IsSet() )
950 : 0 : pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) );
951 : : else
952 : 0 : pDlg->SetNextHdl( Link() );
953 : 0 : }
954 : 0 : void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink )
955 : : {
956 : 0 : aPrevHdl = rLink;
957 [ # # ]: 0 : if( rLink.IsSet() )
958 : 0 : pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) );
959 : : else
960 : 0 : pDlg->SetPrevHdl( Link() );
961 : 0 : }
962 : 0 : IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, NextHdl)
963 : : {
964 [ # # ]: 0 : if( aNextHdl.IsSet() )
965 : 0 : aNextHdl.Call(this);
966 : 0 : return 0;
967 : : }
968 : 0 : IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, PrevHdl)
969 : : {
970 [ # # ]: 0 : if( aPrevHdl.IsSet() )
971 : 0 : aPrevHdl.Call(this);
972 : 0 : return 0;
973 : : }
974 : 0 : Window * AbstractSvxPostItDialog_Impl::GetWindow()
975 : : {
976 : 0 : return (Window *)pDlg;
977 : : }
978 : :
979 : 0 : String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const
980 : : {
981 : 0 : return pDlg->GetPasswordToOpen();
982 : : }
983 : 0 : String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const
984 : : {
985 : 0 : return pDlg->GetPasswordToModify();
986 : : }
987 : 0 : bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const
988 : : {
989 : 0 : return pDlg->IsRecommendToOpenReadonly();
990 : : }
991 : :
992 : : // Create dialogs with simplest interface
993 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, sal_uInt32 nResId )
994 : : {
995 : 0 : Dialog* pDlg=NULL;
996 [ # # # ]: 0 : switch ( nResId )
997 : : {
998 : : case RID_DEFAULTABOUT:
999 : : {
1000 [ # # ][ # # ]: 0 : pDlg = new AboutDialog( pParent, CUI_RES( (sal_uInt16) nResId ) );
1001 : 0 : break;
1002 : : }
1003 : : case SID_OPTIONS_TREEDIALOG :
1004 : : case SID_OPTIONS_DATABASES :
1005 : : case SID_LANGUAGE_OPTIONS :
1006 : : {
1007 : 0 : bool bActivateLastSelection = false;
1008 [ # # ]: 0 : if (nResId == SID_OPTIONS_TREEDIALOG)
1009 : 0 : bActivateLastSelection = true;
1010 : 0 : Reference< frame::XFrame > xFrame;
1011 [ # # ][ # # ]: 0 : OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, xFrame, bActivateLastSelection );
1012 [ # # ]: 0 : if (nResId == SID_OPTIONS_DATABASES)
1013 : : {
1014 [ # # ]: 0 : pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
1015 : : }
1016 [ # # ]: 0 : else if (nResId == SID_LANGUAGE_OPTIONS)
1017 : : {
1018 : : //open the tab page "tools/options/languages"
1019 [ # # ]: 0 : pOptDlg->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE);
1020 : : }
1021 : 0 : pDlg = pOptDlg;
1022 : : }
1023 : 0 : break;
1024 : : default:
1025 : 0 : break;
1026 : : }
1027 : :
1028 [ # # ]: 0 : if ( pDlg )
1029 [ # # ]: 0 : return new VclAbstractDialog_Impl( pDlg );
1030 : 0 : return 0;
1031 : : }
1032 : :
1033 : : // dialogs that use SfxBindings
1034 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* /*pParent*/, const SfxBindings&, sal_uInt32 )
1035 : : {
1036 : 0 : return 0;
1037 : : }
1038 : :
1039 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateFrameDialog(
1040 : : Window* pParent, const Reference< frame::XFrame >& rxFrame,
1041 : : sal_uInt32 nResId, const String& rParameter )
1042 : : {
1043 : 0 : Dialog* pDlg = NULL;
1044 [ # # ][ # # ]: 0 : if ( SID_OPTIONS_TREEDIALOG == nResId || SID_OPTIONS_DATABASES == nResId )
1045 : : {
1046 : : // only activate last page if we dont want to activate a special page
1047 [ # # ][ # # ]: 0 : bool bActivateLastSelection = ( nResId != SID_OPTIONS_DATABASES && rParameter.Len() == 0 );
1048 [ # # ]: 0 : OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, rxFrame, bActivateLastSelection );
1049 [ # # ]: 0 : if ( nResId == SID_OPTIONS_DATABASES )
1050 : 0 : pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
1051 [ # # ]: 0 : else if ( rParameter.Len() > 0 )
1052 : 0 : pOptDlg->ActivatePage( rParameter );
1053 : 0 : pDlg = pOptDlg;
1054 : : }
1055 : :
1056 [ # # ]: 0 : if ( pDlg )
1057 [ # # ]: 0 : return new VclAbstractDialog_Impl( pDlg );
1058 : : else
1059 : 0 : return NULL;
1060 : : }
1061 : :
1062 : : // TabDialog outside the drawing layer
1063 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
1064 : : Window* pParent,
1065 : : const SfxItemSet* pAttrSet,
1066 : : SfxViewFrame* ,
1067 : : bool /*bEditFmt*/,
1068 : : const String * )
1069 : : {
1070 : 0 : SfxTabDialog* pDlg=NULL;
1071 [ # # # ]: 0 : switch ( nResId )
1072 : : {
1073 : : case RID_OFA_AUTOCORR_DLG :
1074 [ # # ]: 0 : pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
1075 : 0 : break;
1076 : : case RID_SVXDLG_CUSTOMIZE :
1077 [ # # ]: 0 : pDlg = new SvxConfigDialog( pParent, pAttrSet );
1078 : 0 : break;
1079 : : default:
1080 : 0 : break;
1081 : : }
1082 : :
1083 [ # # ]: 0 : if ( pDlg )
1084 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1085 : 0 : return 0;
1086 : : }
1087 : :
1088 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
1089 : : Window* pParent,
1090 : : const SfxItemSet* pAttrSet,
1091 : : const Reference< frame::XFrame >& xViewFrame,
1092 : : bool /*bEditFmt*/,
1093 : : const String * )
1094 : : {
1095 : 0 : SfxTabDialog* pDlg=NULL;
1096 [ # # # ]: 0 : switch ( nResId )
1097 : : {
1098 : : case RID_OFA_AUTOCORR_DLG :
1099 [ # # ]: 0 : pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
1100 : 0 : break;
1101 : : case RID_SVXDLG_CUSTOMIZE :
1102 : : {
1103 [ # # ]: 0 : SvxConfigDialog* pDlg1 = new SvxConfigDialog( pParent, pAttrSet );
1104 : 0 : pDlg1->SetFrame(xViewFrame);
1105 : 0 : pDlg = (SfxTabDialog*)pDlg1;
1106 : : }
1107 : 0 : break;
1108 : : default:
1109 : 0 : break;
1110 : : }
1111 : :
1112 [ # # ]: 0 : if ( pDlg )
1113 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1114 : 0 : return 0;
1115 : : }
1116 : :
1117 : : // TabDialog that use functionality of the drawing layer
1118 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTextTabDialog( Window* pParent,
1119 : : const SfxItemSet* pAttrSet,
1120 : : SdrView* pView,
1121 : : SdrModel* )
1122 : : {
1123 [ # # ]: 0 : SfxTabDialog* pDlg = new SvxTextTabDialog( pParent, pAttrSet, pView );
1124 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1125 : : }
1126 : :
1127 : : // TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog
1128 : 0 : AbstractSvxCaptionDialog* AbstractDialogFactory_Impl::CreateCaptionDialog( Window* pParent,
1129 : : const SdrView* pView,
1130 : : sal_uInt16 nAnchorTypes )
1131 : : {
1132 [ # # ]: 0 : SvxCaptionTabDialog* pDlg = new SvxCaptionTabDialog( pParent, pView, nAnchorTypes );
1133 [ # # ]: 0 : return new AbstractSvxCaptionDialog_Impl( pDlg );
1134 : : }
1135 : :
1136 : 0 : AbstractSvxDistributeDialog* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window* pParent,
1137 : : const SfxItemSet& rAttr,
1138 : : SvxDistributeHorizontal eHor ,
1139 : : SvxDistributeVertical eVer)
1140 : : {
1141 [ # # ]: 0 : SvxDistributeDialog* pDlg = new SvxDistributeDialog( pParent, rAttr, eHor, eVer);
1142 [ # # ]: 0 : return new AbstractSvxDistributeDialog_Impl( pDlg );
1143 : : }
1144 : :
1145 : 0 : AbstractHangulHanjaConversionDialog* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window* pParent,
1146 : : editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection )
1147 : : {
1148 [ # # ]: 0 : HangulHanjaConversionDialog* pDlg = new HangulHanjaConversionDialog( pParent, _ePrimaryDirection);
1149 [ # # ]: 0 : return new AbstractHangulHanjaConversionDialog_Impl( pDlg );
1150 : : }
1151 : :
1152 : 0 : AbstractThesaurusDialog* AbstractDialogFactory_Impl::CreateThesaurusDialog( Window* pParent,
1153 : : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus,
1154 : : const String &rWord, sal_Int16 nLanguage )
1155 : : {
1156 [ # # ][ # # ]: 0 : SvxThesaurusDialog* pDlg = new SvxThesaurusDialog( pParent, xThesaurus, rWord, nLanguage );
1157 [ # # ]: 0 : return new AbstractThesaurusDialog_Impl( pDlg );
1158 : : }
1159 : :
1160 : 0 : AbstractHyphenWordDialog* AbstractDialogFactory_Impl::CreateHyphenWordDialog( Window* pParent,
1161 : : const String &rWord, LanguageType nLang,
1162 : : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > &xHyphen,
1163 : : SvxSpellWrapper* pWrapper )
1164 : : {
1165 [ # # ]: 0 : SvxHyphenWordDialog* pDlg = new SvxHyphenWordDialog( rWord, nLang, pParent, xHyphen, pWrapper );
1166 [ # # ]: 0 : return new AbstractHyphenWordDialog_Impl( pDlg );
1167 : : }
1168 : :
1169 : 0 : AbstractFmShowColsDialog * AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window* pParent )
1170 : : {
1171 [ # # ]: 0 : FmShowColsDialog* pDlg = new FmShowColsDialog( pParent);
1172 [ # # ]: 0 : return new AbstractFmShowColsDialog_Impl( pDlg );
1173 : : }
1174 : 0 : AbstractSvxZoomDialog * AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window* pParent, //add for SvxZoomDialog
1175 : : const SfxItemSet& rCoreSet)
1176 : : {
1177 [ # # ]: 0 : SvxZoomDialog* pDlg = new SvxZoomDialog( pParent, rCoreSet);
1178 [ # # ]: 0 : return new AbstractSvxZoomDialog_Impl( pDlg );
1179 : : }
1180 : :
1181 : 0 : AbstractSpellDialog * AbstractDialogFactory_Impl::CreateSvxSpellDialog(
1182 : : Window* pParent,
1183 : : SfxBindings* pBindings,
1184 : : svx::SpellDialogChildWindow* pSpellChildWindow )
1185 : : {
1186 [ # # ]: 0 : svx::SpellDialog* pDlg = new svx::SpellDialog(pSpellChildWindow, pParent, pBindings);
1187 [ # # ]: 0 : return new AbstractSpellDialog_Impl(pDlg);
1188 : : }
1189 : :
1190 : 0 : VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window* pParent, GalleryTheme* pThm )
1191 : : {
1192 [ # # ]: 0 : Dialog* pDlg = new ActualizeProgress( pParent, pThm);
1193 [ # # ]: 0 : return new VclAbstractRefreshableDialog_Impl( pDlg );
1194 : : }
1195 : :
1196 : 0 : AbstractSearchProgress * AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window* pParent, //add for SearchProgress
1197 : : const INetURLObject& rStartURL )
1198 : : {
1199 [ # # ]: 0 : SearchProgress* pDlg = new SearchProgress( pParent, rStartURL);
1200 [ # # ]: 0 : return new AbstractSearchProgress_Impl( pDlg );
1201 : : }
1202 : :
1203 : 0 : AbstractTakeProgress * AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window* pParent )
1204 : : {
1205 [ # # ]: 0 : TakeProgress* pDlg = new TakeProgress( pParent );
1206 [ # # ]: 0 : return new AbstractTakeProgress_Impl( pDlg );
1207 : : }
1208 : :
1209 : : VclAbstractDialog*
1210 : 3 : AbstractDialogFactory_Impl::CreateScriptErrorDialog(
1211 : : Window* pParent, ::com::sun::star::uno::Any aException )
1212 : : {
1213 [ + - ][ + - ]: 3 : return new SvxScriptErrorDialog( pParent, aException );
1214 : : }
1215 : :
1216 : : AbstractScriptSelectorDialog*
1217 : 0 : AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
1218 : : Window* pParent, sal_Bool bShowSlots, const Reference< frame::XFrame >& _rxFrame )
1219 : : {
1220 : 0 : SvxScriptSelectorDialog* pDlg = NULL;
1221 : :
1222 [ # # ]: 0 : pDlg = new SvxScriptSelectorDialog( pParent, bShowSlots, _rxFrame );
1223 : :
1224 [ # # ]: 0 : if (pDlg)
1225 : : {
1226 [ # # ]: 0 : return new AbstractScriptSelectorDialog_Impl( pDlg );
1227 : : }
1228 : 0 : return 0;
1229 : : }
1230 : :
1231 : 0 : String AbstractScriptSelectorDialog_Impl::GetScriptURL() const
1232 : : {
1233 [ # # ]: 0 : if (pDlg)
1234 : 0 : return pDlg->GetScriptURL();
1235 : 0 : return String();
1236 : : }
1237 : :
1238 : 0 : void AbstractScriptSelectorDialog_Impl::SetRunLabel()
1239 : : {
1240 [ # # ]: 0 : if (pDlg)
1241 : 0 : pDlg->SetRunLabel();
1242 : 0 : return;
1243 : : }
1244 : :
1245 : 0 : VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window* pParent, //add for SvxScriptOrgDialog
1246 : : const String& rLanguage)
1247 : : {
1248 : 0 : Dialog* pDlg=NULL;
1249 : :
1250 [ # # ][ # # ]: 0 : pDlg = new SvxScriptOrgDialog( pParent, rLanguage);
1251 : :
1252 [ # # ]: 0 : if ( pDlg )
1253 [ # # ]: 0 : return new VclAbstractDialog_Impl( pDlg );
1254 : 0 : return 0;
1255 : : }
1256 : :
1257 : 0 : AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( Window* pParent, //add for TitleDialog
1258 : : const String& rOldText)
1259 : : {
1260 [ # # ]: 0 : TitleDialog* pDlg = new TitleDialog( pParent, rOldText);
1261 [ # # ]: 0 : return new AbstractTitleDialog_Impl( pDlg );
1262 : : }
1263 : :
1264 : 0 : AbstractGalleryIdDialog * AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window* pParent, //add for SvxZoomDialog
1265 : : GalleryTheme* pThm )
1266 : : {
1267 [ # # ]: 0 : GalleryIdDialog* pDlg = new GalleryIdDialog( pParent, pThm);
1268 [ # # ]: 0 : return new AbstractGalleryIdDialog_Impl( pDlg );
1269 : : }
1270 : :
1271 : 0 : VclAbstractDialog2 * AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window* pParent, //add for GalleryThemeProperties
1272 : : ExchangeData* pData,
1273 : : SfxItemSet* pItemSet)
1274 : : {
1275 [ # # ]: 0 : Dialog* pDlg = new GalleryThemeProperties( pParent, pData, pItemSet);
1276 [ # # ]: 0 : return new VclAbstractDialog2_Impl( pDlg );
1277 : : }
1278 : :
1279 : 0 : AbstractURLDlg * AbstractDialogFactory_Impl::CreateURLDialog( Window* pParent, //add for URLDlg
1280 : : const String& rURL, const String& rAltText, const String& rDescription,
1281 : : const String& rTarget, const String& rName,
1282 : : TargetList& rTargetList )
1283 : : {
1284 [ # # ]: 0 : URLDlg* pDlg = new URLDlg( pParent, rURL, rAltText, rDescription, rTarget, rName, rTargetList);
1285 [ # # ]: 0 : return new AbstractURLDlg_Impl( pDlg );
1286 : : }
1287 : :
1288 : 0 : AbstractSvxHlinkDlgMarkWnd* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId )
1289 : : {
1290 : 0 : SvxHlinkDlgMarkWnd* pDlg=NULL;
1291 [ # # ]: 0 : switch ( nResId )
1292 : : {
1293 : : case RID_SVXFLOAT_HYPERLINK_MARKWND :
1294 [ # # ]: 0 : pDlg = new SvxHlinkDlgMarkWnd( pParent );
1295 : 0 : break;
1296 : : default:
1297 : 0 : break;
1298 : : }
1299 : :
1300 [ # # ]: 0 : if ( pDlg )
1301 [ # # ]: 0 : return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg );
1302 : 0 : return 0;
1303 : : }
1304 : :
1305 : 0 : SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32 nResId,
1306 : : Window* pParent,
1307 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& ,
1308 : : const SfxItemSet* pAttrSet )
1309 : : {
1310 : 0 : SfxModalDialog* pDlg=NULL;
1311 [ # # ]: 0 : switch ( nResId )
1312 : : {
1313 : : case RID_SVXDLG_CHARMAP :
1314 [ # # ]: 0 : pDlg = new SvxCharacterMap( pParent, sal_True, pAttrSet );
1315 : 0 : break;
1316 : : default:
1317 : 0 : break;
1318 : : }
1319 : :
1320 [ # # ]: 0 : if ( pDlg )
1321 [ # # ]: 0 : return new AbstractSfxDialog_Impl( pDlg );
1322 : 0 : return 0;
1323 : : }
1324 : :
1325 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabItemDialog( Window* pParent,
1326 : : const SfxItemSet& rSet,
1327 : : sal_uInt32 nResId)
1328 : : {
1329 : 0 : SfxTabDialog* pDlg=NULL;
1330 [ # # ]: 0 : switch ( nResId )
1331 : : {
1332 : : case RID_SVXDLG_SEARCHFORMAT :
1333 [ # # ]: 0 : pDlg = new SvxSearchFormatDialog( pParent, rSet );
1334 : 0 : break;
1335 : : default:
1336 : 0 : break;
1337 : : }
1338 : :
1339 [ # # ]: 0 : if ( pDlg )
1340 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1341 : 0 : return 0;
1342 : : }
1343 : :
1344 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window* pParent,
1345 : : SearchAttrItemList& rLst,
1346 : : const sal_uInt16* pWhRanges )
1347 : : {
1348 [ # # ]: 0 : Dialog* pDlg = new SvxSearchAttributeDialog( pParent, rLst, pWhRanges);
1349 [ # # ]: 0 : return new VclAbstractDialog_Impl( pDlg );
1350 : : }
1351 : :
1352 : 0 : AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window* pParent,
1353 : : sal_Bool bRelax,
1354 : : sal_uInt16 nOther,
1355 : : sal_uInt16 nShorter,
1356 : : sal_uInt16 nLonger)
1357 : : {
1358 [ # # ]: 0 : SvxSearchSimilarityDialog* pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger );
1359 [ # # ]: 0 : if ( pDlg )
1360 [ # # ]: 0 : return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
1361 : 0 : return NULL;
1362 : : }
1363 : :
1364 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window* pParent,
1365 : : const SfxItemSet& rCoreSet,
1366 : : sal_Bool bEnableSelector)
1367 : : {
1368 [ # # ]: 0 : SfxTabDialog* pDlg = new SvxBorderBackgroundDlg( pParent, rCoreSet, bEnableSelector);
1369 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1370 : : }
1371 : :
1372 : 0 : AbstractSvxTransformTabDialog* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window* pParent,
1373 : : const SfxItemSet* pAttr,
1374 : : const SdrView* pView,
1375 : : sal_uInt16 nAnchorTypes )
1376 : : {
1377 [ # # ]: 0 : SvxTransformTabDialog* pDlg = new SvxTransformTabDialog( pParent, pAttr,pView, nAnchorTypes);
1378 [ # # ]: 0 : return new AbstractSvxTransformTabDialog_Impl( pDlg );
1379 : : }
1380 : :
1381 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window* pParent,
1382 : : const SfxItemSet* pAttr,
1383 : : const SdrView* pSdrView,
1384 : : sal_uInt32 nResId,
1385 : : bool bSizeTabPage
1386 : : )
1387 : : {
1388 : 0 : SfxTabDialog* pDlg=NULL;
1389 [ # # # ]: 0 : switch ( nResId )
1390 : : {
1391 : : case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE :
1392 : : {
1393 [ # # ][ # # ]: 0 : pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
1394 : 0 : pDlg->RemoveTabPage( RID_SVXPAGE_ANGLE );
1395 : 0 : pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
1396 : : }
1397 : 0 : break;
1398 : : case RID_SCH_TransformTabDLG_SVXPAGE_SLANT:
1399 : : {
1400 [ # # ][ # # ]: 0 : pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
1401 : 0 : pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
1402 : : }
1403 : 0 : break;
1404 : : default:
1405 : 0 : break;
1406 : : }
1407 : :
1408 [ # # ]: 0 : if ( pDlg )
1409 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1410 : 0 : return 0;
1411 : : }
1412 : :
1413 : 0 : AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window* pParent,
1414 : : const SfxItemSet& rOptionsSet,
1415 : : sal_Int32 nInitialFlags)
1416 : : {
1417 [ # # ]: 0 : SvxJSearchOptionsDialog* pDlg = new SvxJSearchOptionsDialog( pParent, rOptionsSet, nInitialFlags );
1418 [ # # ]: 0 : return new AbstractSvxJSearchOptionsDialog_Impl( pDlg );
1419 : : }
1420 : :
1421 : 0 : AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window* pParent )
1422 : : {
1423 [ # # ]: 0 : FmInputRecordNoDialog* pDlg = new FmInputRecordNoDialog( pParent );
1424 [ # # ]: 0 : return new AbstractFmInputRecordNoDialog_Impl( pDlg );
1425 : : }
1426 : :
1427 : 0 : AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window* pParent,
1428 : : ::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl,
1429 : : sal_uInt32 nResId )
1430 : : {
1431 : 0 : SvxNewDictionaryDialog* pDlg=NULL;
1432 [ # # ]: 0 : switch ( nResId )
1433 : : {
1434 : : case RID_SFXDLG_NEWDICT :
1435 [ # # ]: 0 : pDlg = new SvxNewDictionaryDialog( pParent, xSpl );
1436 : 0 : break;
1437 : : default:
1438 : 0 : break;
1439 : : }
1440 : :
1441 [ # # ]: 0 : if ( pDlg )
1442 [ # # ]: 0 : return new AbstractSvxNewDictionaryDialog_Impl( pDlg );
1443 : 0 : return 0;
1444 : : }
1445 : :
1446 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window* pParent,
1447 : : const String& rName,
1448 : : ::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
1449 : : sal_uInt32 nResId )
1450 : : {
1451 : 0 : Dialog* pDlg=NULL;
1452 [ # # ]: 0 : switch ( nResId )
1453 : : {
1454 : : case RID_SFXDLG_EDITDICT :
1455 [ # # ]: 0 : pDlg = new SvxEditDictionaryDialog( pParent, rName, xSpl );
1456 : 0 : break;
1457 : : default:
1458 : 0 : break;
1459 : : }
1460 : :
1461 [ # # ]: 0 : if ( pDlg )
1462 [ # # ]: 0 : return new VclAbstractDialog_Impl( pDlg );
1463 : 0 : return 0;
1464 : : }
1465 : :
1466 : 0 : AbstractSvxNameDialog * AbstractDialogFactory_Impl::CreateSvxNameDialog( Window* pParent,
1467 : : const String& rName, const String& rDesc )
1468 : : {
1469 [ # # ]: 0 : SvxNameDialog* pDlg = new SvxNameDialog( pParent, rName, rDesc );
1470 [ # # ]: 0 : return new AbstractSvxNameDialog_Impl( pDlg );
1471 : : }
1472 : :
1473 : 0 : AbstractSvxObjectNameDialog* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window* pParent, const String& rName )
1474 : : {
1475 [ # # ][ # # ]: 0 : return new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent, rName));
1476 : : }
1477 : :
1478 : 0 : AbstractSvxObjectTitleDescDialog* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window* pParent, const String& rTitle, const String& rDescription)
1479 : : {
1480 [ # # ][ # # ]: 0 : return new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription));
1481 : : }
1482 : :
1483 : 0 : AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId,
1484 : : const String& rText, const String& rDesc, Image* pImg )
1485 : : {
1486 : 0 : SvxMessDialog* pDlg=NULL;
1487 [ # # ]: 0 : switch ( nResId )
1488 : : {
1489 : : case RID_SVXDLG_MESSBOX :
1490 [ # # ]: 0 : pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
1491 : 0 : break;
1492 : : default:
1493 : 0 : break;
1494 : : }
1495 : :
1496 [ # # ]: 0 : if ( pDlg )
1497 [ # # ]: 0 : return new AbstractSvxMessDialog_Impl( pDlg );
1498 : 0 : return 0;
1499 : : }
1500 : :
1501 : 0 : AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed )
1502 : : {
1503 [ # # ]: 0 : SvxMultiPathDialog* pDlg = new SvxMultiPathDialog( pParent, bEmptyAllowed );
1504 [ # # ]: 0 : return new AbstractSvxMultiPathDialog_Impl( pDlg );
1505 : : }
1506 : :
1507 : 0 : AbstractSvxMultiFileDialog * AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window* pParent, sal_Bool bEmptyAllowed )
1508 : : {
1509 [ # # ]: 0 : SvxMultiFileDialog* pDlg = new SvxMultiFileDialog( pParent, bEmptyAllowed );
1510 [ # # ]: 0 : return new AbstractSvxMultiFileDialog_Impl( pDlg );
1511 : : }
1512 : :
1513 : 0 : AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window* pParent, //add for SvxMultiFileDialog
1514 : : SfxBindings* pBindings,
1515 : : sal_uInt32 nResId)
1516 : : {
1517 : 0 : SvxHpLinkDlg* pDlg=NULL;
1518 [ # # ]: 0 : switch ( nResId )
1519 : : {
1520 : : case SID_HYPERLINK_DIALOG :
1521 [ # # ]: 0 : pDlg = new SvxHpLinkDlg( pParent, pBindings );
1522 : 0 : break;
1523 : : default:
1524 : 0 : break;
1525 : : }
1526 : :
1527 [ # # ]: 0 : if ( pDlg )
1528 [ # # ]: 0 : return new AbstractSvxHpLinkDlg_Impl( pDlg );
1529 : 0 : return 0;
1530 : : }
1531 : :
1532 : 0 : AbstractFmSearchDialog* AbstractDialogFactory_Impl::CreateFmSearchDialog(Window* pParent, //add for FmSearchDialog
1533 : : const String& strInitialText,
1534 : : const ::std::vector< String >& _rContexts,
1535 : : sal_Int16 nInitialContext,
1536 : : const Link& lnkContextSupplier)
1537 : : {
1538 [ # # ]: 0 : FmSearchDialog* pDlg = new FmSearchDialog( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier );
1539 [ # # ]: 0 : if ( pDlg )
1540 [ # # ]: 0 : return new AbstractFmSearchDialog_Impl( pDlg );
1541 : 0 : return 0;
1542 : : }
1543 : :
1544 : 0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window* pParent, //add for GraphicFilterEmboss
1545 : : const Graphic& rGraphic,
1546 : : RECT_POINT eLightSource,
1547 : : sal_uInt32)
1548 : : {
1549 [ # # ]: 0 : GraphicFilterDialog* pDlg = new GraphicFilterEmboss( pParent, rGraphic, eLightSource );
1550 [ # # ]: 0 : return new AbstractGraphicFilterDialog_Impl( pDlg );
1551 : : }
1552 : :
1553 : 0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window* pParent,
1554 : : const Graphic& rGraphic,
1555 : : sal_uInt16 nCount,
1556 : : sal_uInt32 nResId)
1557 : : {
1558 : 0 : GraphicFilterDialog* pDlg=NULL;
1559 [ # # # ]: 0 : switch ( nResId )
1560 : : {
1561 : : case RID_SVX_GRFFILTER_DLG_POSTER :
1562 [ # # ]: 0 : pDlg = new GraphicFilterPoster( pParent, rGraphic, nCount );
1563 : 0 : break;
1564 : : case RID_SVX_GRFFILTER_DLG_SEPIA :
1565 [ # # ]: 0 : pDlg = new GraphicFilterSepia( pParent, rGraphic, nCount );
1566 : 0 : break;
1567 : :
1568 : : default:
1569 : 0 : break;
1570 : : }
1571 : :
1572 [ # # ]: 0 : if ( pDlg )
1573 [ # # ]: 0 : return new AbstractGraphicFilterDialog_Impl( pDlg );
1574 : 0 : return 0;
1575 : : }
1576 : :
1577 : 0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSmooth ( Window* pParent,
1578 : : const Graphic& rGraphic, double nRadius, sal_uInt32)
1579 : : {
1580 [ # # ]: 0 : GraphicFilterDialog* pDlg = new GraphicFilterSmooth( pParent, rGraphic, nRadius );
1581 [ # # ]: 0 : return new AbstractGraphicFilterDialog_Impl( pDlg );
1582 : : }
1583 : :
1584 : 0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent, //add for GraphicFilterSolarize
1585 : : const Graphic& rGraphic, sal_uInt8 nGreyThreshold, sal_Bool bInvert, sal_uInt32 )
1586 : : {
1587 [ # # ]: 0 : GraphicFilterDialog* pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert );
1588 [ # # ]: 0 : return new AbstractGraphicFilterDialog_Impl( pDlg );
1589 : : }
1590 : :
1591 : 0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent, //add for GraphicFilterMosaic
1592 : : const Graphic& rGraphic, sal_uInt16 nTileWidth, sal_uInt16 nTileHeight,
1593 : : sal_Bool bEnhanceEdges, sal_uInt32 nResId)
1594 : : {
1595 : 0 : GraphicFilterDialog* pDlg=NULL;
1596 [ # # ]: 0 : switch ( nResId )
1597 : : {
1598 : : case RID_SVX_GRFFILTER_DLG_MOSAIC :
1599 [ # # ]: 0 : pDlg = new GraphicFilterMosaic( pParent, rGraphic, nTileWidth, nTileHeight, bEnhanceEdges );
1600 : 0 : break;
1601 : : default:
1602 : 0 : break;
1603 : : }
1604 : :
1605 [ # # ]: 0 : if ( pDlg )
1606 [ # # ]: 0 : return new AbstractGraphicFilterDialog_Impl( pDlg );
1607 : 0 : return 0;
1608 : : }
1609 : :
1610 : 0 : AbstractSvxAreaTabDialog* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window* pParent,
1611 : : const SfxItemSet* pAttr,
1612 : : SdrModel* pModel,
1613 : : const SdrView* pSdrView )
1614 : : {
1615 [ # # ]: 0 : SvxAreaTabDialog* pDlg = new SvxAreaTabDialog( pParent, pAttr, pModel,pSdrView );
1616 [ # # ]: 0 : return new AbstractSvxAreaTabDialog_Impl( pDlg );
1617 : : }
1618 : :
1619 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog
1620 : : SdrModel* pModel,
1621 : : const SdrObject* pObj ,
1622 : : sal_Bool bHasObj)
1623 : : {
1624 [ # # ]: 0 : SfxTabDialog* pDlg = new SvxLineTabDialog( pParent, pAttr, pModel,pObj,bHasObj );
1625 [ # # ]: 0 : return new AbstractTabDialog_Impl( pDlg );
1626 : : }
1627 : :
1628 : 0 : SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
1629 : : const SfxItemSet& rAttr,
1630 : : const Reference< XFrame >& _rxDocumentFrame,
1631 : : sal_uInt32 nResId
1632 : : )
1633 : : {
1634 : 0 : SfxModalDialog* pDlg=NULL;
1635 [ # # # # ]: 0 : switch ( nResId )
1636 : : {
1637 : : case SID_EVENTCONFIG :
1638 [ # # ]: 0 : pDlg = new SfxMacroAssignDlg( pParent, _rxDocumentFrame, rAttr );
1639 : 0 : break;
1640 : : case RID_SVXPAGE_MACROASSIGN :
1641 [ # # ]: 0 : pDlg = new SvxShortcutAssignDlg( pParent, _rxDocumentFrame, rAttr );
1642 : 0 : break;
1643 : : case RID_SVXDLG_CHARMAP :
1644 [ # # ]: 0 : pDlg = new SvxCharacterMap( pParent, sal_True, &rAttr );
1645 : 0 : break;
1646 : : default:
1647 : 0 : break;
1648 : : }
1649 : :
1650 [ # # ]: 0 : if ( pDlg )
1651 [ # # ]: 0 : return new AbstractSfxDialog_Impl( pDlg );
1652 : 0 : return 0;
1653 : : }
1654 : :
1655 : 0 : SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
1656 : : const SfxItemSet& rAttr,
1657 : : const SdrView* pView,
1658 : : sal_uInt32 nResId
1659 : : )
1660 : : {
1661 : 0 : SfxSingleTabDialog* pDlg=NULL;
1662 [ # # # # ]: 0 : switch ( nResId )
1663 : : {
1664 : : case RID_SVXPAGE_MEASURE :
1665 [ # # ]: 0 : pDlg = new SvxMeasureDialog( pParent, rAttr, pView );
1666 : 0 : break;
1667 : : case RID_SVXPAGE_CONNECTION :
1668 [ # # ]: 0 : pDlg = new SvxConnectionDialog( pParent, rAttr, pView );
1669 : 0 : break;
1670 : : case RID_SFXPAGE_DBREGISTER :
1671 [ # # ]: 0 : pDlg = new DatabaseRegistrationDialog( pParent, rAttr );
1672 : 0 : break;
1673 : : default:
1674 : 0 : break;
1675 : : }
1676 : :
1677 [ # # ]: 0 : if ( pDlg )
1678 [ # # ]: 0 : return new AbstractSfxDialog_Impl( pDlg );
1679 : 0 : return 0;
1680 : : }
1681 : :
1682 : 0 : AbstractSvxPostItDialog* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window* pParent,
1683 : : const SfxItemSet& rCoreSet,
1684 : : sal_Bool bPrevNext, sal_Bool bRedline )
1685 : : {
1686 [ # # ]: 0 : SvxPostItDialog* pDlg = new SvxPostItDialog( pParent, rCoreSet, bPrevNext, bRedline );
1687 [ # # ]: 0 : return new AbstractSvxPostItDialog_Impl( pDlg );
1688 : : }
1689 : :
1690 : : class SvxMacroAssignDialog : public VclAbstractDialog
1691 : : {
1692 : : public:
1693 : 0 : SvxMacroAssignDialog( Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
1694 : : const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
1695 [ # # ][ # # ]: 0 : :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM, SID_ATTR_MACROITEM )
1696 : : {
1697 [ # # ][ # # ]: 0 : m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) );
[ # # ]
1698 [ # # ][ # # ]: 0 : m_pDialog.reset( new SvxMacroAssignDlg( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) );
1699 : 0 : }
1700 : :
1701 : : virtual short Execute();
1702 : : virtual ~SvxMacroAssignDialog();
1703 : :
1704 : : private:
1705 : : SfxItemSet m_aItems;
1706 : : ::std::auto_ptr< SvxMacroAssignDlg > m_pDialog;
1707 : : };
1708 : :
1709 : 0 : short SvxMacroAssignDialog::Execute()
1710 : : {
1711 : 0 : return m_pDialog->Execute();
1712 : : }
1713 : :
1714 [ # # ][ # # ]: 0 : SvxMacroAssignDialog::~SvxMacroAssignDialog()
1715 : : {
1716 [ # # ]: 0 : }
1717 : :
1718 : 0 : VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
1719 : : Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
1720 : : const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
1721 : : {
1722 [ # # ]: 0 : return new SvxMacroAssignDialog( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent );
1723 : : }
1724 : :
1725 : : // Factories for TabPages
1726 : 0 : CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1727 : : {
1728 [ # # # # : 0 : switch ( nId )
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
# ]
1729 : : {
1730 : : case RID_OFA_TP_INTERNATIONAL:
1731 : 0 : return ::offapp::InternationalOptionsPage::CreateSc;
1732 : : case RID_OFA_TP_INTERNATIONAL_SD:
1733 : : case RID_OFA_TP_INTERNATIONAL_IMPR:
1734 : 0 : return offapp::InternationalOptionsPage::CreateSd;
1735 : : case RID_SVXPAGE_TEXTANIMATION :
1736 : 0 : return SvxTextAnimationPage::Create;
1737 : : case RID_SVXTABPAGE_GALLERY_GENERAL :
1738 : 0 : return TPGalleryThemeGeneral::Create;
1739 : : case RID_SVXPAGE_TRANSPARENCE :
1740 : 0 : return SvxTransparenceTabPage::Create;
1741 : : case RID_SVXPAGE_AREA :
1742 : 0 : return SvxAreaTabPage::Create;
1743 : : case RID_SVXPAGE_SHADOW :
1744 : 0 : return SvxShadowTabPage::Create;
1745 : : case RID_SVXPAGE_LINE :
1746 : 0 : return SvxLineTabPage::Create;
1747 : : case RID_SVXPAGE_CONNECTION :
1748 : 0 : return SvxConnectionPage::Create;
1749 : : case RID_SVXPAGE_MEASURE :
1750 : 0 : return SvxMeasurePage::Create;
1751 : : case RID_SFXPAGE_GENERAL :
1752 : 0 : return SvxGeneralTabPage::Create;
1753 : : case RID_SVXPAGE_PICK_SINGLE_NUM :
1754 : 0 : return SvxSingleNumPickTabPage::Create;
1755 : : case RID_SVXPAGE_PICK_BMP :
1756 : 0 : return SvxBitmapPickTabPage::Create;
1757 : : case RID_SVXPAGE_PICK_BULLET :
1758 : 0 : return SvxBulletPickTabPage::Create;
1759 : : case RID_SVXPAGE_NUM_OPTIONS :
1760 : 0 : return SvxNumOptionsTabPage::Create;
1761 : : case RID_SVXPAGE_PICK_NUM :
1762 : 0 : return SvxNumPickTabPage::Create;
1763 : : case RID_SVXPAGE_NUM_POSITION :
1764 : 0 : return SvxNumPositionTabPage::Create;
1765 : : case RID_SVXPAGE_PARA_ASIAN :
1766 : 0 : return SvxAsianTabPage::Create;
1767 : : case RID_SVXPAGE_EXT_PARAGRAPH :
1768 : 0 : return SvxExtParagraphTabPage::Create;
1769 : : case RID_SVXPAGE_ALIGN_PARAGRAPH :
1770 : 0 : return SvxParaAlignTabPage::Create;
1771 : : case RID_SVXPAGE_STD_PARAGRAPH :
1772 : 0 : return SvxStdParagraphTabPage::Create;
1773 : : case RID_SVXPAGE_TABULATOR :
1774 : 0 : return SvxTabulatorTabPage::Create;
1775 : : case RID_SVXPAGE_TEXTATTR :
1776 : 0 : return SvxTextAttrPage::Create;
1777 : : case RID_SVXPAGE_ALIGNMENT :
1778 : 0 : return svx::AlignmentTabPage::Create;
1779 : : case RID_SW_TP_BACKGROUND :
1780 : : case RID_SVXPAGE_BACKGROUND :
1781 : 0 : return SvxBackgroundTabPage::Create;
1782 : : case RID_SVXPAGE_BORDER :
1783 : 0 : return SvxBorderTabPage::Create;
1784 : : case RID_SVXPAGE_CHAR_NAME :
1785 : 0 : return SvxCharNamePage::Create;
1786 : : case RID_SVXPAGE_CHAR_EFFECTS :
1787 : 0 : return SvxCharEffectsPage::Create;
1788 : : case RID_SVXPAGE_CHAR_POSITION :
1789 : 0 : return SvxCharPositionPage::Create;
1790 : : case RID_SVXPAGE_CHAR_TWOLINES :
1791 : 0 : return SvxCharTwoLinesPage::Create;
1792 : : case RID_SVXPAGE_NUMBERFORMAT :
1793 : 0 : return SvxNumberFormatTabPage::Create;
1794 : : case RID_SVXPAGE_PAGE :
1795 : 0 : return SvxPageDescPage::Create;
1796 : : case RID_SVXPAGE_GRFCROP :
1797 : 0 : return SvxGrfCropPage::Create;
1798 : : case RID_SVXPAGE_MACROASSIGN :
1799 : 0 : return SfxMacroTabPage::Create;
1800 : : default:
1801 : 0 : break;
1802 : : }
1803 : :
1804 : 0 : return 0;
1805 : : }
1806 : :
1807 : 0 : CreateSvxDistributePage AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc()
1808 : : {
1809 : 0 : return SvxDistributePage::Create;
1810 : : }
1811 : :
1812 : 0 : DialogGetRanges AbstractDialogFactory_Impl::GetDialogGetRangesFunc( sal_uInt16 nId )
1813 : : {
1814 [ # # ]: 0 : switch ( nId )
1815 : : {
1816 : : case RID_SVXDLG_POSTIT:
1817 : 0 : return SvxPostItDialog::GetRanges; //add for SvxPostItDialog
1818 : : default:
1819 : 0 : break;
1820 : : }
1821 : :
1822 : 0 : return 0;
1823 : : }
1824 : 0 : GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1825 : : {
1826 [ # # # # : 0 : switch ( nId )
# # # # #
# # # # #
# # # # #
# # # # #
# ]
1827 : : {
1828 : : case RID_SVXPAGE_TEXTANIMATION :
1829 : 0 : return SvxTextAnimationPage::GetRanges;
1830 : : case RID_SVXPAGE_DISTRIBUTE:
1831 : 0 : return SvxDistributePage::GetRanges;
1832 : : case RID_SVXPAGE_TRANSPARENCE :
1833 : 0 : return SvxTransparenceTabPage::GetRanges;
1834 : : case RID_SVXPAGE_AREA :
1835 : 0 : return SvxAreaTabPage::GetRanges;
1836 : : case RID_SVXPAGE_SHADOW :
1837 : 0 : return SvxShadowTabPage::GetRanges;
1838 : : case RID_SVXPAGE_LINE :
1839 : 0 : return SvxLineTabPage::GetRanges;
1840 : : case RID_SVXPAGE_CONNECTION :
1841 : 0 : return SvxConnectionPage::GetRanges;
1842 : : case RID_SVXPAGE_MEASURE :
1843 : 0 : return SvxMeasurePage::GetRanges;
1844 : : case RID_SVXPAGE_PARA_ASIAN :
1845 : 0 : return SvxAsianTabPage::GetRanges;
1846 : : case RID_SVXPAGE_EXT_PARAGRAPH :
1847 : 0 : return SvxExtParagraphTabPage::GetRanges;
1848 : : case RID_SVXPAGE_ALIGN_PARAGRAPH :
1849 : 0 : return SvxParaAlignTabPage::GetRanges;
1850 : : case RID_SVXPAGE_STD_PARAGRAPH :
1851 : 0 : return SvxStdParagraphTabPage::GetRanges;
1852 : : case RID_SVXPAGE_TABULATOR :
1853 : 0 : return SvxTabulatorTabPage::GetRanges;
1854 : : case RID_SVXPAGE_TEXTATTR :
1855 : 0 : return SvxTextAttrPage::GetRanges;
1856 : : case RID_SVXPAGE_ALIGNMENT :
1857 : 0 : return svx::AlignmentTabPage::GetRanges;
1858 : : case RID_SW_TP_BACKGROUND :
1859 : : case RID_SVXPAGE_BACKGROUND :
1860 : 0 : return SvxBackgroundTabPage::GetRanges;
1861 : : case RID_SVXPAGE_BORDER :
1862 : 0 : return SvxBorderTabPage::GetRanges;
1863 : : case RID_SVXPAGE_CHAR_NAME :
1864 : 0 : return SvxCharNamePage::GetRanges;
1865 : : case RID_SVXPAGE_CHAR_EFFECTS :
1866 : 0 : return SvxCharEffectsPage::GetRanges;
1867 : : case RID_SVXPAGE_CHAR_POSITION :
1868 : 0 : return SvxCharPositionPage::GetRanges;
1869 : : case RID_SVXPAGE_CHAR_TWOLINES :
1870 : 0 : return SvxCharTwoLinesPage::GetRanges;
1871 : : case RID_SVXPAGE_NUMBERFORMAT :
1872 : 0 : return SvxNumberFormatTabPage::GetRanges;
1873 : : case RID_SVXPAGE_PAGE :
1874 : 0 : return SvxPageDescPage::GetRanges;
1875 : : case RID_SVXPAGE_ASIAN_LAYOUT:
1876 : 0 : return SvxAsianLayoutPage::GetRanges;
1877 : : default:
1878 : 0 : break;
1879 : : }
1880 : :
1881 : 0 : return 0;
1882 : : }
1883 : :
1884 : 0 : SfxAbstractInsertObjectDialog* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window* pParent, const rtl::OUString& rCommand,
1885 : : const Reference < com::sun::star::embed::XStorage >& xStor,
1886 : : const SvObjectServerList* pList )
1887 : : {
1888 : 0 : InsertObjectDialog_Impl* pDlg=0;
1889 [ # # ]: 0 : if ( rCommand == ".uno:InsertObject" )
1890 [ # # ]: 0 : pDlg = new SvInsertOleDlg( pParent, xStor, pList );
1891 [ # # ]: 0 : else if ( rCommand == ".uno:InsertPlugin" )
1892 [ # # ]: 0 : pDlg = new SvInsertPlugInDialog( pParent, xStor );
1893 [ # # ]: 0 : else if ( rCommand == ".uno:InsertObjectFloatingFrame" )
1894 [ # # ]: 0 : pDlg = new SfxInsertFloatingFrameDialog( pParent, xStor );
1895 : :
1896 [ # # ]: 0 : if ( pDlg )
1897 : : {
1898 [ # # ]: 0 : pDlg->SetHelpId( rtl::OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) );
1899 [ # # ]: 0 : return new AbstractInsertObjectDialog_Impl( pDlg );
1900 : : }
1901 : 0 : return 0;
1902 : : }
1903 : :
1904 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window* pParent, const rtl::OUString& rCommand,
1905 : : const Reference < com::sun::star::embed::XEmbeddedObject >& xObj )
1906 : : {
1907 : 0 : InsertObjectDialog_Impl* pDlg=0;
1908 [ # # ]: 0 : if ( rCommand == ".uno:InsertObjectFloatingFrame" )
1909 : : {
1910 [ # # ]: 0 : pDlg = new SfxInsertFloatingFrameDialog( pParent, xObj );
1911 [ # # ]: 0 : pDlg->SetHelpId( rtl::OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) );
1912 [ # # ]: 0 : return new VclAbstractDialog_Impl( pDlg );
1913 : : }
1914 : 0 : return 0;
1915 : : }
1916 : :
1917 : :
1918 : :
1919 : 0 : SfxAbstractPasteDialog* AbstractDialogFactory_Impl::CreatePasteDialog( Window* pParent )
1920 : : {
1921 [ # # ][ # # ]: 0 : return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent ) );
1922 : : }
1923 : :
1924 : 0 : SfxAbstractLinksDialog* AbstractDialogFactory_Impl::CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, sal_Bool bHTML, sfx2::SvBaseLink* p)
1925 : : {
1926 [ # # ]: 0 : SvBaseLinksDlg* pLinkDlg = new SvBaseLinksDlg( pParent, pMgr, bHTML );
1927 [ # # ]: 0 : if ( p )
1928 : 0 : pLinkDlg->SetActLink(p);
1929 [ # # ]: 0 : return new AbstractLinksDialog_Impl( pLinkDlg );
1930 : : }
1931 : :
1932 : 0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* /*pObj*/ )
1933 : : {
1934 [ # # ][ # # ]: 0 : return new AbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent, pAttr, pModel ) );
1935 : : }
1936 : :
1937 : 0 : SvxAbstractSplittTableDialog* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal )
1938 : : {
1939 [ # # ]: 0 : return new SvxSplitTableDlg( pParent, bIsTableVertical, nMaxVertical, nMaxHorizontal );
1940 : : }
1941 : :
1942 : 0 : SvxAbstractNewTableDialog* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window* pParent )
1943 : : {
1944 [ # # ]: 0 : return new SvxNewTableDialog( pParent );
1945 : : }
1946 : :
1947 : 0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog(
1948 : : Window* pParent, const rtl::OUString& rExtensionId, const rtl::OUString& /*rApplicationContext*/ )
1949 : : {
1950 [ # # ][ # # ]: 0 : return new VclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent, rExtensionId ) );
1951 : : }
1952 : :
1953 : 0 : SvxAbstractInsRowColDlg* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window* pParent, bool bCol, const rtl::OString& sHelpId )
1954 : : {
1955 [ # # ]: 0 : return new SvxInsRowColDlg( pParent, bCol, sHelpId );
1956 : : }
1957 : :
1958 : 0 : AbstractPasswordToOpenModifyDialog * AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog(
1959 : : Window * pParent,
1960 : : sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify )
1961 : : {
1962 [ # # ]: 0 : PasswordToOpenModifyDialog * pDlg = new PasswordToOpenModifyDialog( pParent, nMinPasswdLen, nMaxPasswdLen, bIsPasswordToModify );
1963 [ # # ]: 0 : return new AbstractPasswordToOpenModifyDialog_Impl( pDlg );
1964 : : }
1965 : :
1966 : :
1967 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|