CWS-TOOLING: integrate CWS dba33i
This commit is contained in:
3
sd/inc/FactoryIds.hxx
Normal file → Executable file
3
sd/inc/FactoryIds.hxx
Normal file → Executable file
@@ -42,8 +42,7 @@ enum ViewShellFactoryIds
|
||||
DRAW_FACTORY_ID = 1,
|
||||
SLIDE_SORTER_FACTORY_ID = 2,
|
||||
OUTLINE_FACTORY_ID = 3,
|
||||
PRESENTATION_FACTORY_ID = 4,
|
||||
PREVIEW_FACTORY_ID = 5
|
||||
PRESENTATION_FACTORY_ID = 4
|
||||
};
|
||||
|
||||
} // end of namespace sd
|
||||
|
@@ -86,10 +86,6 @@ String RID_APPTITLE
|
||||
{
|
||||
Text = "StarImpress 4.0" ;
|
||||
};
|
||||
String STR_DEFAULTVIEW
|
||||
{
|
||||
Text [ en-US ] = "Default" ;
|
||||
};
|
||||
String STR_NULL
|
||||
{
|
||||
Text [ en-US ] = "None" ;
|
||||
|
@@ -37,6 +37,9 @@
|
||||
#include "strings.hrc"
|
||||
#include "sdresid.hxx"
|
||||
|
||||
#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
|
||||
#include <com/sun/star/drawing/framework/ResourceActivationMode.hpp>
|
||||
|
||||
#include <sfx2/app.hxx>
|
||||
#include <sfx2/dockwin.hxx>
|
||||
#include <sfx2/bindings.hxx>
|
||||
@@ -47,6 +50,9 @@ namespace sd {
|
||||
|
||||
using ::com::sun::star::uno::Reference;
|
||||
using ::com::sun::star::drawing::framework::XResourceId;
|
||||
using ::com::sun::star::drawing::framework::XConfigurationController;
|
||||
using ::com::sun::star::drawing::framework::ResourceActivationMode_ADD;
|
||||
using ::com::sun::star::drawing::framework::ResourceActivationMode_REPLACE;
|
||||
|
||||
SFX_IMPL_DOCKINGWINDOW(LeftPaneImpressChildWindow, SID_LEFT_PANE_IMPRESS)
|
||||
SFX_IMPL_DOCKINGWINDOW(LeftPaneDrawChildWindow, SID_LEFT_PANE_DRAW)
|
||||
@@ -151,6 +157,26 @@ ToolPanelChildWindow::ToolPanelChildWindow( ::Window* i_pParentWindow, USHORT i_
|
||||
:PaneChildWindow( i_pParentWindow, i_nId, i_pBindings, i_pChildWindowInfo,
|
||||
FLT_TOOL_PANEL_DOCKING_WINDOW, STR_RIGHT_PANE_TITLE, SFX_ALIGN_RIGHT )
|
||||
{
|
||||
// just in case this window has been created by SFX, instead our resource framework: Ensure that the resource framework
|
||||
// activates the task pane, so it is really filled with content (in opposite to the other SFX applications, the
|
||||
// child window registered for SID_TASKPANE is not responsible for its content, but here in SD, it's the ToolPanelViewShell
|
||||
// which has this responsibility. And this view shell is created implicitly via the resource framework.)
|
||||
// #i113788# / 2010-09-03 / frank.schoenheit@oracle.com
|
||||
SfxDockingWindow* pDockingWindow = dynamic_cast< SfxDockingWindow* >( GetWindow() );
|
||||
ViewShellBase* pViewShellBase = ViewShellBase::GetViewShellBase( pDockingWindow->GetBindings().GetDispatcher()->GetFrame() );
|
||||
ENSURE_OR_RETURN_VOID( pViewShellBase != NULL, "ToolPanelChildWindow::ToolPanelChildWindow: no view shell access!" );
|
||||
|
||||
const ::boost::shared_ptr< framework::FrameworkHelper > pFrameworkHelper( framework::FrameworkHelper::Instance( *pViewShellBase ) );
|
||||
ENSURE_OR_RETURN_VOID( pFrameworkHelper.get(), "ToolPanelChildWindow::ToolPanelChildWindow: no framework helper for the view shell!" );
|
||||
Reference<XConfigurationController> xConfigController( pFrameworkHelper->GetConfigurationController() );
|
||||
ENSURE_OR_RETURN_VOID( xConfigController.is(), "ToolPanelChildWindow::ToolPanelChildWindow: no config controller!" );
|
||||
xConfigController->requestResourceActivation(
|
||||
framework::FrameworkHelper::CreateResourceId( framework::FrameworkHelper::msRightPaneURL ),
|
||||
ResourceActivationMode_ADD );
|
||||
xConfigController->requestResourceActivation(
|
||||
framework::FrameworkHelper::CreateResourceId( framework::FrameworkHelper::msTaskPaneURL, framework::FrameworkHelper::msRightPaneURL ),
|
||||
ResourceActivationMode_REPLACE
|
||||
);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
@@ -28,7 +28,6 @@
|
||||
#ifndef _SD_CFGID_HXX
|
||||
#include "cfgids.hxx"
|
||||
#endif
|
||||
#define STR_DEFAULTVIEW (RID_APP_START)
|
||||
#define STR_NULL (RID_APP_START+3)
|
||||
#define STR_INSERTPAGE (RID_APP_START+35)
|
||||
#define STR_INSERTLAYER (RID_APP_START+37)
|
||||
|
@@ -62,7 +62,7 @@ SfxViewShell* __EXPORT GraphicViewShellBase::CreateInstance (
|
||||
void GraphicViewShellBase::RegisterFactory( USHORT nPrio )
|
||||
{
|
||||
pFactory = new SfxViewFactory(
|
||||
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
||||
&CreateInstance,&InitFactory,nPrio,"Default");
|
||||
InitFactory();
|
||||
}
|
||||
void GraphicViewShellBase::InitFactory()
|
||||
|
2
sd/source/ui/view/ImpressViewShellBase.cxx
Normal file → Executable file
2
sd/source/ui/view/ImpressViewShellBase.cxx
Normal file → Executable file
@@ -62,7 +62,7 @@ SfxViewShell* __EXPORT ImpressViewShellBase::CreateInstance (
|
||||
void ImpressViewShellBase::RegisterFactory( USHORT nPrio )
|
||||
{
|
||||
pFactory = new SfxViewFactory(
|
||||
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
||||
&CreateInstance,&InitFactory,nPrio,"Default");
|
||||
InitFactory();
|
||||
}
|
||||
void ImpressViewShellBase::InitFactory()
|
||||
|
2
sd/source/ui/view/OutlineViewShellBase.cxx
Normal file → Executable file
2
sd/source/ui/view/OutlineViewShellBase.cxx
Normal file → Executable file
@@ -60,7 +60,7 @@ SfxViewShell* __EXPORT OutlineViewShellBase::CreateInstance (
|
||||
void OutlineViewShellBase::RegisterFactory( USHORT nPrio )
|
||||
{
|
||||
pFactory = new SfxViewFactory(
|
||||
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
||||
&CreateInstance,&InitFactory,nPrio,"Outline");
|
||||
InitFactory();
|
||||
}
|
||||
void OutlineViewShellBase::InitFactory()
|
||||
|
2
sd/source/ui/view/PresentationViewShellBase.cxx
Normal file → Executable file
2
sd/source/ui/view/PresentationViewShellBase.cxx
Normal file → Executable file
@@ -70,7 +70,7 @@ SfxViewShell* __EXPORT PresentationViewShellBase::CreateInstance (
|
||||
void PresentationViewShellBase::RegisterFactory( USHORT nPrio )
|
||||
{
|
||||
pFactory = new SfxViewFactory(
|
||||
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
||||
&CreateInstance,&InitFactory,nPrio,"FullScreenPresentation");
|
||||
InitFactory();
|
||||
}
|
||||
void PresentationViewShellBase::InitFactory()
|
||||
|
2
sd/source/ui/view/SlideSorterViewShellBase.cxx
Normal file → Executable file
2
sd/source/ui/view/SlideSorterViewShellBase.cxx
Normal file → Executable file
@@ -64,7 +64,7 @@ SfxViewShell* __EXPORT SlideSorterViewShellBase::CreateInstance (
|
||||
void SlideSorterViewShellBase::RegisterFactory( USHORT nPrio )
|
||||
{
|
||||
pFactory = new SfxViewFactory(
|
||||
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
||||
&CreateInstance,&InitFactory,nPrio,"SlideSorter");
|
||||
InitFactory();
|
||||
}
|
||||
|
||||
|
@@ -258,7 +258,7 @@ SfxViewShell* __EXPORT ViewShellBase::CreateInstance (
|
||||
void ViewShellBase::RegisterFactory( USHORT nPrio )
|
||||
{
|
||||
pFactory = new SfxViewFactory(
|
||||
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
||||
&CreateInstance,&InitFactory,nPrio,"Default");
|
||||
InitFactory();
|
||||
}
|
||||
void ViewShellBase::InitFactory()
|
||||
|
Reference in New Issue
Block a user