summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-04-12 14:31:09 +0000
committerFrank Schönheit <fs@openoffice.org>2001-04-12 14:31:09 +0000
commit58b869b8fd1a72fde22e8a2fe2342dee764f1745 (patch)
treeafb165d223fae344004b6f0a244aade1a686477e /dbaccess
parent439e404e5ce9890434c975e491f6b84bb4ea7ec3 (diff)
+BrowserViewStatusDisplay
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/brwview.cxx19
-rw-r--r--dbaccess/source/ui/inc/brwview.hxx16
2 files changed, 29 insertions, 6 deletions
diff --git a/dbaccess/source/ui/browser/brwview.cxx b/dbaccess/source/ui/browser/brwview.cxx
index d030788c29fd..3b39365f0c3f 100644
--- a/dbaccess/source/ui/browser/brwview.cxx
+++ b/dbaccess/source/ui/browser/brwview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: brwview.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: fs $ $Date: 2001-04-03 12:07:30 $
+ * last change: $Author: fs $ $Date: 2001-04-12 15:31:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -201,7 +201,7 @@ void UnoDataBrowserView::setTreeView(DBTreeView* _pTreeView)
}
}
// -------------------------------------------------------------------------
-void UnoDataBrowserView::showStatus( String& _rStatus )
+void UnoDataBrowserView::showStatus( const String& _rStatus )
{
if (0 == _rStatus.Len())
hideStatus();
@@ -349,8 +349,21 @@ long UnoDataBrowserView::PreNotify( NotifyEvent& rNEvt )
}
return nDone ? nDone : Window::PreNotify(rNEvt);
}
+
// -----------------------------------------------------------------------------
+BrowserViewStatusDisplay::BrowserViewStatusDisplay( UnoDataBrowserView* _pView, const String& _rStatus )
+ :m_pView(_pView)
+{
+ if (m_pView)
+ m_pView->showStatus(_rStatus);
+}
+// -----------------------------------------------------------------------------
+BrowserViewStatusDisplay::~BrowserViewStatusDisplay( )
+{
+ if (m_pView)
+ m_pView->showStatus(String());
+}
diff --git a/dbaccess/source/ui/inc/brwview.hxx b/dbaccess/source/ui/inc/brwview.hxx
index 23b287368cb4..dfa6ac33768f 100644
--- a/dbaccess/source/ui/inc/brwview.hxx
+++ b/dbaccess/source/ui/inc/brwview.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: brwview.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: fs $ $Date: 2001-04-03 08:14:32 $
+ * last change: $Author: fs $ $Date: 2001-04-12 15:29:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,7 +124,7 @@ namespace dbaui
void setSplitter(Splitter* _pSplitter);
void setTreeView(DBTreeView* _pTreeView);
- void showStatus( String& _rStatus );
+ void showStatus( const String& _rStatus );
void hideStatus();
protected:
@@ -132,6 +132,16 @@ namespace dbaui
virtual void GetFocus();
virtual void resizeControl(Rectangle& rRect);
};
+
+ class BrowserViewStatusDisplay
+ {
+ protected:
+ UnoDataBrowserView* m_pView;
+
+ public:
+ BrowserViewStatusDisplay( UnoDataBrowserView* _pView, const String& _rStatus );
+ ~BrowserViewStatusDisplay( );
+ };
}
#endif // _SBX_BRWVIEW_HXX