Kaydet (Commit) bf481282 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS dba20 (1.14.152); FILE MERGED

2004/11/29 11:28:12 oj 1.14.152.2: RESYNC: (1.14-1.17); FILE MERGED
2004/11/25 12:12:52 fs 1.14.152.1: i37308# CreateSubToolbox now relying on FormToolboxes
üst b8772c52
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: tbxform.cxx,v $ * $RCSfile: tbxform.cxx,v $
* *
* $Revision: 1.17 $ * $Revision: 1.18 $
* *
* last change: $Author: obo $ $Date: 2004-11-17 18:08:33 $ * last change: $Author: obo $ $Date: 2005-01-05 12:22:43 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -87,6 +87,10 @@ ...@@ -87,6 +87,10 @@
#ifndef _SVX_FMITEMS_HXX //autogen #ifndef _SVX_FMITEMS_HXX //autogen
#include "fmitems.hxx" #include "fmitems.hxx"
#endif #endif
#ifndef SVX_SOURCE_INC_FORMTOOLBARS_HXX
#include "formtoolbars.hxx"
#endif
#ifndef _SV_SOUND_HXX //autogen #ifndef _SV_SOUND_HXX //autogen
#include <vcl/sound.hxx> #include <vcl/sound.hxx>
...@@ -132,10 +136,6 @@ ...@@ -132,10 +136,6 @@
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#endif #endif
#ifndef IMPROVEFORMS_SVX_SOURCE_FORM_FORMTOOLBARS_HXX
#include "formtoolbars.hxx"
#endif
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans; using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame; using namespace ::com::sun::star::frame;
...@@ -324,42 +324,8 @@ SfxPopupWindow* SvxFmTbxCtlConfig::CreatePopupWindow() ...@@ -324,42 +324,8 @@ SfxPopupWindow* SvxFmTbxCtlConfig::CreatePopupWindow()
{ {
if ( GetSlotId() == SID_FM_CONFIG ) if ( GetSlotId() == SID_FM_CONFIG )
{ {
::svxform::DocumentType eDocType = ::svxform::eUnknownDocumentType; ::svxform::FormToolboxes aToolboxes( m_xFrame, ::svxform::eUnknownDocumentType );
try createAndPositionSubToolBar( aToolboxes.getToolboxResourceName( SID_FM_CONFIG ) );
{
Reference< XController > xController;
if ( m_xFrame.is() ) xController = m_xFrame->getController();
Reference< XModel > xModel;
if ( xController.is() ) xModel = xController->getModel();
OSL_ENSURE( xModel.is(), "SvxFmTbxCtlConfig::CreatePopupWindow: can't determine the document model!" );
if ( xModel.is() )
eDocType = ::svxform::DocumentClassification::classifyDocument( xModel );
}
catch( const Exception& )
{
OSL_ENSURE( sal_False, "SvxFmTbxCtlConfig::CreatePopupWindow: : caught an exception!" );
}
const sal_Char* pToolbarAsciiName = NULL;
switch ( eDocType )
{
case ::svxform::eDatabaseForm:
pToolbarAsciiName = "databasecontrols";
break;
case ::svxform::eEnhancedForm:
pToolbarAsciiName = "xformcontrols";
break;
default:
pToolbarAsciiName = "formcontrols";
break;
}
::rtl::OUString aToolBarResStr( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/" ) );
aToolBarResStr += ::rtl::OUString::createFromAscii( pToolbarAsciiName );
createAndPositionSubToolBar( aToolBarResStr );
} }
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment