Files
libreoffice/cui/source/factory/dlgfact.cxx

1552 lines
52 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: clarify Option->Language UI option Patch contributed by Herbert Duerr http://svn.apache.org/viewvc?view=revision&revision=1173991 cws mba34issues01: #i117712#: fix several resource errors introduced by IAccessible2 implementation Patch contributed by Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1173991 cws mba34issues01: #i117709#: add missing string resource Patch contributed by Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1172348 cws mba34issues01: #i117716#: fix missing resources my removing unused code Patch contributed by Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1172345 re-add Crystal, Tango, Oxygen icon theme listings. correct method signature Patch contributed by Jean-Louis 'Hans' Fuchs http://svn.apache.org/viewvc?view=revision&revision=1306725 i#119063 - correct serf integration Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1300521 i#119036 - adapt serf integration -- use transfer-encoding 'chunked' on HTTPS -- switch transfer-encoding between 'chunked' and none on 413 HTTP status code -- refactoring -- improve user experience of certification dialog - only shown once Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1299727 118569: Use whole certification chain for verification. Patch contributed by Andre Fischer http://svn.apache.org/viewvc?view=revision&revision=1295493 serf integration: improve credential input handling Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1294557 warning-free ucb/source/ucp/webdav Patch contributed by Pavel Janik http://svn.apache.org/viewvc?view=revision&revision=1294086 some refactoring to PROPPATCH and PROPFIND requests Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1293281 i#118569: Replace neon with serf Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1292832 http://svn.apache.org/viewvc?view=revision&revision=1292794 remove OS/2 conditionals for now. re-enable webdav unit tests.
2012-10-04 11:25:41 +01:00
/*
* 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 .
*/
2009-10-31 00:36:06 +01:00
#include "align.hxx"
2009-10-31 00:36:06 +01:00
#include "dlgfact.hxx"
#include <sfx2/basedlgs.hxx>
#include <sfx2/app.hxx>
#include <sfx2/request.hxx>
#include <cuires.hrc>
2009-10-31 00:36:06 +01:00
#include <svx/dialogs.hrc>
#include "numfmt.hxx"
#include "splitcelldlg.hxx"
#include "gallery.hrc"
#include "dstribut.hxx"
#include "cuiimapwnd.hxx"
#include "hlmarkwn.hxx"
#include "cuicharmap.hxx"
#include "srchxtra.hxx"
#include "textanim.hxx"
#include "autocdlg.hxx"
#include "treeopt.hxx"
#include "labdlg.hxx"
#include "hangulhanjadlg.hxx"
#include "showcols.hxx"
#include "zoom.hxx"
#include "cuigaldlg.hxx"
#include "transfrm.hxx"
#include "bbdlg.hxx"
#include "cuisrchdlg.hxx"
#include "cuitbxform.hxx"
#include "optdict.hxx"
#include "dlgname.hxx"
#include "multipat.hxx"
#include "cuihyperdlg.hxx"
#include "cuifmsearch.hxx"
#include "cuigrfflt.hxx"
#include "cuitabarea.hxx"
#include "cuitabline.hxx"
#include "measure.hxx"
#include "connect.hxx"
#include "dbregister.hxx"
#include "cuioptgenrl.hxx"
2009-10-31 00:36:06 +01:00
#include "optasian.hxx"
#include "insdlg.hxx"
#include "pastedlg.hxx"
#include "linkdlg.hxx"
#include "SpellDialog.hxx"
#include "cfg.hxx"
#include "numpages.hxx"
#include "paragrph.hxx"
#include "tabstpge.hxx"
#include "textattr.hxx"
#include "backgrnd.hxx"
#include "border.hxx"
#include "chardlg.hxx"
#include "page.hxx"
#include "postdlg.hxx"
#include "grfpage.hxx"
#include "scriptdlg.hxx"
#include "cfgutil.hxx"
#include "macropg.hxx"
2009-10-31 00:36:06 +01:00
#include "sdrcelldlg.hxx"
#include "newtabledlg.hxx"
#include "macroass.hxx"
#include "acccfg.hxx"
#include "insrc.hxx"
2010-03-03 16:36:43 +01:00
#include "passwdomdlg.hxx"
#include "screenshotannotationdlg.hxx"
#include "hyphen.hxx"
#include "thesdlg.hxx"
#include "about.hxx"
#include "dialmgr.hxx"
2009-10-31 00:36:06 +01:00
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)
2009-10-31 00:36:06 +01:00
IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl);
IMPL_ABSTDLG_BASE(CuiAbstractTabDialog_Impl);
2009-10-31 00:36:06 +01:00
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)
2009-10-31 00:36:06 +01:00
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);
IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl);
// #i68101#
IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl);
IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl);
IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl);
IMPL_ABSTDLG_BASE(AbstractSvxPathSelectDialog_Impl);
2009-10-31 00:36:06 +01:00
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);
2010-03-03 16:36:43 +01:00
IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl);
IMPL_ABSTDLG_BASE(AbstractScreenshotAnnotationDlg_Impl);
2009-10-31 00:36:06 +01:00
2009-10-31 00:36:06 +01:00
// VclAbstractDialog2_Impl
2009-10-31 00:36:06 +01:00
// virtual
VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
{
disposeOnce();
}
void VclAbstractDialog2_Impl::dispose()
2009-10-31 00:36:06 +01:00
{
m_pDlg.disposeAndClear();
VclAbstractDialog2::dispose();
2009-10-31 00:36:06 +01:00
}
// virtual
void VclAbstractDialog2_Impl::StartExecuteModal( const Link<Dialog&,void>& rEndDialogHdl )
2009-10-31 00:36:06 +01:00
{
m_aEndDlgHdl = rEndDialogHdl;
m_pDlg->StartExecuteModal(
LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) );
}
// virtual
long VclAbstractDialog2_Impl::GetResult()
{
return m_pDlg->GetResult();
}
IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog&, rDlg, void )
2009-10-31 00:36:06 +01:00
{
if ( &rDlg != m_pDlg )
2009-10-31 00:36:06 +01:00
{
SAL_WARN( "cui.factory", "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
2009-10-31 00:36:06 +01:00
}
m_aEndDlgHdl.Call( *m_pDlg );
m_aEndDlgHdl = Link<Dialog&,void>();
2009-10-31 00:36:06 +01:00
}
void CuiAbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
2009-10-31 00:36:06 +01:00
{
pDlg->SetCurPageId( nId );
}
void CuiAbstractTabDialog_Impl::SetCurPageId( const OString& rName )
{
pDlg->SetCurPageId( rName );
}
const SfxItemSet* CuiAbstractTabDialog_Impl::GetOutputItemSet() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetOutputItemSet();
}
const sal_uInt16* CuiAbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
2009-10-31 00:36:06 +01:00
{
return pDlg->GetInputRanges( pItem );
}
void CuiAbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
2009-10-31 00:36:06 +01:00
{
pDlg->SetInputSet( pInSet );
}
//From class Window.
void CuiAbstractTabDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
OUString CuiAbstractTabDialog_Impl::GetText() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetText();
}
const SfxItemSet* CuiAbstractSfxDialog_Impl::GetOutputItemSet() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetOutputItemSet();
}
void CuiAbstractSfxDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
OUString CuiAbstractSfxDialog_Impl::GetText() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetText();
}
SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
{
return pDlg->GetDistributeHor();
}
SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
{
return pDlg->GetDistributeVer();
}
void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult)
{
pDlg->EndDialog(nResult);
}
void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( bool _bVal )
2009-10-31 00:36:06 +01:00
{
pDlg->EnableRubySupport(_bVal);
}
void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( bool _bByCharacter )
2009-10-31 00:36:06 +01:00
{
pDlg->SetByCharacter(_bByCharacter);
}
void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection )
2009-10-31 00:36:06 +01:00
{
pDlg->SetConversionDirectionState(_bTryBothDirections, _ePrimaryConversionDirection);
}
void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType )
2009-10-31 00:36:06 +01:00
{
pDlg->SetConversionFormat(_eType);
}
void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link<LinkParamNone*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetOptionsChangedHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link<Button*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetIgnoreHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link<Button*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetIgnoreAllHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link<Button*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetChangeHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link<Button*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetChangeAllHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link<CheckBox*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetClickByCharacterHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link<Button*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetConversionFormatChangedHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link<Button*,void>& _rHdl )
2009-10-31 00:36:06 +01:00
{
pDlg->SetFindHdl(_rHdl );
}
bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetUseBothDirections();
}
editeng::HangulHanjaConversion::ConversionDirection AbstractHangulHanjaConversionDialog_Impl::GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetDirection( _eDefaultDirection );
}
void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
const OUString& _rNewString,
const css::uno::Sequence< OUString >& _rSuggestions,
2009-10-31 00:36:06 +01:00
bool _bOriginatesFromDocument
)
{
pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument);
}
OUString AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetCurrentString();
}
editeng::HangulHanjaConversion::ConversionFormat AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetConversionFormat();
}
void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
{
pDlg->FocusSuggestion();
}
OUString AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetCurrentSuggestion();
}
OUString AbstractThesaurusDialog_Impl::GetWord()
{
return pDlg->GetWord();
};
vcl::Window* AbstractHyphenWordDialog_Impl::GetWindow()
{
return pDlg;
}
Reference < css::embed::XEmbeddedObject > AbstractInsertObjectDialog_Impl::GetObject()
2009-10-31 00:36:06 +01:00
{
return pDlg->GetObject();
}
bool AbstractInsertObjectDialog_Impl::IsCreateNew()
2009-10-31 00:36:06 +01:00
{
return pDlg->IsCreateNew();
}
::Reference< css::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( OUString* pGraphicMediaType )
2009-10-31 00:36:06 +01:00
{
return pDlg->GetIconIfIconified( pGraphicMediaType );
}
void AbstractPasteDialog_Impl::Insert( SotClipboardFormatId nFormat, const OUString & rFormatName )
2009-10-31 00:36:06 +01:00
{
pDlg->Insert( nFormat, rFormatName );
}
void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const OUString & rObjName )
2009-10-31 00:36:06 +01:00
{
pDlg->SetObjName( rClass, rObjName );
}
SotClipboardFormatId AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper )
2009-10-31 00:36:06 +01:00
{
return pDlg->GetFormat( aHelper );
2009-10-31 00:36:06 +01:00
}
void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< css::container::XIndexContainer>& xCols)
2009-10-31 00:36:06 +01:00
{
pDlg->SetColumns(xCols);
}
void AbstractSvxZoomDialog_Impl::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
2009-10-31 00:36:06 +01:00
{
pDlg->SetLimits( nMin, nMax );
}
void AbstractSvxZoomDialog_Impl::HideButton( ZoomButtonId nBtnId )
2009-10-31 00:36:06 +01:00
{
pDlg->HideButton( nBtnId );
}
const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
void AbstractSpellDialog_Impl::Invalidate()
{
pDlg->InvalidateDialog();
}
vcl::Window* AbstractSpellDialog_Impl::GetWindow()
2009-10-31 00:36:06 +01:00
{
return pDlg;
}
SfxBindings& AbstractSpellDialog_Impl::GetBindings()
{
return pDlg->GetBindings();
}
OUString AbstractTitleDialog_Impl::GetTitle() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetTitle();
}
sal_uLong AbstractGalleryIdDialog_Impl::GetId() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetId();
}
void VclAbstractRefreshableDialog_Impl::Update()
{
pDlg->Update();
}
OUString AbstractURLDlg_Impl::GetURL() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetURL();
}
OUString AbstractURLDlg_Impl::GetAltText() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetAltText();
}
OUString AbstractURLDlg_Impl::GetDesc() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetDesc();
}
OUString AbstractURLDlg_Impl::GetTarget() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetTarget();
}
OUString AbstractURLDlg_Impl::GetName() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetName();
}
sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetOther()
2009-10-31 00:36:06 +01:00
{
return pDlg->GetOther();
}
sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
2009-10-31 00:36:06 +01:00
{
return pDlg->GetShorter();
}
sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
2009-10-31 00:36:06 +01:00
{
return pDlg->GetLonger();
2009-10-31 00:36:06 +01:00
}
bool AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
2009-10-31 00:36:06 +01:00
{
return pDlg->IsRelaxed();
2009-10-31 00:36:06 +01:00
}
// AbstractSvxTransformTabDialog implementations just forwards everything to the dialog
void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
2009-10-31 00:36:06 +01:00
{
pDlg->SetCurPageId( nId );
}
void AbstractSvxTransformTabDialog_Impl::SetCurPageId( const OString& rName )
{
pDlg->SetCurPageId( rName );
}
2009-10-31 00:36:06 +01:00
const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
const sal_uInt16* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
2009-10-31 00:36:06 +01:00
{
return pDlg->GetInputRanges( pItem );
}
2009-10-31 00:36:06 +01:00
void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractSvxTransformTabDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
OUString AbstractSvxTransformTabDialog_Impl::GetText() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetText();
}
void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link<SvxSwFrameValidation&,void>& rLink )
2009-10-31 00:36:06 +01:00
{
pDlg->SetValidateFramePosLink( rLink );
}
// AbstractSvxCaptionDialog implementations just forwards everything to the dialog
void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId )
2009-10-31 00:36:06 +01:00
{
pDlg->SetCurPageId( nId );
}
void AbstractSvxCaptionDialog_Impl::SetCurPageId( const OString& rName )
{
pDlg->SetCurPageId( rName );
}
2009-10-31 00:36:06 +01:00
const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
const sal_uInt16* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
2009-10-31 00:36:06 +01:00
{
return pDlg->GetInputRanges( pItem );
}
2009-10-31 00:36:06 +01:00
void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractSvxCaptionDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
OUString AbstractSvxCaptionDialog_Impl::GetText() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetText();
}
void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link<SvxSwFrameValidation&,void>& rLink )
2009-10-31 00:36:06 +01:00
{
pDlg->SetValidateFramePosLink( rLink );
}
TransliterationFlags AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
2009-10-31 00:36:06 +01:00
{
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()
2009-10-31 00:36:06 +01:00
{
return pDlg->GetNewDictionary();
}
void AbstractSvxNameDialog_Impl::GetName(OUString& rName)
2009-10-31 00:36:06 +01:00
{
pDlg->GetName( rName );
}
void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link<AbstractSvxNameDialog&,bool>& rLink, bool bCheckImmediately )
2009-10-31 00:36:06 +01:00
{
aCheckNameHdl = rLink;
if( rLink.IsSet() )
pDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately );
else
pDlg->SetCheckNameHdl( Link<SvxNameDialog&,bool>(), bCheckImmediately );
2009-10-31 00:36:06 +01:00
}
void AbstractSvxNameDialog_Impl::SetEditHelpId(const OString& aHelpId)
2009-10-31 00:36:06 +01:00
{
pDlg->SetEditHelpId( aHelpId );
2009-10-31 00:36:06 +01:00
}
void AbstractSvxNameDialog_Impl::SetHelpId( const OString& aHelpId )
2009-10-31 00:36:06 +01:00
{
pDlg->SetHelpId( aHelpId );
2009-10-31 00:36:06 +01:00
}
void AbstractSvxNameDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
IMPL_LINK_NOARG(AbstractSvxNameDialog_Impl, CheckNameHdl, SvxNameDialog&, bool)
2009-10-31 00:36:06 +01:00
{
return aCheckNameHdl.Call(*this);
2009-10-31 00:36:06 +01:00
}
void AbstractSvxObjectNameDialog_Impl::GetName(OUString& rName)
2009-10-31 00:36:06 +01:00
{
pDlg->GetName(rName);
}
void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link<AbstractSvxObjectNameDialog&,bool>& rLink)
2009-10-31 00:36:06 +01:00
{
aCheckNameHdl = rLink;
if(rLink.IsSet())
{
pDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl));
2009-10-31 00:36:06 +01:00
}
else
{
pDlg->SetCheckNameHdl(Link<SvxObjectNameDialog&,bool>());
2009-10-31 00:36:06 +01:00
}
}
IMPL_LINK_NOARG(AbstractSvxObjectNameDialog_Impl, CheckNameHdl, SvxObjectNameDialog&, bool)
2009-10-31 00:36:06 +01:00
{
return aCheckNameHdl.Call(*this);
2009-10-31 00:36:06 +01:00
}
void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(OUString& rTitle)
2009-10-31 00:36:06 +01:00
{
pDlg->GetTitle(rTitle);
}
void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(OUString& rDescription)
2009-10-31 00:36:06 +01:00
{
pDlg->GetDescription(rDescription);
}
OUString AbstractSvxMultiPathDialog_Impl::GetPath() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetPath();
}
void AbstractSvxMultiPathDialog_Impl::SetPath( const OUString& rPath )
2009-10-31 00:36:06 +01:00
{
pDlg->SetPath( rPath );
}
void AbstractSvxMultiPathDialog_Impl::SetTitle( const OUString& rNewTitle )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rNewTitle );
2009-10-31 00:36:06 +01:00
}
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 )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rNewTitle );
}
vcl::Window * AbstractSvxHpLinkDlg_Impl::GetWindow()
2009-10-31 00:36:06 +01:00
{
return static_cast<vcl::Window *>(pDlg);
2009-10-31 00:36:06 +01:00
}
bool AbstractSvxHpLinkDlg_Impl::QueryClose()
2009-10-31 00:36:06 +01:00
{
return pDlg->QueryClose();
}
void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link<FmFoundRecordInformation&,void>& lnk)
2009-10-31 00:36:06 +01:00
{
pDlg->SetFoundHandler(lnk);
}
void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk)
2009-10-31 00:36:06 +01:00
{
pDlg->SetCanceledNotFoundHdl(lnk);
}
void AbstractFmSearchDialog_Impl::SetActiveField(const OUString& strField)
2009-10-31 00:36:06 +01:00
{
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 )
2009-10-31 00:36:06 +01:00
{
pDlg->SetCurPageId( nId );
}
void AbstractSvxAreaTabDialog_Impl::SetCurPageId( const OString& rName )
{
pDlg->SetCurPageId( rName );
}
2009-10-31 00:36:06 +01:00
const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
const sal_uInt16* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
2009-10-31 00:36:06 +01:00
{
return pDlg->GetInputRanges( pItem );
}
2009-10-31 00:36:06 +01:00
void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
{
pDlg->SetInputSet( pInSet );
}
//From class Window.
void AbstractSvxAreaTabDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
OUString AbstractSvxAreaTabDialog_Impl::GetText() const
2009-10-31 00:36:06 +01:00
{
return pDlg->GetText();
}
void AbstractSvxPostItDialog_Impl::SetText( const OUString& rStr )
2009-10-31 00:36:06 +01:00
{
pDlg->SetText( rStr );
}
const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
void AbstractSvxPostItDialog_Impl::EnableTravel(bool bNext, bool bPrev)
2009-10-31 00:36:06 +01:00
{
pDlg->EnableTravel( bNext, bPrev );
}
OUString AbstractSvxPostItDialog_Impl::GetNote()
2009-10-31 00:36:06 +01:00
{
return pDlg->GetNote();
}
void AbstractSvxPostItDialog_Impl::SetNote(const OUString& rTxt)
2009-10-31 00:36:06 +01:00
{
pDlg->SetNote( rTxt );
}
void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const OUString& rAuthor, const OUString& rDate)
2009-10-31 00:36:06 +01:00
{
pDlg->ShowLastAuthor( rAuthor, rDate );
}
void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
{
pDlg->DontChangeAuthor();
}
void AbstractSvxPostItDialog_Impl::HideAuthor()
{
pDlg->HideAuthor();
}
void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link<AbstractSvxPostItDialog&,void>& rLink )
2009-10-31 00:36:06 +01:00
{
aNextHdl = rLink;
if( rLink.IsSet() )
pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) );
else
pDlg->SetNextHdl( Link<SvxPostItDialog&,void>() );
2009-10-31 00:36:06 +01:00
}
void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link<AbstractSvxPostItDialog&,void>& rLink )
2009-10-31 00:36:06 +01:00
{
aPrevHdl = rLink;
if( rLink.IsSet() )
pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) );
else
pDlg->SetPrevHdl( Link<SvxPostItDialog&,void>() );
2009-10-31 00:36:06 +01:00
}
IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, NextHdl, SvxPostItDialog&, void)
2009-10-31 00:36:06 +01:00
{
aNextHdl.Call(*this);
2009-10-31 00:36:06 +01:00
}
IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, PrevHdl, SvxPostItDialog&, void)
2009-10-31 00:36:06 +01:00
{
aPrevHdl.Call(*this);
2009-10-31 00:36:06 +01:00
}
vcl::Window * AbstractSvxPostItDialog_Impl::GetWindow()
2009-10-31 00:36:06 +01:00
{
return static_cast<vcl::Window *>(pDlg);
2009-10-31 00:36:06 +01:00
}
OUString AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const
2010-03-03 16:36:43 +01:00
{
return pDlg->GetPasswordToOpen();
}
OUString AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const
2010-03-03 16:36:43 +01:00
{
return pDlg->GetPasswordToModify();
}
bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const
{
return pDlg->IsRecommendToOpenReadonly();
}
2010-03-03 16:36:43 +01:00
2009-10-31 00:36:06 +01:00
// Create dialogs with simplest interface
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateVclDialog( vcl::Window* pParent, sal_uInt32 nResId )
2009-10-31 00:36:06 +01:00
{
VclPtr<Dialog> pDlg;
2009-10-31 00:36:06 +01:00
switch ( nResId )
{
case RID_DEFAULTABOUT:
{
pDlg = VclPtr<AboutDialog>::Create(pParent);
break;
}
2009-10-31 00:36:06 +01:00
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<OfaTreeOptionsDialog> pOptDlg( pParent, xFrame, bActivateLastSelection );
2009-10-31 00:36:06 +01:00
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);
2009-10-31 00:36:06 +01:00
}
break;
default:
break;
}
if ( pDlg )
return VclPtr<CuiVclAbstractDialog_Impl>::Create( pDlg );
return nullptr;
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateFrameDialog( const Reference< frame::XFrame >& rxFrame,
sal_uInt32 nResId, const OUString& rParameter )
2009-10-31 00:36:06 +01:00
{
VclPtr<Dialog> pDlg;
2009-10-31 00:36:06 +01:00
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<OfaTreeOptionsDialog> pOptDlg( nullptr, rxFrame, bActivateLastSelection );
2009-10-31 00:36:06 +01:00
if ( nResId == SID_OPTIONS_DATABASES )
pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
else if ( !rParameter.isEmpty() )
2009-10-31 00:36:06 +01:00
pOptDlg->ActivatePage( rParameter );
pDlg.reset(pOptDlg);
2009-10-31 00:36:06 +01:00
}
if ( pDlg )
return VclPtr<CuiVclAbstractDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
else
return nullptr;
2009-10-31 00:36:06 +01:00
}
// TabDialog outside the drawing layer
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateAutoCorrTabDialog( const SfxItemSet* pAttrSet )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<OfaAutoCorrDlg> pDlg( nullptr, pAttrSet );
return VclPtr<CuiAbstractTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateCustomizeTabDialog(
2009-10-31 00:36:06 +01:00
const SfxItemSet* pAttrSet,
const Reference< frame::XFrame >& xViewFrame )
2009-10-31 00:36:06 +01:00
{
VclPtr<SfxTabDialog> pDlg;
VclPtrInstance<SvxConfigDialog> pDlg1( nullptr, pAttrSet );
pDlg1->SetFrame(xViewFrame);
pDlg.reset(pDlg1);
return VclPtr<CuiAbstractTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
// TabDialog that use functionality of the drawing layer
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateTextTabDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet* pAttrSet,
SdrView* pView )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxTextTabDialog> pDlg( pParent, pAttrSet, pView );
return VclPtr<CuiAbstractTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
// TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog
VclPtr<AbstractSvxCaptionDialog> AbstractDialogFactory_Impl::CreateCaptionDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SdrView* pView,
SvxAnchorIds nAnchorTypes )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxCaptionTabDialog> pDlg( pParent, pView, nAnchorTypes );
return VclPtr<AbstractSvxCaptionDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxDistributeDialog> AbstractDialogFactory_Impl::CreateSvxDistributeDialog(const SfxItemSet& rAttr)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxDistributeDialog> pDlg( nullptr, rAttr, SvxDistributeHorizontal::NONE, SvxDistributeVertical::NONE);
return VclPtr<AbstractSvxDistributeDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractHangulHanjaConversionDialog> AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(vcl::Window* pParent,
editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<HangulHanjaConversionDialog> pDlg( pParent, _ePrimaryDirection);
return VclPtr<AbstractHangulHanjaConversionDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractThesaurusDialog> AbstractDialogFactory_Impl::CreateThesaurusDialog( vcl::Window* pParent,
css::uno::Reference< css::linguistic2::XThesaurus > xThesaurus,
const OUString &rWord, LanguageType nLanguage )
{
VclPtrInstance<SvxThesaurusDialog> pDlg( pParent, xThesaurus, rWord, nLanguage );
return VclPtr<AbstractThesaurusDialog_Impl>::Create( pDlg );
}
VclPtr<AbstractHyphenWordDialog> AbstractDialogFactory_Impl::CreateHyphenWordDialog( vcl::Window* pParent,
const OUString &rWord, LanguageType nLang,
css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen,
SvxSpellWrapper* pWrapper )
{
VclPtrInstance<SvxHyphenWordDialog> pDlg( rWord, nLang, pParent, xHyphen, pWrapper );
return VclPtr<AbstractHyphenWordDialog_Impl>::Create( pDlg );
}
VclPtr<AbstractFmShowColsDialog> AbstractDialogFactory_Impl::CreateFmShowColsDialog()
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<FmShowColsDialog> pDlg( nullptr );
return VclPtr<AbstractFmShowColsDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxZoomDialog> AbstractDialogFactory_Impl::CreateSvxZoomDialog( vcl::Window* pParent,
const SfxItemSet& rCoreSet)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxZoomDialog> pDlg( pParent, rCoreSet);
return VclPtr<AbstractSvxZoomDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSpellDialog> AbstractDialogFactory_Impl::CreateSvxSpellDialog(
vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
SfxBindings* pBindings,
svx::SpellDialogChildWindow* pSpellChildWindow )
{
VclPtrInstance<svx::SpellDialog> pDlg(pSpellChildWindow, pParent, pBindings);
return VclPtr<AbstractSpellDialog_Impl>::Create(pDlg);
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractRefreshableDialog> AbstractDialogFactory_Impl::CreateActualizeProgressDialog( vcl::Window* pParent, GalleryTheme* pThm )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<ActualizeProgress> pDlg(pParent, pThm);
return VclPtr<VclAbstractRefreshableDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateScriptErrorDialog(const css::uno::Any& rException)
2009-10-31 00:36:06 +01:00
{
return VclPtr<SvxScriptErrorDialog>::Create(rException);
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractScriptSelectorDialog> AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
vcl::Window* pParent, const Reference< frame::XFrame >& _rxFrame )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxScriptSelectorDialog> pDlg(pParent, false/*bShowSlots*/, _rxFrame);
return VclPtr<AbstractScriptSelectorDialog_Impl>::Create(pDlg);
2009-10-31 00:36:06 +01:00
}
OUString AbstractScriptSelectorDialog_Impl::GetScriptURL() const
2009-10-31 00:36:06 +01:00
{
if (pDlg)
return pDlg->GetScriptURL();
return OUString();
2009-10-31 00:36:06 +01:00
}
void AbstractScriptSelectorDialog_Impl::SetRunLabel()
{
if (pDlg)
pDlg->SetRunLabel();
return;
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( vcl::Window* pParent,
const OUString& rLanguage)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxScriptOrgDialog> pDlg( pParent, rLanguage);
return VclPtr<CuiVclAbstractDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractTitleDialog> AbstractDialogFactory_Impl::CreateTitleDialog( vcl::Window* pParent,
const OUString& rOldText)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<TitleDialog> pDlg( pParent, rOldText);
return VclPtr<AbstractTitleDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractGalleryIdDialog> AbstractDialogFactory_Impl::CreateGalleryIdDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
GalleryTheme* pThm )
{
VclPtrInstance<GalleryIdDialog> pDlg( pParent, pThm);
return VclPtr<AbstractGalleryIdDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog2> AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog(
2009-10-31 00:36:06 +01:00
ExchangeData* pData,
SfxItemSet* pItemSet)
{
VclPtrInstance<GalleryThemeProperties> pDlg( nullptr, pData, pItemSet);
return VclPtr<VclAbstractDialog2_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractURLDlg> AbstractDialogFactory_Impl::CreateURLDialog( vcl::Window* pParent,
const OUString& rURL, const OUString& rAltText, const OUString& rDescription,
const OUString& rTarget, const OUString& rName,
2009-10-31 00:36:06 +01:00
TargetList& rTargetList )
{
VclPtrInstance<URLDlg> pDlg( pParent, rURL, rAltText, rDescription,
rTarget, rName, rTargetList);
return VclPtr<AbstractURLDlg_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateTabItemDialog(vcl::Window* pParent,
const SfxItemSet& rSet)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxSearchFormatDialog> pDlg(pParent, rSet);
return VclPtr<CuiAbstractTabDialog_Impl>::Create(pDlg);
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
SearchAttrItemList& rLst,
const sal_uInt16* pWhRanges )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxSearchAttributeDialog> pDlg( pParent, rLst, pWhRanges);
return VclPtr<CuiVclAbstractDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxSearchSimilarityDialog> AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( vcl::Window* pParent,
bool bRelax,
sal_uInt16 nOther,
sal_uInt16 nShorter,
sal_uInt16 nLonger)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxSearchSimilarityDialog> pDlg( pParent, bRelax, nOther, nShorter, nLonger );
return VclPtr<AbstractSvxSearchSimilarityDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg(
vcl::Window* pParent,
Related: #i124638# Second step of DrawingLayer FillAttributes... for Writer objects, now added support for Paragraph and PageStyle (including Header and Footer) for direct attributes and style attributes (cherry picked from commit cc25c58f7052827bfebdc9fbeec668c8fa29ed1b) Conflicts: cui/source/factory/dlgfact.cxx cui/source/factory/dlgfact.hxx cui/source/inc/bbdlg.hxx cui/source/inc/cuires.hrc cui/source/tabpages/bbdlg.cxx cui/source/tabpages/bbdlg.src cui/source/tabpages/page.cxx cui/source/tabpages/tparea.cxx include/svx/pagectrl.hxx include/svx/svxdlg.hxx include/svx/svxids.hrc include/xmloff/PageMasterStyleMap.hxx include/xmloff/prstylei.hxx include/xmloff/txtprmap.hxx svx/Package_inc.mk svx/inc/svx/hdft.hxx svx/source/dialog/hdft.cxx svx/source/dialog/pagectrl.cxx svx/source/tbxctrls/tbxcolorupdate.cxx svx/source/unodraw/unobrushitemhelper.cxx sw/Library_sw.mk sw/inc/fillattributes.hxx sw/inc/format.hxx sw/inc/frmatr.hxx sw/inc/frmfmt.hxx sw/inc/hintids.hxx sw/inc/hints.hxx sw/inc/ndtxt.hxx sw/inc/node.hxx sw/inc/swunohelper.hxx sw/inc/unobrushitemhelper.hxx sw/inc/unoprnms.hxx sw/source/core/attr/format.cxx sw/source/core/attr/hints.cxx sw/source/core/doc/docdesc.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfmt.cxx sw/source/core/doc/docnew.cxx sw/source/core/doc/docredln.cxx sw/source/core/doc/poolfmt.cxx sw/source/core/doc/visiturl.cxx sw/source/core/docnode/node.cxx sw/source/core/inc/frame.hxx sw/source/core/inc/frmtool.hxx sw/source/core/inc/rolbck.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/layout/fillattributes.cxx sw/source/core/layout/findfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/txtnode/ndtxt.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txtedt.cxx sw/source/core/undo/rolbck.cxx sw/source/core/unocore/swunohelper.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unomap.cxx sw/source/core/unocore/unoparagraph.cxx sw/source/core/unocore/unoprnms.cxx sw/source/core/unocore/unostyle.cxx sw/source/ui/chrdlg/paradlg.src sw/source/ui/chrdlg/pardlg.cxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/fmtui/tmpdlg.src sw/source/uibase/app/docst.cxx sw/source/uibase/app/docstyle.cxx sw/source/uibase/frmdlg/colex.cxx sw/source/uibase/shells/basesh.cxx sw/source/uibase/shells/textsh1.cxx sw/source/uibase/uiview/viewstat.cxx sw/source/uibase/utlui/uitool.cxx xmloff/inc/PageMasterImportContext.hxx xmloff/inc/xmloff/XMLShapeStyleContext.hxx xmloff/source/draw/XMLShapeStyleContext.cxx xmloff/source/draw/sdpropls.hxx xmloff/source/style/PageMasterExportPropMapper.cxx xmloff/source/style/PageMasterImportContext.cxx xmloff/source/style/PageMasterPropHdlFactory.cxx xmloff/source/style/PageMasterStyleMap.cxx xmloff/source/style/prstylei.cxx xmloff/source/text/txtexppr.cxx xmloff/source/text/txtprhdl.cxx xmloff/source/text/txtprmap.cxx xmloff/source/text/txtstyli.cxx Conflicts: svx/source/dialog/hdft.cxx sw/source/core/doc/visiturl.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txtatr2.cxx sw/source/core/unocore/unostyle.cxx Change-Id: I7e8779db6c0cbd1e242b63eab888f468f2de509a
2014-06-02 15:00:50 +00:00
const SfxItemSet& rCoreSet,
bool bEnableSelector,
bool bEnableDrawingLayerFillStyles)
{
VclPtrInstance<SvxBorderBackgroundDlg> pDlg(
Related: #i124638# Second step of DrawingLayer FillAttributes... for Writer objects, now added support for Paragraph and PageStyle (including Header and Footer) for direct attributes and style attributes (cherry picked from commit cc25c58f7052827bfebdc9fbeec668c8fa29ed1b) Conflicts: cui/source/factory/dlgfact.cxx cui/source/factory/dlgfact.hxx cui/source/inc/bbdlg.hxx cui/source/inc/cuires.hrc cui/source/tabpages/bbdlg.cxx cui/source/tabpages/bbdlg.src cui/source/tabpages/page.cxx cui/source/tabpages/tparea.cxx include/svx/pagectrl.hxx include/svx/svxdlg.hxx include/svx/svxids.hrc include/xmloff/PageMasterStyleMap.hxx include/xmloff/prstylei.hxx include/xmloff/txtprmap.hxx svx/Package_inc.mk svx/inc/svx/hdft.hxx svx/source/dialog/hdft.cxx svx/source/dialog/pagectrl.cxx svx/source/tbxctrls/tbxcolorupdate.cxx svx/source/unodraw/unobrushitemhelper.cxx sw/Library_sw.mk sw/inc/fillattributes.hxx sw/inc/format.hxx sw/inc/frmatr.hxx sw/inc/frmfmt.hxx sw/inc/hintids.hxx sw/inc/hints.hxx sw/inc/ndtxt.hxx sw/inc/node.hxx sw/inc/swunohelper.hxx sw/inc/unobrushitemhelper.hxx sw/inc/unoprnms.hxx sw/source/core/attr/format.cxx sw/source/core/attr/hints.cxx sw/source/core/doc/docdesc.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfmt.cxx sw/source/core/doc/docnew.cxx sw/source/core/doc/docredln.cxx sw/source/core/doc/poolfmt.cxx sw/source/core/doc/visiturl.cxx sw/source/core/docnode/node.cxx sw/source/core/inc/frame.hxx sw/source/core/inc/frmtool.hxx sw/source/core/inc/rolbck.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/layout/fillattributes.cxx sw/source/core/layout/findfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/txtnode/ndtxt.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txtedt.cxx sw/source/core/undo/rolbck.cxx sw/source/core/unocore/swunohelper.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unomap.cxx sw/source/core/unocore/unoparagraph.cxx sw/source/core/unocore/unoprnms.cxx sw/source/core/unocore/unostyle.cxx sw/source/ui/chrdlg/paradlg.src sw/source/ui/chrdlg/pardlg.cxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/fmtui/tmpdlg.src sw/source/uibase/app/docst.cxx sw/source/uibase/app/docstyle.cxx sw/source/uibase/frmdlg/colex.cxx sw/source/uibase/shells/basesh.cxx sw/source/uibase/shells/textsh1.cxx sw/source/uibase/uiview/viewstat.cxx sw/source/uibase/utlui/uitool.cxx xmloff/inc/PageMasterImportContext.hxx xmloff/inc/xmloff/XMLShapeStyleContext.hxx xmloff/source/draw/XMLShapeStyleContext.cxx xmloff/source/draw/sdpropls.hxx xmloff/source/style/PageMasterExportPropMapper.cxx xmloff/source/style/PageMasterImportContext.cxx xmloff/source/style/PageMasterPropHdlFactory.cxx xmloff/source/style/PageMasterStyleMap.cxx xmloff/source/style/prstylei.cxx xmloff/source/text/txtexppr.cxx xmloff/source/text/txtprhdl.cxx xmloff/source/text/txtprmap.cxx xmloff/source/text/txtstyli.cxx Conflicts: svx/source/dialog/hdft.cxx sw/source/core/doc/visiturl.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txtatr2.cxx sw/source/core/unocore/unostyle.cxx Change-Id: I7e8779db6c0cbd1e242b63eab888f468f2de509a
2014-06-02 15:00:50 +00:00
pParent,
rCoreSet,
bEnableSelector,
bEnableDrawingLayerFillStyles);
return VclPtr<CuiAbstractTabDialog_Impl>::Create(pDlg);
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxTransformTabDialog> AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet* pAttr,
const SdrView* pView,
SvxAnchorIds nAnchorTypes )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxTransformTabDialog> pDlg( pParent, pAttr,pView, nAnchorTypes);
return VclPtr<AbstractSvxTransformTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateSchTransformTabDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet* pAttr,
const SdrView* pSdrView,
bool bSizeTabPage
)
{
VclPtrInstance<SvxTransformTabDialog> pDlg( pParent, pAttr,pSdrView, bSizeTabPage ? SvxAnchorIds::NoProtect : SvxAnchorIds::NoProtect|SvxAnchorIds::NoResize);
pDlg->RemoveTabPage( "RID_SVXPAGE_ANGLE" );
pDlg->RemoveTabPage( "RID_SVXPAGE_SLANT" );
return VclPtr<CuiAbstractTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxJSearchOptionsDialog> AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( vcl::Window* pParent,
const SfxItemSet& rOptionsSet,
TransliterationFlags nInitialFlags)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxJSearchOptionsDialog> pDlg( pParent, rOptionsSet, nInitialFlags );
return VclPtr<AbstractSvxJSearchOptionsDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractFmInputRecordNoDialog> AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<FmInputRecordNoDialog> pDlg( nullptr );
return VclPtr<AbstractFmInputRecordNoDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxNewDictionaryDialog> AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( vcl::Window* pParent )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxNewDictionaryDialog> pDlg( pParent );
return VclPtr<AbstractSvxNewDictionaryDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( vcl::Window* pParent,
const OUString& rName )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxEditDictionaryDialog> pDlg( pParent, rName );
return VclPtr<CuiVclAbstractDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxNameDialog> AbstractDialogFactory_Impl::CreateSvxNameDialog( vcl::Window* pParent,
const OUString& rName, const OUString& rDesc )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxNameDialog> pDlg( pParent, rName, rDesc );
return VclPtr<AbstractSvxNameDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxObjectNameDialog> AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(const OUString& rName )
2009-10-31 00:36:06 +01:00
{
return VclPtr<AbstractSvxObjectNameDialog_Impl>::Create(VclPtr<SvxObjectNameDialog>::Create(nullptr, rName));
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxObjectTitleDescDialog> AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(const OUString& rTitle, const OUString& rDescription)
2009-10-31 00:36:06 +01:00
{
return VclPtr<AbstractSvxObjectTitleDescDialog_Impl>::Create(VclPtr<SvxObjectTitleDescDialog>::Create(nullptr, rTitle, rDescription));
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxMultiPathDialog> AbstractDialogFactory_Impl::CreateSvxMultiPathDialog(vcl::Window* pParent)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxMultiPathDialog> pDlg(pParent);
return VclPtr<AbstractSvxMultiPathDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxMultiPathDialog> AbstractDialogFactory_Impl::CreateSvxPathSelectDialog(vcl::Window* pParent)
{
VclPtrInstance<SvxPathSelectDialog> pDlg(pParent);
return VclPtr<AbstractSvxPathSelectDialog_Impl>::Create( pDlg );
}
VclPtr<AbstractSvxHpLinkDlg> AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (vcl::Window* pParent,
SfxBindings* pBindings)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxHpLinkDlg> pDlg( pParent, pBindings );
return VclPtr<AbstractSvxHpLinkDlg_Impl>::Create(pDlg);
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractFmSearchDialog> AbstractDialogFactory_Impl::CreateFmSearchDialog(vcl::Window* pParent,
const OUString& strInitialText,
const std::vector< OUString >& _rContexts,
2009-10-31 00:36:06 +01:00
sal_Int16 nInitialContext,
const Link<FmSearchContext&,sal_uInt32>& lnkContextSupplier)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<FmSearchDialog> pDlg( pParent, strInitialText, _rContexts,
nInitialContext, lnkContextSupplier );
return VclPtr<AbstractFmSearchDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractGraphicFilterDialog> AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (vcl::Window* pParent,
const Graphic& rGraphic)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<GraphicFilterEmboss> pDlg( pParent, rGraphic, RectPoint::MM );
return VclPtr<AbstractGraphicFilterDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractGraphicFilterDialog> AbstractDialogFactory_Impl::CreateGraphicFilterPoster(vcl::Window* pParent,
const Graphic& rGraphic)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<GraphicFilterPoster> pDlg( pParent, rGraphic, 16 );
return VclPtr<AbstractGraphicFilterDialog_Impl>::Create( pDlg );
}
2009-10-31 00:36:06 +01:00
VclPtr<AbstractGraphicFilterDialog> AbstractDialogFactory_Impl::CreateGraphicFilterSepia (vcl::Window* pParent,
const Graphic& rGraphic)
{
VclPtrInstance<GraphicFilterSepia> pDlg( pParent, rGraphic, 10 );
return VclPtr<AbstractGraphicFilterDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractGraphicFilterDialog> AbstractDialogFactory_Impl::CreateGraphicFilterSmooth(vcl::Window* pParent,
const Graphic& rGraphic, double nRadius)
{
VclPtrInstance<GraphicFilterSmooth> pDlg( pParent, rGraphic, nRadius );
return VclPtr<AbstractGraphicFilterDialog_Impl>::Create( pDlg );
}
VclPtr<AbstractGraphicFilterDialog> AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (vcl::Window* pParent,
const Graphic& rGraphic)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<GraphicFilterSolarize> pDlg( pParent, rGraphic, 128, false/*bInvert*/ );
return VclPtr<AbstractGraphicFilterDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractGraphicFilterDialog> AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (vcl::Window* pParent,
const Graphic& rGraphic)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<GraphicFilterMosaic> pDlg(pParent, rGraphic, 4, 4, false/*bEnhanceEdges*/);
return VclPtr<AbstractGraphicFilterDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxAreaTabDialog> AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet* pAttr,
SdrModel* pModel,
Merge back branch alg_writerframes to trunk (cherry picked from commit b635b4fa4e42053d30ab639643d2236a20243f62) Conflicts: comphelper/inc/comphelper/TypeGeneration.hxx comphelper/source/property/TypeGeneration.cxx cui/source/factory/dlgfact.hxx cui/source/inc/cuitabarea.hxx cui/source/tabpages/tabarea.cxx cui/source/tabpages/tabarea.hrc cui/source/tabpages/tabarea.src cui/source/tabpages/tparea.cxx drawinglayer/source/primitive2d/polypolygonprimitive2d.cxx drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx drawinglayer/source/texture/texture.cxx editeng/inc/editeng/unotext.hxx editeng/source/items/frmitems.cxx include/drawinglayer/texture/texture.hxx include/editeng/brushitem.hxx include/svx/sdr/primitive2d/sdrdecompositiontools.hxx include/svx/svxids.hrc include/xmloff/xmltypes.hxx reportdesign/source/ui/misc/UITools.cxx sc/source/ui/drawfunc/drawsh.cxx sfx2/source/dialog/tabdlg.cxx svl/source/undo/undo.cxx svx/inc/svx/unoshprp.hxx sw/Library_sw.mk sw/inc/doc.hxx sw/inc/format.hxx sw/inc/frmfmt.hxx sw/inc/swatrset.hxx sw/inc/unomap.hxx sw/inc/unoprnms.hxx sw/source/core/access/accpara.cxx sw/source/core/attr/format.cxx sw/source/core/attr/swatrset.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfly.cxx sw/source/core/doc/notxtfrm.cxx sw/source/core/inc/frame.hxx sw/source/core/inc/frmtool.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/text/inftxt.cxx sw/source/core/text/porfld.cxx sw/source/core/text/txtfly.cxx sw/source/core/txtnode/fntcache.cxx sw/source/core/uibase/app/docst.cxx sw/source/core/uibase/app/docstyle.cxx sw/source/core/uibase/shells/drawdlg.cxx sw/source/core/uibase/shells/frmsh.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unomap.cxx sw/source/core/unocore/unoprnms.cxx sw/source/core/unocore/unostyle.cxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/fmtui/tmpdlg.src sw/source/ui/frmdlg/frmdlg.cxx sw/source/ui/frmdlg/frmpage.src sw/source/ui/inc/frmsh.hxx xmloff/source/text/txtprhdl.cxx xmloff/source/text/txtprmap.cxx Change-Id: Id3ffaa83bb5594d287f1ac8f2c1c9cf55c70946d
2014-03-19 16:17:02 +00:00
bool bShadow)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxAreaTabDialog> pDlg( pParent, pAttr, pModel, bShadow );
return VclPtr<AbstractSvxAreaTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateSvxLineTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog
2009-10-31 00:36:06 +01:00
SdrModel* pModel,
const SdrObject* pObj ,
bool bHasObj)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxLineTabDialog> pDlg( pParent, pAttr, pModel,pObj,bHasObj );
return VclPtr<CuiAbstractTabDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractDialog> AbstractDialogFactory_Impl::CreateSfxDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet& rAttr,
const Reference< XFrame >& _rxDocumentFrame,
sal_uInt32 nResId
)
{
SfxModalDialog* pDlg=nullptr;
2009-10-31 00:36:06 +01:00
switch ( nResId )
{
case SID_EVENTCONFIG :
pDlg = VclPtr<SfxMacroAssignDlg>::Create( pParent, _rxDocumentFrame, rAttr );
2009-10-31 00:36:06 +01:00
break;
case RID_SVXDLG_CHARMAP :
pDlg = VclPtr<SvxCharacterMap>::Create( pParent, true, &rAttr );
2009-10-31 00:36:06 +01:00
break;
default:
break;
}
if ( pDlg )
return VclPtr<CuiAbstractSfxDialog_Impl>::Create( pDlg );
return nullptr;
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractDialog> AbstractDialogFactory_Impl::CreateSfxDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet& rAttr,
const SdrView* pView,
sal_uInt32 nResId
)
{
SfxSingleTabDialog* pDlg=nullptr;
2009-10-31 00:36:06 +01:00
switch ( nResId )
{
case RID_SVXPAGE_MEASURE :
pDlg = VclPtr<SvxMeasureDialog>::Create( pParent, rAttr, pView );
2009-10-31 00:36:06 +01:00
break;
case RID_SVXPAGE_CONNECTION :
pDlg = VclPtr<SvxConnectionDialog>::Create( pParent, rAttr, pView );
2009-10-31 00:36:06 +01:00
break;
case RID_SFXPAGE_DBREGISTER :
pDlg = VclPtr<DatabaseRegistrationDialog>::Create( pParent, rAttr );
2009-10-31 00:36:06 +01:00
break;
default:
break;
}
if ( pDlg )
return VclPtr<CuiAbstractSfxDialog_Impl>::Create( pDlg );
return nullptr;
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractSvxPostItDialog> AbstractDialogFactory_Impl::CreateSvxPostItDialog( vcl::Window* pParent,
2009-10-31 00:36:06 +01:00
const SfxItemSet& rCoreSet,
bool bPrevNext )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvxPostItDialog> pDlg( pParent, rCoreSet, bPrevNext );
return VclPtr<AbstractSvxPostItDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
class SvxMacroAssignDialog : public VclAbstractDialog
{
public:
SvxMacroAssignDialog( vcl::Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
2009-10-31 00:36:06 +01:00
const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
:m_aItems( SfxGetpApp()->GetPool(), SID_ATTR_MACROITEM, SID_ATTR_MACROITEM )
2009-10-31 00:36:06 +01:00
{
m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) );
m_pDialog.reset( VclPtr<SvxMacroAssignDlg>::Create( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) );
2009-10-31 00:36:06 +01:00
}
virtual short Execute() override;
virtual ~SvxMacroAssignDialog() override;
virtual void dispose() override;
2009-10-31 00:36:06 +01:00
private:
SfxItemSet m_aItems;
VclPtr<SvxMacroAssignDlg > m_pDialog;
2009-10-31 00:36:06 +01:00
};
short SvxMacroAssignDialog::Execute()
{
return m_pDialog->Execute();
}
SvxMacroAssignDialog::~SvxMacroAssignDialog()
{
disposeOnce();
}
void SvxMacroAssignDialog::dispose()
{
m_pDialog.clear();
VclAbstractDialog::dispose();
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
vcl::Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
2009-10-31 00:36:06 +01:00
const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
{
return VclPtr<SvxMacroAssignDialog>::Create( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent );
2009-10-31 00:36:06 +01:00
}
// Factories for TabPages
CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
2009-10-31 00:36:06 +01:00
{
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;
2009-10-31 00:36:06 +01:00
}
DialogGetRanges AbstractDialogFactory_Impl::GetDialogGetRangesFunc()
2009-10-31 00:36:06 +01:00
{
return SvxPostItDialog::GetRanges;
2009-10-31 00:36:06 +01:00
}
GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
2009-10-31 00:36:06 +01:00
{
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;
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractInsertObjectDialog> AbstractDialogFactory_Impl::CreateInsertObjectDialog( vcl::Window* pParent, const OUString& rCommand,
const Reference < css::embed::XStorage >& xStor,
2009-10-31 00:36:06 +01:00
const SvObjectServerList* pList )
{
InsertObjectDialog_Impl* pDlg=nullptr;
if ( rCommand == ".uno:InsertObject" )
pDlg = VclPtr<SvInsertOleDlg>::Create( pParent, xStor, pList );
else if ( rCommand == ".uno:InsertObjectFloatingFrame" )
pDlg = VclPtr<SfxInsertFloatingFrameDialog>::Create( pParent, xStor );
2009-10-31 00:36:06 +01:00
if ( pDlg )
{
pDlg->SetHelpId( OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) );
return VclPtr<AbstractInsertObjectDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
return nullptr;
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateEditObjectDialog( const OUString& rCommand,
const Reference < css::embed::XEmbeddedObject >& xObj )
2009-10-31 00:36:06 +01:00
{
if ( rCommand == ".uno:InsertObjectFloatingFrame" )
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SfxInsertFloatingFrameDialog> pDlg( nullptr, xObj );
pDlg->SetHelpId( OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) );
return VclPtr<CuiVclAbstractDialog_Impl>::Create( pDlg );
2009-10-31 00:36:06 +01:00
}
return nullptr;
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractPasteDialog> AbstractDialogFactory_Impl::CreatePasteDialog( vcl::Window* pParent )
2009-10-31 00:36:06 +01:00
{
return VclPtr<AbstractPasteDialog_Impl>::Create( VclPtr<SvPasteObjectDialog>::Create( pParent ) );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractLinksDialog> AbstractDialogFactory_Impl::CreateLinksDialog( vcl::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML, sfx2::SvBaseLink* p)
2009-10-31 00:36:06 +01:00
{
VclPtrInstance<SvBaseLinksDlg> pLinkDlg( pParent, pMgr, bHTML );
2009-10-31 00:36:06 +01:00
if ( p )
pLinkDlg->SetActLink(p);
return VclPtr<AbstractLinksDialog_Impl>::Create( pLinkDlg );
2009-10-31 00:36:06 +01:00
}
VclPtr<SfxAbstractTabDialog> AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* /*pObj*/ )
2009-10-31 00:36:06 +01:00
{
return VclPtr<CuiAbstractTabDialog_Impl>::Create( VclPtr<SvxFormatCellsDialog>::Create( nullptr, pAttr, pModel ) );
2009-10-31 00:36:06 +01:00
}
VclPtr<SvxAbstractSplittTableDialog> AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( vcl::Window* pParent, bool bIsTableVertical, long nMaxVertical )
2009-10-31 00:36:06 +01:00
{
return VclPtr<SvxSplitTableDlg>::Create( pParent, bIsTableVertical, nMaxVertical, 99 );
2009-10-31 00:36:06 +01:00
}
VclPtr<SvxAbstractNewTableDialog> AbstractDialogFactory_Impl::CreateSvxNewTableDialog()
2009-10-31 00:36:06 +01:00
{
return VclPtr<SvxNewTableDialog>::Create();
2009-10-31 00:36:06 +01:00
}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateOptionsDialog(
vcl::Window* pParent, const OUString& rExtensionId )
2009-10-31 00:36:06 +01:00
{
return VclPtr<CuiVclAbstractDialog_Impl>::Create( VclPtr<OfaTreeOptionsDialog>::Create( pParent, rExtensionId ) );
2009-10-31 00:36:06 +01:00
}
VclPtr<SvxAbstractInsRowColDlg> AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( vcl::Window* pParent, bool bCol, const OString& sHelpId )
2009-10-31 00:36:06 +01:00
{
return VclPtr<SvxInsRowColDlg>::Create( pParent, bCol, sHelpId );
2009-10-31 00:36:06 +01:00
}
VclPtr<AbstractPasswordToOpenModifyDialog> AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog(
vcl::Window * pParent,
sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify )
2010-03-03 16:36:43 +01:00
{
VclPtrInstance<PasswordToOpenModifyDialog> pDlg( pParent, 0, nMaxPasswdLen, bIsPasswordToModify );
return VclPtr<AbstractPasswordToOpenModifyDialog_Impl>::Create( pDlg );
2010-03-03 16:36:43 +01:00
}
VclPtr<AbstractScreenshotAnnotationDlg> AbstractDialogFactory_Impl::CreateScreenshotAnnotationDlg(
vcl::Window * pParent,
Dialog& rParentDialog)
{
VclPtrInstance<ScreenshotAnnotationDlg> pDlg(pParent, rParentDialog);
return VclPtr<AbstractScreenshotAnnotationDlg_Impl>::Create(pDlg);
}
2010-03-24 14:27:53 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */