diff options
Diffstat (limited to 'sd/source/ui/dlg/RemoteDialogClientBox.cxx')
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.cxx | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index b3d80e3393f0..eda2615eaa3a 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -34,37 +34,37 @@ using namespace ::com::sun::star; namespace sd { -//------------------------------------------------------------------------------ + // struct ClientBoxEntry -//------------------------------------------------------------------------------ + ClientBoxEntry::ClientBoxEntry( ClientInfo* pClientInfo ) : m_bActive( false ), m_pClientInfo( pClientInfo ) { } -//------------------------------------------------------------------------------ + ClientBoxEntry::~ClientBoxEntry() {} -//------------------------------------------------------------------------------ + // ClientRemovedListener -//------------------------------------------------------------------------------ + void ClientRemovedListener::disposing( lang::EventObject const & rEvt ) throw ( uno::RuntimeException ) { (void) rEvt; } -//------------------------------------------------------------------------------ + ClientRemovedListener::~ClientRemovedListener() { } -//------------------------------------------------------------------------------ + // ClientBox -//------------------------------------------------------------------------------ + ClientBox::ClientBox( Window* pParent, WinBits nStyle ) : Control( pParent, nStyle ), m_bHasScrollBar( false ), @@ -126,7 +126,7 @@ Size ClientBox::GetOptimalSize() const return LogicToPixel(Size(200, 140), MAP_APPFONT); } -//------------------------------------------------------------------------------ + ClientBox::~ClientBox() { if ( ! m_bInDelete ) @@ -146,7 +146,7 @@ ClientBox::~ClientBox() m_xRemoveListener.clear(); } -//------------------------------------------------------------------------------ + // Title + description void ClientBox::CalcActiveHeight( const long nPos ) { @@ -179,7 +179,7 @@ void ClientBox::CalcActiveHeight( const long nPos ) m_nActiveHeight = aTextHeight + 2; } -//------------------------------------------------------------------------------ + Rectangle ClientBox::GetEntryRect( const long nPos ) const { const ::osl::MutexGuard aGuard( m_entriesMutex ); @@ -201,7 +201,7 @@ Rectangle ClientBox::GetEntryRect( const long nPos ) const return Rectangle( aPos, aSize ); } -//------------------------------------------------------------------------------ + void ClientBox::DeleteRemoved() { const ::osl::MutexGuard aGuard( m_entriesMutex ); @@ -224,7 +224,7 @@ long ClientBox::GetActiveEntryIndex() return -1; } -//------------------------------------------------------------------------------ + //This function may be called with nPos < 0 void ClientBox::selectEntry( const long nPos ) { @@ -269,7 +269,7 @@ void ClientBox::selectEntry( const long nPos ) guard.clear(); } -// ----------------------------------------------------------------------- + void ClientBox::DrawRow( const Rectangle& rRect, const TClientBoxEntry pEntry ) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); @@ -377,7 +377,7 @@ void ClientBox::DrawRow( const Rectangle& rRect, const TClientBoxEntry pEntry ) DrawLine( rRect.BottomLeft(), rRect.BottomRight() ); } -// ----------------------------------------------------------------------- + void ClientBox::RecalcAll() { if ( m_bHasActive ) @@ -428,13 +428,13 @@ void ClientBox::RecalcAll() m_bNeedsRecalc = false; } -// ----------------------------------------------------------------------- + bool ClientBox::HandleTabKey( bool ) { return false; } -// ----------------------------------------------------------------------- + bool ClientBox::HandleCursorKey( sal_uInt16 nKeyCode ) { if ( m_vEntries.empty() ) @@ -479,7 +479,7 @@ bool ClientBox::HandleCursorKey( sal_uInt16 nKeyCode ) return true; } -// ----------------------------------------------------------------------- + void ClientBox::Paint( const Rectangle &/*rPaintRect*/ ) { if ( !m_bInDelete ) @@ -506,7 +506,7 @@ void ClientBox::Paint( const Rectangle &/*rPaintRect*/ ) } } -// ----------------------------------------------------------------------- + long ClientBox::GetTotalHeight() const { long nHeight = m_vEntries.size() * m_nStdHeight; @@ -519,7 +519,7 @@ long ClientBox::GetTotalHeight() const return nHeight; } -// ----------------------------------------------------------------------- + void ClientBox::SetupScrollBar() { const Size aSize = GetOutputSizePixel(); @@ -552,13 +552,13 @@ void ClientBox::SetupScrollBar() m_bHasScrollBar = bNeedsScrollBar; } -// ----------------------------------------------------------------------- + void ClientBox::Resize() { RecalcAll(); } -//------------------------------------------------------------------------------ + long ClientBox::PointToPos( const Point& rPos ) { long nPos = ( rPos.Y() + m_nTopIndex ) / m_nStdHeight; @@ -579,7 +579,7 @@ OUString ClientBox::getPin() return OUString::number( m_aPinBox.GetValue() ); } -//------------------------------------------------------------------------------ + void ClientBox::MouseButtonDown( const MouseEvent& rMEvt ) { long nPos = PointToPos( rMEvt.GetPosPixel() ); @@ -593,7 +593,7 @@ void ClientBox::MouseButtonDown( const MouseEvent& rMEvt ) } } -//------------------------------------------------------------------------------ + bool ClientBox::Notify( NotifyEvent& rNEvt ) { if ( !m_bInDelete ) @@ -638,7 +638,7 @@ bool ClientBox::Notify( NotifyEvent& rNEvt ) } -//------------------------------------------------------------------------------ + long ClientBox::addEntry( ClientInfo* pClientInfo ) { long nPos = 0; @@ -700,7 +700,7 @@ long ClientBox::addEntry( ClientInfo* pClientInfo ) return nPos; } -// ----------------------------------------------------------------------- + void ClientBox::DoScroll( long nDelta ) { m_nTopIndex += nDelta; @@ -713,7 +713,7 @@ void ClientBox::DoScroll( long nDelta ) m_aScrollBar.SetPosPixel( aNewSBPt ); } -// ----------------------------------------------------------------------- + IMPL_LINK( ClientBox, ScrollHdl, ScrollBar*, pScrBar ) { DoScroll( pScrBar->GetDelta() ); |