dba33i: #i111146# migrated all SFX-based applications to use named views
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" ;
|
||||
|
@@ -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