summaryrefslogtreecommitdiff
path: root/basic/source/app
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-06-19 13:38:16 +0000
committerKurt Zenker <kz@openoffice.org>2007-06-19 13:38:16 +0000
commit53521077ed18d14a1dc43f5fe183ffe428d89fbd (patch)
treeeaa3642a0233633973c2c0ea3e8cf396e3aa52fa /basic/source/app
parent87bf72d34febf51aa25bf4c626ef829ee6cd75ce (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
Diffstat (limited to 'basic/source/app')
-rw-r--r--basic/source/app/status.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/basic/source/app/status.cxx b/basic/source/app/status.cxx
index 256d9a4f7f..2ea8b95f8b 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;