#i107213# finalized layout grippies tooltips

This commit is contained in:
Christian Lippka 2010-04-20 16:57:49 +02:00
parent d1086e1894
commit 54bec7096f
3 changed files with 32 additions and 2 deletions

View file

@ -1235,3 +1235,28 @@ String STR_RESET_LAYOUT
{
Text[ en-US ] = "Reset Slide Layout";
};
String STR_RESET_LAYOUT
{
Text [ en-US ] = "Comments";
};
String STR_INSERT_TABLE
{
Text [ en-US ] = "Insert Table";
};
String STR_INSERT_CHART
{
Text [ en-US ] = "Insert Chart";
};
String STR_INSERT_PICTURE
{
Text [ en-US ] = "Insert Picture";
};
String STR_INSERT_MOVIE
{
Text [ en-US ] = "Insert Movie";
};

View file

@ -503,6 +503,10 @@
#define STR_NAVIGATOR_SHAPE_BASE_NAME (RID_APP_START+720)
#define STR_RESET_LAYOUT (RID_APP_START+721)
#define STR_INSERT_TABLE (RID_APP_START+722)
#define STR_INSERT_CHART (RID_APP_START+723)
#define STR_INSERT_PICTURE (RID_APP_START+724)
#define STR_INSERT_MOVIE (RID_APP_START+725)
/******************************************************************************
* The ids in glob.hrc start at RID_APP_START+750!

View file

@ -60,6 +60,7 @@
#include "DrawViewShell.hxx"
#include "DrawController.hxx"
#include "glob.hrc"
#include "strings.hrc"
#include "sdresid.hxx"
#include "EventMultiplexer.hxx"
#include "ViewShellManager.hxx"
@ -83,6 +84,7 @@ BitmapEx ViewOverlayManager::maLargeButtonImages[BMP_PLACEHOLDER_LARGE_END - BMP
static USHORT gButtonSlots[] = { SID_INSERT_TABLE, SID_INSERT_DIAGRAM, SID_INSERT_GRAPHIC, SID_INSERT_AVMEDIA };
static const sal_Char* gSlotStr[] = { ".uno:InsertTable", ".uno:InsertObjectChart", ".uno:InsertGraphic", ".uno:InsertVideo" };
static USHORT gButtonToolTips[] = { STR_RESET_LAYOUT, STR_INSERT_TABLE, STR_INSERT_CHART, STR_INSERT_PICTURE,STR_INSERT_MOVIE };
// --------------------------------------------------------------------
@ -209,8 +211,7 @@ void ImageButtonHdl::onMouseEnter(const MouseEvent& rMEvt)
if( pHdlList )
{
Reference< XFrame > xFrame( static_cast< View* >( pHdlList->GetView() )->GetViewShell()->GetViewFrame()->GetFrame().GetFrameInterface() );
String aHelpText( ImplRetrieveLabelFromCommand( xFrame, OUString::createFromAscii( gSlotStr[nHighlightId] ) ) );
String aHelpText( SdResId( gButtonToolTips[mnHighlightId] ) );
Rectangle aScreenRect( pDev->LogicToPixel( GetPos() ), maImageSize );
mnTip = Help::ShowTip( static_cast< ::Window* >( pHdlList->GetView()->GetFirstOutputDevice() ), aScreenRect, aHelpText, 0 ) ;
}