dba33i: #i111146# migrated all SFX-based applications to use named views

This commit is contained in:
Frank Schoenheit [fs]
2010-09-01 14:59:07 +02:00
parent 85736392ae
commit 28d8a1b195
9 changed files with 7 additions and 13 deletions

3
sd/inc/FactoryIds.hxx Normal file → Executable file
View 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

View File

@@ -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" ;

View File

@@ -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)

View File

@@ -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
View 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
View 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
View 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
View 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();
}

View File

@@ -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()