1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_sd.hxx" 26 27 #ifdef SD_DLLIMPLEMENTATION 28 #undef SD_DLLIMPLEMENTATION 29 #endif 30 31 #include <sfx2/objsh.hxx> 32 #include <tools/rc.hxx> 33 #include "sddlgfact.hxx" 34 #include "strings.hrc" 35 #include "BreakDlg.hxx" 36 #include "copydlg.hxx" 37 #include "custsdlg.hxx" 38 #include "dlg_char.hxx" 39 #include "dlgpage.hxx" 40 #include "dlgass.hxx" 41 #include "dlgfield.hxx" 42 #include "dlgsnap.hxx" 43 #include "layeroptionsdlg.hxx" 44 #include "ins_paste.hxx" 45 #include "inspagob.hxx" 46 #include "morphdlg.hxx" 47 #include "OutlineBulletDlg.hxx" 48 #include "paragr.hxx" 49 #include "present.hxx" 50 #include "prltempl.hxx" 51 #include "sdpreslt.hxx" 52 #include "tabtempl.hxx" 53 #include "tpaction.hxx" 54 #include "vectdlg.hxx" 55 #include "tpoption.hxx" 56 #include "prntopts.hxx" 57 #include "pubdlg.hxx" 58 #include "masterlayoutdlg.hxx" 59 #include "headerfooterdlg.hxx" 60 61 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl); 62 IMPL_ABSTDLG_BASE(AbstractCopyDlg_Impl); 63 IMPL_ABSTDLG_BASE(AbstractSdCustomShowDlg_Impl); 64 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); 65 IMPL_ABSTDLG_BASE(SdPresLayoutTemplateDlg_Impl); 66 IMPL_ABSTDLG_BASE(AbstractAssistentDlg_Impl); 67 IMPL_ABSTDLG_BASE(AbstractSdModifyFieldDlg_Impl); 68 IMPL_ABSTDLG_BASE(AbstractSdSnapLineDlg_Impl); 69 IMPL_ABSTDLG_BASE(AbstractSdInsertLayerDlg_Impl); 70 IMPL_ABSTDLG_BASE(AbstractSdInsertPasteDlg_Impl); 71 IMPL_ABSTDLG_BASE(AbstractSdInsertPagesObjsDlg_Impl); 72 IMPL_ABSTDLG_BASE(AbstractMorphDlg_Impl); 73 IMPL_ABSTDLG_BASE(AbstractSdStartPresDlg_Impl); 74 IMPL_ABSTDLG_BASE(AbstractSdPresLayoutDlg_Impl); 75 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl); 76 IMPL_ABSTDLG_BASE(AbstractSdVectorizeDlg_Impl); 77 IMPL_ABSTDLG_BASE(AbstractSdPublishingDlg_Impl); 78 IMPL_ABSTDLG_BASE(AbstractHeaderFooterDialog_Impl); 79 IMPL_ABSTDLG_BASE(AbstractBulletDialog_Impl); 80 81 //AbstractCopyDlg_Impl begin 82 void AbstractCopyDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) 83 { 84 pDlg->GetAttr( rOutAttrs ); 85 } 86 // AbstractCopyDlg_Impl end 87 88 //AbstractSdCustomShowDlg_Impl begin 89 sal_Bool AbstractSdCustomShowDlg_Impl::IsModified() const 90 { 91 return pDlg->IsModified(); 92 } 93 sal_Bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const 94 { 95 return pDlg->IsCustomShow(); 96 } 97 // AbstractSdCustomShowDlg_Impl end 98 99 // AbstractTabDialog_Impl begin 100 void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 101 { 102 pDlg->SetCurPageId( nId ); 103 } 104 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const 105 { 106 return pDlg->GetOutputItemSet(); 107 } 108 const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 109 { 110 return pDlg->GetInputRanges( pItem ); 111 } 112 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 113 { 114 pDlg->SetInputSet( pInSet ); 115 } 116 //From class Window. 117 void AbstractTabDialog_Impl::SetText( const XubString& rStr ) 118 { 119 pDlg->SetText( rStr ); 120 } 121 String AbstractTabDialog_Impl::GetText() const 122 { 123 return pDlg->GetText(); 124 } 125 //add for AbstractTabDialog_Impl end 126 127 // -------------------------------------------------------------------- 128 129 // AbstractBulletDialog_Impl begin 130 void AbstractBulletDialog_Impl::SetCurPageId( sal_uInt16 nId ) 131 { 132 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetCurPageId( nId ); 133 } 134 const SfxItemSet* AbstractBulletDialog_Impl::GetOutputItemSet() const 135 { 136 return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetOutputItemSet(); 137 } 138 const sal_uInt16* AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 139 { 140 return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetInputRanges( pItem ); 141 } 142 void AbstractBulletDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 143 { 144 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetInputSet( pInSet ); 145 } 146 //From class Window. 147 void AbstractBulletDialog_Impl::SetText( const XubString& rStr ) 148 { 149 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetText( rStr ); 150 } 151 String AbstractBulletDialog_Impl::GetText() const 152 { 153 return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetText(); 154 } 155 //add for AbstractBulletDialog_Impl end 156 157 // -------------------------------------------------------------------- 158 159 void SdPresLayoutTemplateDlg_Impl::SetCurPageId( sal_uInt16 nId ) 160 { 161 pDlg->SetCurPageId( nId ); 162 } 163 164 const SfxItemSet* SdPresLayoutTemplateDlg_Impl::GetOutputItemSet() const 165 { 166 return pDlg->GetOutputItemSet(); 167 } 168 169 const sal_uInt16* SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool& pItem ) 170 { 171 return pDlg->GetInputRanges( pItem ); 172 } 173 174 void SdPresLayoutTemplateDlg_Impl::SetInputSet( const SfxItemSet* pInSet ) 175 { 176 pDlg->SetInputSet( pInSet ); 177 } 178 179 void SdPresLayoutTemplateDlg_Impl::SetText( const XubString& rStr ) 180 { 181 pDlg->SetText( rStr ); 182 } 183 184 String SdPresLayoutTemplateDlg_Impl::GetText() const 185 { 186 return pDlg->GetText(); 187 } 188 189 // -------------------------------------------------------------------- 190 191 //AbstractAssistentDlg_Impl begin 192 SfxObjectShellLock AbstractAssistentDlg_Impl::GetDocument() 193 { 194 return pDlg->GetDocument(); 195 } 196 OutputType AbstractAssistentDlg_Impl::GetOutputMedium() const 197 { 198 return pDlg->GetOutputMedium(); 199 } 200 sal_Bool AbstractAssistentDlg_Impl::IsSummary() const 201 { 202 return pDlg->IsSummary(); 203 } 204 StartType AbstractAssistentDlg_Impl::GetStartType() const 205 { 206 return pDlg->GetStartType(); 207 } 208 String AbstractAssistentDlg_Impl::GetDocPath() const 209 { 210 return pDlg->GetDocPath(); 211 } 212 sal_Bool AbstractAssistentDlg_Impl::GetStartWithFlag() const 213 { 214 return pDlg->GetStartWithFlag(); 215 } 216 sal_Bool AbstractAssistentDlg_Impl::IsDocEmpty() const 217 { 218 return pDlg->IsDocEmpty(); 219 } 220 String AbstractAssistentDlg_Impl::GetPassword() 221 { 222 return pDlg->GetPassword(); 223 } 224 // AbstractAssistentDlg_Impl end 225 226 //AbstractSdModifyFieldDlg_Impl begin 227 SvxFieldData* AbstractSdModifyFieldDlg_Impl::GetField() 228 { 229 return pDlg->GetField(); 230 } 231 SfxItemSet AbstractSdModifyFieldDlg_Impl::GetItemSet() 232 { 233 return pDlg->GetItemSet(); 234 } 235 // AbstractSdModifyFieldDlg_Impl end 236 237 //AbstractSdSnapLineDlg_Impl begin 238 void AbstractSdSnapLineDlg_Impl::GetAttr(SfxItemSet& rOutAttrs) 239 { 240 pDlg->GetAttr(rOutAttrs); 241 } 242 void AbstractSdSnapLineDlg_Impl::HideRadioGroup() 243 { 244 pDlg->HideRadioGroup(); 245 } 246 void AbstractSdSnapLineDlg_Impl::HideDeleteBtn() 247 { 248 pDlg->HideDeleteBtn(); 249 } 250 void AbstractSdSnapLineDlg_Impl::SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) 251 { 252 pDlg->SetInputFields(bEnableX, bEnableY); 253 } 254 void AbstractSdSnapLineDlg_Impl::SetText( const XubString& rStr ) 255 { 256 pDlg->SetText( rStr ); 257 } 258 // AbstractSdSnapLineDlg_Impl end 259 260 //AbstractSdInsertLayerDlg_Impl begin 261 void AbstractSdInsertLayerDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) 262 { 263 pDlg->GetAttr( rOutAttrs ); 264 } 265 void AbstractSdInsertLayerDlg_Impl::SetHelpId( const rtl::OString& rHelpId ) 266 { 267 pDlg->SetHelpId( rHelpId ); 268 } 269 // AbstractSdInsertLayerDlg_Impl end 270 271 //AbstractSdInsertPasteDlg_Impl begin 272 sal_Bool AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const 273 { 274 return pDlg->IsInsertBefore(); 275 } 276 // AbstractSdInsertPasteDlg_Impl end 277 278 //AbstractSdInsertPagesObjsDlg_Impl begin 279 ::Window* AbstractSdInsertPagesObjsDlg_Impl::GetWindow() 280 { 281 return (::Window*)pDlg; 282 } 283 List* AbstractSdInsertPagesObjsDlg_Impl::GetList( sal_uInt16 nType ) 284 { 285 return pDlg->GetList( nType ); 286 } 287 sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsLink() 288 { 289 return pDlg->IsLink(); 290 } 291 sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const 292 { 293 return pDlg->IsRemoveUnnessesaryMasterPages(); 294 } 295 // AbstractSdInsertPagesObjsDlg_Impl end 296 297 //AbstractMorphDlg_Impl begin 298 void AbstractMorphDlg_Impl::SaveSettings() const 299 { 300 pDlg->SaveSettings(); 301 } 302 sal_uInt16 AbstractMorphDlg_Impl::GetFadeSteps() const 303 { 304 return pDlg->GetFadeSteps(); 305 } 306 sal_Bool AbstractMorphDlg_Impl::IsAttributeFade() const 307 { 308 return pDlg->IsAttributeFade(); 309 } 310 sal_Bool AbstractMorphDlg_Impl::IsOrientationFade() const 311 { 312 return pDlg->IsOrientationFade(); 313 } 314 // AbstractMorphDlg_Impl end 315 316 //AbstractSdStartPresDlg_Impl begin 317 void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) 318 { 319 pDlg->GetAttr( rOutAttrs ); 320 } 321 // AbstractSdStartPresDlg_Impl end 322 323 //AbstractSdPresLayoutDlg_Impl begin 324 void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) 325 { 326 pDlg->GetAttr( rOutAttrs ); 327 } 328 // AbstractSdPresLayoutDlg_Impl end 329 330 //SfxAbstractDialog_Impl begin 331 const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const 332 { 333 return pDlg->GetOutputItemSet(); 334 } 335 void AbstractSfxDialog_Impl::SetText( const XubString& rStr ) 336 { 337 pDlg->SetText( rStr ); 338 } 339 String AbstractSfxDialog_Impl::GetText() const 340 { 341 return pDlg->GetText(); 342 } 343 344 //AbstractSfxSingleTabDialog_Impl end 345 346 //AbstractSdVectorizeDlg_Impl begin 347 const GDIMetaFile& AbstractSdVectorizeDlg_Impl::GetGDIMetaFile() const 348 { 349 return pDlg->GetGDIMetaFile(); 350 } 351 //AbstractSdVectorizeDlg_Impl end 352 353 //AbstractSdPublishingDlg_Impl begin 354 void AbstractSdPublishingDlg_Impl::GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) 355 { 356 pDlg->GetParameterSequence( rParams ); 357 } 358 //AbstractSdPublishingDlg_Impl end 359 360 //AbstractHeaderFooterDialog_Impl 361 void AbstractHeaderFooterDialog_Impl::ApplyToAll( TabPage* pPage ) 362 { 363 pDlg->ApplyToAll( pPage ); 364 } 365 366 void AbstractHeaderFooterDialog_Impl::Apply( TabPage* pPage ) 367 { 368 pDlg->Apply( pPage ); 369 } 370 371 void AbstractHeaderFooterDialog_Impl::Cancel( TabPage* pPage ) 372 { 373 pDlg->Cancel( pPage ); 374 } 375 //AbstractHeaderFooterDialog_Impl 376 377 //-------------- SdAbstractDialogFactory implementation-------------- 378 379 //add for BreakDlg begin 380 VclAbstractDialog * SdAbstractDialogFactory_Impl::CreateBreakDlg( 381 ::Window* pWindow, 382 ::sd::DrawView* pDrView, 383 ::sd::DrawDocShell* pShell, 384 sal_uLong nSumActionCount, 385 sal_uLong nObjCount ) //add for BreakDlg 386 { 387 return new VclAbstractDialog_Impl( new ::sd::BreakDlg( pWindow, pDrView, pShell, nSumActionCount, nObjCount ) ); 388 } 389 //add for BreakDlg end 390 391 //add for CopyDlg begin 392 AbstractCopyDlg * SdAbstractDialogFactory_Impl::CreateCopyDlg( 393 ::Window* pWindow, const SfxItemSet& rInAttrs, 394 XColorList* pColTab, ::sd::View* pView ) //add for CopyDlg 395 { 396 return new AbstractCopyDlg_Impl( new ::sd::CopyDlg( pWindow, rInAttrs, pColTab, pView ) ); 397 } 398 //add for CopyDlg end 399 400 //add for SdCustomShowDlg begin 401 AbstractSdCustomShowDlg * SdAbstractDialogFactory_Impl::CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) //add for SdCustomShowDlg 402 { 403 return new AbstractSdCustomShowDlg_Impl( new SdCustomShowDlg( pWindow, rDrawDoc ) ); 404 } 405 //add for SdCustomShowDlg end 406 407 // add for SdCharDlg begin 408 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) 409 { 410 return new AbstractTabDialog_Impl( new SdCharDlg( pParent, pAttr, pDocShell ) ); 411 } 412 413 414 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage ) 415 { 416 return new AbstractTabDialog_Impl( new SdPageDlg( pDocShell, pParent, pAttr, bAreaPage ) ); 417 } 418 // add for SdCharDlg end 419 420 //add for AssistentDlg begin 421 AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) 422 { 423 return new AbstractAssistentDlg_Impl( new AssistentDlg( pParent, bAutoPilot ) ); 424 } 425 //add for AssistentDlg end 426 427 //add for SdModifyFieldDlg begin 428 AbstractSdModifyFieldDlg * SdAbstractDialogFactory_Impl::CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) 429 { 430 return new AbstractSdModifyFieldDlg_Impl( new SdModifyFieldDlg( pWindow, pInField, rSet ) ); 431 } 432 //add for SdModifyFieldDlg end 433 434 //add for SdSnapLineDlg begin 435 AbstractSdSnapLineDlg * SdAbstractDialogFactory_Impl::CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) 436 { 437 return new AbstractSdSnapLineDlg_Impl( new SdSnapLineDlg( pWindow, rInAttrs, pView ) ); 438 } 439 //add for SdSnapLineDlg end 440 441 //add for SdInsertLayerDlg begin 442 AbstractSdInsertLayerDlg * SdAbstractDialogFactory_Impl::CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, String aStr ) //add for SdInsertLayerDlg 443 { 444 return new AbstractSdInsertLayerDlg_Impl( new SdInsertLayerDlg( pWindow, rInAttrs, bDeletable, aStr ) ); 445 } 446 //add for SdInsertLayerDlg end 447 448 //add for SdInsertPasteDlg begin 449 AbstractSdInsertPasteDlg * SdAbstractDialogFactory_Impl::CreateSdInsertPasteDlg( ::Window* pWindow ) 450 { 451 return new AbstractSdInsertPasteDlg_Impl( new SdInsertPasteDlg( pWindow ) ); 452 } 453 //add for SdInsertPasteDlg end 454 455 //add for SdInsertPagesObjsDlg begin 456 AbstractSdInsertPagesObjsDlg * SdAbstractDialogFactory_Impl::CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName ) 457 { 458 return new AbstractSdInsertPagesObjsDlg_Impl( new SdInsertPagesObjsDlg( pParent, pDoc, pSfxMedium, rFileName ) ); 459 } 460 //add for SdInsertPagesObjsDlg end 461 462 //add for MorphDlg begin 463 AbstractMorphDlg * SdAbstractDialogFactory_Impl::CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) 464 { 465 return new AbstractMorphDlg_Impl( new ::sd::MorphDlg( pParent, pObj1, pObj2 ) ); 466 } 467 //add for MorphDlg end 468 469 // add for OutlineBulletDlg begin 470 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdOutlineBulletTabDlg( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) 471 { 472 return new AbstractBulletDialog_Impl( new ::sd::OutlineBulletDlg( pParent, pAttr, pView ) ); 473 } 474 475 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdParagraphTabDlg( ::Window* pParent, const SfxItemSet* pAttr ) 476 { 477 return new AbstractTabDialog_Impl( new SdParagraphDlg( pParent, pAttr ) ); 478 } 479 // add for OutlineBulletDlg end 480 481 // add for SdStartPresentationDlg begin 482 AbstractSdStartPresDlg * SdAbstractDialogFactory_Impl::CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, List& rPageNames, List* pCSList ) 483 { 484 return new AbstractSdStartPresDlg_Impl( new SdStartPresentationDlg( pWindow, rInAttrs, rPageNames, pCSList ) ); 485 } 486 // add for SdStartPresentationDlg end 487 488 // add for SdPresLayoutTemplateDlg begin 489 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) 490 { 491 return new SdPresLayoutTemplateDlg_Impl( new SdPresLayoutTemplateDlg( pDocSh, pParent, DlgId, rStyleBase, ePO, pSSPool ) ); 492 } 493 494 // add for SdPresLayoutDlg begin 495 AbstractSdPresLayoutDlg * SdAbstractDialogFactory_Impl::CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs) 496 { 497 return new AbstractSdPresLayoutDlg_Impl( new SdPresLayoutDlg( pDocShell, pViewShell, pWindow, rInAttrs ) ); 498 } 499 // add for SdPresLayoutDlg end 500 501 // add for SdTabTemplateDlg begin 502 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) 503 { 504 return new AbstractTabDialog_Impl( new SdTabTemplateDlg( pParent, pDocShell, rStyleBase, pModel, pView ) ); 505 } 506 // add for SdTabTemplateDlg end 507 508 SfxAbstractDialog* SdAbstractDialogFactory_Impl::CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) 509 { 510 return new AbstractSfxDialog_Impl( new SdActionDlg( pParent, pAttr, pView ) ); 511 } 512 513 // add for SdVectorizeDlg begin 514 AbstractSdVectorizeDlg * SdAbstractDialogFactory_Impl::CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) 515 { 516 return new AbstractSdVectorizeDlg_Impl( new SdVectorizeDlg( pParent, rBmp, pDocShell ) ); 517 } 518 // add for SdVectorizeDlg end 519 520 // add for SdPublishingDlg begin 521 AbstractSdPublishingDlg * SdAbstractDialogFactory_Impl::CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType) 522 { 523 return new AbstractSdPublishingDlg_Impl( new SdPublishingDlg( pWindow, eDocType ) ); 524 } 525 // add for SdPublishingDlg end 526 527 // Factories for TabPages 528 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsContentsTabPageCreatorFunc() 529 { 530 return SdTpOptionsContents::Create; 531 } 532 533 CreateTabPage SdAbstractDialogFactory_Impl::GetSdPrintOptionsTabPageCreatorFunc() 534 { 535 return SdPrintOptions::Create; 536 } 537 538 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsMiscTabPageCreatorFunc() 539 { 540 return SdTpOptionsMisc::Create; 541 } 542 543 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsSnapTabPageCreatorFunc() 544 { 545 return SdTpOptionsSnap::Create; 546 } 547 548 VclAbstractDialog* SdAbstractDialogFactory_Impl::CreateMasterLayoutDialog( ::Window* pParent, 549 SdDrawDocument* pDoc, SdPage* pCurrentPage ) 550 { 551 return new VclAbstractDialog_Impl( new ::sd::MasterLayoutDialog( pParent, pDoc, pCurrentPage )); 552 } 553 554 AbstractHeaderFooterDialog* SdAbstractDialogFactory_Impl::CreateHeaderFooterDialog( ViewShell* pViewShell, 555 ::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage ) 556 { 557 return new AbstractHeaderFooterDialog_Impl( new ::sd::HeaderFooterDialog( (::sd::ViewShell*)pViewShell, pParent, pDoc, pCurrentPage )); 558 } 559 560 561