00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "precompiled_svx.hxx"
00030
00031 #ifdef SVX_DLLIMPLEMENTATION
00032 #undef SVX_DLLIMPLEMENTATION
00033 #endif
00034
00035 #include "numfmt.hxx"
00036
00037 #include "dlgfact.hxx"
00038
00039
00040 #include <tools/rc.hxx>
00041 #include <sfx2/basedlgs.hxx>
00042 #include <sfx2/app.hxx>
00043 #include <sfx2/request.hxx>
00044 #include <svx/optimprove.hxx>
00045 #include "splitcelldlg.hxx"
00046 #include <svx/dialogs.hrc>
00047 #include "fmresids.hrc"
00048 #include "gallery.hrc"
00049
00050
00051 #include "dstribut.hxx"
00052 #include "cuigaldlg.hxx"
00053 #include "cuiimapwnd.hxx"
00054 #include "hlmarkwn.hxx"
00055 #include "cuicharmap.hxx"
00056 #include "srchxtra.hxx"
00057 #include "textanim.hxx"
00058 #include "autocdlg.hxx"
00059 #include "treeopt.hxx"
00060 #include "internationaloptions.hxx"
00061 #include "labdlg.hxx"
00062 #include "dstribut.hxx"
00063 #include "hangulhanjadlg.hxx"
00064 #include "showcols.hxx"
00065 #include "zoom.hxx"
00066 #include "cuigaldlg.hxx"
00067 #include "cuiimapwnd.hxx"
00068 #include "hlmarkwn.hxx"
00069 #include "srchxtra.hxx"
00070 #include "transfrm.hxx"
00071 #include "bbdlg.hxx"
00072 #include "cuisrchdlg.hxx"
00073 #include "cuitbxform.hxx"
00074 #include "optdict.hxx"
00075 #include "dlgname.hxx"
00076 #include "multipat.hxx"
00077 #include "multifil.hxx"
00078 #include "cuihyperdlg.hxx"
00079 #include "cuifmsearch.hxx"
00080 #include "cuigrfflt.hxx"
00081 #include "cuitabarea.hxx"
00082 #include "cuitabline.hxx"
00083 #include "measure.hxx"
00084 #include "connect.hxx"
00085 #include "dbregister.hxx"
00086 #include "cuioptgenrl.hxx"
00087 #include <optasian.hxx>
00088 #include "insdlg.hxx"
00089 #include "pastedlg.hxx"
00090 #include "linkdlg.hxx"
00091 #include "SpellDialog.hxx"
00092 #include "cfg.hxx"
00093
00094 #include "numpages.hxx"
00095 #include "paragrph.hxx"
00096 #include "tabstpge.hxx"
00097 #include "textattr.hxx"
00098 #include "align.hxx"
00099 #include "backgrnd.hxx"
00100 #include "border.hxx"
00101 #include "chardlg.hxx"
00102 #include "page.hxx"
00103 #include "postdlg.hxx"
00104 #include "grfpage.hxx"
00105 #include "scriptdlg.hxx"
00106 #include "selector.hxx"
00107 #include "macropg.hxx"
00108 #include "sdrcelldlg.hxx"
00109 #include "newtabledlg.hxx"
00110 #include "macroass.hxx"
00111 #include "acccfg.hxx"
00112 #include "insrc.hxx"
00113
00114 using namespace ::com::sun::star;
00115 using namespace ::com::sun::star::frame;
00116 using namespace ::com::sun::star::container;
00117
00118 using ::com::sun::star::uno::Reference;
00119
00120 using namespace svx;
00121
00122 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl)
00123 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl)
00124 IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl);
00125 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
00126 IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl);
00127 IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl);
00128 IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl);
00129
00130 AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl() \
00131 {
00132 delete pDlg;
00133 }
00134 short AbstractSvxZoomDialog_Impl::Execute()
00135 {
00136 return pDlg->Execute();
00137 }
00138
00139
00140 IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl);
00141 IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl);
00142 IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl);
00143 IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl);
00144 IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl);
00145 IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl);
00146 IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl);
00147 IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl);
00148 IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl);
00149 IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl);
00150 IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl);
00151 IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl);
00152 IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl);
00153 IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl);
00154
00155
00156 IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl);
00157 IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl);
00158
00159 IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl);
00160 IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl);
00161 IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl);
00162 IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl);
00163 IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl);
00164 IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl);
00165 IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl);
00166 IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl);
00167 IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl);
00168 IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl);
00169 IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl);
00170 IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl);
00171
00173
00175
00176
00177 VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
00178 {
00179 delete m_pDlg;
00180 }
00181
00182
00183 void VclAbstractDialog2_Impl::StartExecuteModal( const Link& rEndDialogHdl )
00184 {
00185 m_aEndDlgHdl = rEndDialogHdl;
00186 m_pDlg->StartExecuteModal(
00187 LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) );
00188 }
00189
00190
00191 long VclAbstractDialog2_Impl::GetResult()
00192 {
00193 return m_pDlg->GetResult();
00194 }
00195
00196 IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog*, pDlg )
00197 {
00198 if ( pDlg != m_pDlg )
00199 {
00200 DBG_ERRORFILE( "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
00201 }
00202
00203 m_aEndDlgHdl.Call( this );
00204 m_aEndDlgHdl = Link();
00205
00206 return 0L;
00207 }
00208
00210
00211 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
00212 {
00213 pDlg->SetCurPageId( nId );
00214 }
00215
00216 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
00217 {
00218 return pDlg->GetOutputItemSet();
00219 }
00220
00221 const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
00222 {
00223 return pDlg->GetInputRanges( pItem );
00224 }
00225
00226 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
00227 {
00228 pDlg->SetInputSet( pInSet );
00229 }
00230
00231 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
00232 {
00233 pDlg->SetText( rStr );
00234 }
00235 String AbstractTabDialog_Impl::GetText() const
00236 {
00237 return pDlg->GetText();
00238 }
00239
00240
00241
00242 const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
00243 {
00244 return pDlg->GetOutputItemSet();
00245 }
00246
00247 void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
00248 {
00249 pDlg->SetText( rStr );
00250 }
00251
00252 String AbstractSfxDialog_Impl::GetText() const
00253 {
00254 return pDlg->GetText();
00255 }
00256
00257
00258 SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
00259 {
00260 return pDlg->GetDistributeHor();
00261 }
00262 SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
00263 {
00264 return pDlg->GetDistributeVer();
00265 }
00266
00267
00268
00269 void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult)
00270 {
00271 pDlg->EndDialog(nResult);
00272 }
00273
00274 void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( sal_Bool _bVal )
00275 {
00276 pDlg->EnableRubySupport(_bVal);
00277 }
00278
00279 void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter )
00280 {
00281 pDlg->SetByCharacter(_bByCharacter);
00282 }
00283
00284 void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( sal_Bool _bTryBothDirections, HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection )
00285 {
00286 pDlg->SetConversionDirectionState(_bTryBothDirections, _ePrimaryConversionDirection);
00287 }
00288
00289 void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( HangulHanjaConversion::ConversionFormat _eType )
00290 {
00291 pDlg->SetConversionFormat(_eType);
00292 }
00293
00294 void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link& _rHdl )
00295 {
00296 pDlg->SetOptionsChangedHdl(_rHdl );
00297 }
00298
00299 void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link& _rHdl )
00300 {
00301 pDlg->SetIgnoreHdl(_rHdl );
00302 }
00303
00304 void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link& _rHdl )
00305 {
00306 pDlg->SetIgnoreAllHdl(_rHdl );
00307 }
00308
00309 void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link& _rHdl )
00310 {
00311 pDlg->SetChangeHdl(_rHdl );
00312 }
00313
00314 void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link& _rHdl )
00315 {
00316 pDlg->SetChangeAllHdl(_rHdl );
00317 }
00318
00319 void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link& _rHdl )
00320 {
00321 pDlg->SetClickByCharacterHdl(_rHdl );
00322 }
00323
00324 void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link& _rHdl )
00325 {
00326 pDlg->SetConversionFormatChangedHdl(_rHdl );
00327 }
00328 void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link& _rHdl )
00329 {
00330 pDlg->SetFindHdl(_rHdl );
00331 }
00332
00333 sal_Bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
00334 {
00335 return pDlg->GetUseBothDirections();
00336 }
00337
00338 HangulHanjaConversion::ConversionDirection AbstractHangulHanjaConversionDialog_Impl::GetDirection( HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const
00339 {
00340 return pDlg->GetDirection( _eDefaultDirection );
00341 }
00342
00343 void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
00344 const String& _rNewString,
00345 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
00346 bool _bOriginatesFromDocument
00347 )
00348 {
00349 pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument);
00350 }
00351 String AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
00352 {
00353 return pDlg->GetCurrentString();
00354 }
00355 HangulHanjaConversion::ConversionFormat AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
00356 {
00357 return pDlg->GetConversionFormat();
00358 }
00359
00360 void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
00361 {
00362 pDlg->FocusSuggestion();
00363 }
00364
00365 String AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
00366 {
00367 return pDlg->GetCurrentSuggestion();
00368 }
00369
00370 Reference < com::sun::star::embed::XEmbeddedObject > AbstractInsertObjectDialog_Impl::GetObject()
00371 {
00372 return pDlg->GetObject();
00373 }
00374
00375 BOOL AbstractInsertObjectDialog_Impl::IsCreateNew()
00376 {
00377 return pDlg->IsCreateNew();
00378 }
00379
00380 ::Reference< ::com::sun::star::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( ::rtl::OUString* pGraphicMediaType )
00381 {
00382 return pDlg->GetIconIfIconified( pGraphicMediaType );
00383 }
00384
00385 void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat, const String & rFormatName )
00386 {
00387 pDlg->Insert( nFormat, rFormatName );
00388 }
00389
00390 void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const String & rObjName )
00391 {
00392 pDlg->SetObjName( rClass, rObjName );
00393 }
00394
00395 ULONG AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper,
00396 const DataFlavorExVector* pFormats,
00397 const TransferableObjectDescriptor* pDesc )
00398 {
00399 return pDlg->GetFormat( aHelper, pFormats, pDesc );
00400 }
00401
00402
00403
00404 void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< ::com::sun::star::container::XIndexContainer>& xCols)
00405 {
00406 pDlg->SetColumns(xCols);
00407 }
00408
00409
00410
00411
00412 void AbstractSvxZoomDialog_Impl::SetLimits( USHORT nMin, USHORT nMax )
00413 {
00414 pDlg->SetLimits( nMin, nMax );
00415 }
00416
00417 void AbstractSvxZoomDialog_Impl::HideButton( USHORT nBtnId )
00418 {
00419 pDlg->HideButton( nBtnId );
00420 }
00421
00422 const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
00423 {
00424 return pDlg->GetOutputItemSet();
00425 }
00426
00427
00428
00429
00430
00431
00432 void AbstractSpellDialog_Impl::SetLanguage( sal_uInt16 nLang )
00433 {
00434 pDlg->SetLanguage(nLang);
00435 }
00436
00437
00438
00439 sal_Bool AbstractSpellDialog_Impl::Close()
00440 {
00441 return pDlg->Close();
00442 }
00443
00444
00445
00446 void AbstractSpellDialog_Impl::Invalidate()
00447 {
00448 pDlg->InvalidateDialog();
00449 }
00450
00451
00452
00453 Window* AbstractSpellDialog_Impl::GetWindow()
00454 {
00455 return pDlg;
00456 }
00457
00458
00459
00460 SfxBindings& AbstractSpellDialog_Impl::GetBindings()
00461 {
00462 return pDlg->GetBindings();
00463 }
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495 void AbstractSearchProgress_Impl::Update()
00496 {
00497 pDlg->Update();
00498 }
00499
00500 void AbstractSearchProgress_Impl::Sync()
00501 {
00502 pDlg-> Sync();
00503 }
00504
00505 void AbstractSearchProgress_Impl::SetFileType( const String& rType )
00506 {
00507 pDlg->SetFileType( rType );
00508 }
00509
00510 void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject& rURL )
00511 {
00512 pDlg->SetDirectory( rURL );
00513 }
00514 PLinkStub AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl()
00515 {
00516 return SearchProgress::LinkStubCleanUpHdl;
00517 }
00518
00519
00520
00521 void AbstractTakeProgress_Impl::Update()
00522 {
00523 pDlg->Update();
00524 }
00525
00526 void AbstractTakeProgress_Impl::Sync()
00527 {
00528 pDlg-> Sync();
00529 }
00530
00531 void AbstractTakeProgress_Impl::SetFile( const INetURLObject& rURL )
00532 {
00533 pDlg->SetFile( rURL );
00534 }
00535
00536 PLinkStub AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl()
00537 {
00538 return TakeProgress::LinkStubCleanUpHdl;
00539 }
00540
00541
00542
00543 String AbstractTitleDialog_Impl::GetTitle() const
00544 {
00545 return pDlg->GetTitle();
00546 }
00547
00548
00549
00550 ULONG AbstractGalleryIdDialog_Impl::GetId() const
00551 {
00552 return pDlg->GetId();
00553 }
00554
00555
00556
00557 void VclAbstractRefreshableDialog_Impl::Update()
00558 {
00559 pDlg->Update();
00560 }
00561
00562 void VclAbstractRefreshableDialog_Impl::Sync()
00563 {
00564 pDlg-> Sync();
00565 }
00566
00567
00568
00569 String AbstractURLDlg_Impl::GetURL() const
00570 {
00571 return pDlg->GetURL();
00572 }
00573
00574 String AbstractURLDlg_Impl::GetAltText() const
00575 {
00576 return pDlg->GetAltText();
00577 }
00578
00579 String AbstractURLDlg_Impl::GetDesc() const
00580 {
00581 return pDlg->GetDesc();
00582 }
00583
00584 String AbstractURLDlg_Impl::GetTarget() const
00585 {
00586 return pDlg->GetTarget();
00587 }
00588
00589 String AbstractURLDlg_Impl::GetName() const
00590 {
00591 return pDlg->GetName();
00592 }
00593
00594
00595
00596
00597 void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( USHORT nFlags )
00598 {
00599 ((Window*)pDlg)->Hide( nFlags );
00600 }
00601
00602 void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size& rNewSize )
00603 {
00604 pDlg->SetSizePixel( rNewSize );
00605 }
00606
00607 Size AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const
00608 {
00609 return pDlg->GetSizePixel();
00610 }
00611
00612 BOOL AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const
00613 {
00614 return (( Window* )pDlg)->IsVisible();
00615 }
00616
00617 void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( USHORT nFlags )
00618 {
00619 (( Window* )pDlg)->Invalidate(nFlags);
00620 }
00621
00622 BOOL AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos )const
00623 {
00624 return pDlg->MoveTo(aNewPos);
00625 }
00626
00627 BOOL AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( BOOL bDoit )const
00628 {
00629 return pDlg->ConnectToDialog(bDoit);
00630 }
00631
00632 void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL )
00633 {
00634 pDlg->RefreshTree(aStrURL);
00635 }
00636
00637 void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark )
00638 {
00639 pDlg->SelectEntry(aStrMark);
00640 }
00641
00642 USHORT AbstractSvxHlinkDlgMarkWnd_Impl::SetError( USHORT nError)
00643 {
00644 return pDlg->SetError(nError);
00645 }
00646
00647
00648
00649
00650 USHORT AbstractSvxSearchSimilarityDialog_Impl::GetOther()
00651 {
00652 return pDlg->GetOther();
00653 }
00654
00655 USHORT AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
00656 {
00657 return pDlg->GetShorter();
00658 }
00659
00660 USHORT AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
00661 {
00662 return pDlg-> GetLonger();
00663 }
00664
00665 BOOL AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
00666 {
00667 return pDlg-> IsRelaxed();
00668 }
00669
00670
00671
00672 void AbstractSvxTransformTabDialog_Impl::SetCurPageId( USHORT nId )
00673 {
00674 pDlg->SetCurPageId( nId );
00675 }
00676 const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
00677 {
00678 return pDlg->GetOutputItemSet();
00679 }
00680
00681 const USHORT* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
00682 {
00683 return pDlg->GetInputRanges( pItem );
00684 }
00685
00686 void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
00687 {
00688 pDlg->SetInputSet( pInSet );
00689 }
00690
00691 void AbstractSvxTransformTabDialog_Impl::SetText( const XubString& rStr )
00692 {
00693 pDlg->SetText( rStr );
00694 }
00695 String AbstractSvxTransformTabDialog_Impl::GetText() const
00696 {
00697 return pDlg->GetText();
00698 }
00699 void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link& rLink )
00700 {
00701 pDlg->SetValidateFramePosLink( rLink );
00702 }
00703
00704
00705
00706 void AbstractSvxCaptionDialog_Impl::SetCurPageId( USHORT nId )
00707 {
00708 pDlg->SetCurPageId( nId );
00709 }
00710 const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
00711 {
00712 return pDlg->GetOutputItemSet();
00713 }
00714
00715 const USHORT* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
00716 {
00717 return pDlg->GetInputRanges( pItem );
00718 }
00719
00720 void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
00721 {
00722 pDlg->SetInputSet( pInSet );
00723 }
00724
00725 void AbstractSvxCaptionDialog_Impl::SetText( const XubString& rStr )
00726 {
00727 pDlg->SetText( rStr );
00728 }
00729 String AbstractSvxCaptionDialog_Impl::GetText() const
00730 {
00731 return pDlg->GetText();
00732 }
00733 void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link& rLink )
00734 {
00735 pDlg->SetValidateFramePosLink( rLink );
00736 }
00737
00738
00739
00740 INT32 AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
00741 {
00742 return pDlg->GetTransliterationFlags();
00743 }
00744
00745
00746
00747 void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew)
00748 {
00749 pDlg->SetValue(nNew);
00750 }
00751
00752 long AbstractFmInputRecordNoDialog_Impl::GetValue() const
00753 {
00754 return pDlg->GetValue();
00755 }
00756
00757
00758
00759 ::Reference<
00760 ::com::sun::star::linguistic2::XDictionary > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
00761 {
00762 return pDlg->GetNewDictionary();
00763 }
00764
00765
00766
00767 void AbstractSvxNameDialog_Impl::GetName( String& rName )
00768 {
00769 pDlg->GetName( rName );
00770 }
00771 void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately )
00772 {
00773 aCheckNameHdl = rLink;
00774 if( rLink.IsSet() )
00775 pDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately );
00776 else
00777 pDlg->SetCheckNameHdl( Link(), bCheckImmediately );
00778 }
00779 void AbstractSvxNameDialog_Impl::SetEditHelpId(ULONG nHelpId)
00780 {
00781 pDlg->SetEditHelpId( nHelpId );
00782 }
00783 void AbstractSvxNameDialog_Impl::SetHelpId( ULONG nHelpId )
00784 {
00785 pDlg->SetHelpId( nHelpId );
00786 }
00787 void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr )
00788 {
00789 pDlg->SetText( rStr );
00790 }
00791 IMPL_LINK( AbstractSvxNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG )
00792 {
00793 if( aCheckNameHdl.IsSet() )
00794 return aCheckNameHdl.Call(this);
00795 return 0;
00796 }
00797
00798
00800
00801
00802 void AbstractSvxObjectNameDialog_Impl::GetName(String& rName)
00803 {
00804 pDlg->GetName(rName);
00805 }
00806
00807 void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink, bool bCheckImmediately)
00808 {
00809 aCheckNameHdl = rLink;
00810
00811 if(rLink.IsSet())
00812 {
00813 pDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl), bCheckImmediately);
00814 }
00815 else
00816 {
00817 pDlg->SetCheckNameHdl(Link(), bCheckImmediately);
00818 }
00819 }
00820
00821 IMPL_LINK(AbstractSvxObjectNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG)
00822 {
00823 if(aCheckNameHdl.IsSet())
00824 {
00825 return aCheckNameHdl.Call(this);
00826 }
00827
00828 return 0;
00829 }
00830
00832
00833
00834 void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(String& rTitle)
00835 {
00836 pDlg->GetTitle(rTitle);
00837 }
00838
00839 void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(String& rDescription)
00840 {
00841 pDlg->GetDescription(rDescription);
00842 }
00843
00845
00846
00847 void AbstractSvxMessDialog_Impl::SetButtonText( USHORT nBtnId, const String& rNewTxt )
00848 {
00849 pDlg->SetButtonText( nBtnId, rNewTxt );
00850 }
00851
00852
00853
00854 String AbstractSvxMultiPathDialog_Impl::GetPath() const
00855 {
00856 return pDlg->GetPath();
00857 }
00858
00859 void AbstractSvxMultiPathDialog_Impl::SetPath( const String& rPath )
00860 {
00861 pDlg->SetPath( rPath );
00862 }
00863
00864 void AbstractSvxMultiPathDialog_Impl::EnableRadioButtonMode()
00865 {
00866 pDlg->EnableRadioButtonMode();
00867 }
00868
00869 void AbstractSvxMultiPathDialog_Impl::SetTitle( const String& rNewTitle )
00870 {
00871 pDlg->SetText( rNewTitle );
00872 }
00873
00874
00875
00876 String AbstractSvxMultiFileDialog_Impl::GetPath() const
00877 {
00878 return pDlg->GetPath();
00879 }
00880
00881 void AbstractSvxMultiFileDialog_Impl::SetPath( const String& rPath )
00882 {
00883 pDlg->SetPath( rPath );
00884 }
00885
00886 String AbstractSvxMultiFileDialog_Impl::GetFiles() const
00887 {
00888 return pDlg->GetFiles();
00889 }
00890
00891 void AbstractSvxMultiFileDialog_Impl::SetFiles( const String& rPath )
00892 {
00893 pDlg->SetFiles( rPath );
00894 }
00895
00896 void AbstractSvxMultiFileDialog_Impl::SetClassPathMode()
00897 {
00898 pDlg->SetClassPathMode();
00899 }
00900
00901 void AbstractSvxMultiFileDialog_Impl::EnableRadioButtonMode()
00902 {
00903 pDlg->EnableRadioButtonMode();
00904 }
00905
00906 void AbstractSvxMultiFileDialog_Impl::SetTitle( const String& rNewTitle )
00907 {
00908 pDlg->SetText( rNewTitle );
00909 }
00910
00911 void AbstractSvxMultiFileDialog_Impl::SetHelpId( ULONG nHelpId )
00912 {
00913 pDlg->SetHelpId( nHelpId );
00914 }
00915
00916
00917
00918 Window * AbstractSvxHpLinkDlg_Impl::GetWindow()
00919 {
00920 return (Window *)pDlg;
00921 }
00922
00923 sal_Bool AbstractSvxHpLinkDlg_Impl::QueryClose()
00924 {
00925 return pDlg->QueryClose();
00926 }
00927
00928
00929
00930
00931 void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk)
00932 {
00933 pDlg->SetFoundHandler(lnk);
00934 }
00935 void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk)
00936 {
00937 pDlg->SetCanceledNotFoundHdl(lnk);
00938 }
00939 void AbstractFmSearchDialog_Impl::SetActiveField(const String& strField)
00940 {
00941 pDlg->SetActiveField(strField);
00942 }
00943
00944
00945
00946 Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY )
00947 {
00948 return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY );
00949 }
00950
00951
00952
00953 void AbstractSvxAreaTabDialog_Impl::SetCurPageId( USHORT nId )
00954 {
00955 pDlg->SetCurPageId( nId );
00956 }
00957
00958 const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
00959 {
00960 return pDlg->GetOutputItemSet();
00961 }
00962
00963 const USHORT* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
00964 {
00965 return pDlg->GetInputRanges( pItem );
00966 }
00967
00968 void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
00969 {
00970 pDlg->SetInputSet( pInSet );
00971 }
00972
00973 void AbstractSvxAreaTabDialog_Impl::SetText( const XubString& rStr )
00974 {
00975 pDlg->SetText( rStr );
00976 }
00977 String AbstractSvxAreaTabDialog_Impl::GetText() const
00978 {
00979 return pDlg->GetText();
00980 }
00981
00982 void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable()
00983 {
00984 return pDlg->DontDeleteColorTable();
00985 }
00986
00987
00988
00989 void AbstractSvxPostItDialog_Impl::SetText( const XubString& rStr )
00990 {
00991 pDlg->SetText( rStr );
00992 }
00993 const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
00994 {
00995 return pDlg->GetOutputItemSet();
00996 }
00997 void AbstractSvxPostItDialog_Impl::EnableTravel(BOOL bNext, BOOL bPrev)
00998 {
00999 pDlg->EnableTravel( bNext, bPrev );
01000 }
01001 String AbstractSvxPostItDialog_Impl::GetNote()
01002 {
01003 return pDlg->GetNote();
01004 }
01005 void AbstractSvxPostItDialog_Impl::SetNote(const String& rTxt)
01006 {
01007 pDlg->SetNote( rTxt );
01008 }
01009 void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const String& rAuthor, const String& rDate)
01010 {
01011 pDlg->ShowLastAuthor( rAuthor, rDate );
01012 }
01013 void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
01014 {
01015 pDlg->DontChangeAuthor();
01016 }
01017 void AbstractSvxPostItDialog_Impl::HideAuthor()
01018 {
01019 pDlg->HideAuthor();
01020 }
01021 void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(BOOL bDisable)
01022 {
01023 pDlg->SetReadonlyPostIt( bDisable );
01024 }
01025 BOOL AbstractSvxPostItDialog_Impl::IsOkEnabled() const
01026 {
01027 return pDlg->IsOkEnabled();
01028 }
01029 void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link& rLink )
01030 {
01031 aNextHdl = rLink;
01032 if( rLink.IsSet() )
01033 pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) );
01034 else
01035 pDlg->SetNextHdl( Link() );
01036 }
01037 void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink )
01038 {
01039 aPrevHdl = rLink;
01040 if( rLink.IsSet() )
01041 pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) );
01042 else
01043 pDlg->SetPrevHdl( Link() );
01044 }
01045 IMPL_LINK( AbstractSvxPostItDialog_Impl, NextHdl, Window*, EMPTYARG )
01046 {
01047 if( aNextHdl.IsSet() )
01048 aNextHdl.Call(this);
01049 return 0;
01050 }
01051 IMPL_LINK( AbstractSvxPostItDialog_Impl, PrevHdl, Window*, EMPTYARG )
01052 {
01053 if( aPrevHdl.IsSet() )
01054 aPrevHdl.Call(this);
01055 return 0;
01056 }
01057 Window * AbstractSvxPostItDialog_Impl::GetWindow()
01058 {
01059 return (Window *)pDlg;
01060 }
01061
01062
01063
01064
01065
01066 VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, sal_uInt32 nResId )
01067 {
01068 Dialog* pDlg=NULL;
01069 switch ( nResId )
01070 {
01071 case SID_OPTIONS_TREEDIALOG :
01072 case SID_OPTIONS_DATABASES :
01073 case SID_LANGUAGE_OPTIONS :
01074 {
01075 bool bActivateLastSelection = false;
01076 if (nResId == SID_OPTIONS_TREEDIALOG)
01077 bActivateLastSelection = true;
01078 Reference< frame::XFrame > xFrame;
01079 OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, xFrame, bActivateLastSelection );
01080 if (nResId == SID_OPTIONS_DATABASES)
01081 {
01082 pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
01083 }
01084 else if (nResId == SID_LANGUAGE_OPTIONS)
01085 {
01086
01087 pOptDlg->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE);
01088 }
01089 pDlg = pOptDlg;
01090 }
01091 break;
01092 default:
01093 break;
01094 }
01095
01096 if ( pDlg )
01097 return new VclAbstractDialog_Impl( pDlg );
01098 return 0;
01099 }
01100
01101
01102 VclAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* , const SfxBindings&, sal_uInt32 )
01103 {
01104 return 0;
01105 }
01106
01107 VclAbstractDialog* AbstractDialogFactory_Impl::CreateFrameDialog(
01108 Window* pParent, const Reference< frame::XFrame >& rxFrame,
01109 sal_uInt32 nResId, const String& rParameter )
01110 {
01111 Dialog* pDlg = NULL;
01112 if ( SID_OPTIONS_TREEDIALOG == nResId || SID_OPTIONS_DATABASES == nResId )
01113 {
01114
01115 bool bActivateLastSelection = ( nResId != SID_OPTIONS_DATABASES && rParameter.Len() == 0 );
01116 OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, rxFrame, bActivateLastSelection );
01117 if ( nResId == SID_OPTIONS_DATABASES )
01118 pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
01119 else if ( rParameter.Len() > 0 )
01120 pOptDlg->ActivatePage( rParameter );
01121 pDlg = pOptDlg;
01122 }
01123
01124 if ( pDlg )
01125 return new VclAbstractDialog_Impl( pDlg );
01126 else
01127 return NULL;
01128 }
01129
01130
01131 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
01132 Window* pParent,
01133 const SfxItemSet* pAttrSet,
01134 SfxViewFrame* ,
01135 bool ,
01136 const String * )
01137 {
01138 SfxTabDialog* pDlg=NULL;
01139 switch ( nResId )
01140 {
01141 case RID_OFA_AUTOCORR_DLG :
01142 pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
01143 break;
01144 case RID_SVXDLG_CUSTOMIZE :
01145 pDlg = new SvxConfigDialog( pParent, pAttrSet );
01146 break;
01147 default:
01148 break;
01149 }
01150
01151 if ( pDlg )
01152 return new AbstractTabDialog_Impl( pDlg );
01153 return 0;
01154 }
01155
01156 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
01157 Window* pParent,
01158 const SfxItemSet* pAttrSet,
01159 const Reference< frame::XFrame >& xViewFrame,
01160 bool ,
01161 const String * )
01162 {
01163 SfxTabDialog* pDlg=NULL;
01164 switch ( nResId )
01165 {
01166 case RID_OFA_AUTOCORR_DLG :
01167 pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
01168 break;
01169 case RID_SVXDLG_CUSTOMIZE :
01170 {
01171 SvxConfigDialog* pDlg1 = new SvxConfigDialog( pParent, pAttrSet );
01172 pDlg1->SetFrame(xViewFrame);
01173 pDlg = (SfxTabDialog*)pDlg1;
01174 }
01175 break;
01176 default:
01177 break;
01178 }
01179
01180 if ( pDlg )
01181 return new AbstractTabDialog_Impl( pDlg );
01182 return 0;
01183 }
01184
01185
01186 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTextTabDialog( Window* pParent,
01187 const SfxItemSet* pAttrSet,
01188 sal_uInt32 nResId,
01189 SdrView* pView,
01190 SdrModel* )
01191 {
01192 SfxTabDialog* pDlg=NULL;
01193 switch ( nResId )
01194 {
01195 case RID_SVXDLG_TEXT :
01196 pDlg = new SvxTextTabDialog( pParent, pAttrSet, pView );
01197 break;
01198 default:
01199 break;
01200 }
01201
01202 if ( pDlg )
01203 return new AbstractTabDialog_Impl( pDlg );
01204 return 0;
01205 }
01206
01207
01208 AbstractSvxCaptionDialog* AbstractDialogFactory_Impl::CreateCaptionDialog( Window* pParent,
01209 const SdrView* pView,
01210 sal_uInt32 nResId,
01211 USHORT nAnchorTypes )
01212 {
01213 SvxCaptionTabDialog* pDlg=NULL;
01214 switch ( nResId )
01215 {
01216 case RID_SVXDLG_CAPTION :
01217 pDlg = new SvxCaptionTabDialog( pParent, pView, nAnchorTypes );
01218 break;
01219 default:
01220 break;
01221 }
01222
01223 if ( pDlg )
01224 return new AbstractSvxCaptionDialog_Impl( pDlg );
01225 return 0;
01226 }
01227
01228 AbstractSvxDistributeDialog* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window* pParent,
01229 const SfxItemSet& rAttr,
01230 sal_uInt32 nResId,
01231 SvxDistributeHorizontal eHor ,
01232 SvxDistributeVertical eVer)
01233 {
01234 SvxDistributeDialog* pDlg=NULL;
01235 switch ( nResId )
01236 {
01237 case RID_SVXPAGE_DISTRIBUTE :
01238 pDlg = new SvxDistributeDialog( pParent, rAttr, eHor, eVer);
01239 break;
01240 default:
01241 break;
01242 }
01243
01244 if ( pDlg )
01245 return new AbstractSvxDistributeDialog_Impl( pDlg );
01246 return 0;
01247 }
01248
01249 AbstractHangulHanjaConversionDialog* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window* pParent,
01250 HangulHanjaConversion::ConversionDirection _ePrimaryDirection,
01251 sal_uInt32 nResId)
01252 {
01253 HangulHanjaConversionDialog* pDlg=NULL;
01254 switch ( nResId )
01255 {
01256 case RID_SVX_MDLG_HANGULHANJA :
01257 pDlg = new HangulHanjaConversionDialog( pParent, _ePrimaryDirection);
01258 break;
01259 default:
01260 break;
01261 }
01262
01263 if ( pDlg )
01264 return new AbstractHangulHanjaConversionDialog_Impl( pDlg );
01265 return 0;
01266 }
01267
01268 AbstractFmShowColsDialog * AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window* pParent,
01269 sal_uInt32 nResId)
01270 {
01271 FmShowColsDialog* pDlg=NULL;
01272 switch ( nResId )
01273 {
01274 case RID_SVX_DLG_SHOWGRIDCOLUMNS :
01275 pDlg = new FmShowColsDialog( pParent);
01276 break;
01277 default:
01278 break;
01279 }
01280
01281 if ( pDlg )
01282 return new AbstractFmShowColsDialog_Impl( pDlg );
01283 return 0;
01284 }
01285 AbstractSvxZoomDialog * AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window* pParent,
01286 const SfxItemSet& rCoreSet,
01287 sal_uInt32 nResId)
01288 {
01289 SvxZoomDialog* pDlg=NULL;
01290 switch ( nResId )
01291 {
01292 case RID_SVXDLG_ZOOM :
01293 pDlg = new SvxZoomDialog( pParent, rCoreSet);
01294 break;
01295 default:
01296 break;
01297 }
01298
01299 if ( pDlg )
01300 return new AbstractSvxZoomDialog_Impl( pDlg );
01301 return 0;
01302 }
01303
01304
01305
01306
01307 AbstractSpellDialog * AbstractDialogFactory_Impl::CreateSvxSpellDialog(
01308 Window* pParent,
01309 SfxBindings* pBindings,
01310 svx::SpellDialogChildWindow* pSpellChildWindow )
01311 {
01312 svx::SpellDialog* pDlg = new svx::SpellDialog(pSpellChildWindow, pParent, pBindings);
01313 return new AbstractSpellDialog_Impl(pDlg);
01314 }
01315
01316
01317 VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window* pParent,
01318 GalleryTheme* pThm,
01319 sal_uInt32 nResId)
01320 {
01321 Dialog* pDlg=NULL;
01322 switch ( nResId )
01323 {
01324 case RID_SVXDLG_GALLERY_ACTUALIZE_PROGRESS :
01325 pDlg = new ActualizeProgress( pParent, pThm);
01326 break;
01327 default:
01328 break;
01329 }
01330
01331 if ( pDlg )
01332 return new VclAbstractRefreshableDialog_Impl( pDlg );
01333 return 0;
01334 }
01335
01336 AbstractSearchProgress * AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window* pParent,
01337 const INetURLObject& rStartURL,
01338 sal_uInt32 nResId)
01339 {
01340 SearchProgress* pDlg=NULL;
01341 switch ( nResId )
01342 {
01343 case RID_SVXDLG_GALLERY_SEARCH_PROGRESS :
01344 pDlg = new SearchProgress( pParent, rStartURL);
01345 break;
01346 default:
01347 break;
01348 }
01349
01350 if ( pDlg )
01351 return new AbstractSearchProgress_Impl( pDlg );
01352 return 0;
01353 }
01354
01355 AbstractTakeProgress * AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window* pParent,
01356 sal_uInt32 nResId)
01357 {
01358 TakeProgress* pDlg=NULL;
01359 switch ( nResId )
01360 {
01361 case RID_SVXDLG_GALLERY_TAKE_PROGRESS :
01362 pDlg = new TakeProgress( pParent );
01363 break;
01364 default:
01365 break;
01366 }
01367
01368 if ( pDlg )
01369 return new AbstractTakeProgress_Impl( pDlg );
01370 return 0;
01371 }
01372
01373 VclAbstractDialog*
01374 AbstractDialogFactory_Impl::CreateScriptErrorDialog(
01375 Window* pParent, ::com::sun::star::uno::Any aException )
01376 {
01377 return new SvxScriptErrorDialog( pParent, aException );
01378 }
01379
01380 AbstractScriptSelectorDialog*
01381 AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
01382 Window* pParent, BOOL bShowSlots, const Reference< frame::XFrame >& _rxFrame )
01383 {
01384 SvxScriptSelectorDialog* pDlg = NULL;
01385
01386 pDlg = new SvxScriptSelectorDialog( pParent, bShowSlots, _rxFrame );
01387
01388 if (pDlg)
01389 {
01390 return new AbstractScriptSelectorDialog_Impl( pDlg );
01391 }
01392 return 0;
01393 }
01394
01395 String AbstractScriptSelectorDialog_Impl::GetScriptURL() const
01396 {
01397 if (pDlg)
01398 return pDlg->GetScriptURL();
01399 return String();
01400 }
01401
01402 void AbstractScriptSelectorDialog_Impl::SetRunLabel()
01403 {
01404 if (pDlg)
01405 pDlg->SetRunLabel();
01406 return;
01407 }
01408
01409 VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window* pParent,
01410 const String& rLanguage)
01411 {
01412 Dialog* pDlg=NULL;
01413
01414 pDlg = new SvxScriptOrgDialog( pParent, rLanguage);
01415
01416 if ( pDlg )
01417 return new VclAbstractDialog_Impl( pDlg );
01418 return 0;
01419 }
01420
01421 AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( Window* pParent,
01422 const String& rOldText,
01423 sal_uInt32 nResId)
01424 {
01425 TitleDialog* pDlg=NULL;
01426 switch ( nResId )
01427 {
01428 case RID_SVXDLG_GALLERY_TITLE :
01429 pDlg = new TitleDialog( pParent, rOldText);
01430 break;
01431 default:
01432 break;
01433 }
01434
01435 if ( pDlg )
01436 return new AbstractTitleDialog_Impl( pDlg );
01437 return 0;
01438 }
01439
01440 AbstractGalleryIdDialog * AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window* pParent,
01441 GalleryTheme* pThm,
01442 sal_uInt32 nResId)
01443 {
01444 GalleryIdDialog* pDlg=NULL;
01445 switch ( nResId )
01446 {
01447 case RID_SVXDLG_GALLERY_THEMEID :
01448 pDlg = new GalleryIdDialog( pParent, pThm);
01449 break;
01450 default:
01451 break;
01452 }
01453
01454 if ( pDlg )
01455 return new AbstractGalleryIdDialog_Impl( pDlg );
01456 return 0;
01457 }
01458
01459 VclAbstractDialog2 * AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window* pParent,
01460 ExchangeData* pData,
01461 SfxItemSet* pItemSet,
01462 sal_uInt32 nResId)
01463 {
01464 Dialog* pDlg=NULL;
01465 switch ( nResId )
01466 {
01467 case RID_SVXTABDLG_GALLERYTHEME :
01468 pDlg = new GalleryThemeProperties( pParent, pData, pItemSet);
01469 break;
01470 default:
01471 break;
01472 }
01473
01474 if ( pDlg )
01475 return new VclAbstractDialog2_Impl( pDlg );
01476 return 0;
01477 }
01478
01479
01480 AbstractURLDlg * AbstractDialogFactory_Impl::CreateURLDialog( Window* pParent,
01481 const String& rURL, const String& rAltText, const String& rDescription,
01482 const String& rTarget, const String& rName,
01483 TargetList& rTargetList )
01484 {
01485 URLDlg* pDlg = new URLDlg( pParent, rURL, rAltText, rDescription, rTarget, rName, rTargetList);
01486 return new AbstractURLDlg_Impl( pDlg );
01487 }
01488
01489
01490
01491 AbstractSvxHlinkDlgMarkWnd* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId )
01492 {
01493 SvxHlinkDlgMarkWnd* pDlg=NULL;
01494 switch ( nResId )
01495 {
01496 case RID_SVXFLOAT_HYPERLINK_MARKWND :
01497 pDlg = new SvxHlinkDlgMarkWnd( pParent );
01498 break;
01499 default:
01500 break;
01501 }
01502
01503 if ( pDlg )
01504 return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg );
01505 return 0;
01506 }
01507
01508
01509 SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32 nResId,
01510 Window* pParent,
01511 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& ,
01512 const SfxItemSet* pAttrSet )
01513 {
01514 SfxModalDialog* pDlg=NULL;
01515 switch ( nResId )
01516 {
01517 case RID_SVXDLG_CHARMAP :
01518 pDlg = new SvxCharacterMap( pParent, TRUE, pAttrSet );
01519 break;
01520 default:
01521 break;
01522 }
01523
01524 if ( pDlg )
01525 return new AbstractSfxDialog_Impl( pDlg );
01526 return 0;
01527 }
01528
01529
01530
01531 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabItemDialog( Window* pParent,
01532 const SfxItemSet& rSet,
01533 sal_uInt32 nResId)
01534 {
01535 SfxTabDialog* pDlg=NULL;
01536 switch ( nResId )
01537 {
01538 case RID_SVXDLG_SEARCHFORMAT :
01539 pDlg = new SvxSearchFormatDialog( pParent, rSet );
01540 break;
01541 default:
01542 break;
01543 }
01544
01545 if ( pDlg )
01546 return new AbstractTabDialog_Impl( pDlg );
01547 return 0;
01548 }
01549
01550
01551
01552 VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window* pParent,
01553 SearchAttrItemList& rLst,
01554 const USHORT* pWhRanges,
01555 sal_uInt32 nResId )
01556 {
01557 Dialog* pDlg=NULL;
01558 switch ( nResId )
01559 {
01560 case RID_SVXDLG_SEARCHATTR :
01561 pDlg = new SvxSearchAttributeDialog( pParent, rLst, pWhRanges);
01562 break;
01563 default:
01564 break;
01565 }
01566
01567 if ( pDlg )
01568 return new VclAbstractDialog_Impl( pDlg );
01569 return 0;
01570 }
01571
01572
01573
01574 AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window* pParent,
01575 BOOL bRelax,
01576 USHORT nOther,
01577 USHORT nShorter,
01578 USHORT nLonger)
01579 {
01580 SvxSearchSimilarityDialog* pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger );
01581 if ( pDlg )
01582 return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
01583 return NULL;
01584 }
01585
01586
01587
01588 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window* pParent,
01589 const SfxItemSet& rCoreSet,
01590 sal_uInt32 nResId,
01591 BOOL bEnableSelector)
01592 {
01593 SfxTabDialog* pDlg=NULL;
01594 switch ( nResId )
01595 {
01596 case RID_SVXDLG_BBDLG :
01597 pDlg = new SvxBorderBackgroundDlg( pParent, rCoreSet, bEnableSelector);
01598 break;
01599 default:
01600 break;
01601 }
01602
01603 if ( pDlg )
01604 return new AbstractTabDialog_Impl( pDlg );
01605 return 0;
01606 }
01607
01608
01609
01610 AbstractSvxTransformTabDialog* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window* pParent,
01611 const SfxItemSet* pAttr,
01612 const SdrView* pView,
01613 sal_uInt32 nResId,
01614 USHORT nAnchorTypes )
01615 {
01616 SvxTransformTabDialog* pDlg=NULL;
01617 switch ( nResId )
01618 {
01619 case RID_SVXDLG_TRANSFORM :
01620 pDlg = new SvxTransformTabDialog( pParent, pAttr,pView, nAnchorTypes);
01621 break;
01622 default:
01623 break;
01624 }
01625
01626 if ( pDlg )
01627 return new AbstractSvxTransformTabDialog_Impl( pDlg );
01628 return 0;
01629 }
01630
01631
01632
01633
01634 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window* pParent,
01635 const SfxItemSet* pAttr,
01636 const SdrView* pSdrView,
01637 sal_uInt32 nResId,
01638 bool bSizeTabPage
01639 )
01640 {
01641 SfxTabDialog* pDlg=NULL;
01642 switch ( nResId )
01643 {
01644 case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE :
01645 {
01646 pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
01647 pDlg->RemoveTabPage( RID_SVXPAGE_ANGLE );
01648 pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
01649 }
01650 break;
01651 case RID_SCH_TransformTabDLG_SVXPAGE_SLANT:
01652 {
01653 pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
01654 pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
01655 }
01656 break;
01657 default:
01658 break;
01659 }
01660
01661 if ( pDlg )
01662 return new AbstractTabDialog_Impl( pDlg );
01663 return 0;
01664 }
01665
01666
01667
01668 AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window* pParent,
01669 const SfxItemSet& rOptionsSet, USHORT nUniqueId,
01670 INT32 nInitialFlags,
01671 sal_uInt32 nResId)
01672 {
01673 SvxJSearchOptionsDialog* pDlg=NULL;
01674 switch ( nResId )
01675 {
01676 case RID_SVXPAGE_JSEARCH_OPTIONS :
01677 pDlg = new SvxJSearchOptionsDialog( pParent, rOptionsSet, nUniqueId, nInitialFlags );
01678 break;
01679 default:
01680 break;
01681 }
01682
01683 if ( pDlg )
01684 return new AbstractSvxJSearchOptionsDialog_Impl( pDlg );
01685 return 0;
01686 }
01687
01688
01689
01690 AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window* pParent,
01691 sal_uInt32 nResId)
01692 {
01693 FmInputRecordNoDialog* pDlg=NULL;
01694 switch ( nResId )
01695 {
01696 case RID_SVX_DLG_INPUTRECORDNO :
01697 pDlg = new FmInputRecordNoDialog( pParent );
01698 break;
01699 default:
01700 break;
01701 }
01702
01703 if ( pDlg )
01704 return new AbstractFmInputRecordNoDialog_Impl( pDlg );
01705 return 0;
01706 }
01707
01708
01709
01710 AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window* pParent,
01711 ::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl,
01712 sal_uInt32 nResId )
01713 {
01714 SvxNewDictionaryDialog* pDlg=NULL;
01715 switch ( nResId )
01716 {
01717 case RID_SFXDLG_NEWDICT :
01718 pDlg = new SvxNewDictionaryDialog( pParent, xSpl );
01719 break;
01720 default:
01721 break;
01722 }
01723
01724 if ( pDlg )
01725 return new AbstractSvxNewDictionaryDialog_Impl( pDlg );
01726 return 0;
01727 }
01728
01729
01730
01731 VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window* pParent,
01732 const String& rName,
01733 ::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
01734 sal_uInt32 nResId )
01735 {
01736 Dialog* pDlg=NULL;
01737 switch ( nResId )
01738 {
01739 case RID_SFXDLG_EDITDICT :
01740 pDlg = new SvxEditDictionaryDialog( pParent, rName, xSpl );
01741 break;
01742 default:
01743 break;
01744 }
01745
01746 if ( pDlg )
01747 return new VclAbstractDialog_Impl( pDlg );
01748 return 0;
01749 }
01750
01751
01752
01753 AbstractSvxNameDialog * AbstractDialogFactory_Impl::CreateSvxNameDialog( Window* pParent,
01754 const String& rName, const String& rDesc,
01755 sal_uInt32 nResId )
01756 {
01757 SvxNameDialog* pDlg=NULL;
01758 switch ( nResId )
01759 {
01760 case RID_SVXDLG_NAME :
01761 pDlg = new SvxNameDialog( pParent, rName, rDesc );
01762 break;
01763 default:
01764 break;
01765 }
01766
01767 if ( pDlg )
01768 return new AbstractSvxNameDialog_Impl( pDlg );
01769 return 0;
01770 }
01771
01772
01774
01775
01776 AbstractSvxObjectNameDialog* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window* pParent, const String& rName, sal_uInt32 nResId)
01777 {
01778 return ((RID_SVXDLG_OBJECT_NAME == nResId)
01779 ? new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent, rName))
01780 : NULL);
01781 }
01782
01784
01785
01786 AbstractSvxObjectTitleDescDialog* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window* pParent, const String& rTitle, const String& rDescription, sal_uInt32 nResId)
01787 {
01788 return ((RID_SVXDLG_OBJECT_TITLE_DESC == nResId)
01789 ? new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription))
01790 : NULL);
01791 }
01792
01794
01795
01796 AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId,
01797 const String& rText, const String& rDesc, Image* pImg )
01798 {
01799 SvxMessDialog* pDlg=NULL;
01800 switch ( nResId )
01801 {
01802 case RID_SVXDLG_MESSBOX :
01803 pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
01804 break;
01805 default:
01806 break;
01807 }
01808
01809 if ( pDlg )
01810 return new AbstractSvxMessDialog_Impl( pDlg );
01811 return 0;
01812 }
01813
01814
01815
01816 AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window* pParent, sal_uInt32 nResId,
01817 BOOL bEmptyAllowed )
01818 {
01819 SvxMultiPathDialog* pDlg=NULL;
01820 switch ( nResId )
01821 {
01822 case RID_SVXDLG_MULTIPATH :
01823 pDlg = new SvxMultiPathDialog( pParent, bEmptyAllowed );
01824 break;
01825 default:
01826 break;
01827 }
01828
01829 if ( pDlg )
01830 return new AbstractSvxMultiPathDialog_Impl( pDlg );
01831 return 0;
01832 }
01833
01834
01835
01836 AbstractSvxMultiFileDialog * AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window* pParent, sal_uInt32 nResId,
01837 BOOL bEmptyAllowed )
01838 {
01839 SvxMultiFileDialog* pDlg=NULL;
01840 switch ( nResId )
01841 {
01842 case RID_SVXDLG_MULTIPATH :
01843 pDlg = new SvxMultiFileDialog( pParent, bEmptyAllowed );
01844 break;
01845 default:
01846 break;
01847 }
01848
01849 if ( pDlg )
01850 return new AbstractSvxMultiFileDialog_Impl( pDlg );
01851 return 0;
01852 }
01853
01854
01855
01856 AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window* pParent,
01857 SfxBindings* pBindings,
01858 sal_uInt32 nResId)
01859 {
01860 SvxHpLinkDlg* pDlg=NULL;
01861 switch ( nResId )
01862 {
01863 case SID_HYPERLINK_DIALOG :
01864 pDlg = new SvxHpLinkDlg( pParent, pBindings );
01865 break;
01866 default:
01867 break;
01868 }
01869
01870 if ( pDlg )
01871 return new AbstractSvxHpLinkDlg_Impl( pDlg );
01872 return 0;
01873 }
01874
01875
01876
01877 AbstractFmSearchDialog* AbstractDialogFactory_Impl::CreateFmSearchDialog(Window* pParent,
01878 const String& strInitialText,
01879 const ::std::vector< String >& _rContexts,
01880 sal_Int16 nInitialContext,
01881 const Link& lnkContextSupplier)
01882 {
01883 FmSearchDialog* pDlg = new FmSearchDialog( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier );
01884 if ( pDlg )
01885 return new AbstractFmSearchDialog_Impl( pDlg );
01886 return 0;
01887 }
01888
01889
01890
01891
01892 AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window* pParent,
01893 const Graphic& rGraphic,
01894 RECT_POINT eLightSource,
01895 sal_uInt32 nResId)
01896 {
01897 GraphicFilterDialog* pDlg=NULL;
01898 switch ( nResId )
01899 {
01900 case RID_SVX_GRFFILTER_DLG_EMBOSS :
01901 pDlg = new GraphicFilterEmboss( pParent, rGraphic, eLightSource );
01902 break;
01903 default:
01904 break;
01905 }
01906
01907 if ( pDlg )
01908 return new AbstractGraphicFilterDialog_Impl( pDlg );
01909 return 0;
01910 }
01911
01912
01913
01914 AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window* pParent,
01915 const Graphic& rGraphic,
01916 USHORT nCount,
01917 sal_uInt32 nResId)
01918 {
01919 GraphicFilterDialog* pDlg=NULL;
01920 switch ( nResId )
01921 {
01922 case RID_SVX_GRFFILTER_DLG_POSTER :
01923 pDlg = new GraphicFilterPoster( pParent, rGraphic, nCount );
01924 break;
01925 case RID_SVX_GRFFILTER_DLG_SEPIA :
01926 pDlg = new GraphicFilterSepia( pParent, rGraphic, nCount );
01927 break;
01928
01929 default:
01930 break;
01931 }
01932
01933 if ( pDlg )
01934 return new AbstractGraphicFilterDialog_Impl( pDlg );
01935 return 0;
01936 }
01937
01938
01939
01940 AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent,
01941 const Graphic& rGraphic,
01942 BYTE nGreyThreshold, BOOL bInvert,
01943 sal_uInt32 nResId)
01944 {
01945 GraphicFilterDialog* pDlg=NULL;
01946 switch ( nResId )
01947 {
01948 case RID_SVX_GRFFILTER_DLG_SOLARIZE :
01949 pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert );
01950 break;
01951 default:
01952 break;
01953 }
01954
01955 if ( pDlg )
01956 return new AbstractGraphicFilterDialog_Impl( pDlg );
01957 return 0;
01958 }
01959
01960
01961
01962 AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent,
01963 const Graphic& rGraphic,
01964 USHORT nTileWidth, USHORT nTileHeight, BOOL bEnhanceEdges,
01965 sal_uInt32 nResId)
01966 {
01967 GraphicFilterDialog* pDlg=NULL;
01968 switch ( nResId )
01969 {
01970 case RID_SVX_GRFFILTER_DLG_MOSAIC :
01971 pDlg = new GraphicFilterMosaic( pParent, rGraphic, nTileWidth, nTileHeight, bEnhanceEdges );
01972 break;
01973 default:
01974 break;
01975 }
01976
01977 if ( pDlg )
01978 return new AbstractGraphicFilterDialog_Impl( pDlg );
01979 return 0;
01980 }
01981
01982
01983 AbstractSvxAreaTabDialog* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window* pParent,
01984 const SfxItemSet* pAttr,
01985 SdrModel* pModel,
01986 sal_uInt32 nResId,
01987 const SdrView* pSdrView )
01988 {
01989 SvxAreaTabDialog* pDlg=NULL;
01990 switch ( nResId )
01991 {
01992 case RID_SVXDLG_AREA :
01993 pDlg = new SvxAreaTabDialog( pParent, pAttr, pModel,pSdrView );
01994 break;
01995 default:
01996 break;
01997 }
01998
01999 if ( pDlg )
02000 return new AbstractSvxAreaTabDialog_Impl( pDlg );
02001 return 0;
02002 }
02003
02004
02005 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr,
02006 SdrModel* pModel,
02007 sal_uInt32 nResId,
02008 const SdrObject* pObj ,
02009 BOOL bHasObj)
02010 {
02011 SfxTabDialog* pDlg=NULL;
02012 switch ( nResId )
02013 {
02014 case RID_SVXDLG_LINE :
02015 pDlg = new SvxLineTabDialog( pParent, pAttr, pModel,pObj,bHasObj );
02016 break;
02017 default:
02018 break;
02019 }
02020
02021 if ( pDlg )
02022 return new AbstractTabDialog_Impl( pDlg );
02023 return 0;
02024 }
02025
02026
02027 SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
02028 const SfxItemSet& rAttr,
02029 const Reference< XFrame >& _rxDocumentFrame,
02030 sal_uInt32 nResId
02031 )
02032 {
02033 SfxModalDialog* pDlg=NULL;
02034 switch ( nResId )
02035 {
02036 case SID_EVENTCONFIG :
02037 pDlg = new SfxMacroAssignDlg( pParent, _rxDocumentFrame, rAttr );
02038 break;
02039 case RID_SVXPAGE_MACROASSIGN :
02040 pDlg = new SvxShortcutAssignDlg( pParent, _rxDocumentFrame, rAttr );
02041 break;
02042 case RID_SVXDLG_CHARMAP :
02043 pDlg = new SvxCharacterMap( pParent, TRUE, &rAttr );
02044 break;
02045 default:
02046 break;
02047 }
02048
02049 if ( pDlg )
02050 return new AbstractSfxDialog_Impl( pDlg );
02051 return 0;
02052 }
02053
02054
02055 SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
02056 const SfxItemSet& rAttr,
02057 const SdrView* pView,
02058 sal_uInt32 nResId
02059 )
02060 {
02061 SfxSingleTabDialog* pDlg=NULL;
02062 switch ( nResId )
02063 {
02064 case RID_SVXPAGE_MEASURE :
02065 pDlg = new SvxMeasureDialog( pParent, rAttr, pView );
02066 break;
02067 case RID_SVXPAGE_CONNECTION :
02068 pDlg = new SvxConnectionDialog( pParent, rAttr, pView );
02069 break;
02070 case RID_SFXPAGE_DBREGISTER :
02071 pDlg = new DatabaseRegistrationDialog( pParent, rAttr );
02072 break;
02073 case RID_SVXPAGE_IMPROVEMENT :
02074 {
02075 String help_url;
02076 SFX_ITEMSET_ARG( &rAttr, pItem, SfxStringItem, SID_CURRENT_URL, sal_False );
02077 if ( pItem )
02078 help_url = pItem->GetValue();
02079 pDlg = new SvxImprovementDialog( pParent, help_url);
02080 }
02081 default:
02082 break;
02083 }
02084
02085 if ( pDlg )
02086 return new AbstractSfxDialog_Impl( pDlg );
02087 return 0;
02088 }
02089
02090
02091 AbstractSvxPostItDialog* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window* pParent,
02092 const SfxItemSet& rCoreSet,
02093 sal_uInt32 nResId,
02094 BOOL bPrevNext, BOOL bRedline )
02095 {
02096 SvxPostItDialog* pDlg=NULL;
02097 switch ( nResId )
02098 {
02099 case RID_SVXDLG_POSTIT :
02100 pDlg = new SvxPostItDialog( pParent, rCoreSet, bPrevNext, bRedline );
02101 break;
02102 default:
02103 break;
02104 }
02105
02106 if ( pDlg )
02107 return new AbstractSvxPostItDialog_Impl( pDlg );
02108 return 0;
02109 }
02110
02111
02112 class SvxMacroAssignDialog : public VclAbstractDialog
02113 {
02114 public:
02115 SvxMacroAssignDialog( Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
02116 const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
02117 :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM, SID_ATTR_MACROITEM )
02118 {
02119 m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) );
02120 m_pDialog.reset( new SvxMacroAssignDlg( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) );
02121 }
02122
02123 virtual short Execute();
02124 virtual ~SvxMacroAssignDialog();
02125
02126 private:
02127 SfxItemSet m_aItems;
02128 ::std::auto_ptr< SvxMacroAssignDlg > m_pDialog;
02129 };
02130
02131 short SvxMacroAssignDialog::Execute()
02132 {
02133 return m_pDialog->Execute();
02134 }
02135
02136 SvxMacroAssignDialog::~SvxMacroAssignDialog()
02137 {
02138 }
02139
02140 VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
02141 Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
02142 const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
02143 {
02144 return new SvxMacroAssignDialog( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent );
02145 }
02146
02147
02148 CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId )
02149 {
02150 switch ( nId )
02151 {
02152 case RID_OFA_TP_INTERNATIONAL:
02153 return ::offapp::InternationalOptionsPage::CreateSc;
02154 case RID_OFA_TP_INTERNATIONAL_SD:
02155 case RID_OFA_TP_INTERNATIONAL_IMPR:
02156 return offapp::InternationalOptionsPage::CreateSd;
02157 case RID_SVXPAGE_TEXTANIMATION :
02158 return SvxTextAnimationPage::Create;
02159 case RID_SVXTABPAGE_GALLERY_GENERAL :
02160 return TPGalleryThemeGeneral::Create;
02161 case RID_SVXPAGE_TRANSPARENCE :
02162 return SvxTransparenceTabPage::Create;
02163 case RID_SVXPAGE_AREA :
02164 return SvxAreaTabPage::Create;
02165 case RID_SVXPAGE_SHADOW :
02166 return SvxShadowTabPage::Create;
02167 case RID_SVXPAGE_LINE :
02168 return SvxLineTabPage::Create;
02169 case RID_SVXPAGE_CONNECTION :
02170 return SvxConnectionPage::Create;
02171 case RID_SVXPAGE_MEASURE :
02172 return SvxMeasurePage::Create;
02173 case RID_SFXPAGE_GENERAL :
02174 return SvxGeneralTabPage::Create;
02175 case RID_SVXPAGE_PICK_SINGLE_NUM :
02176 return SvxSingleNumPickTabPage::Create;
02177 case RID_SVXPAGE_PICK_BMP :
02178 return SvxBitmapPickTabPage::Create;
02179 case RID_SVXPAGE_PICK_BULLET :
02180 return SvxBulletPickTabPage::Create;
02181 case RID_SVXPAGE_NUM_OPTIONS :
02182 return SvxNumOptionsTabPage::Create;
02183 case RID_SVXPAGE_PICK_NUM :
02184 return SvxNumPickTabPage::Create;
02185 case RID_SVXPAGE_NUM_POSITION :
02186 return SvxNumPositionTabPage::Create;
02187 case RID_SVXPAGE_PARA_ASIAN :
02188 return SvxAsianTabPage::Create;
02189 case RID_SVXPAGE_EXT_PARAGRAPH :
02190 return SvxExtParagraphTabPage::Create;
02191 case RID_SVXPAGE_ALIGN_PARAGRAPH :
02192 return SvxParaAlignTabPage::Create;
02193 case RID_SVXPAGE_STD_PARAGRAPH :
02194 return SvxStdParagraphTabPage::Create;
02195 case RID_SVXPAGE_TABULATOR :
02196 return SvxTabulatorTabPage::Create;
02197 case RID_SVXPAGE_TEXTATTR :
02198 return SvxTextAttrPage::Create;
02199 case RID_SVXPAGE_ALIGNMENT :
02200 return svx::AlignmentTabPage::Create;
02201 case RID_SW_TP_BACKGROUND :
02202 case RID_SVXPAGE_BACKGROUND :
02203 return SvxBackgroundTabPage::Create;
02204 case RID_SVXPAGE_BORDER :
02205 return SvxBorderTabPage::Create;
02206 case RID_SVXPAGE_CHAR_NAME :
02207 return SvxCharNamePage::Create;
02208 case RID_SVXPAGE_CHAR_EFFECTS :
02209 return SvxCharEffectsPage::Create;
02210 case RID_SVXPAGE_CHAR_POSITION :
02211 return SvxCharPositionPage::Create;
02212 case RID_SVXPAGE_CHAR_TWOLINES :
02213 return SvxCharTwoLinesPage::Create;
02214 case RID_SVXPAGE_NUMBERFORMAT :
02215 return SvxNumberFormatTabPage::Create;
02216 case RID_SVXPAGE_PAGE :
02217 return SvxPageDescPage::Create;
02218 case RID_SVXPAGE_GRFCROP :
02219 return SvxGrfCropPage::Create;
02220 case RID_SVXPAGE_MACROASSIGN :
02221 return SfxMacroTabPage::Create;
02222 default:
02223 break;
02224 }
02225
02226 return 0;
02227 }
02228 CreateSvxDistributePage AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc(USHORT nId )
02229 {
02230 switch ( nId )
02231 {
02232 case RID_SVXPAGE_DISTRIBUTE:
02233 return SvxDistributePage::Create;
02234 default:
02235 break;
02236 }
02237
02238 return 0;
02239 }
02240 DialogGetRanges AbstractDialogFactory_Impl::GetDialogGetRangesFunc( USHORT nId )
02241 {
02242 switch ( nId )
02243 {
02244 case RID_SVXDLG_POSTIT:
02245 return SvxPostItDialog::GetRanges;
02246 default:
02247 break;
02248 }
02249
02250 return 0;
02251 }
02252 GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId )
02253 {
02254 switch ( nId )
02255 {
02256 case RID_SVXPAGE_TEXTANIMATION :
02257 return SvxTextAnimationPage::GetRanges;
02258 case RID_SVXPAGE_DISTRIBUTE:
02259 return SvxDistributePage::GetRanges;
02260 case RID_SVXPAGE_TRANSPARENCE :
02261 return SvxTransparenceTabPage::GetRanges;
02262 case RID_SVXPAGE_AREA :
02263 return SvxAreaTabPage::GetRanges;
02264 case RID_SVXPAGE_SHADOW :
02265 return SvxShadowTabPage::GetRanges;
02266 case RID_SVXPAGE_LINE :
02267 return SvxLineTabPage::GetRanges;
02268 case RID_SVXPAGE_CONNECTION :
02269 return SvxConnectionPage::GetRanges;
02270 case RID_SVXPAGE_MEASURE :
02271 return SvxMeasurePage::GetRanges;
02272 case RID_SVXPAGE_PARA_ASIAN :
02273 return SvxAsianTabPage::GetRanges;
02274 case RID_SVXPAGE_EXT_PARAGRAPH :
02275 return SvxExtParagraphTabPage::GetRanges;
02276 case RID_SVXPAGE_ALIGN_PARAGRAPH :
02277 return SvxParaAlignTabPage::GetRanges;
02278 case RID_SVXPAGE_STD_PARAGRAPH :
02279 return SvxStdParagraphTabPage::GetRanges;
02280 case RID_SVXPAGE_TABULATOR :
02281 return SvxTabulatorTabPage::GetRanges;
02282 case RID_SVXPAGE_TEXTATTR :
02283 return SvxTextAttrPage::GetRanges;
02284 case RID_SVXPAGE_ALIGNMENT :
02285 return svx::AlignmentTabPage::GetRanges;
02286 case RID_SW_TP_BACKGROUND :
02287 case RID_SVXPAGE_BACKGROUND :
02288 return SvxBackgroundTabPage::GetRanges;
02289 case RID_SVXPAGE_BORDER :
02290 return SvxBorderTabPage::GetRanges;
02291 case RID_SVXPAGE_CHAR_NAME :
02292 return SvxCharNamePage::GetRanges;
02293 case RID_SVXPAGE_CHAR_EFFECTS :
02294 return SvxCharEffectsPage::GetRanges;
02295 case RID_SVXPAGE_CHAR_POSITION :
02296 return SvxCharPositionPage::GetRanges;
02297 case RID_SVXPAGE_CHAR_TWOLINES :
02298 return SvxCharTwoLinesPage::GetRanges;
02299 case RID_SVXPAGE_NUMBERFORMAT :
02300 return SvxNumberFormatTabPage::GetRanges;
02301 case RID_SVXPAGE_PAGE :
02302 return SvxPageDescPage::GetRanges;
02303 case RID_SVXPAGE_ASIAN_LAYOUT:
02304 return SvxAsianLayoutPage::GetRanges;
02305 default:
02306 break;
02307 }
02308
02309 return 0;
02310 }
02311
02312 SfxAbstractInsertObjectDialog* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window* pParent, USHORT nSlotId,
02313 const Reference < com::sun::star::embed::XStorage >& xStor,
02314 const SvObjectServerList* pList )
02315 {
02316 InsertObjectDialog_Impl* pDlg=0;
02317 switch ( nSlotId )
02318 {
02319 case SID_INSERT_OBJECT : pDlg = new SvInsertOleDlg( pParent, xStor, pList ); break;
02320 case SID_INSERT_PLUGIN : pDlg = new SvInsertPlugInDialog( pParent, xStor ); break;
02321 case SID_INSERT_APPLET : pDlg = new SvInsertAppletDialog( pParent, xStor ); break;
02322 case SID_INSERT_FLOATINGFRAME : pDlg = new SfxInsertFloatingFrameDialog( pParent, xStor ); break;
02323 default: break;
02324 }
02325
02326 if ( pDlg )
02327 {
02328 pDlg->SetHelpId( nSlotId );
02329 return new AbstractInsertObjectDialog_Impl( pDlg );
02330 }
02331 return 0;
02332 }
02333
02334 VclAbstractDialog* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window* pParent, USHORT nSlotId,
02335 const Reference < com::sun::star::embed::XEmbeddedObject >& xObj )
02336 {
02337 InsertObjectDialog_Impl* pDlg=0;
02338 switch ( nSlotId )
02339 {
02340 case SID_INSERT_APPLET : pDlg = new SvInsertAppletDialog( pParent, xObj ); break;
02341 case SID_INSERT_FLOATINGFRAME : pDlg = new SfxInsertFloatingFrameDialog( pParent, xObj ); break;
02342 default: break;
02343 }
02344
02345 if ( pDlg )
02346 {
02347 pDlg->SetHelpId( nSlotId );
02348 return new VclAbstractDialog_Impl( pDlg );
02349 }
02350 return 0;
02351 }
02352
02353 SfxAbstractPasteDialog* AbstractDialogFactory_Impl::CreatePasteDialog( Window* pParent )
02354 {
02355 return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent ) );
02356 }
02357
02358 SfxAbstractLinksDialog* AbstractDialogFactory_Impl::CreateLinksDialog( Window* pParent, sfx2::SvLinkManager* pMgr, BOOL bHTML, sfx2::SvBaseLink* p)
02359 {
02360 SvBaseLinksDlg* pLinkDlg = new SvBaseLinksDlg( pParent, pMgr, bHTML );
02361 if ( p )
02362 pLinkDlg->SetActLink(p);
02363 return new AbstractLinksDialog_Impl( pLinkDlg );
02364 }
02365
02366 SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* )
02367 {
02368 return new AbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent, pAttr, pModel ) );
02369 }
02370
02371 SvxAbstractSplittTableDialog* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal )
02372 {
02373 return new SvxSplitTableDlg( pParent, bIsTableVertical, nMaxVertical, nMaxHorizontal );
02374 }
02375
02376 SvxAbstractNewTableDialog* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window* pParent )
02377 {
02378 return new SvxNewTableDialog( pParent );
02379 }
02380
02381 VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog(
02382 Window* pParent, const rtl::OUString& rExtensionId, const rtl::OUString& )
02383 {
02384 return new VclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent, rExtensionId ) );
02385 }
02386
02387 SvxAbstractInsRowColDlg* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window* pParent, bool bCol, ULONG nHelpId )
02388 {
02389 return new SvxInsRowColDlg( pParent, bCol, nHelpId );
02390 }