diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-16 10:11:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 10:03:44 +0000 |
commit | 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch) | |
tree | 66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /cui/source/options | |
parent | 4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff) |
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other
plugins too.
Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optinet2.cxx | 34 | ||||
-rw-r--r-- | cui/source/options/optinet2.hxx | 13 | ||||
-rw-r--r-- | cui/source/options/optjava.hxx | 3 |
3 files changed, 0 insertions, 50 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 9ca93fca9231..2dc815a8d8a7 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -551,40 +551,6 @@ IMPL_STATIC_LINK_TYPED( SvxProxyTabPage, LoseFocusHdl_Impl, Control&, rControl, } -void SvxScriptExecListBox::RequestHelp( const HelpEvent& rHEvt ) -{ // try to show tips just like as on toolbars - sal_Int32 nPos=LISTBOX_ENTRY_NOTFOUND; - sal_Int32 nTop = GetTopEntry(); - sal_uInt16 nCount = GetDisplayLineCount(); // Attention: Not GetLineCount() - Point aPt = ScreenToOutputPixel( rHEvt.GetMousePosPixel() ); - Rectangle aItemRect; - if( nCount > 0 ) // if there're some entries, find it. - for( nPos = nTop ; nPos <= nTop+nCount-1 ; nPos++ ) { - aItemRect = GetBoundingRectangle(nPos); - if( aPt.Y() < aItemRect.Top() || aPt.Y() > aItemRect.Bottom() ) - continue; - else - break; - } - else // if not, nothing happens. - return; - OUString aHelpText; - if( nPos <= nTop+nCount-1 ) // if find the matching entry, get its content. - aHelpText = GetEntry(nPos); - if( aHelpText.getLength() && GetTextWidth(aHelpText)<GetOutputSizePixel().Width() ) - aHelpText.clear(); // if the entry is quite short, clear the helping tip content. - aItemRect = Rectangle(Point(0,0),GetSizePixel()); - aPt = Point(OutputToScreenPixel( aItemRect.TopLeft() )); - aItemRect.Left() = aPt.X(); - aItemRect.Top() = aPt.Y(); - aPt = OutputToScreenPixel( aItemRect.BottomRight() ); - aItemRect.Right() = aPt.X(); - aItemRect.Bottom() = aPt.Y(); - if( rHEvt.GetMode() == HelpEventMode::BALLOON ) - Help::ShowBalloon( this, aItemRect.Center(), aItemRect, aHelpText); - else - Help::ShowQuickHelp( this, aItemRect, aHelpText ); -} /********************************************************************/ /* */ diff --git a/cui/source/options/optinet2.hxx b/cui/source/options/optinet2.hxx index 16fc4c94aaf6..a34eccce80eb 100644 --- a/cui/source/options/optinet2.hxx +++ b/cui/source/options/optinet2.hxx @@ -98,19 +98,6 @@ public: virtual void Reset( const SfxItemSet* rSet ) override; }; -// #98647# class SvxScriptExecListBox ------------------------------------ -class SvxScriptExecListBox : public ListBox -{ // for adding tooltips to ListBox -public: - SvxScriptExecListBox( vcl::Window* pParent, WinBits nStyle = WB_BORDER ) - :ListBox(pParent, nStyle) {} - SvxScriptExecListBox( vcl::Window* pParent, const ResId& rResId ) - :ListBox(pParent, rResId) {} - -protected: - virtual void RequestHelp( const HelpEvent& rHEvt ) override; -}; - // class SvxSecurityTabPage --------------------------------------------- class SvtSecurityOptions; diff --git a/cui/source/options/optjava.hxx b/cui/source/options/optjava.hxx index 85905df10641..bee68940ce50 100644 --- a/cui/source/options/optjava.hxx +++ b/cui/source/options/optjava.hxx @@ -148,9 +148,6 @@ private: m_pAssignedList->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND ); } - inline void EnableAssignButton() - { m_pAssignBtn->Enable(); } - inline void DisableAssignButton() { m_pAssignBtn->Disable(); } |