Kaydet (Commit) 214f317d authored tarafından Ocke Janssen's avatar Ocke Janssen

#105538# base class changed to FixedText

üst f8015454
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: TableWindowTitle.hxx,v $ * $RCSfile: TableWindowTitle.hxx,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: oj $ $Date: 2001-02-28 10:08:17 $ * last change: $Author: oj $ $Date: 2002-11-26 12:47:22 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -61,20 +61,20 @@ ...@@ -61,20 +61,20 @@
#ifndef DBAUI_TABLEWINDOWTITLE_HXX #ifndef DBAUI_TABLEWINDOWTITLE_HXX
#define DBAUI_TABLEWINDOWTITLE_HXX #define DBAUI_TABLEWINDOWTITLE_HXX
#ifndef _SV_CTRL_HXX #ifndef _SV_FIXED_HXX
#include <vcl/ctrl.hxx> #include <vcl/fixed.hxx>
#endif #endif
namespace dbaui namespace dbaui
{ {
class OTableWindow; class OTableWindow;
class OTableWindowTitle : public Control class OTableWindowTitle : public FixedText
{ {
OTableWindow* m_pTabWin; OTableWindow* m_pTabWin;
protected: protected:
virtual void Command(const CommandEvent& rEvt); virtual void Command(const CommandEvent& rEvt);
virtual void Paint( const Rectangle& rRect ); // virtual void Paint( const Rectangle& rRect );
virtual void MouseButtonDown( const MouseEvent& rEvt ); virtual void MouseButtonDown( const MouseEvent& rEvt );
virtual void KeyInput( const KeyEvent& rEvt ); virtual void KeyInput( const KeyEvent& rEvt );
virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt );
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: TableWindowTitle.cxx,v $ * $RCSfile: TableWindowTitle.cxx,v $
* *
* $Revision: 1.16 $ * $Revision: 1.17 $
* *
* last change: $Author: oj $ $Date: 2002-08-19 08:01:31 $ * last change: $Author: oj $ $Date: 2002-11-26 12:47:05 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -115,7 +115,7 @@ using namespace ::com::sun::star::uno; ...@@ -115,7 +115,7 @@ using namespace ::com::sun::star::uno;
DBG_NAME(OTableWindowTitle); DBG_NAME(OTableWindowTitle);
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
OTableWindowTitle::OTableWindowTitle( OTableWindow* pParent ) : OTableWindowTitle::OTableWindowTitle( OTableWindow* pParent ) :
Control( pParent, WB_3DLOOK ) FixedText( pParent, WB_3DLOOK|WB_CENTER|WB_NOLABEL )
,m_pTabWin( pParent ) ,m_pTabWin( pParent )
{ {
DBG_CTOR(OTableWindowTitle,NULL); DBG_CTOR(OTableWindowTitle,NULL);
...@@ -190,18 +190,19 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt ) ...@@ -190,18 +190,19 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt )
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void OTableWindowTitle::Paint( const Rectangle& rRect ) //void OTableWindowTitle::Paint( const Rectangle& rRect )
{ //{
////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////
// Ausgabe des Textes in der Titelzeile // // Ausgabe des Textes in der Titelzeile
Rectangle aWinRect( Point(0,0), GetSizePixel() ); // Rectangle aWinRect( Point(0,0), GetSizePixel() );
DrawText( aWinRect, GetText(), TEXT_DRAW_CENTER|TEXT_DRAW_VCENTER|TEXT_DRAW_ENDELLIPSIS ); // DrawText( aWinRect, GetText(), TEXT_DRAW_CENTER|TEXT_DRAW_VCENTER|TEXT_DRAW_ENDELLIPSIS );
} //}
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void OTableWindowTitle::KeyInput( const KeyEvent& rEvt ) void OTableWindowTitle::KeyInput( const KeyEvent& rEvt )
{ {
m_pTabWin->KeyInput( rEvt ); if ( m_pTabWin )
m_pTabWin->KeyInput( rEvt );
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
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