[Libreoffice-commits] .: Branch 'libreoffice-3-4' - basctl/inc basctl/source

Noel Power noelp at kemper.freedesktop.org
Mon Apr 18 05:10:48 PDT 2011


 basctl/inc/basidesh.hrc             |    1 -
 basctl/source/basicide/baside2.hxx  |    1 -
 basctl/source/basicide/baside2b.cxx |   19 -------------------
 basctl/source/basicide/basidesh.src |    5 -----
 4 files changed, 26 deletions(-)

New commits:
commit 7eba32f0eacd71fbf2561c9f58f52b89cdd0e86f
Author: Christian Dywan <christian at lanedo.com>
Date:   Mon Apr 18 13:06:32 2011 +0100

    fdo#36230 Remove unused AGotoCallButton and associated RID_IMGBTN_GOTOCALL id

diff --git a/basctl/inc/basidesh.hrc b/basctl/inc/basidesh.hrc
index 339749b..0c85ead 100644
--- a/basctl/inc/basidesh.hrc
+++ b/basctl/inc/basidesh.hrc
@@ -53,7 +53,6 @@
 #define RID_PRINTDLG_STRLIST            ( RID_BASICIDE_START + 78 )
 
 #define RID_IMGBTN_REMOVEWATCH          ( RID_BASICIDE_START +  8 )
-#define RID_IMGBTN_GOTOCALL				( RID_BASICIDE_START +  9 )
 #define RID_IMG_INSTALLATION			( RID_BASICIDE_START + 20 )
 #define RID_IMG_DOCUMENT				( RID_BASICIDE_START + 22 )
 #define RID_IMG_MODLIB					( RID_BASICIDE_START + 24 )
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx
index 573d7c6..a41bb3e 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -265,7 +265,6 @@ class StackWindow : public BasicDockingWindow
 {
 private:
     SvTreeListBox	aTreeListBox;
-    ImageButton 	aGotoCallButton;
     String			aStackStr;
 
 protected:
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 2ac4f1c..5597691 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -1497,7 +1497,6 @@ void WatchWindow::UpdateWatches( bool bBasicStopped )
 StackWindow::StackWindow( Window* pParent ) :
     BasicDockingWindow( pParent ),
     aTreeListBox( this, WB_BORDER | WB_3DLOOK | WB_HSCROLL | WB_TABSTOP ),
-    aGotoCallButton( this, IDEResId( RID_IMGBTN_GOTOCALL ) ),
     aStackStr( IDEResId( RID_STR_STACK ) )
 {
        aTreeListBox.SetHelpId(HID_BASICIDE_STACKWINDOW_LIST);
@@ -1512,14 +1511,6 @@ StackWindow::StackWindow( Window* pParent ) :
 
     SetHelpId( HID_BASICIDE_STACKWINDOW );
 
-    aGotoCallButton.SetClickHdl( LINK( this, StackWindow, ButtonHdl ) );
-    aGotoCallButton.SetPosPixel( Point( DWBORDER, 2 ) );
-    Size aSz( aGotoCallButton.GetModeImage().GetSizePixel() );
-    aSz.Width() += 6;
-    aSz.Height() += 6;
-    aGotoCallButton.SetSizePixel( aSz );
-    aGotoCallButton.Hide();
-
     // make stack window keyboard accessible
     GetSystemWindow()->GetTaskPaneList()->AddWindow( this );
 }
@@ -1560,16 +1551,6 @@ void StackWindow::Resize()
 
 IMPL_LINK_INLINE_START( StackWindow, ButtonHdl, ImageButton *, pButton )
 {
-    if ( pButton == &aGotoCallButton )
-    {
-        BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
-        SfxViewFrame* pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
-        SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
-        if( pDispatcher )
-        {
-            pDispatcher->Execute( SID_BASICIDE_GOTOCALL );
-        }
-    }
     return 0;
 }
 IMPL_LINK_INLINE_END( StackWindow, ButtonHdl, ImageButton *, pButton )
diff --git a/basctl/source/basicide/basidesh.src b/basctl/source/basicide/basidesh.src
index 6fab2c5..babb05a 100644
--- a/basctl/source/basicide/basidesh.src
+++ b/basctl/source/basicide/basidesh.src
@@ -324,11 +324,6 @@ ImageButton RID_IMGBTN_REMOVEWATCH
     };
     QuickHelpText [ en-US ] = "Remove Watch" ;
 };
-ImageButton RID_IMGBTN_GOTOCALL
-{
-    HelpId = HID_BASICIDE_GOTOALL ;
-    SmallStyle = TRUE ;
-};
 
 String RID_STR_REMOVEWATCH
 {


More information about the Libreoffice-commits mailing list