summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basdoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/basdoc.cxx')
-rw-r--r--basctl/source/basicide/basdoc.cxx27
1 files changed, 16 insertions, 11 deletions
diff --git a/basctl/source/basicide/basdoc.cxx b/basctl/source/basicide/basdoc.cxx
index 75f3c6edebfd..67f358c13599 100644
--- a/basctl/source/basicide/basdoc.cxx
+++ b/basctl/source/basicide/basdoc.cxx
@@ -27,22 +27,25 @@
#include "unomodel.hxx"
#include <basdoc.hxx>
-#define BasicDocShell // This CANNOT come before basdoc apparently
+#define basctl_DocShell // This CANNOT come before basdoc apparently
#include <basslots.hxx>
#include <sfx2/sfxmodelfactory.hxx>
#include <svx/svxids.hrc>
-TYPEINIT1(BasicDocShell, SfxObjectShell);
-DBG_NAME(BasicDocShell);
+namespace basctl
+{
+
+TYPEINIT1(DocShell, SfxObjectShell);
+DBG_NAME(DocShell);
-SFX_IMPL_OBJECTFACTORY( BasicDocShell, SvGlobalName(), SFXOBJECTSHELL_STD_NORMAL, "sbasic" )
+SFX_IMPL_OBJECTFACTORY( DocShell, SvGlobalName(), SFXOBJECTSHELL_STD_NORMAL, "sbasic" )
-SFX_IMPL_INTERFACE( BasicDocShell, SfxObjectShell, IDEResId( 0 ) )
+SFX_IMPL_INTERFACE( basctl_DocShell, SfxObjectShell, IDEResId( 0 ) )
{
SFX_STATUSBAR_REGISTRATION( IDEResId( SID_BASICIDE_STATUSBAR ) );
}
-BasicDocShell::BasicDocShell()
+DocShell::DocShell()
:SfxObjectShell( SFXMODEL_DISABLE_EMBEDDED_SCRIPTS | SFXMODEL_DISABLE_DOCUMENT_RECOVERY )
{
pPrinter = 0;
@@ -50,12 +53,12 @@ BasicDocShell::BasicDocShell()
SetBaseModel( new SIDEModel(this) );
}
-BasicDocShell::~BasicDocShell()
+DocShell::~DocShell()
{
delete pPrinter;
}
-SfxPrinter* BasicDocShell::GetPrinter( bool bCreate )
+SfxPrinter* DocShell::GetPrinter( bool bCreate )
{
if ( !pPrinter && bCreate )
pPrinter = new SfxPrinter( new SfxItemSet( GetPool(), SID_PRINTER_NOTFOUND_WARN , SID_PRINTER_NOTFOUND_WARN ) );
@@ -63,7 +66,7 @@ SfxPrinter* BasicDocShell::GetPrinter( bool bCreate )
return pPrinter;
}
-void BasicDocShell::SetPrinter( SfxPrinter* pPr )
+void DocShell::SetPrinter( SfxPrinter* pPr )
{
if ( pPr != pPrinter )
{
@@ -72,13 +75,15 @@ void BasicDocShell::SetPrinter( SfxPrinter* pPr )
}
}
-void BasicDocShell::FillClass( SvGlobalName*, sal_uInt32*, String*, String*, String*, sal_Int32, sal_Bool bTemplate) const
+void DocShell::FillClass( SvGlobalName*, sal_uInt32*, String*, String*, String*, sal_Int32, sal_Bool bTemplate) const
{
(void)bTemplate;
DBG_ASSERT( !bTemplate, "No template for Basic" );
}
-void BasicDocShell::Draw( OutputDevice *, const JobSetup &, sal_uInt16 )
+void DocShell::Draw( OutputDevice *, const JobSetup &, sal_uInt16 )
{}
+} // namespace basctl
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */