[Libreoffice-commits] .: svx/source
Michael Meeks
michael at kemper.freedesktop.org
Mon Nov 21 06:36:39 PST 2011
svx/source/stbctrls/pszctrl.cxx | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
New commits:
commit 4d399eea4283173d0b8c766376ad538f1e088d92
Author: Cor Nouws <oolst at nouenoff.nl>
Date: Mon Nov 21 14:23:29 2011 +0100
Updated transl. German comments - removd obsolete time/date comm
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index 3b83715..ebaf1c0 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -171,7 +171,7 @@ struct SvxPosSizeStatusBarControl_Impl
/* [Description]
Ctor():
- Create an intance of the implementation class, enable the page numbering by default
+ Create an instance of the implementation class,
load the images for the position and size
*/
@@ -223,18 +223,16 @@ SvxPosSizeStatusBarControl::~SvxPosSizeStatusBarControl()
NULL/Void SfxPointItem SvxSizeItem SfxStringItem
------------------------------------------------------------------------
- Time sal_True sal_False sal_False FALSE
Position sal_False FALSE
Size FALSE TRUE FALSE
Text sal_False sal_False TRUE
- Another item resulst in an assert, that enables showing of the time.
*/
void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState )
{
- // the combi-controller, always set the curent Id as HelpId
+ // Because the combi-controller, always sets the curent Id as HelpId
// first clean the cached HelpText
GetStatusBar().SetHelpText( GetId(), String() );
@@ -298,7 +296,6 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
else
{
DBG_ERRORFILE( "invalid item type" );
- // nevertheless show date and time
pImp->bPos = sal_False;
pImp->bSize = sal_False;
pImp->bTable = sal_False;
@@ -307,8 +304,8 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
if ( GetStatusBar().AreItemsVisible() )
GetStatusBar().SetItemData( GetId(), 0 );
- // set only strings as text at the statusBar, because the Help-Tips
- // functions, when the text is too long
+ // set only strings as text at the statusBar, so that the Help-Tips
+ // can work with the text, when it is too long for the statusBar
String aText;
if ( pImp->bTable )
aText = pImp->aStr;
More information about the Libreoffice-commits
mailing list