Kaydet (Commit) 3acd12a1 authored tarafından Urs Fässler's avatar Urs Fässler

sd/source/ui/app/tbxww.cxx comment translation and cleanup

Change-Id: Ie7bc4ce47c088feeeaf55fb7b2590c5e44a3480e
üst 8d8f6266
......@@ -39,12 +39,9 @@
SFX_IMPL_TOOLBOX_CONTROL( SdTbxControl, TbxImageItem )
/*************************************************************************
|*
|* Klasse fuer Toolbox
|*
\************************************************************************/
/**
* Class for toolbox
*/
SdTbxControl::SdTbxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx )
{
......@@ -59,13 +56,11 @@ SfxPopupWindowType SdTbxControl::GetPopupWindowType() const
return( SFX_POPUPWINDOW_ONTIMEOUT );
}
/*************************************************************************
|*
|* Hier wird das Fenster erzeugt
|* Lage der Toolbox mit GetToolBox() abfragbar
|* rItemRect sind die Screen-Koordinaten
|*
\************************************************************************/
/**
* We create the window here
* You can get the position of the toolbox with GetToolBox()
* rItemRect are screen coordinates
*/
SfxPopupWindow* SdTbxControl::CreatePopupWindow()
{
......@@ -140,8 +135,8 @@ void SdTbxControl::StateChanged( sal_uInt16 nSId,
if( eState == SFX_ITEM_AVAILABLE )
{
TbxImageItem* pItem = PTR_CAST( TbxImageItem, pState );
// Im StarDesktop kann jetzt auch ein anderes Item ankommen,
// das nicht ausgewertet werden darf
// StarDesktop can also receive another item,
// but it is not allowed to evaluate it
if( pItem )
{
ToolBox& rTbx = GetToolBox();
......@@ -160,7 +155,7 @@ void SdTbxControl::StateChanged( sal_uInt16 nSId,
hasBigImages()
);
// !-Operator prueft, ob Image nicht vorhanden ist
// !-operator checks if image is not present
if( !!aImage )
{
rTbx.SetItemImage( GetId(), aImage );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment