/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include "dlgfact.hxx" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace ::com::sun::star; using namespace ::com::sun::star::frame; using namespace ::com::sun::star::container; using ::com::sun::star::uno::Reference; using namespace svx; // AbstractTabDialog implementations just forwards everything to the dialog IMPL_ABSTDLG_BASE(CuiAbstractSfxDialog_Impl) IMPL_ABSTDLG_BASE(CuiVclAbstractDialog_Impl) IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl); IMPL_ABSTDLG_BASE(CuiAbstractTabDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl); IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl); IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl); IMPL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl) IMPL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl) IMPL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl) IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl); IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl); IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl); IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl); IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl); IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl); short AbstractSvxNameDialog_Impl::Execute() { return m_xDlg->run(); } // #i68101# short AbstractSvxObjectNameDialog_Impl::Execute() { return m_xDlg->run(); } short AbstractSvxObjectTitleDescDialog_Impl::Execute() { return m_xDlg->run(); } IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxPathSelectDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl); IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl); IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl); IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl); IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl); IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl); IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl); IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl); IMPL_ABSTDLG_BASE(AbstractScreenshotAnnotationDlg_Impl); // VclAbstractDialog2_Impl // virtual VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl() { disposeOnce(); } void VclAbstractDialog2_Impl::dispose() { m_pDlg.disposeAndClear(); VclAbstractDialog2::dispose(); } // virtual void VclAbstractDialog2_Impl::StartExecuteModal( const Link& rEndDialogHdl ) { m_aEndDlgHdl = rEndDialogHdl; m_pDlg->StartExecuteModal( LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) ); } // virtual sal_Int32 VclAbstractDialog2_Impl::GetResult() { return m_pDlg->GetResult(); } IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog&, rDlg, void ) { if ( &rDlg != m_pDlg ) { SAL_WARN( "cui.factory", "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" ); } m_aEndDlgHdl.Call( *m_pDlg ); m_aEndDlgHdl = Link(); } void CuiAbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) { pDlg->SetCurPageId( nId ); } void CuiAbstractTabDialog_Impl::SetCurPageId( const OString& rName ) { pDlg->SetCurPageId( rName ); } const SfxItemSet* CuiAbstractTabDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } const sal_uInt16* CuiAbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) { return pDlg->GetInputRanges( pItem ); } void CuiAbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) { pDlg->SetInputSet( pInSet ); } //From class Window. void CuiAbstractTabDialog_Impl::SetText( const OUString& rStr ) { pDlg->SetText( rStr ); } const SfxItemSet* CuiAbstractSfxDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } void CuiAbstractSfxDialog_Impl::SetText( const OUString& rStr ) { pDlg->SetText( rStr ); } SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const { return pDlg->GetDistributeHor(); } SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const { return pDlg->GetDistributeVer(); } void AbstractHangulHanjaConversionDialog_Impl::EndDialog(sal_Int32 nResult) { pDlg->EndDialog(nResult); } void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( bool _bVal ) { pDlg->EnableRubySupport(_bVal); } void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( bool _bByCharacter ) { pDlg->SetByCharacter(_bByCharacter); } void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) { pDlg->SetConversionDirectionState(_bTryBothDirections, _ePrimaryConversionDirection); } void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) { pDlg->SetConversionFormat(_eType); } void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link& _rHdl ) { pDlg->SetOptionsChangedHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link& _rHdl ) { pDlg->SetIgnoreHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link& _rHdl ) { pDlg->SetIgnoreAllHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link& _rHdl ) { pDlg->SetChangeHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link& _rHdl ) { pDlg->SetChangeAllHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link& _rHdl ) { pDlg->SetClickByCharacterHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link& _rHdl ) { pDlg->SetConversionFormatChangedHdl(_rHdl ); } void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link& _rHdl ) { pDlg->SetFindHdl(_rHdl ); } bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const { return pDlg->GetUseBothDirections(); } editeng::HangulHanjaConversion::ConversionDirection AbstractHangulHanjaConversionDialog_Impl::GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const { return pDlg->GetDirection( _eDefaultDirection ); } void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString( const OUString& _rNewString, const css::uno::Sequence< OUString >& _rSuggestions, bool _bOriginatesFromDocument ) { pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument); } OUString AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const { return pDlg->GetCurrentString(); } editeng::HangulHanjaConversion::ConversionFormat AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const { return pDlg->GetConversionFormat(); } void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( ) { pDlg->FocusSuggestion(); } OUString AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const { return pDlg->GetCurrentSuggestion(); } OUString AbstractThesaurusDialog_Impl::GetWord() { return pDlg->GetWord(); }; vcl::Window* AbstractHyphenWordDialog_Impl::GetWindow() { return pDlg; } Reference < css::embed::XEmbeddedObject > AbstractInsertObjectDialog_Impl::GetObject() { return pDlg->GetObject(); } bool AbstractInsertObjectDialog_Impl::IsCreateNew() { return pDlg->IsCreateNew(); } ::Reference< css::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( OUString* pGraphicMediaType ) { return pDlg->GetIconIfIconified( pGraphicMediaType ); } void AbstractPasteDialog_Impl::Insert( SotClipboardFormatId nFormat, const OUString & rFormatName ) { pDlg->Insert( nFormat, rFormatName ); } void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) { pDlg->SetObjName( rClass, rObjName ); } SotClipboardFormatId AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper ) { return pDlg->GetFormat( aHelper ); } void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< css::container::XIndexContainer>& xCols) { pDlg->SetColumns(xCols); } void AbstractSvxZoomDialog_Impl::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ) { pDlg->SetLimits( nMin, nMax ); } void AbstractSvxZoomDialog_Impl::HideButton( ZoomButtonId nBtnId ) { pDlg->HideButton( nBtnId ); } const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } void AbstractSpellDialog_Impl::Invalidate() { pDlg->InvalidateDialog(); } vcl::Window* AbstractSpellDialog_Impl::GetWindow() { return pDlg; } SfxBindings& AbstractSpellDialog_Impl::GetBindings() { return pDlg->GetBindings(); } OUString AbstractTitleDialog_Impl::GetTitle() const { return pDlg->GetTitle(); } sal_uInt32 AbstractGalleryIdDialog_Impl::GetId() const { return pDlg->GetId(); } void VclAbstractRefreshableDialog_Impl::Update() { pDlg->Update(); } OUString AbstractURLDlg_Impl::GetURL() const { return pDlg->GetURL(); } OUString AbstractURLDlg_Impl::GetAltText() const { return pDlg->GetAltText(); } OUString AbstractURLDlg_Impl::GetDesc() const { return pDlg->GetDesc(); } OUString AbstractURLDlg_Impl::GetTarget() const { return pDlg->GetTarget(); } OUString AbstractURLDlg_Impl::GetName() const { return pDlg->GetName(); } sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetOther() { return pDlg->GetOther(); } sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetShorter() { return pDlg->GetShorter(); } sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetLonger() { return pDlg->GetLonger(); } bool AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed() { return pDlg->IsRelaxed(); } // AbstractSvxTransformTabDialog implementations just forwards everything to the dialog void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) { pDlg->SetCurPageId( nId ); } void AbstractSvxTransformTabDialog_Impl::SetCurPageId( const OString& rName ) { pDlg->SetCurPageId( rName ); } const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } const sal_uInt16* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) { return pDlg->GetInputRanges( pItem ); } void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) { pDlg->SetInputSet( pInSet ); } //From class Window. void AbstractSvxTransformTabDialog_Impl::SetText( const OUString& rStr ) { pDlg->SetText( rStr ); } void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link& rLink ) { pDlg->SetValidateFramePosLink( rLink ); } // AbstractSvxCaptionDialog implementations just forwards everything to the dialog void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId ) { pDlg->SetCurPageId( nId ); } void AbstractSvxCaptionDialog_Impl::SetCurPageId( const OString& rName ) { pDlg->SetCurPageId( rName ); } const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } const sal_uInt16* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) { return pDlg->GetInputRanges( pItem ); } void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) { pDlg->SetInputSet( pInSet ); } //From class Window. void AbstractSvxCaptionDialog_Impl::SetText( const OUString& rStr ) { pDlg->SetText( rStr ); } void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link& rLink ) { pDlg->SetValidateFramePosLink( rLink ); } TransliterationFlags AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const { return pDlg->GetTransliterationFlags(); } void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew) { pDlg->SetValue(nNew); } long AbstractFmInputRecordNoDialog_Impl::GetValue() const { return pDlg->GetValue(); } ::Reference< css::linguistic2::XDictionary > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary() { return pDlg->GetNewDictionary(); } void AbstractSvxNameDialog_Impl::GetName(OUString& rName) { rName = m_xDlg->GetName(); } void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately ) { aCheckNameHdl = rLink; if( rLink.IsSet() ) m_xDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately ); else m_xDlg->SetCheckNameHdl( Link(), bCheckImmediately ); } void AbstractSvxNameDialog_Impl::SetEditHelpId(const OString& rHelpId) { m_xDlg->SetEditHelpId(rHelpId); } void AbstractSvxNameDialog_Impl::SetHelpId(const OString& rHelpId) { m_xDlg->set_help_id(rHelpId); } void AbstractSvxNameDialog_Impl::SetText( const OUString& rStr ) { m_xDlg->set_title(rStr); } IMPL_LINK_NOARG(AbstractSvxNameDialog_Impl, CheckNameHdl, SvxNameDialog&, bool) { return aCheckNameHdl.Call(*this); } void AbstractSvxObjectNameDialog_Impl::GetName(OUString& rName) { rName = m_xDlg->GetName(); } void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink) { aCheckNameHdl = rLink; if(rLink.IsSet()) { m_xDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl)); } else { m_xDlg->SetCheckNameHdl(Link()); } } IMPL_LINK_NOARG(AbstractSvxObjectNameDialog_Impl, CheckNameHdl, SvxObjectNameDialog&, bool) { return aCheckNameHdl.Call(*this); } void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(OUString& rTitle) { rTitle = m_xDlg->GetTitle(); } void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(OUString& rDescription) { rDescription = m_xDlg->GetDescription(); } OUString AbstractSvxMultiPathDialog_Impl::GetPath() const { return pDlg->GetPath(); } void AbstractSvxMultiPathDialog_Impl::SetPath( const OUString& rPath ) { pDlg->SetPath( rPath ); } void AbstractSvxMultiPathDialog_Impl::SetTitle( const OUString& rNewTitle ) { pDlg->SetText( rNewTitle ); } OUString AbstractSvxPathSelectDialog_Impl::GetPath() const { return pDlg->GetPath(); } void AbstractSvxPathSelectDialog_Impl::SetPath( const OUString& rPath ) { pDlg->SetPath( rPath ); } void AbstractSvxPathSelectDialog_Impl::SetTitle( const OUString& rNewTitle ) { pDlg->SetText( rNewTitle ); } vcl::Window * AbstractSvxHpLinkDlg_Impl::GetWindow() { return static_cast(pDlg); } bool AbstractSvxHpLinkDlg_Impl::QueryClose() { return pDlg->QueryClose(); } void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk) { pDlg->SetFoundHandler(lnk); } void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk) { pDlg->SetCanceledNotFoundHdl(lnk); } void AbstractFmSearchDialog_Impl::SetActiveField(const OUString& strField) { pDlg->SetActiveField(strField); } Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ) { return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY ); } // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) { pDlg->SetCurPageId( nId ); } void AbstractSvxAreaTabDialog_Impl::SetCurPageId( const OString& rName ) { pDlg->SetCurPageId( rName ); } const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } const sal_uInt16* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) { return pDlg->GetInputRanges( pItem ); } void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) { pDlg->SetInputSet( pInSet ); } //From class Window. void AbstractSvxAreaTabDialog_Impl::SetText( const OUString& rStr ) { pDlg->SetText( rStr ); } void AbstractSvxPostItDialog_Impl::SetText( const OUString& rStr ) { pDlg->SetText( rStr ); } const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const { return pDlg->GetOutputItemSet(); } void AbstractSvxPostItDialog_Impl::EnableTravel(bool bNext, bool bPrev) { pDlg->EnableTravel( bNext, bPrev ); } OUString AbstractSvxPostItDialog_Impl::GetNote() { return pDlg->GetNote(); } void AbstractSvxPostItDialog_Impl::SetNote(const OUString& rTxt) { pDlg->SetNote( rTxt ); } void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const OUString& rAuthor, const OUString& rDate) { pDlg->ShowLastAuthor( rAuthor, rDate ); } void AbstractSvxPostItDialog_Impl::DontChangeAuthor() { pDlg->DontChangeAuthor(); } void AbstractSvxPostItDialog_Impl::HideAuthor() { pDlg->HideAuthor(); } void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link& rLink ) { aNextHdl = rLink; if( rLink.IsSet() ) pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) ); else pDlg->SetNextHdl( Link() ); } void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink ) { aPrevHdl = rLink; if( rLink.IsSet() ) pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) ); else pDlg->SetPrevHdl( Link() ); } IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, NextHdl, SvxPostItDialog&, void) { aNextHdl.Call(*this); } IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, PrevHdl, SvxPostItDialog&, void) { aPrevHdl.Call(*this); } vcl::Window * AbstractSvxPostItDialog_Impl::GetWindow() { return static_cast(pDlg); } OUString AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const { return pDlg->GetPasswordToOpen(); } OUString AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const { return pDlg->GetPasswordToModify(); } bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const { return pDlg->IsRecommendToOpenReadonly(); } // Create dialogs with simplest interface VclPtr AbstractDialogFactory_Impl::CreateVclDialog( vcl::Window* pParent, sal_uInt32 nResId ) { VclPtr pDlg; switch ( nResId ) { case SID_ABOUT: { pDlg = VclPtr::Create(pParent); break; } case SID_OPTIONS_TREEDIALOG : case SID_OPTIONS_DATABASES : case SID_LANGUAGE_OPTIONS : { bool bActivateLastSelection = false; if (nResId == SID_OPTIONS_TREEDIALOG) bActivateLastSelection = true; Reference< frame::XFrame > xFrame; VclPtrInstance pOptDlg( pParent, xFrame, bActivateLastSelection ); if (nResId == SID_OPTIONS_DATABASES) { pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS); } else if (nResId == SID_LANGUAGE_OPTIONS) { //open the tab page "tools/options/languages" pOptDlg->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE); } pDlg.reset(pOptDlg); } break; default: break; } if ( pDlg ) return VclPtr::Create( pDlg ); return nullptr; } VclPtr AbstractDialogFactory_Impl::CreateFrameDialog( const Reference< frame::XFrame >& rxFrame, sal_uInt32 nResId, const OUString& rParameter ) { VclPtr pDlg; if ( SID_OPTIONS_TREEDIALOG == nResId || SID_OPTIONS_DATABASES == nResId ) { // only activate last page if we don't want to activate a special page bool bActivateLastSelection = ( nResId != SID_OPTIONS_DATABASES && rParameter.isEmpty() ); VclPtrInstance pOptDlg( nullptr, rxFrame, bActivateLastSelection ); if ( nResId == SID_OPTIONS_DATABASES ) pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS); else if ( !rParameter.isEmpty() ) pOptDlg->ActivatePage( rParameter ); pDlg.reset(pOptDlg); } if ( pDlg ) return VclPtr::Create( pDlg ); else return nullptr; } // TabDialog outside the drawing layer VclPtr AbstractDialogFactory_Impl::CreateAutoCorrTabDialog(vcl::Window* pParent, const SfxItemSet* pAttrSet) { VclPtrInstance pDlg(pParent, pAttrSet); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateCustomizeTabDialog( const SfxItemSet* pAttrSet, const Reference< frame::XFrame >& xViewFrame ) { VclPtr pDlg; VclPtrInstance pDlg1( nullptr, pAttrSet ); pDlg1->SetFrame(xViewFrame); pDlg.reset(pDlg1); return VclPtr::Create( pDlg ); } // TabDialog that use functionality of the drawing layer VclPtr AbstractDialogFactory_Impl::CreateTextTabDialog( vcl::Window* pParent, const SfxItemSet* pAttrSet, SdrView* pView ) { VclPtrInstance pDlg( pParent, pAttrSet, pView ); return VclPtr::Create( pDlg ); } // TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog VclPtr AbstractDialogFactory_Impl::CreateCaptionDialog( vcl::Window* pParent, const SdrView* pView, SvxAnchorIds nAnchorTypes ) { VclPtrInstance pDlg( pParent, pView, nAnchorTypes ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxDistributeDialog(const SfxItemSet& rAttr) { VclPtrInstance pDlg( nullptr, rAttr, SvxDistributeHorizontal::NONE, SvxDistributeVertical::NONE); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(vcl::Window* pParent, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) { VclPtrInstance pDlg( pParent, _ePrimaryDirection); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateThesaurusDialog( vcl::Window* pParent, css::uno::Reference< css::linguistic2::XThesaurus > xThesaurus, const OUString &rWord, LanguageType nLanguage ) { VclPtrInstance pDlg( pParent, xThesaurus, rWord, nLanguage ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateHyphenWordDialog( vcl::Window* pParent, const OUString &rWord, LanguageType nLang, css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper* pWrapper ) { VclPtrInstance pDlg( rWord, nLang, pParent, xHyphen, pWrapper ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateFmShowColsDialog() { VclPtrInstance pDlg( nullptr ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxZoomDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet) { VclPtrInstance pDlg( pParent, rCoreSet); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxSpellDialog( vcl::Window* pParent, SfxBindings* pBindings, svx::SpellDialogChildWindow* pSpellChildWindow ) { VclPtrInstance pDlg(pSpellChildWindow, pParent, pBindings); return VclPtr::Create(pDlg); } VclPtr AbstractDialogFactory_Impl::CreateActualizeProgressDialog( vcl::Window* pParent, GalleryTheme* pThm ) { VclPtrInstance pDlg(pParent, pThm); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateScriptErrorDialog(const css::uno::Any& rException) { return VclPtr::Create(rException); } VclPtr AbstractDialogFactory_Impl::CreateScriptSelectorDialog( vcl::Window* pParent, const Reference< frame::XFrame >& _rxFrame ) { VclPtrInstance pDlg(pParent, false/*bShowSlots*/, _rxFrame); return VclPtr::Create(pDlg); } OUString AbstractScriptSelectorDialog_Impl::GetScriptURL() const { if (pDlg) return pDlg->GetScriptURL(); return OUString(); } void AbstractScriptSelectorDialog_Impl::SetRunLabel() { if (pDlg) pDlg->SetRunLabel(); } VclPtr AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( vcl::Window* pParent, const OUString& rLanguage) { VclPtrInstance pDlg( pParent, rLanguage); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateTitleDialog( vcl::Window* pParent, const OUString& rOldText) { VclPtrInstance pDlg( pParent, rOldText); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGalleryIdDialog( vcl::Window* pParent, GalleryTheme* pThm ) { VclPtrInstance pDlg( pParent, pThm); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog(vcl::Window* pParent, ExchangeData* pData, SfxItemSet* pItemSet) { VclPtrInstance pDlg(pParent, pData, pItemSet); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateURLDialog( vcl::Window* pParent, const OUString& rURL, const OUString& rAltText, const OUString& rDescription, const OUString& rTarget, const OUString& rName, TargetList& rTargetList ) { VclPtrInstance pDlg( pParent, rURL, rAltText, rDescription, rTarget, rName, rTargetList); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateTabItemDialog(vcl::Window* pParent, const SfxItemSet& rSet) { VclPtrInstance pDlg(pParent, rSet); return VclPtr::Create(pDlg); } VclPtr AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( vcl::Window* pParent, SearchAttrItemList& rLst, const sal_uInt16* pWhRanges ) { VclPtrInstance pDlg( pParent, rLst, pWhRanges); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( vcl::Window* pParent, bool bRelax, sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger) { VclPtrInstance pDlg( pParent, bRelax, nOther, nShorter, nLonger ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( vcl::Window* pParent, const SfxItemSet& rCoreSet, bool bEnableDrawingLayerFillStyles) { VclPtrInstance pDlg( pParent, rCoreSet, /*bEnableSelector*/true, bEnableDrawingLayerFillStyles); return VclPtr::Create(pDlg); } VclPtr AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView, SvxAnchorIds nAnchorTypes ) { VclPtrInstance pDlg( pParent, pAttr,pView, nAnchorTypes); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSchTransformTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, const SdrView* pSdrView, bool bSizeTabPage ) { VclPtrInstance pDlg( pParent, pAttr,pSdrView, bSizeTabPage ? SvxAnchorIds::NoProtect : SvxAnchorIds::NoProtect|SvxAnchorIds::NoResize); pDlg->RemoveTabPage( "RID_SVXPAGE_ANGLE" ); pDlg->RemoveTabPage( "RID_SVXPAGE_SLANT" ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( vcl::Window* pParent, const SfxItemSet& rOptionsSet, TransliterationFlags nInitialFlags) { VclPtrInstance pDlg( pParent, rOptionsSet, nInitialFlags ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( ) { VclPtrInstance pDlg( nullptr ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( vcl::Window* pParent ) { VclPtrInstance pDlg( pParent ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( vcl::Window* pParent, const OUString& rName ) { VclPtrInstance pDlg( pParent, rName ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxNameDialog(weld::Window* pParent, const OUString& rName, const OUString& rDesc) { return VclPtr::Create(new SvxNameDialog(pParent, rName, rDesc)); } VclPtr AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(weld::Window* pParent, const OUString& rName) { return VclPtr::Create(new SvxObjectNameDialog(pParent, rName)); } VclPtr AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(weld::Window* pParent, const OUString& rTitle, const OUString& rDescription) { return VclPtr::Create(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription)); } VclPtr AbstractDialogFactory_Impl::CreateSvxMultiPathDialog(vcl::Window* pParent) { VclPtrInstance pDlg(pParent); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxPathSelectDialog(vcl::Window* pParent) { VclPtrInstance pDlg(pParent); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (vcl::Window* pParent, SfxBindings* pBindings) { VclPtrInstance pDlg( pParent, pBindings ); return VclPtr::Create(pDlg); } VclPtr AbstractDialogFactory_Impl::CreateFmSearchDialog(vcl::Window* pParent, const OUString& strInitialText, const std::vector< OUString >& _rContexts, sal_Int16 nInitialContext, const Link& lnkContextSupplier) { VclPtrInstance pDlg( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (vcl::Window* pParent, const Graphic& rGraphic) { VclPtrInstance pDlg( pParent, rGraphic, RectPoint::MM ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGraphicFilterPoster(vcl::Window* pParent, const Graphic& rGraphic) { VclPtrInstance pDlg( pParent, rGraphic, 16 ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGraphicFilterSepia (vcl::Window* pParent, const Graphic& rGraphic) { VclPtrInstance pDlg( pParent, rGraphic, 10 ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGraphicFilterSmooth(vcl::Window* pParent, const Graphic& rGraphic, double nRadius) { VclPtrInstance pDlg( pParent, rGraphic, nRadius ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (vcl::Window* pParent, const Graphic& rGraphic) { VclPtrInstance pDlg( pParent, rGraphic, 128, false/*bInvert*/ ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (vcl::Window* pParent, const Graphic& rGraphic) { VclPtrInstance pDlg(pParent, rGraphic, 4, 4, false/*bEnhanceEdges*/); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, bool bShadow) { VclPtrInstance pDlg( pParent, pAttr, pModel, bShadow ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxLineTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog SdrModel* pModel, const SdrObject* pObj , bool bHasObj) { VclPtrInstance pDlg( pParent, pAttr, pModel,pObj,bHasObj ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateCharMapDialog( vcl::Window* pParent, const SfxItemSet& rAttr, bool bInsert ) { SfxModalDialog* pDlg = VclPtr::Create(pParent, &rAttr, bInsert); return VclPtr::Create(pDlg); } VclPtr AbstractDialogFactory_Impl::CreateEventConfigDialog( vcl::Window* pParent, const SfxItemSet& rAttr, const Reference< XFrame >& _rxDocumentFrame) { SfxModalDialog* pDlg = VclPtr::Create(pParent, _rxDocumentFrame, rAttr); return VclPtr::Create(pDlg); } VclPtr AbstractDialogFactory_Impl::CreateSfxDialog( vcl::Window* pParent, const SfxItemSet& rAttr, const SdrView* pView, sal_uInt32 nResId ) { SfxSingleTabDialog* pDlg=nullptr; switch ( nResId ) { case RID_SVXPAGE_MEASURE : pDlg = VclPtr::Create( pParent, rAttr, pView ); break; case RID_SVXPAGE_CONNECTION : pDlg = VclPtr::Create( pParent, rAttr, pView ); break; case RID_SFXPAGE_DBREGISTER : pDlg = VclPtr::Create( pParent, rAttr ); break; default: break; } if ( pDlg ) return VclPtr::Create( pDlg ); return nullptr; } VclPtr AbstractDialogFactory_Impl::CreateSvxPostItDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet, bool bPrevNext ) { VclPtrInstance pDlg( pParent, rCoreSet, bPrevNext ); return VclPtr::Create( pDlg ); } class SvxMacroAssignDialog : public VclAbstractDialog { public: SvxMacroAssignDialog( vcl::Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode, const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent ) :m_aItems( SfxGetpApp()->GetPool(), svl::Items{} ) { m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) ); m_pDialog.reset( VclPtr::Create( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) ); } virtual short Execute() override; virtual ~SvxMacroAssignDialog() override; virtual void dispose() override; private: SfxItemSet m_aItems; VclPtr m_pDialog; }; short SvxMacroAssignDialog::Execute() { return m_pDialog->Execute(); } SvxMacroAssignDialog::~SvxMacroAssignDialog() { disposeOnce(); } void SvxMacroAssignDialog::dispose() { m_pDialog.clear(); VclAbstractDialog::dispose(); } VclPtr AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg( vcl::Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode, const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent ) { return VclPtr::Create( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent ); } // Factories for TabPages CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId ) { switch ( nId ) { case RID_SVXPAGE_TEXTANIMATION : return SvxTextAnimationPage::Create; case RID_SVXPAGE_TRANSPARENCE : return SvxTransparenceTabPage::Create; case RID_SVXPAGE_AREA : return SvxAreaTabPage::Create; case RID_SVXPAGE_SHADOW : return SvxShadowTabPage::Create; case RID_SVXPAGE_LINE : return SvxLineTabPage::Create; case RID_SVXPAGE_CONNECTION : return SvxConnectionPage::Create; case RID_SVXPAGE_MEASURE : return SvxMeasurePage::Create; case RID_SFXPAGE_GENERAL : return SvxGeneralTabPage::Create; case RID_SVXPAGE_PICK_SINGLE_NUM : return SvxSingleNumPickTabPage::Create; case RID_SVXPAGE_PICK_BMP : return SvxBitmapPickTabPage::Create; case RID_SVXPAGE_PICK_BULLET : return SvxBulletPickTabPage::Create; case RID_SVXPAGE_NUM_OPTIONS : return SvxNumOptionsTabPage::Create; case RID_SVXPAGE_PICK_NUM : return SvxNumPickTabPage::Create; case RID_SVXPAGE_NUM_POSITION : return SvxNumPositionTabPage::Create; case RID_SVXPAGE_PARA_ASIAN : return SvxAsianTabPage::Create; case RID_SVXPAGE_EXT_PARAGRAPH : return SvxExtParagraphTabPage::Create; case RID_SVXPAGE_ALIGN_PARAGRAPH : return SvxParaAlignTabPage::Create; case RID_SVXPAGE_STD_PARAGRAPH : return SvxStdParagraphTabPage::Create; case RID_SVXPAGE_TABULATOR : return SvxTabulatorTabPage::Create; case RID_SVXPAGE_TEXTATTR : return SvxTextAttrPage::Create; case RID_SVXPAGE_ALIGNMENT : return svx::AlignmentTabPage::Create; case RID_SW_TP_BACKGROUND : case RID_SVXPAGE_BACKGROUND : return SvxBackgroundTabPage::Create; case RID_SVXPAGE_BORDER : return SvxBorderTabPage::Create; case RID_SVXPAGE_CHAR_NAME : return SvxCharNamePage::Create; case RID_SVXPAGE_CHAR_EFFECTS : return SvxCharEffectsPage::Create; case RID_SVXPAGE_CHAR_POSITION : return SvxCharPositionPage::Create; case RID_SVXPAGE_CHAR_TWOLINES : return SvxCharTwoLinesPage::Create; case RID_SVXPAGE_NUMBERFORMAT : return SvxNumberFormatTabPage::Create; case RID_SVXPAGE_PAGE : return SvxPageDescPage::Create; case RID_SVXPAGE_GRFCROP : return SvxGrfCropPage::Create; case RID_SVXPAGE_MACROASSIGN : return SfxMacroTabPage::Create; default: break; } return nullptr; } DialogGetRanges AbstractDialogFactory_Impl::GetDialogGetRangesFunc() { return SvxPostItDialog::GetRanges; } GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId ) { switch ( nId ) { case RID_SVXPAGE_TEXTANIMATION : return SvxTextAnimationPage::GetRanges; case RID_SVXPAGE_TRANSPARENCE : return SvxTransparenceTabPage::GetRanges; case RID_SVXPAGE_AREA : return SvxAreaTabPage::GetRanges; case RID_SVXPAGE_SHADOW : return SvxShadowTabPage::GetRanges; case RID_SVXPAGE_LINE : return SvxLineTabPage::GetRanges; case RID_SVXPAGE_CONNECTION : return SvxConnectionPage::GetRanges; case RID_SVXPAGE_MEASURE : return SvxMeasurePage::GetRanges; case RID_SVXPAGE_PARA_ASIAN : return SvxAsianTabPage::GetRanges; case RID_SVXPAGE_EXT_PARAGRAPH : return SvxExtParagraphTabPage::GetRanges; case RID_SVXPAGE_ALIGN_PARAGRAPH : return SvxParaAlignTabPage::GetRanges; case RID_SVXPAGE_STD_PARAGRAPH : return SvxStdParagraphTabPage::GetRanges; case RID_SVXPAGE_TABULATOR : return SvxTabulatorTabPage::GetRanges; case RID_SVXPAGE_TEXTATTR : return SvxTextAttrPage::GetRanges; case RID_SVXPAGE_ALIGNMENT : return svx::AlignmentTabPage::GetRanges; case RID_SW_TP_BACKGROUND : case RID_SVXPAGE_BACKGROUND : return SvxBackgroundTabPage::GetRanges; case RID_SVXPAGE_BORDER : return SvxBorderTabPage::GetRanges; case RID_SVXPAGE_CHAR_NAME : return SvxCharNamePage::GetRanges; case RID_SVXPAGE_CHAR_EFFECTS : return SvxCharEffectsPage::GetRanges; case RID_SVXPAGE_CHAR_POSITION : return SvxCharPositionPage::GetRanges; case RID_SVXPAGE_CHAR_TWOLINES : return SvxCharTwoLinesPage::GetRanges; case RID_SVXPAGE_NUMBERFORMAT : return SvxNumberFormatTabPage::GetRanges; case RID_SVXPAGE_PAGE : return SvxPageDescPage::GetRanges; case RID_SVXPAGE_ASIAN_LAYOUT: return SvxAsianLayoutPage::GetRanges; default: break; } return nullptr; } VclPtr AbstractDialogFactory_Impl::CreateInsertObjectDialog( vcl::Window* pParent, const OUString& rCommand, const Reference < css::embed::XStorage >& xStor, const SvObjectServerList* pList ) { InsertObjectDialog_Impl* pDlg=nullptr; if ( rCommand == ".uno:InsertObject" ) pDlg = VclPtr::Create( pParent, xStor, pList ); else if ( rCommand == ".uno:InsertObjectFloatingFrame" ) pDlg = VclPtr::Create( pParent, xStor ); if ( pDlg ) { pDlg->SetHelpId( OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) ); return VclPtr::Create( pDlg ); } return nullptr; } VclPtr AbstractDialogFactory_Impl::CreateEditObjectDialog( const OUString& rCommand, const Reference < css::embed::XEmbeddedObject >& xObj ) { if ( rCommand == ".uno:InsertObjectFloatingFrame" ) { VclPtrInstance pDlg( nullptr, xObj ); pDlg->SetHelpId( OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) ); return VclPtr::Create( pDlg ); } return nullptr; } VclPtr AbstractDialogFactory_Impl::CreatePasteDialog( vcl::Window* pParent ) { return VclPtr::Create( VclPtr::Create( pParent ) ); } VclPtr AbstractDialogFactory_Impl::CreateLinksDialog( vcl::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML, sfx2::SvBaseLink* p) { VclPtrInstance pLinkDlg( pParent, pMgr, bHTML ); if ( p ) pLinkDlg->SetActLink(p); return VclPtr::Create( pLinkDlg ); } VclPtr AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* /*pObj*/ ) { return VclPtr::Create( VclPtr::Create( nullptr, pAttr, pModel ) ); } VclPtr AbstractDialogFactory_Impl::CreateSvxSplittTableDialog(weld::Window* pParent, bool bIsTableVertical, long nMaxVertical) { return VclPtr::Create( pParent, bIsTableVertical, nMaxVertical, 99 ); } VclPtr AbstractDialogFactory_Impl::CreateSvxNewTableDialog() { return VclPtr::Create(); } VclPtr AbstractDialogFactory_Impl::CreateOptionsDialog( vcl::Window* pParent, const OUString& rExtensionId ) { return VclPtr::Create( VclPtr::Create( pParent, rExtensionId ) ); } VclPtr AbstractDialogFactory_Impl::CreateSvxInsRowColDlg(weld::Window* pParent, bool bCol, const OString& rHelpId) { return VclPtr::Create(pParent, bCol, rHelpId); } VclPtr AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog( vcl::Window * pParent, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify ) { VclPtrInstance pDlg( pParent, nMaxPasswdLen, bIsPasswordToModify ); return VclPtr::Create( pDlg ); } VclPtr AbstractDialogFactory_Impl::CreateScreenshotAnnotationDlg( vcl::Window * pParent, Dialog& rParentDialog) { VclPtrInstance pDlg(pParent, rParentDialog); return VclPtr::Create(pDlg); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */