1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_cui.hxx"
31 #include "align.hxx" //add for SvxAlignmentTabPage
32 #include "dlgfact.hxx"
34 #include <tools/rc.hxx>
35 #include <sfx2/basedlgs.hxx>
36 #include <sfx2/app.hxx>
37 #include <sfx2/request.hxx>
39 #include <svx/dialogs.hrc>
41 #include "optimprove.hxx"
42 #include "splitcelldlg.hxx"
43 #include "gallery.hrc"
44 #include "dstribut.hxx"
45 #include "cuigaldlg.hxx"
46 #include "cuiimapwnd.hxx"
47 #include "hlmarkwn.hxx"
48 #include "cuicharmap.hxx"
49 #include "srchxtra.hxx"
50 #include "textanim.hxx"
51 #include "autocdlg.hxx"
52 #include "treeopt.hxx"
53 #include "internationaloptions.hxx"
55 #include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog
56 #include "showcols.hxx" //add for FmShowColsDialog
57 #include "zoom.hxx" //add for SvxZoomDialog
58 #include "cuigaldlg.hxx" //add for Gallery 6 Dialogs and 1 TabPage
59 #include "cuiimapwnd.hxx" //add for URLDlg
60 #include "hlmarkwn.hxx" //add for SvxHlinkDlgMarkWnd
61 #include "srchxtra.hxx" //add for SvxSearchFormatDialog
62 #include "transfrm.hxx" //add for SvxTransformTabDialog
63 #include "bbdlg.hxx" //add for SvxBorderBackgroundDlg
64 #include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog
65 #include "cuitbxform.hxx" //add for FmInputRecordNoDialog
66 #include "optdict.hxx" //add for SvxNewDictionaryDialog
67 #include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog
68 #include "multipat.hxx" //add for SvxMultiPathDialog
69 #include "multifil.hxx" //add for SvxMultiFileDialog
70 #include "cuihyperdlg.hxx" //add for SvxHpLinkDlg
71 #include "cuifmsearch.hxx" //add for FmSearchDialog
72 #include "cuigrfflt.hxx" //add for GraphicFilterDialog
73 #include "cuitabarea.hxx" //add for SvxAreaTabDialog
74 #include "cuitabline.hxx" //add for SvxLineTabDialog
75 #include "measure.hxx" //add for SvxMeasureDialog
76 #include "connect.hxx" //add for SvxConnectionDialog
77 #include "dbregister.hxx" // add for DatabaseRegistrationDialog
78 #include "cuioptgenrl.hxx" //add for SvxGeneralTabPage
79 #include "optasian.hxx"
81 #include "pastedlg.hxx"
82 #include "linkdlg.hxx"
83 #include "SpellDialog.hxx"
84 #include "cfg.hxx" //add for SvxConfigDialog
85 #include "numpages.hxx" // add for
86 #include "paragrph.hxx" //add for
87 #include "tabstpge.hxx" // add for
88 #include "textattr.hxx" // add for SvxTextAttrPage
89 #include "backgrnd.hxx" //add for SvxBackgroundTabPage
90 #include "border.hxx" //add for SvxBorderTabPage
91 #include "chardlg.hxx" //add for SvxCharNamePage,SvxCharEffectsPage,SvxCharPositionPage,SvxCharTwoLinesPage
92 #include "page.hxx" //add for SvxPageDescPage
93 #include "postdlg.hxx" //add for SvxPostItDialog
94 #include "grfpage.hxx" //add for SvxGrfCropPage
95 #include "scriptdlg.hxx" // for ScriptOrgDialog
96 #include "selector.hxx" // for SvxScriptSelectorDialog
97 #include "macropg.hxx" // for SvxMacroAssignDlg
98 #include "sdrcelldlg.hxx"
99 #include "newtabledlg.hxx"
100 #include "macroass.hxx"
101 #include "acccfg.hxx"
103 #include "passwdomdlg.hxx"
104 #include "hyphen.hxx"
105 #include "thesdlg.hxx"
107 #include "dialmgr.hxx"
109 using namespace ::com::sun::star
;
110 using namespace ::com::sun::star::frame
;
111 using namespace ::com::sun::star::container
;
113 using ::com::sun::star::uno::Reference
;
116 // AbstractTabDialog implementations just forwards everything to the dialog
117 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl
)
118 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl
)
119 IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl
);
120 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl
);
121 IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl
);
122 IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl
);
123 IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl
);
124 IMPL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl
)
125 IMPL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl
)
127 AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl() \
131 short AbstractSvxZoomDialog_Impl::Execute()
133 return pDlg
->Execute();
136 //IMPL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl);
137 IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl
);
138 IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl
);
139 IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl
);
140 IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl
);
141 IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl
);
142 IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl
);
143 IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl
);
144 IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl
);
145 IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl
);
146 IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl
);
147 IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl
);
148 IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl
);
149 IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl
);
150 IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl
);
153 IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl
);
154 IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl
);
156 IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl
);
157 IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl
);
158 IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl
);
159 IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl
);
160 IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl
);
161 IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl
);
162 IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl
);
163 IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl
);
164 IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl
);
165 IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl
);
166 IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl
);
167 IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl
);
168 IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl
);
170 //////////////////////////////////////////////////////////////////////////
171 // VclAbstractDialog2_Impl
172 //////////////////////////////////////////////////////////////////////////
175 VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
181 void VclAbstractDialog2_Impl::StartExecuteModal( const Link
& rEndDialogHdl
)
183 m_aEndDlgHdl
= rEndDialogHdl
;
184 m_pDlg
->StartExecuteModal(
185 LINK( this, VclAbstractDialog2_Impl
, EndDialogHdl
) );
189 long VclAbstractDialog2_Impl::GetResult()
191 return m_pDlg
->GetResult();
194 IMPL_LINK( VclAbstractDialog2_Impl
, EndDialogHdl
, Dialog
*, pDlg
)
196 if ( pDlg
!= m_pDlg
)
198 DBG_ERRORFILE( "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
201 m_aEndDlgHdl
.Call( this );
202 m_aEndDlgHdl
= Link();
207 //////////////////////////////////////////////////////////////////////////
209 void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId
)
211 pDlg
->SetCurPageId( nId
);
214 const SfxItemSet
* AbstractTabDialog_Impl::GetOutputItemSet() const
216 return pDlg
->GetOutputItemSet();
219 const sal_uInt16
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
221 return pDlg
->GetInputRanges( pItem
);
224 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
226 pDlg
->SetInputSet( pInSet
);
229 void AbstractTabDialog_Impl::SetText( const XubString
& rStr
)
231 pDlg
->SetText( rStr
);
233 String
AbstractTabDialog_Impl::GetText() const
235 return pDlg
->GetText();
239 const SfxItemSet
* AbstractSfxDialog_Impl::GetOutputItemSet() const
241 return pDlg
->GetOutputItemSet();
244 void AbstractSfxDialog_Impl::SetText( const XubString
& rStr
)
246 pDlg
->SetText( rStr
);
249 String
AbstractSfxDialog_Impl::GetText() const
251 return pDlg
->GetText();
254 SvxDistributeHorizontal
AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
256 return pDlg
->GetDistributeHor();
258 SvxDistributeVertical
AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
260 return pDlg
->GetDistributeVer();
263 void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult
)
265 pDlg
->EndDialog(nResult
);
268 void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( sal_Bool _bVal
)
270 pDlg
->EnableRubySupport(_bVal
);
273 void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter
)
275 pDlg
->SetByCharacter(_bByCharacter
);
278 void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( sal_Bool _bTryBothDirections
, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection
)
280 pDlg
->SetConversionDirectionState(_bTryBothDirections
, _ePrimaryConversionDirection
);
283 void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType
)
285 pDlg
->SetConversionFormat(_eType
);
288 void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link
& _rHdl
)
290 pDlg
->SetOptionsChangedHdl(_rHdl
);
293 void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link
& _rHdl
)
295 pDlg
->SetIgnoreHdl(_rHdl
);
298 void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link
& _rHdl
)
300 pDlg
->SetIgnoreAllHdl(_rHdl
);
303 void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link
& _rHdl
)
305 pDlg
->SetChangeHdl(_rHdl
);
308 void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link
& _rHdl
)
310 pDlg
->SetChangeAllHdl(_rHdl
);
313 void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link
& _rHdl
)
315 pDlg
->SetClickByCharacterHdl(_rHdl
);
318 void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link
& _rHdl
)
320 pDlg
->SetConversionFormatChangedHdl(_rHdl
);
322 void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link
& _rHdl
)
324 pDlg
->SetFindHdl(_rHdl
);
327 sal_Bool
AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
329 return pDlg
->GetUseBothDirections();
332 editeng::HangulHanjaConversion::ConversionDirection
AbstractHangulHanjaConversionDialog_Impl::GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection
) const
334 return pDlg
->GetDirection( _eDefaultDirection
);
337 void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
338 const String
& _rNewString
,
339 const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& _rSuggestions
,
340 bool _bOriginatesFromDocument
343 pDlg
->SetCurrentString(_rNewString
,_rSuggestions
,_bOriginatesFromDocument
);
345 String
AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
347 return pDlg
->GetCurrentString();
349 editeng::HangulHanjaConversion::ConversionFormat
AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
351 return pDlg
->GetConversionFormat();
354 void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
356 pDlg
->FocusSuggestion();
359 String
AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
361 return pDlg
->GetCurrentSuggestion();
364 String
AbstractThesaurusDialog_Impl::GetWord()
366 return pDlg
->GetWord();
369 sal_uInt16
AbstractThesaurusDialog_Impl::GetLanguage() const
371 return pDlg
->GetLanguage();
374 Window
* AbstractThesaurusDialog_Impl::GetWindow()
379 void AbstractHyphenWordDialog_Impl::SelLeft()
384 void AbstractHyphenWordDialog_Impl::SelRight()
389 Window
* AbstractHyphenWordDialog_Impl::GetWindow()
394 Reference
< com::sun::star::embed::XEmbeddedObject
> AbstractInsertObjectDialog_Impl::GetObject()
396 return pDlg
->GetObject();
399 sal_Bool
AbstractInsertObjectDialog_Impl::IsCreateNew()
401 return pDlg
->IsCreateNew();
404 ::Reference
< ::com::sun::star::io::XInputStream
> AbstractInsertObjectDialog_Impl::GetIconIfIconified( ::rtl::OUString
* pGraphicMediaType
)
406 return pDlg
->GetIconIfIconified( pGraphicMediaType
);
409 void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat
, const String
& rFormatName
)
411 pDlg
->Insert( nFormat
, rFormatName
);
414 void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName
& rClass
, const String
& rObjName
)
416 pDlg
->SetObjName( rClass
, rObjName
);
419 sal_uLong
AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper
& aHelper
,
420 const DataFlavorExVector
* pFormats
,
421 const TransferableObjectDescriptor
* pDesc
)
423 return pDlg
->GetFormat( aHelper
, pFormats
, pDesc
);
426 void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference
< ::com::sun::star::container::XIndexContainer
>& xCols
)
428 pDlg
->SetColumns(xCols
);
431 void AbstractSvxZoomDialog_Impl::SetLimits( sal_uInt16 nMin
, sal_uInt16 nMax
)
433 pDlg
->SetLimits( nMin
, nMax
);
436 void AbstractSvxZoomDialog_Impl::HideButton( sal_uInt16 nBtnId
)
438 pDlg
->HideButton( nBtnId
);
441 const SfxItemSet
* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
443 return pDlg
->GetOutputItemSet();
446 void AbstractSpellDialog_Impl::SetLanguage( sal_uInt16 nLang
)
448 pDlg
->SetLanguage(nLang
);
451 sal_Bool
AbstractSpellDialog_Impl::Close()
453 return pDlg
->Close();
456 void AbstractSpellDialog_Impl::Invalidate()
458 pDlg
->InvalidateDialog();
461 Window
* AbstractSpellDialog_Impl::GetWindow()
466 SfxBindings
& AbstractSpellDialog_Impl::GetBindings()
468 return pDlg
->GetBindings();
471 void AbstractSearchProgress_Impl::Update()
476 void AbstractSearchProgress_Impl::Sync()
481 void AbstractSearchProgress_Impl::SetFileType( const String
& rType
)
483 pDlg
->SetFileType( rType
);
486 void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject
& rURL
)
488 pDlg
->SetDirectory( rURL
);
490 PLinkStub
AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl()
492 return SearchProgress::LinkStubCleanUpHdl
;
495 void AbstractTakeProgress_Impl::Update()
500 void AbstractTakeProgress_Impl::Sync()
505 void AbstractTakeProgress_Impl::SetFile( const INetURLObject
& rURL
)
507 pDlg
->SetFile( rURL
);
510 PLinkStub
AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl()
512 return TakeProgress::LinkStubCleanUpHdl
;
515 String
AbstractTitleDialog_Impl::GetTitle() const
517 return pDlg
->GetTitle();
520 sal_uLong
AbstractGalleryIdDialog_Impl::GetId() const
522 return pDlg
->GetId();
525 void VclAbstractRefreshableDialog_Impl::Update()
530 void VclAbstractRefreshableDialog_Impl::Sync()
535 String
AbstractURLDlg_Impl::GetURL() const
537 return pDlg
->GetURL();
540 String
AbstractURLDlg_Impl::GetAltText() const
542 return pDlg
->GetAltText();
545 String
AbstractURLDlg_Impl::GetDesc() const
547 return pDlg
->GetDesc();
550 String
AbstractURLDlg_Impl::GetTarget() const
552 return pDlg
->GetTarget();
555 String
AbstractURLDlg_Impl::GetName() const
557 return pDlg
->GetName();
560 void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( sal_uInt16 nFlags
)
562 ((Window
*)pDlg
)->Hide( nFlags
);
565 void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size
& rNewSize
)
567 pDlg
->SetSizePixel( rNewSize
);
570 Size
AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const
572 return pDlg
->GetSizePixel();
575 sal_Bool
AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const
577 return (( Window
* )pDlg
)->IsVisible();
580 void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( sal_uInt16 nFlags
)
582 (( Window
* )pDlg
)->Invalidate(nFlags
);
585 sal_Bool
AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos
)const
587 return pDlg
->MoveTo(aNewPos
);
590 sal_Bool
AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( sal_Bool bDoit
)const
592 return pDlg
->ConnectToDialog(bDoit
);
595 void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL
)
597 pDlg
->RefreshTree(aStrURL
);
600 void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark
)
602 pDlg
->SelectEntry(aStrMark
);
605 sal_uInt16
AbstractSvxHlinkDlgMarkWnd_Impl::SetError( sal_uInt16 nError
)
607 return pDlg
->SetError(nError
);
610 sal_uInt16
AbstractSvxSearchSimilarityDialog_Impl::GetOther()
612 return pDlg
->GetOther();
615 sal_uInt16
AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
617 return pDlg
->GetShorter();
620 sal_uInt16
AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
622 return pDlg
-> GetLonger();
625 sal_Bool
AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
627 return pDlg
-> IsRelaxed();
630 // AbstractSvxTransformTabDialog implementations just forwards everything to the dialog
631 void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId
)
633 pDlg
->SetCurPageId( nId
);
635 const SfxItemSet
* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
637 return pDlg
->GetOutputItemSet();
640 const sal_uInt16
* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
642 return pDlg
->GetInputRanges( pItem
);
645 void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
647 pDlg
->SetInputSet( pInSet
);
650 void AbstractSvxTransformTabDialog_Impl::SetText( const XubString
& rStr
)
652 pDlg
->SetText( rStr
);
654 String
AbstractSvxTransformTabDialog_Impl::GetText() const
656 return pDlg
->GetText();
658 void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link
& rLink
)
660 pDlg
->SetValidateFramePosLink( rLink
);
663 // AbstractSvxCaptionDialog implementations just forwards everything to the dialog
664 void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId
)
666 pDlg
->SetCurPageId( nId
);
668 const SfxItemSet
* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
670 return pDlg
->GetOutputItemSet();
673 const sal_uInt16
* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
675 return pDlg
->GetInputRanges( pItem
);
678 void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
680 pDlg
->SetInputSet( pInSet
);
683 void AbstractSvxCaptionDialog_Impl::SetText( const XubString
& rStr
)
685 pDlg
->SetText( rStr
);
687 String
AbstractSvxCaptionDialog_Impl::GetText() const
689 return pDlg
->GetText();
691 void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link
& rLink
)
693 pDlg
->SetValidateFramePosLink( rLink
);
696 sal_Int32
AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
698 return pDlg
->GetTransliterationFlags();
701 void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew
)
703 pDlg
->SetValue(nNew
);
706 long AbstractFmInputRecordNoDialog_Impl::GetValue() const
708 return pDlg
->GetValue();
712 ::com::sun::star::linguistic2::XDictionary
> AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
714 return pDlg
->GetNewDictionary();
717 void AbstractSvxNameDialog_Impl::GetName( String
& rName
)
719 pDlg
->GetName( rName
);
722 void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link
& rLink
, bool bCheckImmediately
)
724 aCheckNameHdl
= rLink
;
726 pDlg
->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl
, CheckNameHdl
), bCheckImmediately
);
728 pDlg
->SetCheckNameHdl( Link(), bCheckImmediately
);
730 void AbstractSvxNameDialog_Impl::SetEditHelpId(const rtl::OString
& aHelpId
)
732 pDlg
->SetEditHelpId( aHelpId
);
734 void AbstractSvxNameDialog_Impl::SetHelpId( const rtl::OString
& aHelpId
)
736 pDlg
->SetHelpId( aHelpId
);
738 void AbstractSvxNameDialog_Impl::SetText( const XubString
& rStr
)
740 pDlg
->SetText( rStr
);
742 IMPL_LINK( AbstractSvxNameDialog_Impl
, CheckNameHdl
, Window
*, EMPTYARG
)
744 if( aCheckNameHdl
.IsSet() )
745 return aCheckNameHdl
.Call(this);
749 void AbstractSvxObjectNameDialog_Impl::GetName(String
& rName
)
751 pDlg
->GetName(rName
);
754 void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link
& rLink
, bool bCheckImmediately
)
756 aCheckNameHdl
= rLink
;
760 pDlg
->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl
, CheckNameHdl
), bCheckImmediately
);
764 pDlg
->SetCheckNameHdl(Link(), bCheckImmediately
);
768 IMPL_LINK(AbstractSvxObjectNameDialog_Impl
, CheckNameHdl
, Window
*, EMPTYARG
)
770 if(aCheckNameHdl
.IsSet())
772 return aCheckNameHdl
.Call(this);
778 void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(String
& rTitle
)
780 pDlg
->GetTitle(rTitle
);
783 void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(String
& rDescription
)
785 pDlg
->GetDescription(rDescription
);
788 void AbstractSvxMessDialog_Impl::SetButtonText( sal_uInt16 nBtnId
, const String
& rNewTxt
)
790 pDlg
->SetButtonText( nBtnId
, rNewTxt
);
793 String
AbstractSvxMultiPathDialog_Impl::GetPath() const
795 return pDlg
->GetPath();
798 void AbstractSvxMultiPathDialog_Impl::SetPath( const String
& rPath
)
800 pDlg
->SetPath( rPath
);
803 void AbstractSvxMultiPathDialog_Impl::EnableRadioButtonMode()
805 pDlg
->EnableRadioButtonMode();
808 void AbstractSvxMultiPathDialog_Impl::SetTitle( const String
& rNewTitle
)
810 pDlg
->SetText( rNewTitle
);
813 String
AbstractSvxMultiFileDialog_Impl::GetPath() const
815 return pDlg
->GetPath();
818 void AbstractSvxMultiFileDialog_Impl::SetPath( const String
& rPath
)
820 pDlg
->SetPath( rPath
);
823 String
AbstractSvxMultiFileDialog_Impl::GetFiles() const
825 return pDlg
->GetFiles();
828 void AbstractSvxMultiFileDialog_Impl::SetFiles( const String
& rPath
)
830 pDlg
->SetFiles( rPath
);
833 void AbstractSvxMultiFileDialog_Impl::SetClassPathMode()
835 pDlg
->SetClassPathMode();
838 void AbstractSvxMultiFileDialog_Impl::EnableRadioButtonMode()
840 pDlg
->EnableRadioButtonMode();
843 void AbstractSvxMultiFileDialog_Impl::SetTitle( const String
& rNewTitle
)
845 pDlg
->SetText( rNewTitle
);
848 void AbstractSvxMultiFileDialog_Impl::SetHelpId( const rtl::OString
& aHelpId
)
850 pDlg
->SetHelpId( aHelpId
);
853 Window
* AbstractSvxHpLinkDlg_Impl::GetWindow()
855 return (Window
*)pDlg
;
858 sal_Bool
AbstractSvxHpLinkDlg_Impl::QueryClose()
860 return pDlg
->QueryClose();
864 void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link
& lnk
)
866 pDlg
->SetFoundHandler(lnk
);
868 void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link
& lnk
)
870 pDlg
->SetCanceledNotFoundHdl(lnk
);
872 void AbstractFmSearchDialog_Impl::SetActiveField(const String
& strField
)
874 pDlg
->SetActiveField(strField
);
877 Graphic
AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic
& rGraphic
, double fScaleX
, double fScaleY
)
879 return pDlg
->GetFilteredGraphic( rGraphic
, fScaleX
, fScaleY
);
882 // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
883 void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId
)
885 pDlg
->SetCurPageId( nId
);
888 const SfxItemSet
* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
890 return pDlg
->GetOutputItemSet();
893 const sal_uInt16
* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
895 return pDlg
->GetInputRanges( pItem
);
898 void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
900 pDlg
->SetInputSet( pInSet
);
903 void AbstractSvxAreaTabDialog_Impl::SetText( const XubString
& rStr
)
905 pDlg
->SetText( rStr
);
907 String
AbstractSvxAreaTabDialog_Impl::GetText() const
909 return pDlg
->GetText();
912 void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable()
914 return pDlg
->DontDeleteColorTable();
917 void AbstractSvxPostItDialog_Impl::SetText( const XubString
& rStr
)
919 pDlg
->SetText( rStr
);
921 const SfxItemSet
* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
923 return pDlg
->GetOutputItemSet();
925 void AbstractSvxPostItDialog_Impl::EnableTravel(sal_Bool bNext
, sal_Bool bPrev
)
927 pDlg
->EnableTravel( bNext
, bPrev
);
929 String
AbstractSvxPostItDialog_Impl::GetNote()
931 return pDlg
->GetNote();
933 void AbstractSvxPostItDialog_Impl::SetNote(const String
& rTxt
)
935 pDlg
->SetNote( rTxt
);
937 void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const String
& rAuthor
, const String
& rDate
)
939 pDlg
->ShowLastAuthor( rAuthor
, rDate
);
941 void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
943 pDlg
->DontChangeAuthor();
945 void AbstractSvxPostItDialog_Impl::HideAuthor()
949 void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(sal_Bool bDisable
)
951 pDlg
->SetReadonlyPostIt( bDisable
);
953 sal_Bool
AbstractSvxPostItDialog_Impl::IsOkEnabled() const
955 return pDlg
->IsOkEnabled();
957 void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link
& rLink
)
961 pDlg
->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl
, NextHdl
) );
963 pDlg
->SetNextHdl( Link() );
965 void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link
& rLink
)
969 pDlg
->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl
, PrevHdl
) );
971 pDlg
->SetPrevHdl( Link() );
973 IMPL_LINK( AbstractSvxPostItDialog_Impl
, NextHdl
, Window
*, EMPTYARG
)
975 if( aNextHdl
.IsSet() )
979 IMPL_LINK( AbstractSvxPostItDialog_Impl
, PrevHdl
, Window
*, EMPTYARG
)
981 if( aPrevHdl
.IsSet() )
985 Window
* AbstractSvxPostItDialog_Impl::GetWindow()
987 return (Window
*)pDlg
;
990 String
AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const
992 return pDlg
->GetPasswordToOpen();
994 String
AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const
996 return pDlg
->GetPasswordToModify();
998 bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const
1000 return pDlg
->IsRecommendToOpenReadonly();
1003 // Create dialogs with simplest interface
1004 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateVclDialog( Window
* pParent
, sal_uInt32 nResId
)
1009 case RID_DEFAULTABOUT
:
1011 pDlg
= new AboutDialog( pParent
, CUI_RES( (sal_uInt16
) nResId
) );
1014 case SID_OPTIONS_TREEDIALOG
:
1015 case SID_OPTIONS_DATABASES
:
1016 case SID_LANGUAGE_OPTIONS
:
1018 bool bActivateLastSelection
= false;
1019 if (nResId
== SID_OPTIONS_TREEDIALOG
)
1020 bActivateLastSelection
= true;
1021 Reference
< frame::XFrame
> xFrame
;
1022 OfaTreeOptionsDialog
* pOptDlg
= new OfaTreeOptionsDialog( pParent
, xFrame
, bActivateLastSelection
);
1023 if (nResId
== SID_OPTIONS_DATABASES
)
1025 pOptDlg
->ActivatePage(SID_SB_DBREGISTEROPTIONS
);
1027 else if (nResId
== SID_LANGUAGE_OPTIONS
)
1029 //open the tab page "tools/options/languages"
1030 pOptDlg
->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE
);
1040 return new VclAbstractDialog_Impl( pDlg
);
1044 // dialogs that use SfxBindings
1045 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( Window
* /*pParent*/, const SfxBindings
&, sal_uInt32
)
1050 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateFrameDialog(
1051 Window
* pParent
, const Reference
< frame::XFrame
>& rxFrame
,
1052 sal_uInt32 nResId
, const String
& rParameter
)
1054 Dialog
* pDlg
= NULL
;
1055 if ( SID_OPTIONS_TREEDIALOG
== nResId
|| SID_OPTIONS_DATABASES
== nResId
)
1057 // only activate last page if we dont want to activate a special page
1058 bool bActivateLastSelection
= ( nResId
!= SID_OPTIONS_DATABASES
&& rParameter
.Len() == 0 );
1059 OfaTreeOptionsDialog
* pOptDlg
= new OfaTreeOptionsDialog( pParent
, rxFrame
, bActivateLastSelection
);
1060 if ( nResId
== SID_OPTIONS_DATABASES
)
1061 pOptDlg
->ActivatePage(SID_SB_DBREGISTEROPTIONS
);
1062 else if ( rParameter
.Len() > 0 )
1063 pOptDlg
->ActivatePage( rParameter
);
1068 return new VclAbstractDialog_Impl( pDlg
);
1073 // TabDialog outside the drawing layer
1074 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId
,
1076 const SfxItemSet
* pAttrSet
,
1081 SfxTabDialog
* pDlg
=NULL
;
1084 case RID_OFA_AUTOCORR_DLG
:
1085 pDlg
= new OfaAutoCorrDlg( pParent
, pAttrSet
);
1087 case RID_SVXDLG_CUSTOMIZE
:
1088 pDlg
= new SvxConfigDialog( pParent
, pAttrSet
);
1095 return new AbstractTabDialog_Impl( pDlg
);
1099 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId
,
1101 const SfxItemSet
* pAttrSet
,
1102 const Reference
< frame::XFrame
>& xViewFrame
,
1106 SfxTabDialog
* pDlg
=NULL
;
1109 case RID_OFA_AUTOCORR_DLG
:
1110 pDlg
= new OfaAutoCorrDlg( pParent
, pAttrSet
);
1112 case RID_SVXDLG_CUSTOMIZE
:
1114 SvxConfigDialog
* pDlg1
= new SvxConfigDialog( pParent
, pAttrSet
);
1115 pDlg1
->SetFrame(xViewFrame
);
1116 pDlg
= (SfxTabDialog
*)pDlg1
;
1124 return new AbstractTabDialog_Impl( pDlg
);
1128 // TabDialog that use functionality of the drawing layer
1129 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTextTabDialog( Window
* pParent
,
1130 const SfxItemSet
* pAttrSet
,
1134 SfxTabDialog
* pDlg
= new SvxTextTabDialog( pParent
, pAttrSet
, pView
);
1135 return new AbstractTabDialog_Impl( pDlg
);
1138 //TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog CHINA001
1139 AbstractSvxCaptionDialog
* AbstractDialogFactory_Impl::CreateCaptionDialog( Window
* pParent
,
1140 const SdrView
* pView
,
1141 sal_uInt16 nAnchorTypes
)
1143 SvxCaptionTabDialog
* pDlg
= new SvxCaptionTabDialog( pParent
, pView
, nAnchorTypes
);
1144 return new AbstractSvxCaptionDialog_Impl( pDlg
);
1147 AbstractSvxDistributeDialog
* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window
* pParent
,
1148 const SfxItemSet
& rAttr
,
1149 SvxDistributeHorizontal eHor
,
1150 SvxDistributeVertical eVer
)
1152 SvxDistributeDialog
* pDlg
= new SvxDistributeDialog( pParent
, rAttr
, eHor
, eVer
);
1153 return new AbstractSvxDistributeDialog_Impl( pDlg
);
1156 AbstractHangulHanjaConversionDialog
* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window
* pParent
,
1157 editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection
)
1159 HangulHanjaConversionDialog
* pDlg
= new HangulHanjaConversionDialog( pParent
, _ePrimaryDirection
);
1160 return new AbstractHangulHanjaConversionDialog_Impl( pDlg
);
1163 AbstractThesaurusDialog
* AbstractDialogFactory_Impl::CreateThesaurusDialog( Window
* pParent
,
1164 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XThesaurus
> xThesaurus
,
1165 const String
&rWord
, sal_Int16 nLanguage
)
1167 SvxThesaurusDialog
* pDlg
= new SvxThesaurusDialog( pParent
, xThesaurus
, rWord
, nLanguage
);
1168 return new AbstractThesaurusDialog_Impl( pDlg
);
1171 AbstractHyphenWordDialog
* AbstractDialogFactory_Impl::CreateHyphenWordDialog( Window
* pParent
,
1172 const String
&rWord
, LanguageType nLang
,
1173 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XHyphenator
> &xHyphen
,
1174 SvxSpellWrapper
* pWrapper
)
1176 SvxHyphenWordDialog
* pDlg
= new SvxHyphenWordDialog( rWord
, nLang
, pParent
, xHyphen
, pWrapper
);
1177 return new AbstractHyphenWordDialog_Impl( pDlg
);
1180 AbstractFmShowColsDialog
* AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window
* pParent
)
1182 FmShowColsDialog
* pDlg
= new FmShowColsDialog( pParent
);
1183 return new AbstractFmShowColsDialog_Impl( pDlg
);
1185 AbstractSvxZoomDialog
* AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window
* pParent
, //add for SvxZoomDialog
1186 const SfxItemSet
& rCoreSet
)
1188 SvxZoomDialog
* pDlg
= new SvxZoomDialog( pParent
, rCoreSet
);
1189 return new AbstractSvxZoomDialog_Impl( pDlg
);
1192 AbstractSpellDialog
* AbstractDialogFactory_Impl::CreateSvxSpellDialog(
1194 SfxBindings
* pBindings
,
1195 svx::SpellDialogChildWindow
* pSpellChildWindow
)
1197 svx::SpellDialog
* pDlg
= new svx::SpellDialog(pSpellChildWindow
, pParent
, pBindings
);
1198 return new AbstractSpellDialog_Impl(pDlg
);
1201 VclAbstractRefreshableDialog
* AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window
* pParent
, GalleryTheme
* pThm
)
1203 Dialog
* pDlg
= new ActualizeProgress( pParent
, pThm
);
1204 return new VclAbstractRefreshableDialog_Impl( pDlg
);
1207 AbstractSearchProgress
* AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window
* pParent
, //add for SearchProgress
1208 const INetURLObject
& rStartURL
)
1210 SearchProgress
* pDlg
= new SearchProgress( pParent
, rStartURL
);
1211 return new AbstractSearchProgress_Impl( pDlg
);
1214 AbstractTakeProgress
* AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window
* pParent
)
1216 TakeProgress
* pDlg
= new TakeProgress( pParent
);
1217 return new AbstractTakeProgress_Impl( pDlg
);
1221 AbstractDialogFactory_Impl::CreateScriptErrorDialog(
1222 Window
* pParent
, ::com::sun::star::uno::Any aException
)
1224 return new SvxScriptErrorDialog( pParent
, aException
);
1227 AbstractScriptSelectorDialog
*
1228 AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
1229 Window
* pParent
, sal_Bool bShowSlots
, const Reference
< frame::XFrame
>& _rxFrame
)
1231 SvxScriptSelectorDialog
* pDlg
= NULL
;
1233 pDlg
= new SvxScriptSelectorDialog( pParent
, bShowSlots
, _rxFrame
);
1237 return new AbstractScriptSelectorDialog_Impl( pDlg
);
1242 String
AbstractScriptSelectorDialog_Impl::GetScriptURL() const
1245 return pDlg
->GetScriptURL();
1249 void AbstractScriptSelectorDialog_Impl::SetRunLabel()
1252 pDlg
->SetRunLabel();
1256 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window
* pParent
, //add for SvxScriptOrgDialog
1257 const String
& rLanguage
)
1261 pDlg
= new SvxScriptOrgDialog( pParent
, rLanguage
);
1264 return new VclAbstractDialog_Impl( pDlg
);
1268 AbstractTitleDialog
* AbstractDialogFactory_Impl::CreateTitleDialog( Window
* pParent
, //add for TitleDialog
1269 const String
& rOldText
)
1271 TitleDialog
* pDlg
= new TitleDialog( pParent
, rOldText
);
1272 return new AbstractTitleDialog_Impl( pDlg
);
1275 AbstractGalleryIdDialog
* AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window
* pParent
, //add for SvxZoomDialog
1276 GalleryTheme
* pThm
)
1278 GalleryIdDialog
* pDlg
= new GalleryIdDialog( pParent
, pThm
);
1279 return new AbstractGalleryIdDialog_Impl( pDlg
);
1282 VclAbstractDialog2
* AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window
* pParent
, //add for GalleryThemeProperties
1283 ExchangeData
* pData
,
1284 SfxItemSet
* pItemSet
)
1286 Dialog
* pDlg
= new GalleryThemeProperties( pParent
, pData
, pItemSet
);
1287 return new VclAbstractDialog2_Impl( pDlg
);
1290 AbstractURLDlg
* AbstractDialogFactory_Impl::CreateURLDialog( Window
* pParent
, //add for URLDlg
1291 const String
& rURL
, const String
& rAltText
, const String
& rDescription
,
1292 const String
& rTarget
, const String
& rName
,
1293 TargetList
& rTargetList
)
1295 URLDlg
* pDlg
= new URLDlg( pParent
, rURL
, rAltText
, rDescription
, rTarget
, rName
, rTargetList
);
1296 return new AbstractURLDlg_Impl( pDlg
);
1299 AbstractSvxHlinkDlgMarkWnd
* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase
* pParent
, sal_uInt32 nResId
)
1301 SvxHlinkDlgMarkWnd
* pDlg
=NULL
;
1304 case RID_SVXFLOAT_HYPERLINK_MARKWND
:
1305 pDlg
= new SvxHlinkDlgMarkWnd( pParent
);
1312 return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg
);
1316 SfxAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32 nResId
,
1318 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& ,
1319 const SfxItemSet
* pAttrSet
)
1321 SfxModalDialog
* pDlg
=NULL
;
1324 case RID_SVXDLG_CHARMAP
:
1325 pDlg
= new SvxCharacterMap( pParent
, sal_True
, pAttrSet
);
1332 return new AbstractSfxDialog_Impl( pDlg
);
1336 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTabItemDialog( Window
* pParent
,
1337 const SfxItemSet
& rSet
,
1340 SfxTabDialog
* pDlg
=NULL
;
1343 case RID_SVXDLG_SEARCHFORMAT
:
1344 pDlg
= new SvxSearchFormatDialog( pParent
, rSet
);
1351 return new AbstractTabDialog_Impl( pDlg
);
1355 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window
* pParent
,
1356 SearchAttrItemList
& rLst
,
1357 const sal_uInt16
* pWhRanges
)
1359 Dialog
* pDlg
= new SvxSearchAttributeDialog( pParent
, rLst
, pWhRanges
);
1360 return new VclAbstractDialog_Impl( pDlg
);
1363 AbstractSvxSearchSimilarityDialog
* AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window
* pParent
,
1366 sal_uInt16 nShorter
,
1369 SvxSearchSimilarityDialog
* pDlg
= new SvxSearchSimilarityDialog( pParent
, bRelax
, nOther
, nShorter
, nLonger
);
1371 return new AbstractSvxSearchSimilarityDialog_Impl( pDlg
);
1375 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window
* pParent
,
1376 const SfxItemSet
& rCoreSet
,
1377 sal_Bool bEnableSelector
)
1379 SfxTabDialog
* pDlg
= new SvxBorderBackgroundDlg( pParent
, rCoreSet
, bEnableSelector
);
1380 return new AbstractTabDialog_Impl( pDlg
);
1383 AbstractSvxTransformTabDialog
* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window
* pParent
,
1384 const SfxItemSet
* pAttr
,
1385 const SdrView
* pView
,
1386 sal_uInt16 nAnchorTypes
)
1388 SvxTransformTabDialog
* pDlg
= new SvxTransformTabDialog( pParent
, pAttr
,pView
, nAnchorTypes
);
1389 return new AbstractSvxTransformTabDialog_Impl( pDlg
);
1392 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window
* pParent
,
1393 const SfxItemSet
* pAttr
,
1394 const SdrView
* pSdrView
,
1399 SfxTabDialog
* pDlg
=NULL
;
1402 case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE
:
1404 pDlg
= new SvxTransformTabDialog( pParent
, pAttr
,pSdrView
, bSizeTabPage
? SVX_OBJ_NOPROTECT
: SVX_OBJ_NOPROTECT
|SVX_OBJ_NORESIZE
);
1405 pDlg
->RemoveTabPage( RID_SVXPAGE_ANGLE
);
1406 pDlg
->RemoveTabPage( RID_SVXPAGE_SLANT
);
1409 case RID_SCH_TransformTabDLG_SVXPAGE_SLANT
:
1411 pDlg
= new SvxTransformTabDialog( pParent
, pAttr
,pSdrView
, bSizeTabPage
? SVX_OBJ_NOPROTECT
: SVX_OBJ_NOPROTECT
|SVX_OBJ_NORESIZE
);
1412 pDlg
->RemoveTabPage( RID_SVXPAGE_SLANT
);
1420 return new AbstractTabDialog_Impl( pDlg
);
1424 AbstractSvxJSearchOptionsDialog
* AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window
* pParent
,
1425 const SfxItemSet
& rOptionsSet
,
1426 sal_Int32 nInitialFlags
)
1428 SvxJSearchOptionsDialog
* pDlg
= new SvxJSearchOptionsDialog( pParent
, rOptionsSet
, nInitialFlags
);
1429 return new AbstractSvxJSearchOptionsDialog_Impl( pDlg
);
1432 AbstractFmInputRecordNoDialog
* AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window
* pParent
)
1434 FmInputRecordNoDialog
* pDlg
= new FmInputRecordNoDialog( pParent
);
1435 return new AbstractFmInputRecordNoDialog_Impl( pDlg
);
1438 AbstractSvxNewDictionaryDialog
* AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window
* pParent
,
1439 ::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
1442 SvxNewDictionaryDialog
* pDlg
=NULL
;
1445 case RID_SFXDLG_NEWDICT
:
1446 pDlg
= new SvxNewDictionaryDialog( pParent
, xSpl
);
1453 return new AbstractSvxNewDictionaryDialog_Impl( pDlg
);
1457 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window
* pParent
,
1458 const String
& rName
,
1459 ::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
1465 case RID_SFXDLG_EDITDICT
:
1466 pDlg
= new SvxEditDictionaryDialog( pParent
, rName
, xSpl
);
1473 return new VclAbstractDialog_Impl( pDlg
);
1477 AbstractSvxNameDialog
* AbstractDialogFactory_Impl::CreateSvxNameDialog( Window
* pParent
,
1478 const String
& rName
, const String
& rDesc
)
1480 SvxNameDialog
* pDlg
= new SvxNameDialog( pParent
, rName
, rDesc
);
1481 return new AbstractSvxNameDialog_Impl( pDlg
);
1484 AbstractSvxObjectNameDialog
* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window
* pParent
, const String
& rName
)
1486 return new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent
, rName
));
1489 AbstractSvxObjectTitleDescDialog
* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window
* pParent
, const String
& rTitle
, const String
& rDescription
)
1491 return new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent
, rTitle
, rDescription
));
1494 AbstractSvxMessDialog
* AbstractDialogFactory_Impl::CreateSvxMessDialog( Window
* pParent
, sal_uInt32 nResId
,
1495 const String
& rText
, const String
& rDesc
, Image
* pImg
)
1497 SvxMessDialog
* pDlg
=NULL
;
1500 case RID_SVXDLG_MESSBOX
:
1501 pDlg
= new SvxMessDialog( pParent
, rText
, rDesc
, pImg
);
1508 return new AbstractSvxMessDialog_Impl( pDlg
);
1512 AbstractSvxMultiPathDialog
* AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window
* pParent
, sal_Bool bEmptyAllowed
)
1514 SvxMultiPathDialog
* pDlg
= new SvxMultiPathDialog( pParent
, bEmptyAllowed
);
1515 return new AbstractSvxMultiPathDialog_Impl( pDlg
);
1518 AbstractSvxMultiFileDialog
* AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window
* pParent
, sal_Bool bEmptyAllowed
)
1520 SvxMultiFileDialog
* pDlg
= new SvxMultiFileDialog( pParent
, bEmptyAllowed
);
1521 return new AbstractSvxMultiFileDialog_Impl( pDlg
);
1524 AbstractSvxHpLinkDlg
* AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window
* pParent
, //add for SvxMultiFileDialog
1525 SfxBindings
* pBindings
,
1528 SvxHpLinkDlg
* pDlg
=NULL
;
1531 case SID_HYPERLINK_DIALOG
:
1532 pDlg
= new SvxHpLinkDlg( pParent
, pBindings
);
1539 return new AbstractSvxHpLinkDlg_Impl( pDlg
);
1543 AbstractFmSearchDialog
* AbstractDialogFactory_Impl::CreateFmSearchDialog(Window
* pParent
, //add for FmSearchDialog
1544 const String
& strInitialText
,
1545 const ::std::vector
< String
>& _rContexts
,
1546 sal_Int16 nInitialContext
,
1547 const Link
& lnkContextSupplier
)
1549 FmSearchDialog
* pDlg
= new FmSearchDialog( pParent
, strInitialText
, _rContexts
, nInitialContext
, lnkContextSupplier
);
1551 return new AbstractFmSearchDialog_Impl( pDlg
);
1555 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window
* pParent
, //add for GraphicFilterEmboss
1556 const Graphic
& rGraphic
,
1557 RECT_POINT eLightSource
,
1560 GraphicFilterDialog
* pDlg
= new GraphicFilterEmboss( pParent
, rGraphic
, eLightSource
);
1561 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1564 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window
* pParent
,
1565 const Graphic
& rGraphic
,
1569 GraphicFilterDialog
* pDlg
=NULL
;
1572 case RID_SVX_GRFFILTER_DLG_POSTER
:
1573 pDlg
= new GraphicFilterPoster( pParent
, rGraphic
, nCount
);
1575 case RID_SVX_GRFFILTER_DLG_SEPIA
:
1576 pDlg
= new GraphicFilterSepia( pParent
, rGraphic
, nCount
);
1584 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1588 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window
* pParent
, //add for GraphicFilterSolarize
1589 const Graphic
& rGraphic
,
1590 sal_uInt8 nGreyThreshold
, sal_Bool bInvert
, sal_uInt32
)
1592 GraphicFilterDialog
* pDlg
= new GraphicFilterSolarize( pParent
, rGraphic
, nGreyThreshold
, bInvert
);
1593 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1596 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window
* pParent
, //add for GraphicFilterMosaic
1597 const Graphic
& rGraphic
,
1598 sal_uInt16 nTileWidth
, sal_uInt16 nTileHeight
, sal_Bool bEnhanceEdges
,
1601 GraphicFilterDialog
* pDlg
=NULL
;
1604 case RID_SVX_GRFFILTER_DLG_MOSAIC
:
1605 pDlg
= new GraphicFilterMosaic( pParent
, rGraphic
, nTileWidth
, nTileHeight
, bEnhanceEdges
);
1612 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1616 AbstractSvxAreaTabDialog
* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window
* pParent
,
1617 const SfxItemSet
* pAttr
,
1619 const SdrView
* pSdrView
)
1621 SvxAreaTabDialog
* pDlg
= new SvxAreaTabDialog( pParent
, pAttr
, pModel
,pSdrView
);
1622 return new AbstractSvxAreaTabDialog_Impl( pDlg
);
1625 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window
* pParent
, const SfxItemSet
* pAttr
, //add forSvxLineTabDialog
1627 const SdrObject
* pObj
,
1630 SfxTabDialog
* pDlg
= new SvxLineTabDialog( pParent
, pAttr
, pModel
,pObj
,bHasObj
);
1631 return new AbstractTabDialog_Impl( pDlg
);
1634 SfxAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( Window
* pParent
,
1635 const SfxItemSet
& rAttr
,
1636 const Reference
< XFrame
>& _rxDocumentFrame
,
1640 SfxModalDialog
* pDlg
=NULL
;
1643 case SID_EVENTCONFIG
:
1644 pDlg
= new SfxMacroAssignDlg( pParent
, _rxDocumentFrame
, rAttr
);
1646 case RID_SVXPAGE_MACROASSIGN
:
1647 pDlg
= new SvxShortcutAssignDlg( pParent
, _rxDocumentFrame
, rAttr
);
1649 case RID_SVXDLG_CHARMAP
:
1650 pDlg
= new SvxCharacterMap( pParent
, sal_True
, &rAttr
);
1657 return new AbstractSfxDialog_Impl( pDlg
);
1661 SfxAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( Window
* pParent
,
1662 const SfxItemSet
& rAttr
,
1663 const SdrView
* pView
,
1667 SfxSingleTabDialog
* pDlg
=NULL
;
1670 case RID_SVXPAGE_MEASURE
:
1671 pDlg
= new SvxMeasureDialog( pParent
, rAttr
, pView
);
1673 case RID_SVXPAGE_CONNECTION
:
1674 pDlg
= new SvxConnectionDialog( pParent
, rAttr
, pView
);
1676 case RID_SFXPAGE_DBREGISTER
:
1677 pDlg
= new DatabaseRegistrationDialog( pParent
, rAttr
);
1679 case RID_SVXPAGE_IMPROVEMENT
:
1682 SFX_ITEMSET_ARG( &rAttr
, pItem
, SfxStringItem
, SID_CURRENT_URL
, sal_False
);
1684 help_url
= pItem
->GetValue();
1685 pDlg
= new SvxImprovementDialog( pParent
, help_url
);
1692 return new AbstractSfxDialog_Impl( pDlg
);
1696 AbstractSvxPostItDialog
* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window
* pParent
,
1697 const SfxItemSet
& rCoreSet
,
1698 sal_Bool bPrevNext
, sal_Bool bRedline
)
1700 SvxPostItDialog
* pDlg
= new SvxPostItDialog( pParent
, rCoreSet
, bPrevNext
, bRedline
);
1701 return new AbstractSvxPostItDialog_Impl( pDlg
);
1704 class SvxMacroAssignDialog
: public VclAbstractDialog
1707 SvxMacroAssignDialog( Window
* _pParent
, const Reference
< XFrame
>& _rxDocumentFrame
, const bool _bUnoDialogMode
,
1708 const Reference
< XNameReplace
>& _rxEvents
, const sal_uInt16 _nInitiallySelectedEvent
)
1709 :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM
, SID_ATTR_MACROITEM
)
1711 m_aItems
.Put( SfxBoolItem( SID_ATTR_MACROITEM
, _bUnoDialogMode
) );
1712 m_pDialog
.reset( new SvxMacroAssignDlg( _pParent
, _rxDocumentFrame
, m_aItems
, _rxEvents
, _nInitiallySelectedEvent
) );
1715 virtual short Execute();
1716 virtual ~SvxMacroAssignDialog();
1719 SfxItemSet m_aItems
;
1720 ::std::auto_ptr
< SvxMacroAssignDlg
> m_pDialog
;
1723 short SvxMacroAssignDialog::Execute()
1725 return m_pDialog
->Execute();
1728 SvxMacroAssignDialog::~SvxMacroAssignDialog()
1732 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
1733 Window
* _pParent
, const Reference
< XFrame
>& _rxDocumentFrame
, const bool _bUnoDialogMode
,
1734 const Reference
< XNameReplace
>& _rxEvents
, const sal_uInt16 _nInitiallySelectedEvent
)
1736 return new SvxMacroAssignDialog( _pParent
, _rxDocumentFrame
, _bUnoDialogMode
, _rxEvents
, _nInitiallySelectedEvent
);
1739 // Factories for TabPages
1740 CreateTabPage
AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId
)
1744 case RID_OFA_TP_INTERNATIONAL
:
1745 return ::offapp::InternationalOptionsPage::CreateSc
;
1746 case RID_OFA_TP_INTERNATIONAL_SD
:
1747 case RID_OFA_TP_INTERNATIONAL_IMPR
:
1748 return offapp::InternationalOptionsPage::CreateSd
;
1749 case RID_SVXPAGE_TEXTANIMATION
:
1750 return SvxTextAnimationPage::Create
;
1751 case RID_SVXTABPAGE_GALLERY_GENERAL
:
1752 return TPGalleryThemeGeneral::Create
;
1753 case RID_SVXPAGE_TRANSPARENCE
:
1754 return SvxTransparenceTabPage::Create
;
1755 case RID_SVXPAGE_AREA
:
1756 return SvxAreaTabPage::Create
;
1757 case RID_SVXPAGE_SHADOW
:
1758 return SvxShadowTabPage::Create
;
1759 case RID_SVXPAGE_LINE
:
1760 return SvxLineTabPage::Create
;
1761 case RID_SVXPAGE_CONNECTION
:
1762 return SvxConnectionPage::Create
;
1763 case RID_SVXPAGE_MEASURE
:
1764 return SvxMeasurePage::Create
;
1765 case RID_SFXPAGE_GENERAL
:
1766 return SvxGeneralTabPage::Create
;
1767 case RID_SVXPAGE_PICK_SINGLE_NUM
:
1768 return SvxSingleNumPickTabPage::Create
;
1769 case RID_SVXPAGE_PICK_BMP
:
1770 return SvxBitmapPickTabPage::Create
;
1771 case RID_SVXPAGE_PICK_BULLET
:
1772 return SvxBulletPickTabPage::Create
;
1773 case RID_SVXPAGE_NUM_OPTIONS
:
1774 return SvxNumOptionsTabPage::Create
;
1775 case RID_SVXPAGE_PICK_NUM
:
1776 return SvxNumPickTabPage::Create
;
1777 case RID_SVXPAGE_NUM_POSITION
:
1778 return SvxNumPositionTabPage::Create
;
1779 case RID_SVXPAGE_PARA_ASIAN
:
1780 return SvxAsianTabPage::Create
;
1781 case RID_SVXPAGE_EXT_PARAGRAPH
:
1782 return SvxExtParagraphTabPage::Create
;
1783 case RID_SVXPAGE_ALIGN_PARAGRAPH
:
1784 return SvxParaAlignTabPage::Create
;
1785 case RID_SVXPAGE_STD_PARAGRAPH
:
1786 return SvxStdParagraphTabPage::Create
;
1787 case RID_SVXPAGE_TABULATOR
:
1788 return SvxTabulatorTabPage::Create
;
1789 case RID_SVXPAGE_TEXTATTR
:
1790 return SvxTextAttrPage::Create
;
1791 case RID_SVXPAGE_ALIGNMENT
:
1792 return svx::AlignmentTabPage::Create
;
1793 case RID_SW_TP_BACKGROUND
:
1794 case RID_SVXPAGE_BACKGROUND
:
1795 return SvxBackgroundTabPage::Create
;
1796 case RID_SVXPAGE_BORDER
:
1797 return SvxBorderTabPage::Create
;
1798 case RID_SVXPAGE_CHAR_NAME
:
1799 return SvxCharNamePage::Create
;
1800 case RID_SVXPAGE_CHAR_EFFECTS
:
1801 return SvxCharEffectsPage::Create
;
1802 case RID_SVXPAGE_CHAR_POSITION
:
1803 return SvxCharPositionPage::Create
;
1804 case RID_SVXPAGE_CHAR_TWOLINES
:
1805 return SvxCharTwoLinesPage::Create
;
1806 case RID_SVXPAGE_NUMBERFORMAT
:
1807 return SvxNumberFormatTabPage::Create
;
1808 case RID_SVXPAGE_PAGE
:
1809 return SvxPageDescPage::Create
;
1810 case RID_SVXPAGE_GRFCROP
:
1811 return SvxGrfCropPage::Create
;
1812 case RID_SVXPAGE_MACROASSIGN
:
1813 return SfxMacroTabPage::Create
;
1821 CreateSvxDistributePage
AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc()
1823 return SvxDistributePage::Create
;
1826 DialogGetRanges
AbstractDialogFactory_Impl::GetDialogGetRangesFunc( sal_uInt16 nId
)
1830 case RID_SVXDLG_POSTIT
:
1831 return SvxPostItDialog::GetRanges
; //add for SvxPostItDialog
1838 GetTabPageRanges
AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId
)
1842 case RID_SVXPAGE_TEXTANIMATION
:
1843 return SvxTextAnimationPage::GetRanges
;
1844 case RID_SVXPAGE_DISTRIBUTE
:
1845 return SvxDistributePage::GetRanges
;
1846 case RID_SVXPAGE_TRANSPARENCE
:
1847 return SvxTransparenceTabPage::GetRanges
;
1848 case RID_SVXPAGE_AREA
:
1849 return SvxAreaTabPage::GetRanges
;
1850 case RID_SVXPAGE_SHADOW
:
1851 return SvxShadowTabPage::GetRanges
;
1852 case RID_SVXPAGE_LINE
:
1853 return SvxLineTabPage::GetRanges
;
1854 case RID_SVXPAGE_CONNECTION
:
1855 return SvxConnectionPage::GetRanges
;
1856 case RID_SVXPAGE_MEASURE
:
1857 return SvxMeasurePage::GetRanges
;
1858 case RID_SVXPAGE_PARA_ASIAN
:
1859 return SvxAsianTabPage::GetRanges
;
1860 case RID_SVXPAGE_EXT_PARAGRAPH
:
1861 return SvxExtParagraphTabPage::GetRanges
;
1862 case RID_SVXPAGE_ALIGN_PARAGRAPH
:
1863 return SvxParaAlignTabPage::GetRanges
;
1864 case RID_SVXPAGE_STD_PARAGRAPH
:
1865 return SvxStdParagraphTabPage::GetRanges
;
1866 case RID_SVXPAGE_TABULATOR
:
1867 return SvxTabulatorTabPage::GetRanges
;
1868 case RID_SVXPAGE_TEXTATTR
:
1869 return SvxTextAttrPage::GetRanges
;
1870 case RID_SVXPAGE_ALIGNMENT
:
1871 return svx::AlignmentTabPage::GetRanges
;
1872 case RID_SW_TP_BACKGROUND
:
1873 case RID_SVXPAGE_BACKGROUND
:
1874 return SvxBackgroundTabPage::GetRanges
;
1875 case RID_SVXPAGE_BORDER
:
1876 return SvxBorderTabPage::GetRanges
;
1877 case RID_SVXPAGE_CHAR_NAME
:
1878 return SvxCharNamePage::GetRanges
;
1879 case RID_SVXPAGE_CHAR_EFFECTS
:
1880 return SvxCharEffectsPage::GetRanges
;
1881 case RID_SVXPAGE_CHAR_POSITION
:
1882 return SvxCharPositionPage::GetRanges
;
1883 case RID_SVXPAGE_CHAR_TWOLINES
:
1884 return SvxCharTwoLinesPage::GetRanges
;
1885 case RID_SVXPAGE_NUMBERFORMAT
:
1886 return SvxNumberFormatTabPage::GetRanges
;
1887 case RID_SVXPAGE_PAGE
:
1888 return SvxPageDescPage::GetRanges
;
1889 case RID_SVXPAGE_ASIAN_LAYOUT
:
1890 return SvxAsianLayoutPage::GetRanges
;
1898 SfxAbstractInsertObjectDialog
* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window
* pParent
, const rtl::OUString
& rCommand
,
1899 const Reference
< com::sun::star::embed::XStorage
>& xStor
,
1900 const SvObjectServerList
* pList
)
1902 InsertObjectDialog_Impl
* pDlg
=0;
1903 if ( rCommand
.equalsAscii(".uno:InsertObject" ) )
1904 pDlg
= new SvInsertOleDlg( pParent
, xStor
, pList
);
1905 else if ( rCommand
.equalsAscii(".uno:InsertPlugin" ) )
1906 pDlg
= new SvInsertPlugInDialog( pParent
, xStor
);
1907 else if ( rCommand
.equalsAscii(".uno:InsertObjectFloatingFrame" ) )
1908 pDlg
= new SfxInsertFloatingFrameDialog( pParent
, xStor
);
1912 pDlg
->SetHelpId( rtl::OString( rCommand
, rCommand
.getLength(), RTL_TEXTENCODING_UTF8
) );
1913 return new AbstractInsertObjectDialog_Impl( pDlg
);
1918 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window
* pParent
, const rtl::OUString
& rCommand
,
1919 const Reference
< com::sun::star::embed::XEmbeddedObject
>& xObj
)
1921 InsertObjectDialog_Impl
* pDlg
=0;
1922 if ( rCommand
.equalsAscii(".uno:InsertObjectFloatingFrame" ) )
1924 pDlg
= new SfxInsertFloatingFrameDialog( pParent
, xObj
);
1925 pDlg
->SetHelpId( rtl::OString( rCommand
, rCommand
.getLength(), RTL_TEXTENCODING_UTF8
) );
1926 return new VclAbstractDialog_Impl( pDlg
);
1933 SfxAbstractPasteDialog
* AbstractDialogFactory_Impl::CreatePasteDialog( Window
* pParent
)
1935 return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent
) );
1938 SfxAbstractLinksDialog
* AbstractDialogFactory_Impl::CreateLinksDialog( Window
* pParent
, sfx2::LinkManager
* pMgr
, sal_Bool bHTML
, sfx2::SvBaseLink
* p
)
1940 SvBaseLinksDlg
* pLinkDlg
= new SvBaseLinksDlg( pParent
, pMgr
, bHTML
);
1942 pLinkDlg
->SetActLink(p
);
1943 return new AbstractLinksDialog_Impl( pLinkDlg
);
1946 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window
* pParent
, const SfxItemSet
* pAttr
, SdrModel
* pModel
, const SdrObject
* /*pObj*/ )
1948 return new AbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent
, pAttr
, pModel
) );
1951 SvxAbstractSplittTableDialog
* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window
* pParent
, bool bIsTableVertical
, long nMaxVertical
, long nMaxHorizontal
)
1953 return new SvxSplitTableDlg( pParent
, bIsTableVertical
, nMaxVertical
, nMaxHorizontal
);
1956 SvxAbstractNewTableDialog
* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window
* pParent
)
1958 return new SvxNewTableDialog( pParent
);
1961 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateOptionsDialog(
1962 Window
* pParent
, const rtl::OUString
& rExtensionId
, const rtl::OUString
& /*rApplicationContext*/ )
1964 return new VclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent
, rExtensionId
) );
1967 SvxAbstractInsRowColDlg
* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window
* pParent
, bool bCol
, const rtl::OString
& sHelpId
)
1969 return new SvxInsRowColDlg( pParent
, bCol
, sHelpId
);
1972 AbstractPasswordToOpenModifyDialog
* AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog(
1974 sal_uInt16 nMinPasswdLen
, sal_uInt16 nMaxPasswdLen
, bool bIsPasswordToModify
)
1976 PasswordToOpenModifyDialog
* pDlg
= new PasswordToOpenModifyDialog( pParent
, nMinPasswdLen
, nMaxPasswdLen
, bIsPasswordToModify
);
1977 return new AbstractPasswordToOpenModifyDialog_Impl( pDlg
);