diff options
author | npower Developer <npower@openoffice.org> | 2010-03-03 16:12:54 +0000 |
---|---|---|
committer | npower Developer <npower@openoffice.org> | 2010-03-03 16:12:54 +0000 |
commit | b38c23a63a189072a6275bb791fcfa55edfdc2fd (patch) | |
tree | d5771e8896e37efef840c7c765f10747c1b571f8 /basctl/source/basicide/basides2.cxx | |
parent | b4cfc7121b263041c586fe3c3ed894f3a5494e7c (diff) |
npower13_objectmodule: clean up IDE changes
Diffstat (limited to 'basctl/source/basicide/basides2.cxx')
-rw-r--r-- | basctl/source/basicide/basides2.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx index 8da483e209d4..c6f6a77a9446 100644 --- a/basctl/source/basicide/basides2.cxx +++ b/basctl/source/basicide/basides2.cxx @@ -301,21 +301,18 @@ ModulWindow* BasicIDEShell::CreateBasWin( const ScriptDocument& rDocument, const } DBG_ASSERT( nKey, "CreateBasWin: Kein Key- Fenster nicht gefunden!" ); } - if( nKey ) + if( nKey && xLib.is() && rDocument.isInVBAMode() ) { - if( xLib.is() ) + // display a nice friendly name in the ObjectModule tab, + // combining the objectname and module name, e.g. Sheet1 ( Financials ) + String sObjName; + lcl_getObjectName( xLib, rModName, sObjName ); + if( sObjName.Len() ) { - // display a nice friendly name in the ObjectModule tab, - // combining the objectname and module name, e.g. Sheet1 ( Financials ) - String sObjName; - lcl_getObjectName( xLib, rModName, sObjName ); - if( sObjName.Len() ) - { - aModName.AppendAscii(" (").Append(sObjName).AppendAscii(")"); - } + aModName.AppendAscii(" (").Append(sObjName).AppendAscii(")"); } - pTabBar->InsertPage( (USHORT)nKey, aModName ); } + pTabBar->InsertPage( (USHORT)nKey, aModName ); pTabBar->Sort(); pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar ); if ( !pCurWin ) |