[Libreoffice-commits] core.git: dbaccess/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 2 13:03:58 UTC 2019


 dbaccess/source/ui/dlg/adminpages.cxx |   32 --------------------------------
 dbaccess/source/ui/dlg/adminpages.hxx |   16 ----------------
 2 files changed, 48 deletions(-)

New commits:
commit c44028ceb8dbc07cefea77c98b2416be3635418b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 2 09:54:35 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 2 15:02:42 2019 +0200

    drop newly unused LayoutHelper
    
    Change-Id: I602c9a3f9df79ad8c268c6902adac9046abd34ea
    Reviewed-on: https://gerrit.libreoffice.org/76841
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx
index 28c677d254ab..f68abd8e262a 100644
--- a/dbaccess/source/ui/dlg/adminpages.cxx
+++ b/dbaccess/source/ui/dlg/adminpages.cxx
@@ -326,38 +326,6 @@ namespace dbaui
                 m_pAdminDialog->clearPassword();
         }
     }
-
-    // LayoutHelper
-    void LayoutHelper::positionBelow( const Control& _rReference, Control& _rControl,
-        const long _nIndentAppFont )
-    {
-        Point aReference = _rReference.GetPosPixel();
-        aReference.AdjustY(_rReference.GetSizePixel().Height() );
-
-        const vcl::Window* pConverter = _rControl.GetParent();
-        Size aOffset = pConverter->LogicToPixel(Size(_nIndentAppFont, 3), MapMode(MapUnit::MapAppFont));
-
-        Point aControlPos( aReference.X() + aOffset.Width(), aReference.Y() + aOffset.Height() );
-        _rControl.SetPosPixel( aControlPos );
-    }
-
-    void LayoutHelper::fitSizeRightAligned( PushButton& io_button )
-    {
-        const Point aOldPos = io_button.GetPosPixel();
-        const Size aOldSize = io_button.GetSizePixel();
-        const Size aMinSize( io_button.CalcMinimumSize() );
-        if ( aMinSize.Width() > aOldSize.Width() )
-        {
-            io_button.setPosSizePixel(
-                aOldPos.X() + aOldSize.Width() - aMinSize.Width(),
-                0,
-                aMinSize.Width(),
-                0,
-                PosSizeFlags::X | PosSizeFlags::Width
-            );
-        }
-    }
-
 }   // namespace dbaui
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx
index c9897d20b8dd..1b41fbc18040 100644
--- a/dbaccess/source/ui/dlg/adminpages.hxx
+++ b/dbaccess/source/ui/dlg/adminpages.hxx
@@ -262,22 +262,6 @@ namespace dbaui
         DECL_LINK(OnControlModifiedButtonClick, weld::ToggleButton&, void);
         DECL_LINK(OnTestConnectionButtonClickHdl, weld::Button&, void);
     };
-
-    // LayoutHelper
-    class LayoutHelper
-    {
-    public:
-        static void     positionBelow(
-                            const Control& _rReference,
-                            Control& _rControl,
-                            const long _nIndentAppFont
-                        );
-        /** fits the button size to be large enough to contain the buttons text
-        */
-        static void fitSizeRightAligned( PushButton& io_button );
-            // why is CalcMinimumSize not a virtual method of vcl::Window?
-    };
-
 }   // namespace dbaui
 
 #endif // INCLUDED_DBACCESS_SOURCE_UI_DLG_ADMINPAGES_HXX


More information about the Libreoffice-commits mailing list