1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dlgfact.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_svx.hxx"
34 #ifdef SVX_DLLIMPLEMENTATION
35 #undef SVX_DLLIMPLEMENTATION
38 #include "numfmt.hxx" //add for SvxNumberFormatTabPage
40 #include "dlgfact.hxx"
43 #include <tools/rc.hxx>
44 #include <sfx2/basedlgs.hxx>
45 #include <sfx2/app.hxx>
46 #include <sfx2/request.hxx>
47 #include <svx/optimprove.hxx>
48 #include "splitcelldlg.hxx"
49 #include <svx/dialogs.hrc>
50 #include "fmresids.hrc"
51 #include "gallery.hrc"
52 //#include "imapdlg.hrc"
53 // dialogs and tabpages
54 #include "dstribut.hxx"
55 #include "cuigaldlg.hxx"
56 #include "cuiimapwnd.hxx"
57 #include "hlmarkwn.hxx"
58 #include "cuicharmap.hxx"
59 #include "srchxtra.hxx"
60 #include "textanim.hxx"
61 #include "autocdlg.hxx"
62 #include "treeopt.hxx"
63 #include "internationaloptions.hxx"
65 #include "dstribut.hxx"
66 #include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog
67 #include "showcols.hxx" //add for FmShowColsDialog
68 #include "zoom.hxx" //add for SvxZoomDialog
69 #include "cuigaldlg.hxx" //add for Gallery 6 Dialogs and 1 TabPage
70 #include "cuiimapwnd.hxx" //add for URLDlg
71 #include "hlmarkwn.hxx" //add for SvxHlinkDlgMarkWnd
72 #include "srchxtra.hxx" //add for SvxSearchFormatDialog
73 #include "transfrm.hxx" //add for SvxTransformTabDialog
74 #include "bbdlg.hxx" //add for SvxBorderBackgroundDlg
75 #include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog
76 #include "cuitbxform.hxx" //add for FmInputRecordNoDialog
77 #include "optdict.hxx" //add for SvxNewDictionaryDialog
78 #include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog
79 #include "multipat.hxx" //add for SvxMultiPathDialog
80 #include "multifil.hxx" //add for SvxMultiFileDialog
81 #include "cuihyperdlg.hxx" //add for SvxHpLinkDlg
82 #include "cuifmsearch.hxx" //add for FmSearchDialog
83 #include "cuigrfflt.hxx" //add for GraphicFilterDialog
84 #include "cuitabarea.hxx" //add for SvxAreaTabDialog
85 #include "cuitabline.hxx" //add for SvxLineTabDialog
86 #include "measure.hxx" //add for SvxMeasureDialog
87 #include "connect.hxx" //add for SvxConnectionDialog
88 #include "dbregister.hxx" // add for DatabaseRegistrationDialog
89 #include "cuioptgenrl.hxx" //add for SvxGeneralTabPage
90 #include <optasian.hxx>
92 #include "pastedlg.hxx"
93 #include "linkdlg.hxx"
94 #include "SpellDialog.hxx"
95 #include "cfg.hxx" //add for SvxConfigDialog
97 #include "numpages.hxx" // add for
98 #include "paragrph.hxx" //add for
99 #include "tabstpge.hxx" // add for
100 #include "textattr.hxx" // add for SvxTextAttrPage
101 #include "align.hxx" //add for SvxAlignmentTabPage
102 #include "backgrnd.hxx" //add for SvxBackgroundTabPage
103 #include "border.hxx" //add for SvxBorderTabPage
104 #include "chardlg.hxx" //add for SvxCharNamePage,SvxCharEffectsPage,SvxCharPositionPage,SvxCharTwoLinesPage
105 #include "page.hxx" //add for SvxPageDescPage
106 #include "postdlg.hxx" //add for SvxPostItDialog
107 #include "grfpage.hxx" //add for SvxGrfCropPage
108 #include "scriptdlg.hxx" // for ScriptOrgDialog
109 #include "selector.hxx" // for SvxScriptSelectorDialog
110 #include "macropg.hxx" // for SvxMacroAssignDlg
111 #include "sdrcelldlg.hxx"
112 #include "newtabledlg.hxx"
113 #include "macroass.hxx"
114 #include "acccfg.hxx"
117 using namespace ::com::sun::star
;
118 using namespace ::com::sun::star::frame
;
119 using namespace ::com::sun::star::container
;
121 using ::com::sun::star::uno::Reference
;
124 // AbstractTabDialog implementations just forwards everything to the dialog
125 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl
)
126 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl
)
127 IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl
);
128 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl
);
129 IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl
);
130 IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl
);
131 IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl
);
133 AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl() \
137 short AbstractSvxZoomDialog_Impl::Execute()
139 return pDlg
->Execute();
142 //IMPL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl);
143 IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl
);
144 IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl
);
145 IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl
);
146 IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl
);
147 IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl
);
148 IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl
);
149 IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl
);
150 IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl
);
151 IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl
);
152 IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl
);
153 IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl
);
154 IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl
);
155 IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl
);
156 IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl
);
159 IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl
);
160 IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl
);
162 IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl
);
163 IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl
);
164 IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl
);
165 IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl
);
166 IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl
);
167 IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl
);
168 IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl
);
169 IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl
);
170 IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl
);
171 IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl
);
172 IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl
);
173 IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl
);
175 //////////////////////////////////////////////////////////////////////////
176 // VclAbstractDialog2_Impl
177 //////////////////////////////////////////////////////////////////////////
180 VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
186 void VclAbstractDialog2_Impl::StartExecuteModal( const Link
& rEndDialogHdl
)
188 m_aEndDlgHdl
= rEndDialogHdl
;
189 m_pDlg
->StartExecuteModal(
190 LINK( this, VclAbstractDialog2_Impl
, EndDialogHdl
) );
194 long VclAbstractDialog2_Impl::GetResult()
196 return m_pDlg
->GetResult();
199 IMPL_LINK( VclAbstractDialog2_Impl
, EndDialogHdl
, Dialog
*, pDlg
)
201 if ( pDlg
!= m_pDlg
)
203 DBG_ERRORFILE( "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
206 m_aEndDlgHdl
.Call( this );
207 m_aEndDlgHdl
= Link();
212 //////////////////////////////////////////////////////////////////////////
214 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId
)
216 pDlg
->SetCurPageId( nId
);
219 const SfxItemSet
* AbstractTabDialog_Impl::GetOutputItemSet() const
221 return pDlg
->GetOutputItemSet();
224 const USHORT
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
226 return pDlg
->GetInputRanges( pItem
);
229 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
231 pDlg
->SetInputSet( pInSet
);
234 void AbstractTabDialog_Impl::SetText( const XubString
& rStr
)
236 pDlg
->SetText( rStr
);
238 String
AbstractTabDialog_Impl::GetText() const
240 return pDlg
->GetText();
243 // AbstractTabDialog_Impl end
245 const SfxItemSet
* AbstractSfxDialog_Impl::GetOutputItemSet() const
247 return pDlg
->GetOutputItemSet();
250 void AbstractSfxDialog_Impl::SetText( const XubString
& rStr
)
252 pDlg
->SetText( rStr
);
255 String
AbstractSfxDialog_Impl::GetText() const
257 return pDlg
->GetText();
260 //for SvxDistributeDialog begin
261 SvxDistributeHorizontal
AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
263 return pDlg
->GetDistributeHor();
265 SvxDistributeVertical
AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
267 return pDlg
->GetDistributeVer();
269 //for SvxDistributeDialog end
271 // for HangulHanjaConversionDialog begin
272 void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult
)
274 pDlg
->EndDialog(nResult
);
277 void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( sal_Bool _bVal
)
279 pDlg
->EnableRubySupport(_bVal
);
282 void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter
)
284 pDlg
->SetByCharacter(_bByCharacter
);
287 void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( sal_Bool _bTryBothDirections
, HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection
)
289 pDlg
->SetConversionDirectionState(_bTryBothDirections
, _ePrimaryConversionDirection
);
292 void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( HangulHanjaConversion::ConversionFormat _eType
)
294 pDlg
->SetConversionFormat(_eType
);
297 void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link
& _rHdl
)
299 pDlg
->SetOptionsChangedHdl(_rHdl
);
302 void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link
& _rHdl
)
304 pDlg
->SetIgnoreHdl(_rHdl
);
307 void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link
& _rHdl
)
309 pDlg
->SetIgnoreAllHdl(_rHdl
);
312 void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link
& _rHdl
)
314 pDlg
->SetChangeHdl(_rHdl
);
317 void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link
& _rHdl
)
319 pDlg
->SetChangeAllHdl(_rHdl
);
322 void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link
& _rHdl
)
324 pDlg
->SetClickByCharacterHdl(_rHdl
);
327 void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link
& _rHdl
)
329 pDlg
->SetConversionFormatChangedHdl(_rHdl
);
331 void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link
& _rHdl
)
333 pDlg
->SetFindHdl(_rHdl
);
336 sal_Bool
AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
338 return pDlg
->GetUseBothDirections();
341 HangulHanjaConversion::ConversionDirection
AbstractHangulHanjaConversionDialog_Impl::GetDirection( HangulHanjaConversion::ConversionDirection _eDefaultDirection
) const
343 return pDlg
->GetDirection( _eDefaultDirection
);
346 void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
347 const String
& _rNewString
,
348 const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& _rSuggestions
,
349 bool _bOriginatesFromDocument
352 pDlg
->SetCurrentString(_rNewString
,_rSuggestions
,_bOriginatesFromDocument
);
354 String
AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
356 return pDlg
->GetCurrentString();
358 HangulHanjaConversion::ConversionFormat
AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
360 return pDlg
->GetConversionFormat();
363 void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
365 pDlg
->FocusSuggestion();
368 String
AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
370 return pDlg
->GetCurrentSuggestion();
373 Reference
< com::sun::star::embed::XEmbeddedObject
> AbstractInsertObjectDialog_Impl::GetObject()
375 return pDlg
->GetObject();
378 BOOL
AbstractInsertObjectDialog_Impl::IsCreateNew()
380 return pDlg
->IsCreateNew();
383 ::Reference
< ::com::sun::star::io::XInputStream
> AbstractInsertObjectDialog_Impl::GetIconIfIconified( ::rtl::OUString
* pGraphicMediaType
)
385 return pDlg
->GetIconIfIconified( pGraphicMediaType
);
388 void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat
, const String
& rFormatName
)
390 pDlg
->Insert( nFormat
, rFormatName
);
393 void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName
& rClass
, const String
& rObjName
)
395 pDlg
->SetObjName( rClass
, rObjName
);
398 ULONG
AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper
& aHelper
,
399 const DataFlavorExVector
* pFormats
,
400 const TransferableObjectDescriptor
* pDesc
)
402 return pDlg
->GetFormat( aHelper
, pFormats
, pDesc
);
405 // for HangulHanjaConversionDialog end
406 // for FmShowColsDialog begin
407 void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference
< ::com::sun::star::container::XIndexContainer
>& xCols
)
409 pDlg
->SetColumns(xCols
);
412 //for FmShowColsDialog end
414 //for SvxZoomDialog begin
415 void AbstractSvxZoomDialog_Impl::SetLimits( USHORT nMin
, USHORT nMax
)
417 pDlg
->SetLimits( nMin
, nMax
);
420 void AbstractSvxZoomDialog_Impl::HideButton( USHORT nBtnId
)
422 pDlg
->HideButton( nBtnId
);
425 const SfxItemSet
* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
427 return pDlg
->GetOutputItemSet();
430 //for SvxZoomDialog end
431 // svx::SvxSpellDialog
432 /*-- 04.05.2004 08:26:12---------------------------------------------------
434 -----------------------------------------------------------------------*/
435 void AbstractSpellDialog_Impl::SetLanguage( sal_uInt16 nLang
)
437 pDlg
->SetLanguage(nLang
);
439 /*-- 04.05.2004 08:26:13---------------------------------------------------
441 -----------------------------------------------------------------------*/
442 sal_Bool
AbstractSpellDialog_Impl::Close()
444 return pDlg
->Close();
446 /*-- 04.05.2004 08:26:13---------------------------------------------------
448 -----------------------------------------------------------------------*/
449 void AbstractSpellDialog_Impl::Invalidate()
451 pDlg
->InvalidateDialog();
453 /*-- 04.05.2004 08:26:13---------------------------------------------------
455 -----------------------------------------------------------------------*/
456 Window
* AbstractSpellDialog_Impl::GetWindow()
460 /*-- 04.05.2004 08:26:13---------------------------------------------------
462 -----------------------------------------------------------------------*/
463 SfxBindings
& AbstractSpellDialog_Impl::GetBindings()
465 return pDlg
->GetBindings();
467 // end svx::SvxSpellDialog
469 //for SvxSpellCheckDialog begin
470 //STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetNewEditWord( const String& _rNew )
472 //STRIP001 return pDlg->SetNewEditWord(_rNew );
475 //STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetLanguage( sal_uInt16 nLang )
477 //STRIP001 return pDlg->SetLanguage( nLang );
480 //STRIP001 void AbstractSvxSpellCheckDialog_Impl::HideAutoCorrect()
482 //STRIP001 return pDlg->HideAutoCorrect();
485 //STRIP001 String AbstractSvxSpellCheckDialog_Impl::GetNewEditWord()
487 //STRIP001 return pDlg->GetNewEditWord();
490 //STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetNewEditWord( const String& _rNew )
492 //STRIP001 return pDlg->SetNewEditWord( _rNew );
495 //for SvxSpellCheckDialog end
497 //for SearchProgress begin
498 void AbstractSearchProgress_Impl::Update()
503 void AbstractSearchProgress_Impl::Sync()
508 void AbstractSearchProgress_Impl::SetFileType( const String
& rType
)
510 pDlg
->SetFileType( rType
);
513 void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject
& rURL
)
515 pDlg
->SetDirectory( rURL
);
517 PLinkStub
AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl()
519 return SearchProgress::LinkStubCleanUpHdl
;
521 //for SearchProgress end
523 //for TakeProgress begin
524 void AbstractTakeProgress_Impl::Update()
529 void AbstractTakeProgress_Impl::Sync()
534 void AbstractTakeProgress_Impl::SetFile( const INetURLObject
& rURL
)
536 pDlg
->SetFile( rURL
);
539 PLinkStub
AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl()
541 return TakeProgress::LinkStubCleanUpHdl
;
543 //for TakeProgress end
545 //for TitleDialog begin
546 String
AbstractTitleDialog_Impl::GetTitle() const
548 return pDlg
->GetTitle();
550 //for TitleDialog end
552 //for GalleryIdDialog begin
553 ULONG
AbstractGalleryIdDialog_Impl::GetId() const
555 return pDlg
->GetId();
557 //for GalleryIdDialog end
559 //for VclAbstracRefreshableDialog begin
560 void VclAbstractRefreshableDialog_Impl::Update()
565 void VclAbstractRefreshableDialog_Impl::Sync()
569 //for VclAbstracRefreshableDialog end
572 String
AbstractURLDlg_Impl::GetURL() const
574 return pDlg
->GetURL();
577 String
AbstractURLDlg_Impl::GetAltText() const
579 return pDlg
->GetAltText();
582 String
AbstractURLDlg_Impl::GetDesc() const
584 return pDlg
->GetDesc();
587 String
AbstractURLDlg_Impl::GetTarget() const
589 return pDlg
->GetTarget();
592 String
AbstractURLDlg_Impl::GetName() const
594 return pDlg
->GetName();
598 // AbstractSvxHlinkDlgMarkWnd_Impl begin
600 void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( USHORT nFlags
)
602 ((Window
*)pDlg
)->Hide( nFlags
);
605 void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size
& rNewSize
)
607 pDlg
->SetSizePixel( rNewSize
);
610 Size
AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const
612 return pDlg
->GetSizePixel();
615 BOOL
AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const
617 return (( Window
* )pDlg
)->IsVisible();
620 void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( USHORT nFlags
)
622 (( Window
* )pDlg
)->Invalidate(nFlags
);
625 BOOL
AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos
)const
627 return pDlg
->MoveTo(aNewPos
);
630 BOOL
AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( BOOL bDoit
)const
632 return pDlg
->ConnectToDialog(bDoit
);
635 void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL
)
637 pDlg
->RefreshTree(aStrURL
);
640 void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark
)
642 pDlg
->SelectEntry(aStrMark
);
645 USHORT
AbstractSvxHlinkDlgMarkWnd_Impl::SetError( USHORT nError
)
647 return pDlg
->SetError(nError
);
650 // AbstractSvxHlinkDlgMarkWnd_Impl end
652 //for SvxSearchSimilarityDialog begin
653 USHORT
AbstractSvxSearchSimilarityDialog_Impl::GetOther()
655 return pDlg
->GetOther();
658 USHORT
AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
660 return pDlg
->GetShorter();
663 USHORT
AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
665 return pDlg
-> GetLonger();
668 BOOL
AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
670 return pDlg
-> IsRelaxed();
672 //for SvxSearchSimilarityDialog end
674 // AbstractSvxTransformTabDialog implementations just forwards everything to the dialog
675 void AbstractSvxTransformTabDialog_Impl::SetCurPageId( USHORT nId
)
677 pDlg
->SetCurPageId( nId
);
679 const SfxItemSet
* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
681 return pDlg
->GetOutputItemSet();
684 const USHORT
* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
686 return pDlg
->GetInputRanges( pItem
);
689 void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
691 pDlg
->SetInputSet( pInSet
);
694 void AbstractSvxTransformTabDialog_Impl::SetText( const XubString
& rStr
)
696 pDlg
->SetText( rStr
);
698 String
AbstractSvxTransformTabDialog_Impl::GetText() const
700 return pDlg
->GetText();
702 void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link
& rLink
)
704 pDlg
->SetValidateFramePosLink( rLink
);
706 // AbstractSvxTransformTabDialog end
708 // AbstractSvxCaptionDialog implementations just forwards everything to the dialog
709 void AbstractSvxCaptionDialog_Impl::SetCurPageId( USHORT nId
)
711 pDlg
->SetCurPageId( nId
);
713 const SfxItemSet
* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
715 return pDlg
->GetOutputItemSet();
718 const USHORT
* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
720 return pDlg
->GetInputRanges( pItem
);
723 void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
725 pDlg
->SetInputSet( pInSet
);
728 void AbstractSvxCaptionDialog_Impl::SetText( const XubString
& rStr
)
730 pDlg
->SetText( rStr
);
732 String
AbstractSvxCaptionDialog_Impl::GetText() const
734 return pDlg
->GetText();
736 void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link
& rLink
)
738 pDlg
->SetValidateFramePosLink( rLink
);
740 // SvxAbstractCaptionDialog end
742 //for SvxJSearchOptionsDialog begin
743 INT32
AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
745 return pDlg
->GetTransliterationFlags();
747 //for SvxJSearchOptionsDialog end
749 //for FmInputRecordNoDialog begin
750 void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew
)
752 pDlg
->SetValue(nNew
);
755 long AbstractFmInputRecordNoDialog_Impl::GetValue() const
757 return pDlg
->GetValue();
759 //for FmInputRecordNoDialog end
761 //for SvxNewDictionaryDialog begin
763 ::com::sun::star::linguistic2::XDictionary
> AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
765 return pDlg
->GetNewDictionary();
767 //for SvxNewDictionaryDialog end
769 //for SvxNameDialog begin
770 void AbstractSvxNameDialog_Impl::GetName( String
& rName
)
772 pDlg
->GetName( rName
);
774 void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link
& rLink
, bool bCheckImmediately
)
776 aCheckNameHdl
= rLink
;
778 pDlg
->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl
, CheckNameHdl
), bCheckImmediately
);
780 pDlg
->SetCheckNameHdl( Link(), bCheckImmediately
);
782 void AbstractSvxNameDialog_Impl::SetEditHelpId(ULONG nHelpId
)
784 pDlg
->SetEditHelpId( nHelpId
);
786 void AbstractSvxNameDialog_Impl::SetHelpId( ULONG nHelpId
)
788 pDlg
->SetHelpId( nHelpId
);
790 void AbstractSvxNameDialog_Impl::SetText( const XubString
& rStr
)
792 pDlg
->SetText( rStr
);
794 IMPL_LINK( AbstractSvxNameDialog_Impl
, CheckNameHdl
, Window
*, EMPTYARG
)
796 if( aCheckNameHdl
.IsSet() )
797 return aCheckNameHdl
.Call(this);
800 //for SvxNameDialog end
802 ///////////////////////////////////////////////////////////////////////////////////////////////
805 void AbstractSvxObjectNameDialog_Impl::GetName(String
& rName
)
807 pDlg
->GetName(rName
);
810 void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link
& rLink
, bool bCheckImmediately
)
812 aCheckNameHdl
= rLink
;
816 pDlg
->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl
, CheckNameHdl
), bCheckImmediately
);
820 pDlg
->SetCheckNameHdl(Link(), bCheckImmediately
);
824 IMPL_LINK(AbstractSvxObjectNameDialog_Impl
, CheckNameHdl
, Window
*, EMPTYARG
)
826 if(aCheckNameHdl
.IsSet())
828 return aCheckNameHdl
.Call(this);
834 ///////////////////////////////////////////////////////////////////////////////////////////////
837 void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(String
& rTitle
)
839 pDlg
->GetTitle(rTitle
);
842 void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(String
& rDescription
)
844 pDlg
->GetDescription(rDescription
);
847 ///////////////////////////////////////////////////////////////////////////////////////////////
849 //for SvxMessDialog begin
850 void AbstractSvxMessDialog_Impl::SetButtonText( USHORT nBtnId
, const String
& rNewTxt
)
852 pDlg
->SetButtonText( nBtnId
, rNewTxt
);
854 //for SvxMessDialog end
856 //for SvxMultiPathDialog begin
857 String
AbstractSvxMultiPathDialog_Impl::GetPath() const
859 return pDlg
->GetPath();
862 void AbstractSvxMultiPathDialog_Impl::SetPath( const String
& rPath
)
864 pDlg
->SetPath( rPath
);
867 void AbstractSvxMultiPathDialog_Impl::EnableRadioButtonMode()
869 pDlg
->EnableRadioButtonMode();
872 void AbstractSvxMultiPathDialog_Impl::SetTitle( const String
& rNewTitle
)
874 pDlg
->SetText( rNewTitle
);
876 //for SvxMultiPathDialog end
878 //for SvxMultiFileDialog begin
879 String
AbstractSvxMultiFileDialog_Impl::GetPath() const
881 return pDlg
->GetPath();
884 void AbstractSvxMultiFileDialog_Impl::SetPath( const String
& rPath
)
886 pDlg
->SetPath( rPath
);
889 String
AbstractSvxMultiFileDialog_Impl::GetFiles() const
891 return pDlg
->GetFiles();
894 void AbstractSvxMultiFileDialog_Impl::SetFiles( const String
& rPath
)
896 pDlg
->SetFiles( rPath
);
899 void AbstractSvxMultiFileDialog_Impl::SetClassPathMode()
901 pDlg
->SetClassPathMode();
904 void AbstractSvxMultiFileDialog_Impl::EnableRadioButtonMode()
906 pDlg
->EnableRadioButtonMode();
909 void AbstractSvxMultiFileDialog_Impl::SetTitle( const String
& rNewTitle
)
911 pDlg
->SetText( rNewTitle
);
914 void AbstractSvxMultiFileDialog_Impl::SetHelpId( ULONG nHelpId
)
916 pDlg
->SetHelpId( nHelpId
);
918 //for SvxMultiFileDialog end
920 //for SvxHpLinkDlg begin
921 Window
* AbstractSvxHpLinkDlg_Impl::GetWindow()
923 return (Window
*)pDlg
;
926 sal_Bool
AbstractSvxHpLinkDlg_Impl::QueryClose()
928 return pDlg
->QueryClose();
930 //for SvxHpLinkDlg end
933 //for FmSearchDialog begin
934 void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link
& lnk
)
936 pDlg
->SetFoundHandler(lnk
);
938 void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link
& lnk
)
940 pDlg
->SetCanceledNotFoundHdl(lnk
);
942 void AbstractFmSearchDialog_Impl::SetActiveField(const String
& strField
)
944 pDlg
->SetActiveField(strField
);
946 //for FmSearchDialog end
948 //for GraphicFilterDialog begin
949 Graphic
AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic
& rGraphic
, double fScaleX
, double fScaleY
)
951 return pDlg
->GetFilteredGraphic( rGraphic
, fScaleX
, fScaleY
);
953 //for GraphicFilterDialog end
955 // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
956 void AbstractSvxAreaTabDialog_Impl::SetCurPageId( USHORT nId
)
958 pDlg
->SetCurPageId( nId
);
961 const SfxItemSet
* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
963 return pDlg
->GetOutputItemSet();
966 const USHORT
* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
968 return pDlg
->GetInputRanges( pItem
);
971 void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
973 pDlg
->SetInputSet( pInSet
);
976 void AbstractSvxAreaTabDialog_Impl::SetText( const XubString
& rStr
)
978 pDlg
->SetText( rStr
);
980 String
AbstractSvxAreaTabDialog_Impl::GetText() const
982 return pDlg
->GetText();
985 void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable()
987 return pDlg
->DontDeleteColorTable();
989 // AbstractSvxAreaTabDialog_Impl end
991 // add SvxPostItDialog begin
992 void AbstractSvxPostItDialog_Impl::SetText( const XubString
& rStr
)
994 pDlg
->SetText( rStr
);
996 const SfxItemSet
* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
998 return pDlg
->GetOutputItemSet();
1000 void AbstractSvxPostItDialog_Impl::EnableTravel(BOOL bNext
, BOOL bPrev
)
1002 pDlg
->EnableTravel( bNext
, bPrev
);
1004 String
AbstractSvxPostItDialog_Impl::GetNote()
1006 return pDlg
->GetNote();
1008 void AbstractSvxPostItDialog_Impl::SetNote(const String
& rTxt
)
1010 pDlg
->SetNote( rTxt
);
1012 void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const String
& rAuthor
, const String
& rDate
)
1014 pDlg
->ShowLastAuthor( rAuthor
, rDate
);
1016 void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
1018 pDlg
->DontChangeAuthor();
1020 void AbstractSvxPostItDialog_Impl::HideAuthor()
1024 void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(BOOL bDisable
)
1026 pDlg
->SetReadonlyPostIt( bDisable
);
1028 BOOL
AbstractSvxPostItDialog_Impl::IsOkEnabled() const
1030 return pDlg
->IsOkEnabled();
1032 void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link
& rLink
)
1036 pDlg
->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl
, NextHdl
) );
1038 pDlg
->SetNextHdl( Link() );
1040 void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link
& rLink
)
1044 pDlg
->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl
, PrevHdl
) );
1046 pDlg
->SetPrevHdl( Link() );
1048 IMPL_LINK( AbstractSvxPostItDialog_Impl
, NextHdl
, Window
*, EMPTYARG
)
1050 if( aNextHdl
.IsSet() )
1051 aNextHdl
.Call(this);
1054 IMPL_LINK( AbstractSvxPostItDialog_Impl
, PrevHdl
, Window
*, EMPTYARG
)
1056 if( aPrevHdl
.IsSet() )
1057 aPrevHdl
.Call(this);
1060 Window
* AbstractSvxPostItDialog_Impl::GetWindow()
1062 return (Window
*)pDlg
;
1065 // SvxPostItDialog end
1067 //--------------------------------------------------------------
1068 // Create dialogs with simplest interface
1069 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateVclDialog( Window
* pParent
, sal_uInt32 nResId
)
1074 case SID_OPTIONS_TREEDIALOG
:
1075 case SID_OPTIONS_DATABASES
:
1076 case SID_LANGUAGE_OPTIONS
:
1078 bool bActivateLastSelection
= false;
1079 if (nResId
== SID_OPTIONS_TREEDIALOG
)
1080 bActivateLastSelection
= true;
1081 Reference
< frame::XFrame
> xFrame
;
1082 OfaTreeOptionsDialog
* pOptDlg
= new OfaTreeOptionsDialog( pParent
, xFrame
, bActivateLastSelection
);
1083 if (nResId
== SID_OPTIONS_DATABASES
)
1085 pOptDlg
->ActivatePage(SID_SB_DBREGISTEROPTIONS
);
1087 else if (nResId
== SID_LANGUAGE_OPTIONS
)
1089 //open the tab page "tools/options/languages"
1090 pOptDlg
->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE
);
1100 return new VclAbstractDialog_Impl( pDlg
);
1104 // dialogs that use SfxBindings
1105 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( Window
* /*pParent*/, const SfxBindings
&, sal_uInt32
)
1110 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateFrameDialog(
1111 Window
* pParent
, const Reference
< frame::XFrame
>& rxFrame
,
1112 sal_uInt32 nResId
, const String
& rParameter
)
1114 Dialog
* pDlg
= NULL
;
1115 if ( SID_OPTIONS_TREEDIALOG
== nResId
|| SID_OPTIONS_DATABASES
== nResId
)
1117 // only activate last page if we dont want to activate a special page
1118 bool bActivateLastSelection
= ( nResId
!= SID_OPTIONS_DATABASES
&& rParameter
.Len() == 0 );
1119 OfaTreeOptionsDialog
* pOptDlg
= new OfaTreeOptionsDialog( pParent
, rxFrame
, bActivateLastSelection
);
1120 if ( nResId
== SID_OPTIONS_DATABASES
)
1121 pOptDlg
->ActivatePage(SID_SB_DBREGISTEROPTIONS
);
1122 else if ( rParameter
.Len() > 0 )
1123 pOptDlg
->ActivatePage( rParameter
);
1128 return new VclAbstractDialog_Impl( pDlg
);
1133 // TabDialog outside the drawing layer
1134 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId
,
1136 const SfxItemSet
* pAttrSet
,
1141 SfxTabDialog
* pDlg
=NULL
;
1144 case RID_OFA_AUTOCORR_DLG
:
1145 pDlg
= new OfaAutoCorrDlg( pParent
, pAttrSet
);
1147 case RID_SVXDLG_CUSTOMIZE
:
1148 pDlg
= new SvxConfigDialog( pParent
, pAttrSet
);
1155 return new AbstractTabDialog_Impl( pDlg
);
1159 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId
,
1161 const SfxItemSet
* pAttrSet
,
1162 const Reference
< frame::XFrame
>& xViewFrame
,
1166 SfxTabDialog
* pDlg
=NULL
;
1169 case RID_OFA_AUTOCORR_DLG
:
1170 pDlg
= new OfaAutoCorrDlg( pParent
, pAttrSet
);
1172 case RID_SVXDLG_CUSTOMIZE
:
1174 SvxConfigDialog
* pDlg1
= new SvxConfigDialog( pParent
, pAttrSet
);
1175 pDlg1
->SetFrame(xViewFrame
);
1176 pDlg
= (SfxTabDialog
*)pDlg1
;
1184 return new AbstractTabDialog_Impl( pDlg
);
1188 // TabDialog that use functionality of the drawing layer
1189 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTextTabDialog( Window
* pParent
,
1190 const SfxItemSet
* pAttrSet
,
1195 SfxTabDialog
* pDlg
=NULL
;
1198 case RID_SVXDLG_TEXT
:
1199 pDlg
= new SvxTextTabDialog( pParent
, pAttrSet
, pView
);
1206 return new AbstractTabDialog_Impl( pDlg
);
1210 //TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog CHINA001
1211 AbstractSvxCaptionDialog
* AbstractDialogFactory_Impl::CreateCaptionDialog( Window
* pParent
,
1212 const SdrView
* pView
,
1214 USHORT nAnchorTypes
)
1216 SvxCaptionTabDialog
* pDlg
=NULL
;
1219 case RID_SVXDLG_CAPTION
:
1220 pDlg
= new SvxCaptionTabDialog( pParent
, pView
, nAnchorTypes
);
1227 return new AbstractSvxCaptionDialog_Impl( pDlg
);
1231 AbstractSvxDistributeDialog
* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window
* pParent
,
1232 const SfxItemSet
& rAttr
,
1234 SvxDistributeHorizontal eHor
,
1235 SvxDistributeVertical eVer
)
1237 SvxDistributeDialog
* pDlg
=NULL
;
1240 case RID_SVXPAGE_DISTRIBUTE
:
1241 pDlg
= new SvxDistributeDialog( pParent
, rAttr
, eHor
, eVer
);
1248 return new AbstractSvxDistributeDialog_Impl( pDlg
);
1252 AbstractHangulHanjaConversionDialog
* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window
* pParent
,
1253 HangulHanjaConversion::ConversionDirection _ePrimaryDirection
,
1256 HangulHanjaConversionDialog
* pDlg
=NULL
;
1259 case RID_SVX_MDLG_HANGULHANJA
:
1260 pDlg
= new HangulHanjaConversionDialog( pParent
, _ePrimaryDirection
);
1267 return new AbstractHangulHanjaConversionDialog_Impl( pDlg
);
1271 AbstractFmShowColsDialog
* AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window
* pParent
, //add for FmShowColsDialog
1274 FmShowColsDialog
* pDlg
=NULL
;
1277 case RID_SVX_DLG_SHOWGRIDCOLUMNS
:
1278 pDlg
= new FmShowColsDialog( pParent
);
1285 return new AbstractFmShowColsDialog_Impl( pDlg
);
1288 AbstractSvxZoomDialog
* AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window
* pParent
, //add for SvxZoomDialog
1289 const SfxItemSet
& rCoreSet
,
1292 SvxZoomDialog
* pDlg
=NULL
;
1295 case RID_SVXDLG_ZOOM
:
1296 pDlg
= new SvxZoomDialog( pParent
, rCoreSet
);
1303 return new AbstractSvxZoomDialog_Impl( pDlg
);
1307 /*-- 04.05.2004 08:18:17---------------------------------------------------
1309 -----------------------------------------------------------------------*/
1310 AbstractSpellDialog
* AbstractDialogFactory_Impl::CreateSvxSpellDialog(
1312 SfxBindings
* pBindings
,
1313 svx::SpellDialogChildWindow
* pSpellChildWindow
)
1315 svx::SpellDialog
* pDlg
= new svx::SpellDialog(pSpellChildWindow
, pParent
, pBindings
);
1316 return new AbstractSpellDialog_Impl(pDlg
);
1319 //CHINA001 GalleryDialog start
1320 VclAbstractRefreshableDialog
* AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window
* pParent
, //add for ActualizeProgress
1327 case RID_SVXDLG_GALLERY_ACTUALIZE_PROGRESS
:
1328 pDlg
= new ActualizeProgress( pParent
, pThm
);
1335 return new VclAbstractRefreshableDialog_Impl( pDlg
);
1339 AbstractSearchProgress
* AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window
* pParent
, //add for SearchProgress
1340 const INetURLObject
& rStartURL
,
1343 SearchProgress
* pDlg
=NULL
;
1346 case RID_SVXDLG_GALLERY_SEARCH_PROGRESS
:
1347 pDlg
= new SearchProgress( pParent
, rStartURL
);
1354 return new AbstractSearchProgress_Impl( pDlg
);
1358 AbstractTakeProgress
* AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window
* pParent
, //add for TakeProgress
1361 TakeProgress
* pDlg
=NULL
;
1364 case RID_SVXDLG_GALLERY_TAKE_PROGRESS
:
1365 pDlg
= new TakeProgress( pParent
);
1372 return new AbstractTakeProgress_Impl( pDlg
);
1377 AbstractDialogFactory_Impl::CreateScriptErrorDialog(
1378 Window
* pParent
, ::com::sun::star::uno::Any aException
)
1380 return new SvxScriptErrorDialog( pParent
, aException
);
1383 AbstractScriptSelectorDialog
*
1384 AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
1385 Window
* pParent
, BOOL bShowSlots
, const Reference
< frame::XFrame
>& _rxFrame
)
1387 SvxScriptSelectorDialog
* pDlg
= NULL
;
1389 pDlg
= new SvxScriptSelectorDialog( pParent
, bShowSlots
, _rxFrame
);
1393 return new AbstractScriptSelectorDialog_Impl( pDlg
);
1398 String
AbstractScriptSelectorDialog_Impl::GetScriptURL() const
1401 return pDlg
->GetScriptURL();
1405 void AbstractScriptSelectorDialog_Impl::SetRunLabel()
1408 pDlg
->SetRunLabel();
1412 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window
* pParent
, //add for SvxScriptOrgDialog
1413 const String
& rLanguage
)
1417 pDlg
= new SvxScriptOrgDialog( pParent
, rLanguage
);
1420 return new VclAbstractDialog_Impl( pDlg
);
1424 AbstractTitleDialog
* AbstractDialogFactory_Impl::CreateTitleDialog( Window
* pParent
, //add for TitleDialog
1425 const String
& rOldText
,
1428 TitleDialog
* pDlg
=NULL
;
1431 case RID_SVXDLG_GALLERY_TITLE
:
1432 pDlg
= new TitleDialog( pParent
, rOldText
);
1439 return new AbstractTitleDialog_Impl( pDlg
);
1443 AbstractGalleryIdDialog
* AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window
* pParent
, //add for SvxZoomDialog
1447 GalleryIdDialog
* pDlg
=NULL
;
1450 case RID_SVXDLG_GALLERY_THEMEID
:
1451 pDlg
= new GalleryIdDialog( pParent
, pThm
);
1458 return new AbstractGalleryIdDialog_Impl( pDlg
);
1462 VclAbstractDialog2
* AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window
* pParent
, //add for GalleryThemeProperties
1463 ExchangeData
* pData
,
1464 SfxItemSet
* pItemSet
,
1470 case RID_SVXTABDLG_GALLERYTHEME
:
1471 pDlg
= new GalleryThemeProperties( pParent
, pData
, pItemSet
);
1478 return new VclAbstractDialog2_Impl( pDlg
);
1481 //CHINA001 GalleryDialog end
1483 AbstractURLDlg
* AbstractDialogFactory_Impl::CreateURLDialog( Window
* pParent
, //add for URLDlg
1484 const String
& rURL
, const String
& rAltText
, const String
& rDescription
,
1485 const String
& rTarget
, const String
& rName
,
1486 TargetList
& rTargetList
)
1488 URLDlg
* pDlg
= new URLDlg( pParent
, rURL
, rAltText
, rDescription
, rTarget
, rName
, rTargetList
);
1489 return new AbstractURLDlg_Impl( pDlg
);
1491 //CHINA001 URLDlg end
1493 //CHINA001 SvxHlinkDlgMarkWnd begin
1494 AbstractSvxHlinkDlgMarkWnd
* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase
* pParent
, sal_uInt32 nResId
)
1496 SvxHlinkDlgMarkWnd
* pDlg
=NULL
;
1499 case RID_SVXFLOAT_HYPERLINK_MARKWND
:
1500 pDlg
= new SvxHlinkDlgMarkWnd( pParent
);
1507 return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg
);
1510 //CHINA001 SvxHlinkDlgMarkWnd end
1512 SfxAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32 nResId
,
1514 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& ,
1515 const SfxItemSet
* pAttrSet
)
1517 SfxModalDialog
* pDlg
=NULL
;
1520 case RID_SVXDLG_CHARMAP
:
1521 pDlg
= new SvxCharacterMap( pParent
, TRUE
, pAttrSet
);
1528 return new AbstractSfxDialog_Impl( pDlg
);
1531 //CHINA001 SvxCharacterMap end
1533 //CHINA001 SvxSearchFormatDialog begin
1534 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateTabItemDialog( Window
* pParent
,
1535 const SfxItemSet
& rSet
,
1538 SfxTabDialog
* pDlg
=NULL
;
1541 case RID_SVXDLG_SEARCHFORMAT
:
1542 pDlg
= new SvxSearchFormatDialog( pParent
, rSet
);
1549 return new AbstractTabDialog_Impl( pDlg
);
1552 //CHINA001 SvxSearchFormatDialog end
1554 //CHINA001 SvxSearchAttributeDialog begin
1555 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window
* pParent
,
1556 SearchAttrItemList
& rLst
,
1557 const USHORT
* pWhRanges
,
1558 sal_uInt32 nResId
) //add for SvxSearchAttributeDialog
1563 case RID_SVXDLG_SEARCHATTR
:
1564 pDlg
= new SvxSearchAttributeDialog( pParent
, rLst
, pWhRanges
);
1571 return new VclAbstractDialog_Impl( pDlg
);
1574 //CHINA001 SvxSearchAttributeDialog end
1576 //CHINA001 SvxSearchSimilarityDialog begin
1577 AbstractSvxSearchSimilarityDialog
* AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window
* pParent
,
1583 SvxSearchSimilarityDialog
* pDlg
= new SvxSearchSimilarityDialog( pParent
, bRelax
, nOther
, nShorter
, nLonger
);
1585 return new AbstractSvxSearchSimilarityDialog_Impl( pDlg
);
1588 //CHINA001 SvxSearchSimilarityDialog end
1590 //CHINA001 SvxBorderBackgroundDlg begin
1591 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window
* pParent
,
1592 const SfxItemSet
& rCoreSet
,
1594 BOOL bEnableSelector
)
1596 SfxTabDialog
* pDlg
=NULL
;
1599 case RID_SVXDLG_BBDLG
:
1600 pDlg
= new SvxBorderBackgroundDlg( pParent
, rCoreSet
, bEnableSelector
);
1607 return new AbstractTabDialog_Impl( pDlg
);
1610 //CHINA001 SvxBorderBackgroundDlg end
1612 //CHINA001 SvxTransformTabDialog begin
1613 AbstractSvxTransformTabDialog
* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window
* pParent
,
1614 const SfxItemSet
* pAttr
,
1615 const SdrView
* pView
,
1617 USHORT nAnchorTypes
)
1619 SvxTransformTabDialog
* pDlg
=NULL
;
1622 case RID_SVXDLG_TRANSFORM
:
1623 pDlg
= new SvxTransformTabDialog( pParent
, pAttr
,pView
, nAnchorTypes
);
1630 return new AbstractSvxTransformTabDialog_Impl( pDlg
);
1634 //CHINA001 SvxTransformTabDialog end
1636 //CHINA001 SchTransformTabDialog begin
1637 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window
* pParent
,
1638 const SfxItemSet
* pAttr
,
1639 const SdrView
* pSdrView
,
1644 SfxTabDialog
* pDlg
=NULL
;
1647 case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE
:
1649 pDlg
= new SvxTransformTabDialog( pParent
, pAttr
,pSdrView
, bSizeTabPage
? SVX_OBJ_NOPROTECT
: SVX_OBJ_NOPROTECT
|SVX_OBJ_NORESIZE
);
1650 pDlg
->RemoveTabPage( RID_SVXPAGE_ANGLE
);
1651 pDlg
->RemoveTabPage( RID_SVXPAGE_SLANT
);
1654 case RID_SCH_TransformTabDLG_SVXPAGE_SLANT
:
1656 pDlg
= new SvxTransformTabDialog( pParent
, pAttr
,pSdrView
, bSizeTabPage
? SVX_OBJ_NOPROTECT
: SVX_OBJ_NOPROTECT
|SVX_OBJ_NORESIZE
);
1657 pDlg
->RemoveTabPage( RID_SVXPAGE_SLANT
);
1665 return new AbstractTabDialog_Impl( pDlg
);
1668 //CHINA001 SchTransformTabDialog end
1670 //CHINA001 SvxJSearchOptionsDialog begin
1671 AbstractSvxJSearchOptionsDialog
* AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window
* pParent
,
1672 const SfxItemSet
& rOptionsSet
, USHORT nUniqueId
,
1673 INT32 nInitialFlags
,
1676 SvxJSearchOptionsDialog
* pDlg
=NULL
;
1679 case RID_SVXPAGE_JSEARCH_OPTIONS
:
1680 pDlg
= new SvxJSearchOptionsDialog( pParent
, rOptionsSet
, nUniqueId
, nInitialFlags
);
1687 return new AbstractSvxJSearchOptionsDialog_Impl( pDlg
);
1690 //CHINA001 SvxJSearchOptionsDialog end
1692 //CHINA001 FmInputRecordNoDialog begin
1693 AbstractFmInputRecordNoDialog
* AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window
* pParent
,
1696 FmInputRecordNoDialog
* pDlg
=NULL
;
1699 case RID_SVX_DLG_INPUTRECORDNO
:
1700 pDlg
= new FmInputRecordNoDialog( pParent
);
1707 return new AbstractFmInputRecordNoDialog_Impl( pDlg
);
1710 //CHINA001 FmInputRecordNoDialog end
1712 //CHINA001 SvxNewDictionaryDialog begin
1713 AbstractSvxNewDictionaryDialog
* AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window
* pParent
,
1714 ::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
1717 SvxNewDictionaryDialog
* pDlg
=NULL
;
1720 case RID_SFXDLG_NEWDICT
:
1721 pDlg
= new SvxNewDictionaryDialog( pParent
, xSpl
);
1728 return new AbstractSvxNewDictionaryDialog_Impl( pDlg
);
1731 //CHINA001 SvxNewDictionaryDialog end
1733 //CHINA001 SvxEditDictionaryDialog begin
1734 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window
* pParent
,
1735 const String
& rName
,
1736 ::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
1742 case RID_SFXDLG_EDITDICT
:
1743 pDlg
= new SvxEditDictionaryDialog( pParent
, rName
, xSpl
);
1750 return new VclAbstractDialog_Impl( pDlg
);
1753 //CHINA001 SvxEditDictionaryDialog end
1755 //CHINA001 SvxNameDialog begin
1756 AbstractSvxNameDialog
* AbstractDialogFactory_Impl::CreateSvxNameDialog( Window
* pParent
,
1757 const String
& rName
, const String
& rDesc
,
1760 SvxNameDialog
* pDlg
=NULL
;
1763 case RID_SVXDLG_NAME
:
1764 pDlg
= new SvxNameDialog( pParent
, rName
, rDesc
);
1771 return new AbstractSvxNameDialog_Impl( pDlg
);
1774 //CHINA001 SvxNameDialog end
1776 ///////////////////////////////////////////////////////////////////////////////////////////////
1779 AbstractSvxObjectNameDialog
* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window
* pParent
, const String
& rName
, sal_uInt32 nResId
)
1781 return ((RID_SVXDLG_OBJECT_NAME
== nResId
)
1782 ? new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent
, rName
))
1786 ///////////////////////////////////////////////////////////////////////////////////////////////
1789 AbstractSvxObjectTitleDescDialog
* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window
* pParent
, const String
& rTitle
, const String
& rDescription
, sal_uInt32 nResId
)
1791 return ((RID_SVXDLG_OBJECT_TITLE_DESC
== nResId
)
1792 ? new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent
, rTitle
, rDescription
))
1796 ///////////////////////////////////////////////////////////////////////////////////////////////
1798 //CHINA001 SvxMessDialog begin
1799 AbstractSvxMessDialog
* AbstractDialogFactory_Impl::CreateSvxMessDialog( Window
* pParent
, sal_uInt32 nResId
,
1800 const String
& rText
, const String
& rDesc
, Image
* pImg
)
1802 SvxMessDialog
* pDlg
=NULL
;
1805 case RID_SVXDLG_MESSBOX
:
1806 pDlg
= new SvxMessDialog( pParent
, rText
, rDesc
, pImg
);
1813 return new AbstractSvxMessDialog_Impl( pDlg
);
1816 //CHINA001 SvxMessDialog end
1818 //CHINA001 SvxMultiPathDialog begin
1819 AbstractSvxMultiPathDialog
* AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window
* pParent
, sal_uInt32 nResId
,
1820 BOOL bEmptyAllowed
)
1822 SvxMultiPathDialog
* pDlg
=NULL
;
1825 case RID_SVXDLG_MULTIPATH
:
1826 pDlg
= new SvxMultiPathDialog( pParent
, bEmptyAllowed
);
1833 return new AbstractSvxMultiPathDialog_Impl( pDlg
);
1836 //CHINA001 SvxMultiPathDialog end
1838 //CHINA001 SvxMultiFileDialog begin
1839 AbstractSvxMultiFileDialog
* AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window
* pParent
, sal_uInt32 nResId
,
1840 BOOL bEmptyAllowed
)
1842 SvxMultiFileDialog
* pDlg
=NULL
;
1845 case RID_SVXDLG_MULTIPATH
:
1846 pDlg
= new SvxMultiFileDialog( pParent
, bEmptyAllowed
);
1853 return new AbstractSvxMultiFileDialog_Impl( pDlg
);
1856 //CHINA001 SvxMultiFileDialog end
1858 //CHINA001 SvxHpLinkDlg begin
1859 AbstractSvxHpLinkDlg
* AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window
* pParent
, //add for SvxMultiFileDialog
1860 SfxBindings
* pBindings
,
1863 SvxHpLinkDlg
* pDlg
=NULL
;
1866 case SID_HYPERLINK_DIALOG
:
1867 pDlg
= new SvxHpLinkDlg( pParent
, pBindings
);
1874 return new AbstractSvxHpLinkDlg_Impl( pDlg
);
1877 //CHINA001 SvxHpLinkDlg end
1879 //CHINA001 FmSearchDialog begin
1880 AbstractFmSearchDialog
* AbstractDialogFactory_Impl::CreateFmSearchDialog(Window
* pParent
, //add for FmSearchDialog
1881 const String
& strInitialText
,
1882 const ::std::vector
< String
>& _rContexts
,
1883 sal_Int16 nInitialContext
,
1884 const Link
& lnkContextSupplier
)
1886 FmSearchDialog
* pDlg
= new FmSearchDialog( pParent
, strInitialText
, _rContexts
, nInitialContext
, lnkContextSupplier
);
1888 return new AbstractFmSearchDialog_Impl( pDlg
);
1892 //CHINA001 FmSearchDialog end
1894 //CHINA001 GraphicFilterEmboss begin
1895 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window
* pParent
, //add for GraphicFilterEmboss
1896 const Graphic
& rGraphic
,
1897 RECT_POINT eLightSource
,
1900 GraphicFilterDialog
* pDlg
=NULL
;
1903 case RID_SVX_GRFFILTER_DLG_EMBOSS
:
1904 pDlg
= new GraphicFilterEmboss( pParent
, rGraphic
, eLightSource
);
1911 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1914 //CHINA001 GraphicFilterEmboss end
1916 //CHINA001 GraphicFilterPoster & GraphicFilterSepia begin
1917 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window
* pParent
, //add for GraphicFilterPoster & GraphicFilterSepia
1918 const Graphic
& rGraphic
,
1922 GraphicFilterDialog
* pDlg
=NULL
;
1925 case RID_SVX_GRFFILTER_DLG_POSTER
:
1926 pDlg
= new GraphicFilterPoster( pParent
, rGraphic
, nCount
);
1928 case RID_SVX_GRFFILTER_DLG_SEPIA
:
1929 pDlg
= new GraphicFilterSepia( pParent
, rGraphic
, nCount
);
1937 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1940 //CHINA001 GraphicFilterPoster & GraphicFilterSepia end
1942 //CHINA001 GraphicFilterSolarize begin
1943 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window
* pParent
, //add for GraphicFilterSolarize
1944 const Graphic
& rGraphic
,
1945 BYTE nGreyThreshold
, BOOL bInvert
,
1948 GraphicFilterDialog
* pDlg
=NULL
;
1951 case RID_SVX_GRFFILTER_DLG_SOLARIZE
:
1952 pDlg
= new GraphicFilterSolarize( pParent
, rGraphic
, nGreyThreshold
, bInvert
);
1959 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1962 //CHINA001 GraphicFilterSolarize end
1964 //CHINA001 GraphicFilterMosaic begin
1965 AbstractGraphicFilterDialog
* AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window
* pParent
, //add for GraphicFilterMosaic
1966 const Graphic
& rGraphic
,
1967 USHORT nTileWidth
, USHORT nTileHeight
, BOOL bEnhanceEdges
,
1970 GraphicFilterDialog
* pDlg
=NULL
;
1973 case RID_SVX_GRFFILTER_DLG_MOSAIC
:
1974 pDlg
= new GraphicFilterMosaic( pParent
, rGraphic
, nTileWidth
, nTileHeight
, bEnhanceEdges
);
1981 return new AbstractGraphicFilterDialog_Impl( pDlg
);
1984 //CHINA001 GraphicFilterMosaic end
1985 //CHINA001 SvxAreaTabDialog begin
1986 AbstractSvxAreaTabDialog
* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window
* pParent
,
1987 const SfxItemSet
* pAttr
,
1990 const SdrView
* pSdrView
)
1992 SvxAreaTabDialog
* pDlg
=NULL
;
1995 case RID_SVXDLG_AREA
:
1996 pDlg
= new SvxAreaTabDialog( pParent
, pAttr
, pModel
,pSdrView
);
2003 return new AbstractSvxAreaTabDialog_Impl( pDlg
);
2006 //CHINA001 SvxAreaTabDialog end
2007 //CHINA001 SvxLineTabDialog begin
2008 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window
* pParent
, const SfxItemSet
* pAttr
, //add forSvxLineTabDialog
2011 const SdrObject
* pObj
,
2014 SfxTabDialog
* pDlg
=NULL
;
2017 case RID_SVXDLG_LINE
:
2018 pDlg
= new SvxLineTabDialog( pParent
, pAttr
, pModel
,pObj
,bHasObj
);
2025 return new AbstractTabDialog_Impl( pDlg
);
2028 //CHINA001 SvxLineTabDialog end
2030 SfxAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( Window
* pParent
,
2031 const SfxItemSet
& rAttr
,
2032 const Reference
< XFrame
>& _rxDocumentFrame
,
2036 SfxModalDialog
* pDlg
=NULL
;
2039 case SID_EVENTCONFIG
:
2040 pDlg
= new SfxMacroAssignDlg( pParent
, _rxDocumentFrame
, rAttr
);
2042 case RID_SVXPAGE_MACROASSIGN
:
2043 pDlg
= new SvxShortcutAssignDlg( pParent
, _rxDocumentFrame
, rAttr
);
2045 case RID_SVXDLG_CHARMAP
:
2046 pDlg
= new SvxCharacterMap( pParent
, TRUE
, &rAttr
);
2053 return new AbstractSfxDialog_Impl( pDlg
);
2057 //CHINA001 SvxMeasureDialog & SvxConnectionDialog begin
2058 SfxAbstractDialog
* AbstractDialogFactory_Impl::CreateSfxDialog( Window
* pParent
,
2059 const SfxItemSet
& rAttr
,
2060 const SdrView
* pView
,
2064 SfxSingleTabDialog
* pDlg
=NULL
;
2067 case RID_SVXPAGE_MEASURE
:
2068 pDlg
= new SvxMeasureDialog( pParent
, rAttr
, pView
);
2070 case RID_SVXPAGE_CONNECTION
:
2071 pDlg
= new SvxConnectionDialog( pParent
, rAttr
, pView
);
2073 case RID_SFXPAGE_DBREGISTER
:
2074 pDlg
= new DatabaseRegistrationDialog( pParent
, rAttr
);
2076 case RID_SVXPAGE_IMPROVEMENT
:
2079 SFX_ITEMSET_ARG( &rAttr
, pItem
, SfxStringItem
, SID_CURRENT_URL
, sal_False
);
2081 help_url
= pItem
->GetValue();
2082 pDlg
= new SvxImprovementDialog( pParent
, help_url
);
2089 return new AbstractSfxDialog_Impl( pDlg
);
2093 //CHINA001 SvxPostItDialog begin
2094 AbstractSvxPostItDialog
* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window
* pParent
,
2095 const SfxItemSet
& rCoreSet
,
2097 BOOL bPrevNext
, BOOL bRedline
)
2099 SvxPostItDialog
* pDlg
=NULL
;
2102 case RID_SVXDLG_POSTIT
:
2103 pDlg
= new SvxPostItDialog( pParent
, rCoreSet
, bPrevNext
, bRedline
);
2110 return new AbstractSvxPostItDialog_Impl( pDlg
);
2113 //CHINA001 SvxPostItDialog end
2115 class SvxMacroAssignDialog
: public VclAbstractDialog
2118 SvxMacroAssignDialog( Window
* _pParent
, const Reference
< XFrame
>& _rxDocumentFrame
, const bool _bUnoDialogMode
,
2119 const Reference
< XNameReplace
>& _rxEvents
, const sal_uInt16 _nInitiallySelectedEvent
)
2120 :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM
, SID_ATTR_MACROITEM
)
2122 m_aItems
.Put( SfxBoolItem( SID_ATTR_MACROITEM
, _bUnoDialogMode
) );
2123 m_pDialog
.reset( new SvxMacroAssignDlg( _pParent
, _rxDocumentFrame
, m_aItems
, _rxEvents
, _nInitiallySelectedEvent
) );
2126 virtual short Execute();
2127 virtual ~SvxMacroAssignDialog();
2130 SfxItemSet m_aItems
;
2131 ::std::auto_ptr
< SvxMacroAssignDlg
> m_pDialog
;
2134 short SvxMacroAssignDialog::Execute()
2136 return m_pDialog
->Execute();
2139 SvxMacroAssignDialog::~SvxMacroAssignDialog()
2143 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
2144 Window
* _pParent
, const Reference
< XFrame
>& _rxDocumentFrame
, const bool _bUnoDialogMode
,
2145 const Reference
< XNameReplace
>& _rxEvents
, const sal_uInt16 _nInitiallySelectedEvent
)
2147 return new SvxMacroAssignDialog( _pParent
, _rxDocumentFrame
, _bUnoDialogMode
, _rxEvents
, _nInitiallySelectedEvent
);
2150 // Factories for TabPages
2151 CreateTabPage
AbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId
)
2155 case RID_OFA_TP_INTERNATIONAL
:
2156 return ::offapp::InternationalOptionsPage::CreateSc
;
2157 case RID_OFA_TP_INTERNATIONAL_SD
:
2158 case RID_OFA_TP_INTERNATIONAL_IMPR
:
2159 return offapp::InternationalOptionsPage::CreateSd
;
2160 case RID_SVXPAGE_TEXTANIMATION
:
2161 return SvxTextAnimationPage::Create
;
2162 case RID_SVXTABPAGE_GALLERY_GENERAL
:
2163 return TPGalleryThemeGeneral::Create
;
2164 case RID_SVXPAGE_TRANSPARENCE
:
2165 return SvxTransparenceTabPage::Create
;
2166 case RID_SVXPAGE_AREA
:
2167 return SvxAreaTabPage::Create
;
2168 case RID_SVXPAGE_SHADOW
:
2169 return SvxShadowTabPage::Create
;
2170 case RID_SVXPAGE_LINE
:
2171 return SvxLineTabPage::Create
;
2172 case RID_SVXPAGE_CONNECTION
:
2173 return SvxConnectionPage::Create
;
2174 case RID_SVXPAGE_MEASURE
:
2175 return SvxMeasurePage::Create
;
2176 case RID_SFXPAGE_GENERAL
:
2177 return SvxGeneralTabPage::Create
;
2178 case RID_SVXPAGE_PICK_SINGLE_NUM
:
2179 return SvxSingleNumPickTabPage::Create
;
2180 case RID_SVXPAGE_PICK_BMP
:
2181 return SvxBitmapPickTabPage::Create
;
2182 case RID_SVXPAGE_PICK_BULLET
:
2183 return SvxBulletPickTabPage::Create
;
2184 case RID_SVXPAGE_NUM_OPTIONS
:
2185 return SvxNumOptionsTabPage::Create
;
2186 case RID_SVXPAGE_PICK_NUM
:
2187 return SvxNumPickTabPage::Create
;
2188 case RID_SVXPAGE_NUM_POSITION
:
2189 return SvxNumPositionTabPage::Create
;
2190 case RID_SVXPAGE_PARA_ASIAN
:
2191 return SvxAsianTabPage::Create
;
2192 case RID_SVXPAGE_EXT_PARAGRAPH
:
2193 return SvxExtParagraphTabPage::Create
;
2194 case RID_SVXPAGE_ALIGN_PARAGRAPH
:
2195 return SvxParaAlignTabPage::Create
;
2196 case RID_SVXPAGE_STD_PARAGRAPH
:
2197 return SvxStdParagraphTabPage::Create
;
2198 case RID_SVXPAGE_TABULATOR
:
2199 return SvxTabulatorTabPage::Create
;
2200 case RID_SVXPAGE_TEXTATTR
:
2201 return SvxTextAttrPage::Create
;
2202 case RID_SVXPAGE_ALIGNMENT
:
2203 return svx::AlignmentTabPage::Create
;
2204 case RID_SW_TP_BACKGROUND
:
2205 case RID_SVXPAGE_BACKGROUND
:
2206 return SvxBackgroundTabPage::Create
;
2207 case RID_SVXPAGE_BORDER
:
2208 return SvxBorderTabPage::Create
;
2209 case RID_SVXPAGE_CHAR_NAME
:
2210 return SvxCharNamePage::Create
;
2211 case RID_SVXPAGE_CHAR_EFFECTS
:
2212 return SvxCharEffectsPage::Create
;
2213 case RID_SVXPAGE_CHAR_POSITION
:
2214 return SvxCharPositionPage::Create
;
2215 case RID_SVXPAGE_CHAR_TWOLINES
:
2216 return SvxCharTwoLinesPage::Create
;
2217 case RID_SVXPAGE_NUMBERFORMAT
:
2218 return SvxNumberFormatTabPage::Create
;
2219 case RID_SVXPAGE_PAGE
:
2220 return SvxPageDescPage::Create
;
2221 case RID_SVXPAGE_GRFCROP
:
2222 return SvxGrfCropPage::Create
;
2223 case RID_SVXPAGE_MACROASSIGN
:
2224 return SfxMacroTabPage::Create
;
2231 CreateSvxDistributePage
AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc(USHORT nId
)
2235 case RID_SVXPAGE_DISTRIBUTE
:
2236 return SvxDistributePage::Create
;
2243 DialogGetRanges
AbstractDialogFactory_Impl::GetDialogGetRangesFunc( USHORT nId
)
2247 case RID_SVXDLG_POSTIT
:
2248 return SvxPostItDialog::GetRanges
; //add for SvxPostItDialog
2255 GetTabPageRanges
AbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId
)
2259 case RID_SVXPAGE_TEXTANIMATION
:
2260 return SvxTextAnimationPage::GetRanges
;
2261 case RID_SVXPAGE_DISTRIBUTE
:
2262 return SvxDistributePage::GetRanges
;
2263 case RID_SVXPAGE_TRANSPARENCE
:
2264 return SvxTransparenceTabPage::GetRanges
;
2265 case RID_SVXPAGE_AREA
:
2266 return SvxAreaTabPage::GetRanges
;
2267 case RID_SVXPAGE_SHADOW
:
2268 return SvxShadowTabPage::GetRanges
;
2269 case RID_SVXPAGE_LINE
:
2270 return SvxLineTabPage::GetRanges
;
2271 case RID_SVXPAGE_CONNECTION
:
2272 return SvxConnectionPage::GetRanges
;
2273 case RID_SVXPAGE_MEASURE
:
2274 return SvxMeasurePage::GetRanges
;
2275 case RID_SVXPAGE_PARA_ASIAN
:
2276 return SvxAsianTabPage::GetRanges
;
2277 case RID_SVXPAGE_EXT_PARAGRAPH
:
2278 return SvxExtParagraphTabPage::GetRanges
;
2279 case RID_SVXPAGE_ALIGN_PARAGRAPH
:
2280 return SvxParaAlignTabPage::GetRanges
;
2281 case RID_SVXPAGE_STD_PARAGRAPH
:
2282 return SvxStdParagraphTabPage::GetRanges
;
2283 case RID_SVXPAGE_TABULATOR
:
2284 return SvxTabulatorTabPage::GetRanges
;
2285 case RID_SVXPAGE_TEXTATTR
:
2286 return SvxTextAttrPage::GetRanges
;
2287 case RID_SVXPAGE_ALIGNMENT
:
2288 return svx::AlignmentTabPage::GetRanges
;
2289 case RID_SW_TP_BACKGROUND
:
2290 case RID_SVXPAGE_BACKGROUND
:
2291 return SvxBackgroundTabPage::GetRanges
;
2292 case RID_SVXPAGE_BORDER
:
2293 return SvxBorderTabPage::GetRanges
;
2294 case RID_SVXPAGE_CHAR_NAME
:
2295 return SvxCharNamePage::GetRanges
;
2296 case RID_SVXPAGE_CHAR_EFFECTS
:
2297 return SvxCharEffectsPage::GetRanges
;
2298 case RID_SVXPAGE_CHAR_POSITION
:
2299 return SvxCharPositionPage::GetRanges
;
2300 case RID_SVXPAGE_CHAR_TWOLINES
:
2301 return SvxCharTwoLinesPage::GetRanges
;
2302 case RID_SVXPAGE_NUMBERFORMAT
:
2303 return SvxNumberFormatTabPage::GetRanges
;
2304 case RID_SVXPAGE_PAGE
:
2305 return SvxPageDescPage::GetRanges
;
2306 case RID_SVXPAGE_ASIAN_LAYOUT
:
2307 return SvxAsianLayoutPage::GetRanges
;
2315 SfxAbstractInsertObjectDialog
* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window
* pParent
, USHORT nSlotId
,
2316 const Reference
< com::sun::star::embed::XStorage
>& xStor
,
2317 const SvObjectServerList
* pList
)
2319 InsertObjectDialog_Impl
* pDlg
=0;
2322 case SID_INSERT_OBJECT
: pDlg
= new SvInsertOleDlg( pParent
, xStor
, pList
); break;
2323 case SID_INSERT_PLUGIN
: pDlg
= new SvInsertPlugInDialog( pParent
, xStor
); break;
2324 case SID_INSERT_APPLET
: pDlg
= new SvInsertAppletDialog( pParent
, xStor
); break;
2325 case SID_INSERT_FLOATINGFRAME
: pDlg
= new SfxInsertFloatingFrameDialog( pParent
, xStor
); break;
2331 pDlg
->SetHelpId( nSlotId
);
2332 return new AbstractInsertObjectDialog_Impl( pDlg
);
2337 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window
* pParent
, USHORT nSlotId
,
2338 const Reference
< com::sun::star::embed::XEmbeddedObject
>& xObj
)
2340 InsertObjectDialog_Impl
* pDlg
=0;
2343 case SID_INSERT_APPLET
: pDlg
= new SvInsertAppletDialog( pParent
, xObj
); break;
2344 case SID_INSERT_FLOATINGFRAME
: pDlg
= new SfxInsertFloatingFrameDialog( pParent
, xObj
); break;
2350 pDlg
->SetHelpId( nSlotId
);
2351 return new VclAbstractDialog_Impl( pDlg
);
2356 SfxAbstractPasteDialog
* AbstractDialogFactory_Impl::CreatePasteDialog( Window
* pParent
)
2358 return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent
) );
2361 SfxAbstractLinksDialog
* AbstractDialogFactory_Impl::CreateLinksDialog( Window
* pParent
, sfx2::SvLinkManager
* pMgr
, BOOL bHTML
, sfx2::SvBaseLink
* p
)
2363 SvBaseLinksDlg
* pLinkDlg
= new SvBaseLinksDlg( pParent
, pMgr
, bHTML
);
2365 pLinkDlg
->SetActLink(p
);
2366 return new AbstractLinksDialog_Impl( pLinkDlg
);
2369 SfxAbstractTabDialog
* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window
* pParent
, const SfxItemSet
* pAttr
, SdrModel
* pModel
, const SdrObject
* /*pObj*/ )
2371 return new AbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent
, pAttr
, pModel
) );
2374 SvxAbstractSplittTableDialog
* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window
* pParent
, bool bIsTableVertical
, long nMaxVertical
, long nMaxHorizontal
)
2376 return new SvxSplitTableDlg( pParent
, bIsTableVertical
, nMaxVertical
, nMaxHorizontal
);
2379 SvxAbstractNewTableDialog
* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window
* pParent
)
2381 return new SvxNewTableDialog( pParent
);
2384 VclAbstractDialog
* AbstractDialogFactory_Impl::CreateOptionsDialog(
2385 Window
* pParent
, const rtl::OUString
& rExtensionId
, const rtl::OUString
& /*rApplicationContext*/ )
2387 return new VclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent
, rExtensionId
) );
2390 SvxAbstractInsRowColDlg
* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window
* pParent
, bool bCol
, ULONG nHelpId
)
2392 return new SvxInsRowColDlg( pParent
, bCol
, nHelpId
);