summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2010-04-16 17:28:52 +0200
committerDaniel Rentz <dr@openoffice.org>2010-04-16 17:28:52 +0200
commit56a832522bd2b6ff81104dd92864d4ea4c0f8237 (patch)
treef93aabe797fb0c7db857bdbd5ccc56bb948a90d7 /basctl
parent642519a9a80309fe1c9f869779687d809cc2ff32 (diff)
npower13_objectmodules: uppercase UNO constants
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx8
-rw-r--r--basctl/source/basicide/bastype2.cxx10
-rw-r--r--basctl/source/basicide/bastypes.cxx2
3 files changed, 10 insertions, 10 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index a2759aba6..ba33ca5bc 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -1410,7 +1410,7 @@ BasicEntryDescriptor ModulWindow::CreateEntryDescriptor()
{
switch( xModule->GetModuleType() )
{
- case script::ModuleType::Document:
+ case script::ModuleType::DOCUMENT:
{
aLibSubName = String( IDEResId( RID_STR_DOCUMENT_OBJECTS ) );
uno::Reference< container::XNameContainer > xLib = aDocument.getOrCreateLibrary( E_SCRIPTS, aLibName );
@@ -1425,13 +1425,13 @@ BasicEntryDescriptor ModulWindow::CreateEntryDescriptor()
}
break;
}
- case script::ModuleType::Form:
+ case script::ModuleType::FORM:
aLibSubName = String( IDEResId( RID_STR_USERFORMS ) );
break;
- case script::ModuleType::Normal:
+ case script::ModuleType::NORMAL:
aLibSubName = String( IDEResId( RID_STR_NORMAL_MODULES ) );
break;
- case script::ModuleType::Class:
+ case script::ModuleType::CLASS:
aLibSubName = String( IDEResId( RID_STR_CLASS_MODULES ) );
break;
}
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index cfe10715e..e9b0d4570 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -63,7 +63,7 @@ void lcl_getObjectName( const uno::Reference< container::XNameContainer >& rLib,
sal_Int32 lcl_getModuleType( const uno::Reference< container::XNameContainer >& rLib, const String& rModName )
{
- sal_Int32 nType = com::sun::star::script::ModuleType::Normal;
+ sal_Int32 nType = com::sun::star::script::ModuleType::NORMAL;
uno::Reference< script::XVBAModuleInfo > xVBAModuleInfo( rLib, uno::UNO_QUERY );
if ( xVBAModuleInfo.is() && xVBAModuleInfo->hasModuleInfo( rModName ) )
{
@@ -448,16 +448,16 @@ void BasicTreeListBox::ImpCreateLibSubSubEntriesInVBAMode( SvLBoxEntry* pLibSubR
BasicEntryType eType = OBJ_TYPE_UNKNOWN;
switch( lcl_getModuleType( xLib, aModName ) )
{
- case script::ModuleType::Document:
+ case script::ModuleType::DOCUMENT:
eType = OBJ_TYPE_DOCUMENT_OBJECTS;
break;
- case script::ModuleType::Form:
+ case script::ModuleType::FORM:
eType = OBJ_TYPE_USERFORMS;
break;
- case script::ModuleType::Normal:
+ case script::ModuleType::NORMAL:
eType = OBJ_TYPE_NORMAL_MODULES;
break;
- case script::ModuleType::Class:
+ case script::ModuleType::CLASS:
eType = OBJ_TYPE_CLASS_MODULES;
break;
}
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index 37c2e21aa..88586d950 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -599,7 +599,7 @@ void __EXPORT BasicIDETabBar::Command( const CommandEvent& rCEvt )
if( pWin && pWin->ISA( ModulWindow ) )
{
SbModule* pActiveModule = (SbModule*)pBasic->FindModule( pWin->GetName() );
- if( pActiveModule && ( pActiveModule->GetModuleType() == script::ModuleType::Document ) )
+ if( pActiveModule && ( pActiveModule->GetModuleType() == script::ModuleType::DOCUMENT ) )
{
aPopup.EnableItem( SID_BASICIDE_DELETECURRENT, FALSE );
aPopup.EnableItem( SID_BASICIDE_RENAMECURRENT, FALSE );