diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-06-19 13:38:16 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-06-19 13:38:16 +0000 |
commit | 3c801b34d3f977f96546313b097e624f33ae0f6c (patch) | |
tree | 9ef56cb38641500cf20fbd6fb885748fd43a485a | |
parent | 417c11524af6da11da6ac1f199d2cc76d5c2ee65 (diff) |
INTEGRATION: CWS gh14 (1.9.70); FILE MERGED
2007/06/15 09:22:33 gh 1.9.70.1: #108785#show profilename in statusbar
-rw-r--r-- | basic/source/app/status.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/basic/source/app/status.cxx b/basic/source/app/status.cxx index fe12acae68d4..0e0225dfce18 100644 --- a/basic/source/app/status.cxx +++ b/basic/source/app/status.cxx @@ -4,9 +4,9 @@ * * $RCSfile: status.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: obo $ $Date: 2006-10-12 14:23:49 $ + * last change: $Author: kz $ $Date: 2007-06-19 14:38:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -56,21 +56,28 @@ StatusLine::StatusLine( BasicFrame* p ) long nCharWidth = GetTextWidth( '0' ); // Angenommen, alle Zahlen sind gleich breit pTempStatusBar->InsertItem( ST_MESSAGE, GetTextWidth( 'X' ) * 20, SIB_LEFT | SIB_IN | SIB_AUTOSIZE ); pTempStatusBar->InsertItem( ST_LINE, 5*nCharWidth ); + pTempStatusBar->InsertItem( ST_PROF, GetTextWidth( 'X' ) * 10 ); pTempStatusBar->InsertStatusField(); Show(); } -void StatusLine::Message( String& s ) +void StatusLine::Message( const String& s ) { GetStatusBar()->SetItemText( ST_MESSAGE, s ); } -void StatusLine::Pos( String& s ) +void StatusLine::Pos( const String& s ) { GetStatusBar()->SetItemText( ST_LINE, s ); } +void StatusLine::SetProfileName( const String& s ) +{ + GetStatusBar()->SetItemText( ST_PROF, s ); +} + + IMPL_LINK( StatusLine, ActivateTask, TaskToolBox*, pTTB ) { USHORT nFirstWinPos=0; |