diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-02-27 14:47:25 +1100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 06:43:20 -0600 |
commit | f6e0d356b7b11f0ece009428e71864f0ba41ef7e (patch) | |
tree | 465ed3f8c4e195f0325005418753a622ae1fd878 /vcl/source/control/ctrl.cxx | |
parent | 518b75326a83166a24b9d3c1b31ce63189f60c7f (diff) |
Removed unnecessary comment decorations and wspace from VCL sources
Change-Id: I190b57bb476a35ede1b6050f3c1edabd0ab00397
Reviewed-on: https://gerrit.libreoffice.org/8374
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/ctrl.cxx')
-rw-r--r-- | vcl/source/control/ctrl.cxx | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx index db925454b191..2fe5c0bd9a87 100644 --- a/vcl/source/control/ctrl.cxx +++ b/vcl/source/control/ctrl.cxx @@ -32,27 +32,20 @@ #include <svdata.hxx> #include <controldata.hxx> - using namespace vcl; - - void Control::ImplInitControlData() { mbHasControlFocus = false; mpControlData = new ImplControlData; } - - Control::Control( WindowType nType ) : Window( nType ) { ImplInitControlData(); } - - Control::Control( Window* pParent, WinBits nStyle ) : Window( WINDOW_CONTROL ) { @@ -73,81 +66,58 @@ Control::Control( Window* pParent, const ResId& rResId ) : Show(); } - - Control::~Control() { delete mpControlData, mpControlData = NULL; } - - void Control::GetFocus() { Window::GetFocus(); } - - void Control::LoseFocus() { Window::LoseFocus(); } - - void Control::Resize() { ImplClearLayoutData(); Window::Resize(); } - - void Control::FillLayoutData() const { } - - void Control::CreateLayoutData() const { DBG_ASSERT( !mpControlData->mpLayoutData, "Control::CreateLayoutData: should be called with non-existent layout data only!" ); mpControlData->mpLayoutData = new ::vcl::ControlLayoutData(); } - - bool Control::HasLayoutData() const { return mpControlData->mpLayoutData != NULL; } - - ::vcl::ControlLayoutData* Control::GetLayoutData() const { return mpControlData->mpLayoutData; } - - void Control::SetText( const OUString& rStr ) { ImplClearLayoutData(); Window::SetText( rStr ); } - - Rectangle ControlLayoutData::GetCharacterBounds( long nIndex ) const { return (nIndex >= 0 && nIndex < (long) m_aUnicodeBoundRects.size()) ? m_aUnicodeBoundRects[ nIndex ] : Rectangle(); } - - - Rectangle Control::GetCharacterBounds( long nIndex ) const { if( !HasLayoutData() ) @@ -155,8 +125,6 @@ Rectangle Control::GetCharacterBounds( long nIndex ) const return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->GetCharacterBounds( nIndex ) : Rectangle(); } - - long ControlLayoutData::GetIndexForPoint( const Point& rPoint ) const { long nIndex = -1; @@ -174,8 +142,6 @@ long ControlLayoutData::GetIndexForPoint( const Point& rPoint ) const return nIndex; } - - long Control::GetIndexForPoint( const Point& rPoint ) const { if( ! HasLayoutData() ) @@ -183,8 +149,6 @@ long Control::GetIndexForPoint( const Point& rPoint ) const return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->GetIndexForPoint( rPoint ) : -1; } - - long ControlLayoutData::GetLineCount() const { long nLines = m_aLineIndices.size(); @@ -193,8 +157,6 @@ long ControlLayoutData::GetLineCount() const return nLines; } - - Pair ControlLayoutData::GetLineStartEnd( long nLine ) const { Pair aPair( -1, -1 ); @@ -218,8 +180,6 @@ Pair ControlLayoutData::GetLineStartEnd( long nLine ) const return aPair; } - - Pair Control::GetLineStartEnd( long nLine ) const { if( !HasLayoutData() ) @@ -227,8 +187,6 @@ Pair Control::GetLineStartEnd( long nLine ) const return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->GetLineStartEnd( nLine ) : Pair( -1, -1 ); } - - long ControlLayoutData::ToRelativeLineIndex( long nIndex ) const { // is the index sensible at all ? @@ -261,8 +219,6 @@ long ControlLayoutData::ToRelativeLineIndex( long nIndex ) const return nIndex; } - - long Control::ToRelativeLineIndex( long nIndex ) const { if( !HasLayoutData() ) @@ -270,8 +226,6 @@ long Control::ToRelativeLineIndex( long nIndex ) const return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->ToRelativeLineIndex( nIndex ) : -1; } - - OUString Control::GetDisplayText() const { if( !HasLayoutData() ) @@ -279,8 +233,6 @@ OUString Control::GetDisplayText() const return mpControlData->mpLayoutData ? OUString(mpControlData->mpLayoutData->m_aDisplayText) : GetText(); } - - bool Control::Notify( NotifyEvent& rNEvt ) { if ( rNEvt.GetType() == EVENT_GETFOCUS ) @@ -313,8 +265,6 @@ bool Control::Notify( NotifyEvent& rNEvt ) return Window::Notify( rNEvt ); } - - void Control::StateChanged( StateChangedType nStateChange ) { if( nStateChange == STATE_CHANGE_INITSHOW || @@ -329,8 +279,6 @@ void Control::StateChanged( StateChangedType nStateChange ) Window::StateChanged( nStateChange ); } - - void Control::AppendLayoutData( const Control& rSubControl ) const { if( !rSubControl.HasLayoutData() ) @@ -355,8 +303,6 @@ void Control::AppendLayoutData( const Control& rSubControl ) const } } - - bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, const Link& rHandler, void* pCaller ) { ImplDelData aCheckDelete; @@ -376,8 +322,6 @@ bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, const Link& r return true; } - - void Control::SetLayoutDataParent( const Control* pParent ) const { if( HasLayoutData() ) @@ -385,14 +329,11 @@ void Control::SetLayoutDataParent( const Control* pParent ) const } - void Control::ImplClearLayoutData() const { delete mpControlData->mpLayoutData, mpControlData->mpLayoutData = NULL; } - - void Control::ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect ) { // use a deco view to draw the frame @@ -420,8 +361,6 @@ void Control::ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect ) pDev->OutputDevice::SetSettings( aOriginalSettings ); } - - void Control::DataChanged( const DataChangedEvent& rDCEvt) { // we don't want to loose some style settings for controls created with the @@ -447,24 +386,18 @@ void Control::DataChanged( const DataChangedEvent& rDCEvt) } } - - ControlLayoutData::~ControlLayoutData() { if( m_pParent ) m_pParent->ImplClearLayoutData(); } - - Size Control::GetOptimalSize() const { return Size( GetTextWidth( GetText() ) + 2 * 12, GetTextHeight() + 2 * 6 ); } - - void Control::SetReferenceDevice( OutputDevice* _referenceDevice ) { if ( mpControlData->mpReferenceDevice == _referenceDevice ) @@ -474,27 +407,21 @@ void Control::SetReferenceDevice( OutputDevice* _referenceDevice ) Invalidate(); } - - OutputDevice* Control::GetReferenceDevice() const { return mpControlData->mpReferenceDevice; } - - const Font& Control::GetCanonicalFont( const StyleSettings& _rStyle ) const { return _rStyle.GetLabelFont(); } - const Color& Control::GetCanonicalTextColor( const StyleSettings& _rStyle ) const { return _rStyle.GetLabelTextColor(); } - void Control::ImplInitSettings( const bool _bFont, const bool _bForeground ) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); @@ -519,8 +446,6 @@ void Control::ImplInitSettings( const bool _bFont, const bool _bForeground ) } } - - void Control::DrawControlText( OutputDevice& _rTargetDevice, Rectangle& _io_rRect, const OUString& _rStr, sal_uInt16 _nStyle, MetricVector* _pVector, OUString* _pDisplayText ) const { |