diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-07-06 12:11:22 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-07-06 12:11:22 +0000 |
commit | d87b9e432d29e07aa2a793338fd933dc6b6f6bcf (patch) | |
tree | 349b2c03f120b90107861e7a340a8edf864a6c7f /svx/source/dialog/dlgfact.cxx | |
parent | 66048e0edfc7d4ed2ee40f3735a2db3c5a13cdfa (diff) |
INTEGRATION: CWS docking1 (1.6.4); FILE MERGED
2004/07/01 09:50:08 dfoster 1.6.4.6: #i30032#
2004/06/29 14:19:49 dfoster 1.6.4.5: #i30032#
2004/06/29 12:58:40 dfoster 1.6.4.4: #i30050#
Removed unnecessary arg.
2004/06/09 16:42:49 dfoster 1.6.4.3: #i30032#
Also fixed problem creating Macro Organizer dialogs
2004/05/29 21:05:53 cd 1.6.4.2: RESYNC: (1.6-1.8); FILE MERGED
2004/05/26 15:18:37 toconnor 1.6.4.1: #i20055# #i20069# initial commit of toolbar and menu customize tabs
Diffstat (limited to 'svx/source/dialog/dlgfact.cxx')
-rw-r--r-- | svx/source/dialog/dlgfact.cxx | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/svx/source/dialog/dlgfact.cxx b/svx/source/dialog/dlgfact.cxx index 9ad880732d8e..3e1cfdf28483 100644 --- a/svx/source/dialog/dlgfact.cxx +++ b/svx/source/dialog/dlgfact.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dlgfact.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: hjs $ $Date: 2004-06-28 14:03:36 $ + * last change: $Author: obo $ $Date: 2004-07-06 13:11:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -113,6 +113,7 @@ #include "measure.hxx" //add for SvxMeasureDialog #include "connect.hxx" //add for SvxConnectionDialog #include "cuioptgenrl.hxx" //add for SvxGeneralTabPage +#include "cfg.hxx" //add for SvxConfigDialog #define ITEMID_TABSTOP 0 //add for #include "tabstpge.hxx" #include "numpages.hxx" // add for #include "paragrph.hxx" //add for @@ -128,7 +129,9 @@ #include "grfpage.hxx" //add for SvxGrfCropPage #include "scriptdlg.hxx" // for ScriptOrgDialog #include "selector.hxx" // for SvxScriptSelectorDialog +#include "macropg.hxx" // for SvxMacroAssignDlg +#define OSL_TRACE osl_trace using namespace svx; // AbstractTabDialog implementations just forwards everything to the dialog IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl) @@ -928,6 +931,9 @@ SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( const ResId& case RID_OFA_AUTOCORR_DLG : pDlg = new OfaAutoCorrDlg( pParent, pAttrSet ); break; + case RID_SVXDLG_CUSTOMIZE : + pDlg = new SvxConfigDialog( pParent, pAttrSet, pViewFrame ); + break; default: break; } @@ -1143,28 +1149,19 @@ void AbstractScriptSelectorDialog_Impl::SetRunLabel() } VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window* pParent, //add for SvxScriptOrgDialog - const String& rLanguage, - const ResId& rResId ) + const String& rLanguage) { OSL_TRACE("in ADF_Impl::CreateSvxScriptOrgDialog"); Dialog* pDlg=NULL; rtl::OUString aResName; ResMgr* pBasResMgr = NULL; - switch ( rResId.GetId() ) - { - case RID_DLG_SCRIPTORGANIZER : - OSL_TRACE("creating dialog"); - aResName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "basctl" )); - aResName += rtl::OUString::valueOf( sal_Int32( SUPD )); + OSL_TRACE("creating dialog"); + aResName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "basctl" )); + aResName += rtl::OUString::valueOf( sal_Int32( SUPD )); - pBasResMgr = ResMgr::CreateResMgr( rtl::OUStringToOString( aResName, RTL_TEXTENCODING_ASCII_US )); + pBasResMgr = ResMgr::CreateResMgr( rtl::OUStringToOString( aResName, RTL_TEXTENCODING_ASCII_US )); - pDlg = new SvxScriptOrgDialog( pParent, pBasResMgr, rLanguage); - break; - default: - OSL_TRACE("not creating dialog"); - break; - } + pDlg = new SvxScriptOrgDialog( pParent, pBasResMgr, rLanguage); if ( pDlg ) return new VclAbstractDialog_Impl( pDlg ); @@ -1835,6 +1832,18 @@ AbstractSvxPostItDialog* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Wind } //CHINA001 SvxPostItDialog end +VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg( Window* pParent, SfxItemSet& rSet, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > xNameReplace, sal_uInt16 nSelectedIndex ) +{ + OSL_TRACE("in ADF_Impl::CreateSvxMacroAssignDlg"); + Dialog* pDlg=NULL; + + pDlg = new SvxMacroAssignDlg( pParent, rSet, xNameReplace, nSelectedIndex ); + + if ( pDlg ) + return new VclAbstractDialog_Impl( pDlg ); + return 0; +} + //STRIP001 AbstractSvxSpellCheckDialog * AbstractDialogFactory_Impl::CreateSvxSpellCheckDialog( Window* pParent, //add for SvxSpellCheckDialog //STRIP001 ::com::sun::star::uno::Reference< //STRIP001 ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker, |