diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-07 09:46:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-07 10:24:24 +0100 |
commit | e3a899907bbf76469f074e35bbe82998a05bb2e8 (patch) | |
tree | b7a727ba6f769de800c0342e063c7b95552174dc /dbaccess | |
parent | 93b4ec39e23aa0662fd4638074af74bda3934f91 (diff) |
OQueryViewSwitch::resizeDocumentView etc unused
Change-Id: Idadf26a1c4ec070c1a37ddac923b64620962ed9e
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/inc/QueryViewSwitch.hxx | 5 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/querycontainerwindow.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryViewSwitch.cxx | 18 |
3 files changed, 0 insertions, 25 deletions
diff --git a/dbaccess/source/ui/inc/QueryViewSwitch.hxx b/dbaccess/source/ui/inc/QueryViewSwitch.hxx index a945da5ebdd0..e6f936a57617 100644 --- a/dbaccess/source/ui/inc/QueryViewSwitch.hxx +++ b/dbaccess/source/ui/inc/QueryViewSwitch.hxx @@ -49,8 +49,6 @@ namespace dbaui void paste(); // clears the whole query void clear(); - // set the view readonly or not - void setReadOnly(bool _bReadOnly); // check if the statement is correct when not returning false bool checkStatement(); // set the statement for representation @@ -83,9 +81,6 @@ namespace dbaui void SetPosSizePixel( Point _rPt,Size _rSize); ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getORB() const; - protected: - // return the Rectangle where I can paint myself - void resizeDocumentView(Rectangle& rRect); private: void impl_forceSQLView(); diff --git a/dbaccess/source/ui/inc/querycontainerwindow.hxx b/dbaccess/source/ui/inc/querycontainerwindow.hxx index 64f828ecb721..646c5e1488a9 100644 --- a/dbaccess/source/ui/inc/querycontainerwindow.hxx +++ b/dbaccess/source/ui/inc/querycontainerwindow.hxx @@ -77,8 +77,6 @@ namespace dbaui void setSlotEnabled( sal_Int32 _nSlotId, bool _bEnable ) { m_pViewSwitch->setSlotEnabled( _nSlotId, _bEnable ); } void setNoneVisbleRow(sal_Int32 _nRows) { m_pViewSwitch->setNoneVisbleRow( _nRows); } - void setReadOnly( bool _bReadOnly ) { m_pViewSwitch->setReadOnly( _bReadOnly ); } - bool checkStatement() { return m_pViewSwitch->checkStatement( ); } OUString getStatement() { return m_pViewSwitch->getStatement( ); } void setStatement( const OUString& _rsStatement ) { m_pViewSwitch->setStatement( _rsStatement ); } diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx index dd450117a89d..cdc16fd0dea1 100644 --- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx +++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx @@ -64,16 +64,6 @@ void OQueryViewSwitch::initialize() m_pDesignView->initialize(); } -void OQueryViewSwitch::resizeDocumentView(Rectangle& _rPlayground) -{ - m_pTextView->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() ); - m_pDesignView->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() ); - - // just for completeness: there is no space left, we occupied it all ... - _rPlayground.SetPos( _rPlayground.BottomRight() ); - _rPlayground.SetSize( Size( 0, 0 ) ); -} - bool OQueryViewSwitch::checkStatement() { if(m_pTextView->IsVisible()) @@ -88,14 +78,6 @@ OUString OQueryViewSwitch::getStatement() return m_pDesignView->getStatement(); } -void OQueryViewSwitch::setReadOnly(bool _bReadOnly) -{ - if(m_pTextView->IsVisible()) - m_pTextView->setReadOnly(_bReadOnly); - else - m_pDesignView->setReadOnly(_bReadOnly); -} - void OQueryViewSwitch::clear() { if(m_pTextView->IsVisible()) |