From e3aad392609d50d7535c9f3228878a5a0fb1984a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 27 Aug 2020 20:17:36 +0100 Subject: move FixedLine into .ui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibc22de48f1ef92d8efbe0167aff3a434ecef9afb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101503 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- dbaccess/source/ui/browser/dataview.cxx | 18 ++------ .../source/ui/tabledesign/TableFieldDescWin.hxx | 1 - dbaccess/uiconfig/ui/appborderwindow.ui | 54 ++++++++++++++++------ 3 files changed, 43 insertions(+), 30 deletions(-) (limited to 'dbaccess') 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 #include #include -#include #include namespace dbaui @@ -43,10 +42,8 @@ namespace dbaui :Window(pParent,nStyle) ,m_xContext(_rxContext) ,m_xController( &_rController ) - ,m_aSeparator( VclPtr::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 #include #include #include "TableFieldControl.hxx" diff --git a/dbaccess/uiconfig/ui/appborderwindow.ui b/dbaccess/uiconfig/ui/appborderwindow.ui index 7083c1c65e57..5586805ea769 100644 --- a/dbaccess/uiconfig/ui/appborderwindow.ui +++ b/dbaccess/uiconfig/ui/appborderwindow.ui @@ -7,37 +7,61 @@ False True True - 6 - + True False - start - False + True True - vertical + 6 + + + True + False + start + False + True + vertical + + + + + + 0 + 0 + + - + + True + False + True + True + vertical + + + + + + 1 + 0 + 0 - 0 + 1 - + True False - True - True - vertical - - - + 3 + 3 - 1 + 0 0 -- cgit