SetLineNumberDisplay appropriately when opening or swithin modules
This commit is contained in:
@@ -1143,6 +1143,7 @@ void BasicIDEShell::SetCurWindow( IDEBaseWindow* pNewWin, sal_Bool bUpdateTabBar
|
|||||||
AdjustPosSizePixel( Point( 0, 0 ), GetViewFrame()->GetWindow().GetOutputSizePixel() );
|
AdjustPosSizePixel( Point( 0, 0 ), GetViewFrame()->GetWindow().GetOutputSizePixel() );
|
||||||
if( pCurWin->IsA( TYPE( ModulWindow ) ) )
|
if( pCurWin->IsA( TYPE( ModulWindow ) ) )
|
||||||
{
|
{
|
||||||
|
dynamic_cast<ModulWindow*>(pCurWin)->SetLineNumberDisplay(SourceLinesDisplayed());
|
||||||
GetViewFrame()->GetWindow().SetHelpId( HID_BASICIDE_MODULWINDOW );
|
GetViewFrame()->GetWindow().SetHelpId( HID_BASICIDE_MODULWINDOW );
|
||||||
pModulLayout->SetModulWindow( (ModulWindow*)pCurWin );
|
pModulLayout->SetModulWindow( (ModulWindow*)pCurWin );
|
||||||
pModulLayout->Show();
|
pModulLayout->Show();
|
||||||
|
@@ -54,6 +54,7 @@
|
|||||||
#include <tools/diagnose_ex.h>
|
#include <tools/diagnose_ex.h>
|
||||||
#include <basidesh.hrc>
|
#include <basidesh.hrc>
|
||||||
#include <basidesh.hxx>
|
#include <basidesh.hxx>
|
||||||
|
#include <baside2.hxx>
|
||||||
#include <basdoc.hxx>
|
#include <basdoc.hxx>
|
||||||
#include <basobj.hxx>
|
#include <basobj.hxx>
|
||||||
#include <bastypes.hxx>
|
#include <bastypes.hxx>
|
||||||
@@ -288,11 +289,19 @@ BasicIDEShell::~BasicIDEShell()
|
|||||||
|
|
||||||
void BasicIDEShell::onDocumentCreated( const ScriptDocument& /*_rDocument*/ )
|
void BasicIDEShell::onDocumentCreated( const ScriptDocument& /*_rDocument*/ )
|
||||||
{
|
{
|
||||||
|
if(pCurWin && pCurWin->IsA( TYPE(ModulWindow)))
|
||||||
|
{
|
||||||
|
dynamic_cast<ModulWindow*>(pCurWin)->SetLineNumberDisplay(SourceLinesDisplayed());
|
||||||
|
}
|
||||||
UpdateWindows();
|
UpdateWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BasicIDEShell::onDocumentOpened( const ScriptDocument& /*_rDocument*/ )
|
void BasicIDEShell::onDocumentOpened( const ScriptDocument& /*_rDocument*/ )
|
||||||
{
|
{
|
||||||
|
if(pCurWin && pCurWin->IsA( TYPE(ModulWindow)))
|
||||||
|
{
|
||||||
|
dynamic_cast<ModulWindow*>(pCurWin)->SetLineNumberDisplay(SourceLinesDisplayed());
|
||||||
|
}
|
||||||
UpdateWindows();
|
UpdateWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user