diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-27 20:17:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-28 21:10:52 +0200 |
commit | e3aad392609d50d7535c9f3228878a5a0fb1984a (patch) | |
tree | b88c0e943dc689c3abb25ac6d07191e676b5964e /dbaccess/source | |
parent | 5c38aa445986ee8650324412b2a78e68014101ac (diff) |
move FixedLine into .ui
Change-Id: Ibc22de48f1ef92d8efbe0167aff3a434ecef9afb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101503
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/ui/browser/dataview.cxx | 18 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx | 1 |
2 files changed, 4 insertions, 15 deletions
diff --git a/dbaccess/source/ui/browser/dataview.cxx b/dbaccess/source/ui/browser/dataview.cxx index b293fadd3cc4..b48a3f0adb17 100644 --- a/dbaccess/source/ui/browser/dataview.cxx +++ b/dbaccess/source/ui/browser/dataview.cxx @@ -25,7 +25,6 @@ #include <svtools/acceleratorexecute.hxx> #include <tools/diagnose_ex.h> #include <vcl/event.hxx> -#include <vcl/fixed.hxx> #include <vcl/settings.hxx> namespace dbaui @@ -43,10 +42,8 @@ namespace dbaui :Window(pParent,nStyle) ,m_xContext(_rxContext) ,m_xController( &_rController ) - ,m_aSeparator( VclPtr<FixedLine>::Create(this) ) { m_pAccel = ::svt::AcceleratorExecute::createAcceleratorHelper(); - m_aSeparator->Show(); } void ODataView::Construct() @@ -61,12 +58,11 @@ namespace dbaui void ODataView::dispose() { m_xController.clear(); - m_aSeparator.disposeAndClear(); m_pAccel.reset(); vcl::Window::dispose(); } - void ODataView::resizeDocumentView( tools::Rectangle& /*_rPlayground*/ ) + void ODataView::resizeDocumentView(tools::Rectangle& /*_rPlayground*/) { } @@ -85,17 +81,11 @@ namespace dbaui Window::Paint(rRenderContext, _rRect); } - void ODataView::resizeAll( const tools::Rectangle& _rPlayground ) + void ODataView::resizeAll(const tools::Rectangle& rPlayground) { - tools::Rectangle aPlayground( _rPlayground ); - - // position the separator - const Size aSeparatorSize( aPlayground.GetWidth(), 2 ); - m_aSeparator->SetPosSizePixel( aPlayground.TopLeft(), aSeparatorSize ); - aPlayground.AdjustTop(aSeparatorSize.Height() + 1 ); - // position the controls of the document's view - resizeDocumentView( aPlayground ); + tools::Rectangle aPlayground(rPlayground); + resizeDocumentView(aPlayground); } void ODataView::Resize() diff --git a/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx b/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx index 7d7fbbe5d9b1..fe405915185b 100644 --- a/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx +++ b/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx @@ -19,7 +19,6 @@ #ifndef INCLUDED_DBACCESS_SOURCE_UI_TABLEDESIGN_TABLEFIELDDESCWIN_HXX #define INCLUDED_DBACCESS_SOURCE_UI_TABLEDESIGN_TABLEFIELDDESCWIN_HXX -#include <vcl/InterimItemWindow.hxx> #include <IClipBoardTest.hxx> #include <ChildWindow.hxx> #include "TableFieldControl.hxx" |