diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-08 10:25:58 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-10 08:21:20 +0000 |
commit | 001e694ecd21095b6fcfb5632ace63d8e0c2b7f8 (patch) | |
tree | 6a78b42161a396b3a63e55a4e5c2fa45d76311c2 /include | |
parent | f06f06d50393184f1ca2e27db6167b08edc26cb3 (diff) |
loplugin:unusedmethods vcl(part2)
Change-Id: I12356b3fdce68282a30cae2b270b02e46558860a
Reviewed-on: https://gerrit.libreoffice.org/16847
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/abstdlg.hxx | 1 | ||||
-rw-r--r-- | include/vcl/bitmap.hxx | 1 | ||||
-rw-r--r-- | include/vcl/bitmapex.hxx | 2 | ||||
-rw-r--r-- | include/vcl/btndlg.hxx | 5 | ||||
-rw-r--r-- | include/vcl/builder.hxx | 4 | ||||
-rw-r--r-- | include/vcl/button.hxx | 13 | ||||
-rw-r--r-- | include/vcl/ctrl.hxx | 1 | ||||
-rw-r--r-- | include/vcl/dialog.hxx | 2 | ||||
-rw-r--r-- | include/vcl/dockwin.hxx | 45 | ||||
-rw-r--r-- | include/vcl/edit.hxx | 2 | ||||
-rw-r--r-- | include/vcl/fixed.hxx | 13 | ||||
-rw-r--r-- | include/vcl/floatwin.hxx | 1 | ||||
-rw-r--r-- | include/vcl/image.hxx | 2 | ||||
-rw-r--r-- | include/vcl/layout.hxx | 47 | ||||
-rw-r--r-- | include/vcl/menu.hxx | 20 | ||||
-rw-r--r-- | include/vcl/outdev.hxx | 21 | ||||
-rw-r--r-- | include/vcl/rendersettings.hxx | 6 | ||||
-rw-r--r-- | include/vcl/scrbar.hxx | 2 | ||||
-rw-r--r-- | include/vcl/settings.hxx | 1 | ||||
-rw-r--r-- | include/vcl/syswin.hxx | 1 | ||||
-rw-r--r-- | include/vcl/tabctrl.hxx | 9 | ||||
-rw-r--r-- | include/vcl/tabdlg.hxx | 3 | ||||
-rw-r--r-- | include/vcl/toolbox.hxx | 35 | ||||
-rw-r--r-- | include/vcl/vclmedit.hxx | 1 | ||||
-rw-r--r-- | include/vcl/virdev.hxx | 1 | ||||
-rw-r--r-- | include/vcl/window.hxx | 4 | ||||
-rw-r--r-- | include/vcl/wrkwin.hxx | 1 |
27 files changed, 10 insertions, 234 deletions
diff --git a/include/vcl/abstdlg.hxx b/include/vcl/abstdlg.hxx index 8ac20a190434..3b2dd2dae85c 100644 --- a/include/vcl/abstdlg.hxx +++ b/include/vcl/abstdlg.hxx @@ -53,7 +53,6 @@ class VCL_DLLPUBLIC VclAbstractRefreshableDialog : public VclAbstractDialog { public: virtual void Update() = 0; - virtual void Sync() = 0; }; class VCL_DLLPUBLIC AbstractPasswordToOpenModifyDialog : public VclAbstractDialog diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 16a6fb8087a2..6cdb3186af38 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -826,7 +826,6 @@ public: SAL_DLLPRIVATE void ImplAdaptBitCount(Bitmap& rNew) const; SAL_DLLPRIVATE bool ImplScaleFast( const double& rScaleX, const double& rScaleY ); SAL_DLLPRIVATE bool ImplScaleInterpolate( const double& rScaleX, const double& rScaleY ); - SAL_DLLPRIVATE bool ImplScaleSuper( const double& rScaleX, const double& rScaleY ); SAL_DLLPRIVATE bool ImplScaleConvolution( const double& rScaleX, const double& rScaleY, const Kernel& aKernel); SAL_DLLPRIVATE bool ImplConvolutionPass( diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index c63758d074b7..0937f0bb05d3 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -60,8 +60,6 @@ public: bool operator!=( const BitmapEx& rBitmapEx ) const { return !(*this==rBitmapEx); } bool operator!() const { return !aBitmap; } - bool IsEqual( const BitmapEx& rBmpEx ) const; - bool IsEmpty() const; void SetEmpty(); void Clear(); diff --git a/include/vcl/btndlg.hxx b/include/vcl/btndlg.hxx index 6ae2824bb1e3..53280846e62f 100644 --- a/include/vcl/btndlg.hxx +++ b/include/vcl/btndlg.hxx @@ -57,7 +57,6 @@ public: void Click(); void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; } - const Size& GetPageSizePixel() const { return maPageSize; } sal_uInt16 GetCurButtonId() const { return mnCurButtonId; } @@ -72,10 +71,6 @@ public: void SetButtonHelpText( sal_uInt16 nId, const OUString& rText ); void SetFocusButton( sal_uInt16 nId = BUTTONDIALOG_BUTTON_NOTFOUND ) { mnFocusButtonId = nId; } - sal_uInt16 GetFocusButton() const { return mnFocusButtonId; } - - void SetClickHdl( const Link<>& rLink ) { maClickHdl = rLink; } - const Link<>& GetClickHdl() const { return maClickHdl; } protected: ButtonDialog( WindowType nType ); diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index 518d8a87b9ac..b0d8ace17354 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -474,10 +474,6 @@ public: { return m_pUIBuilder->get<T>(sID); } - PopupMenu* get_menu(PopupMenu*& ret, const OString & sID) - { - return m_pUIBuilder->get_menu(ret, sID); - } PopupMenu* get_menu(const OString & sID) { return m_pUIBuilder->get_menu(sID); diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index b34ed2e0668e..2c485e4ee508 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -180,7 +180,6 @@ public: void SetSymbolAlign( SymbolAlign eAlign ); void SetDropDown( PushButtonDropdownStyle nStyle ); - PushButtonDropdownStyle GetDropDown() const { return mnDDStyle; } void SetState( TriState eState ); TriState GetState() const { return meState; } @@ -194,14 +193,11 @@ public: void EndSelection(); void SaveValue() { meSaveValue = GetState(); } - TriState GetSavedValue() const { return meSaveValue; } bool IsValueChangedFromSaved() const { return meSaveValue != GetState(); } Size CalcMinimumSize( long nMaxWidth = 0 ) const; virtual Size GetOptimalSize() const SAL_OVERRIDE; - void SetToggleHdl( const Link<>& rLink ) { maToggleHdl = rLink; } - const Link<>& GetToggleHdl() const { return maToggleHdl; } virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; virtual void ShowFocus(const Rectangle& rRect) SAL_OVERRIDE; }; @@ -327,10 +323,8 @@ protected: virtual const Color& GetCanonicalTextColor( const StyleSettings& _rStyle ) const SAL_OVERRIDE; - inline void SetMouseRect( const Rectangle& _rMouseRect ) { maMouseRect = _rMouseRect; } - inline const Rectangle& GetMouseRect( ) const { return maMouseRect; } - inline void SetStateRect( const Rectangle& _rStateRect ) { maStateRect = _rStateRect; } - inline const Rectangle& GetStateRect( ) const { return maStateRect; } + inline void SetMouseRect( const Rectangle& _rMouseRect ) { maMouseRect = _rMouseRect; } + inline void SetStateRect( const Rectangle& _rStateRect ) { maStateRect = _rStateRect; } // draws the radio button (the knob image), in its current state (pressed/checked) // at the usual location, which can be overridden with SetStateRect @@ -379,7 +373,6 @@ public: virtual Size GetOptimalSize() const SAL_OVERRIDE; void SetToggleHdl( const Link<>& rLink ) { maToggleHdl = rLink; } - const Link<>& GetToggleHdl() const { return maToggleHdl; } /** GetRadioButtonGroup returns a list of pointers to <code>RadioButton</code>s in the same group. @@ -491,8 +484,6 @@ public: virtual Size GetOptimalSize() const SAL_OVERRIDE; void SetToggleHdl( const Link<>& rLink ) { maToggleHdl = rLink; } - const Link<>& GetToggleHdl() const { return maToggleHdl; } - bool IsLegacyNoTextAlign() { return mbLegacyNoTextAlign; } void SetLegacyNoTextAlign( bool bVal ) { mbLegacyNoTextAlign = bVal; } virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx index b85f561ce254..038d445522e4 100644 --- a/include/vcl/ctrl.hxx +++ b/include/vcl/ctrl.hxx @@ -166,7 +166,6 @@ public: long ToRelativeLineIndex( long nIndex ) const; void SetGetFocusHdl( const Link<>& rLink ) { maGetFocusHdl = rLink; } - const Link<>& GetGetFocusHdl() const { return maGetFocusHdl; } void SetLoseFocusHdl( const Link<>& rLink ) { maLoseFocusHdl = rLink; } const Link<>& GetLoseFocusHdl() const { return maLoseFocusHdl; } diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index aae1dccbbda1..273606b2220e 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -145,9 +145,7 @@ public: protected: using Window::Show; - void Show( bool bVisible = true ); using Window::Hide; - void Hide(); private: diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx index 156d0a0642bb..bae8483b8787 100644 --- a/include/vcl/dockwin.hxx +++ b/include/vcl/dockwin.hxx @@ -149,7 +149,6 @@ public: void TitleButtonClick( TitleButton nButton ); void Resizing( Size& rSize ); void Tracking( const TrackingEvent& rTEvt ); - long Notify( NotifyEvent& rNEvt ); void ShowTitleButton( TitleButton nButton, bool bVisible = true ); @@ -160,7 +159,6 @@ public: bool IsDocking() const { return mbDocking; } bool IsDockable() const { return mbDockable; } bool IsDockingCanceled() const { return mbDockCanceled; } - bool IsFloatingPrevented() const { return mbFloatPrevented; } void SetFloatingMode( bool bFloatMode = false ); bool IsFloatingMode() const; @@ -172,9 +170,6 @@ public: void setPosSizePixel( long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All ); - void SetPosSizePixel( const Point& rNewPos, - const Size& rNewSize ) - { mpDockingWindow->SetPosSizePixel( rNewPos, rNewSize ); } Point GetPosPixel() const; Size GetSizePixel() const; }; @@ -314,16 +309,9 @@ public: virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; - void SetPin( bool bPin ); - bool IsPinned() const; - - void RollUp(); void RollDown(); bool IsRollUp() const; - void SetRollUpOutputSizePixel( const Size& rSize ); - Size GetRollUpOutputSizePixel() const; - void SetMinOutputSizePixel( const Size& rSize ); const Size& GetMinOutputSizePixel() const; @@ -333,7 +321,6 @@ public: bool IsDockable() const { return mbDockable; } bool IsDockingCanceled() const { return mbDockCanceled; } bool IsDockingPrevented() const { return mbDockPrevented; } - bool IsFloatingPrevented() const { return mbFloatPrevented; } void SetFloatingMode( bool bFloatMode = false ); bool IsFloatingMode() const; @@ -362,26 +349,7 @@ public: virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) SAL_OVERRIDE; }; -inline void DockingWindow::SetPin( bool bPin ) -{ - if ( mpFloatWin ) - mpFloatWin->SetPin( bPin ); - mbPinned = bPin; -} - -inline bool DockingWindow::IsPinned() const -{ - if ( mpFloatWin ) - return mpFloatWin->IsPinned(); - return mbPinned; -} -inline void DockingWindow::RollUp() -{ - if ( mpFloatWin ) - mpFloatWin->RollUp(); - mbRollUp = true; -} inline void DockingWindow::RollDown() { @@ -397,19 +365,6 @@ inline bool DockingWindow::IsRollUp() const return mbRollUp; } -inline void DockingWindow::SetRollUpOutputSizePixel( const Size& rSize ) -{ - if ( mpFloatWin ) - mpFloatWin->SetRollUpOutputSizePixel( rSize ); - maRollUpOutSize = rSize; -} - -inline Size DockingWindow::GetRollUpOutputSizePixel() const -{ - if ( mpFloatWin ) - return mpFloatWin->GetRollUpOutputSizePixel(); - return maRollUpOutSize; -} inline void DockingWindow::SetMinOutputSizePixel( const Size& rSize ) { diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index a116a1e332b3..c134780ee035 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -55,7 +55,6 @@ private: OUString sForbiddenChars; public: void SetForbiddenChars(const OUString& rSet) { sForbiddenChars = rSet; } - const OUString& GetForbiddenChars() { return sForbiddenChars; } virtual OUString filter(const OUString &rText); @@ -212,7 +211,6 @@ public: virtual sal_Int32 GetMaxTextLen() const { return mnMaxTextLen; } void SetWidthInChars(sal_Int32 nWidthInChars); - sal_Int32 GetWidthInChars() const { return mnWidthInChars; } void setMaxWidthChars(sal_Int32 nWidth); diff --git a/include/vcl/fixed.hxx b/include/vcl/fixed.hxx index cfc759007663..f24a0d5432c0 100644 --- a/include/vcl/fixed.hxx +++ b/include/vcl/fixed.hxx @@ -71,17 +71,15 @@ public: virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; - void setMaxWidthChars(sal_Int32 nWidth); - sal_Int32 getMaxWidthChars() const { return m_nMaxWidthChars; } - void setMinWidthChars(sal_Int32 nWidth); - sal_Int32 getMinWidthChars() const { return m_nMinWidthChars; } + void setMaxWidthChars(sal_Int32 nWidth); + void setMinWidthChars(sal_Int32 nWidth); static Size CalcMinimumTextSize(Control const* pControl, long nMaxWidth = 0x7fffffff); static Size getTextDimensions(Control const *pControl, const OUString &rTxt, long nMaxWidth); Size CalcMinimumSize(long nMaxWidth = 0x7fffffff) const; virtual Size GetOptimalSize() const SAL_OVERRIDE; - virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; - void set_mnemonic_widget(vcl::Window *pWindow); - vcl::Window* get_mnemonic_widget() const { return m_pMnemonicWindow; } + virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; + void set_mnemonic_widget(vcl::Window *pWindow); + vcl::Window* get_mnemonic_widget() const { return m_pMnemonicWindow; } }; class VCL_DLLPUBLIC SelectableFixedText : public Edit @@ -154,7 +152,6 @@ public: void SetBitmap( const Bitmap& rBitmap ); using OutputDevice::GetBitmap; - const Bitmap& GetBitmap() const { return maBitmap; } }; diff --git a/include/vcl/floatwin.hxx b/include/vcl/floatwin.hxx index 411e8c15ec1c..023666f5f04c 100644 --- a/include/vcl/floatwin.hxx +++ b/include/vcl/floatwin.hxx @@ -167,7 +167,6 @@ public: bool IsPopupModeTearOff() const { return mbPopupModeTearOff; } void SetPopupModeEndHdl( const Link<>& rLink ) { maPopupModeEndHdl = rLink; } - const Link<>& GetPopupModeEndHdl() const { return maPopupModeEndHdl; } bool GrabsFocus() const { return mbGrabFocus; } diff --git a/include/vcl/image.hxx b/include/vcl/image.hxx index 7ca4985de04c..67f0b9183e18 100644 --- a/include/vcl/image.hxx +++ b/include/vcl/image.hxx @@ -66,8 +66,6 @@ public: BitmapEx GetBitmapEx() const; css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const; - Image GetColorTransformedImage( ImageColorTransform eColorTransform ) const; - bool operator!() const { return !mpImplData; } Image& operator=( const Image& rImage ); bool operator==( const Image& rImage ) const; diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 7d67230ba363..b8472efc19e8 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -86,10 +86,6 @@ public: { m_bHomogeneous = bHomogeneous; } - bool get_homogeneous() const - { - return m_bHomogeneous; - } virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; protected: virtual sal_uInt16 getDefaultAccessibleRole() const SAL_OVERRIDE; @@ -105,8 +101,6 @@ protected: virtual void setPrimaryCoordinate(Point &rPos, long) const = 0; virtual long getSecondaryDimension(const Size &rSize) const = 0; virtual void setSecondaryDimension(Size &rSize, long) const = 0; - virtual long getSecondaryCoordinate(const Point &rPos) const = 0; - virtual void setSecondaryCoordinate(Point &rPos, long) const = 0; virtual bool getPrimaryDimensionChildExpand(const vcl::Window &rWindow) const = 0; }; @@ -144,14 +138,6 @@ protected: { rSize.setWidth(nWidth); } - virtual long getSecondaryCoordinate(const Point &rPos) const SAL_OVERRIDE - { - return rPos.getX(); - } - virtual void setSecondaryCoordinate(Point &rPos, long nPos) const SAL_OVERRIDE - { - rPos.setX(nPos); - } virtual bool getPrimaryDimensionChildExpand(const vcl::Window &rWindow) const SAL_OVERRIDE { return rWindow.get_expand() || rWindow.get_vexpand(); @@ -191,14 +177,6 @@ protected: { rSize.setHeight(nHeight); } - virtual long getSecondaryCoordinate(const Point &rPos) const SAL_OVERRIDE - { - return rPos.getY(); - } - virtual void setSecondaryCoordinate(Point &rPos, long nPos) const SAL_OVERRIDE - { - rPos.setY(nPos); - } virtual bool getPrimaryDimensionChildExpand(const vcl::Window &rWindow) const SAL_OVERRIDE { return rWindow.get_expand() || rWindow.get_hexpand(); @@ -227,10 +205,6 @@ public: { m_eLayoutStyle = eStyle; } - VclButtonBoxStyle get_layout() const - { - return m_eLayoutStyle; - } virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; void sort_native_button_order(); protected: @@ -283,14 +257,6 @@ protected: { rSize.setWidth(nWidth); } - virtual long getSecondaryCoordinate(const Point &rPos) const SAL_OVERRIDE - { - return rPos.getX(); - } - virtual void setSecondaryCoordinate(Point &rPos, long nPos) const SAL_OVERRIDE - { - rPos.setX(nPos); - } virtual bool getPrimaryDimensionChildExpand(const vcl::Window &rWindow) const SAL_OVERRIDE { return rWindow.get_expand() || rWindow.get_vexpand(); @@ -330,14 +296,6 @@ protected: { rSize.setHeight(nHeight); } - virtual long getSecondaryCoordinate(const Point &rPos) const SAL_OVERRIDE - { - return rPos.getY(); - } - virtual void setSecondaryCoordinate(Point &rPos, long nPos) const SAL_OVERRIDE - { - rPos.setY(nPos); - } virtual bool getPrimaryDimensionChildExpand(const vcl::Window &rWindow) const SAL_OVERRIDE { return rWindow.get_expand() || rWindow.get_hexpand(); @@ -539,13 +497,8 @@ public: { m_pDisclosureButton->SetText(rLabel); } - OUString get_label() const - { - return m_pDisclosureButton->GetText(); - } virtual void StateChanged(StateChangedType nType) SAL_OVERRIDE; void SetExpandedHdl( const Link<>& rLink ) { maExpandedHdl = rLink; } - const Link<>& GetExpandedHdl() const { return maExpandedHdl; } protected: virtual Size calculateRequisition() const SAL_OVERRIDE; virtual void setAllocation(const Size &rAllocation) SAL_OVERRIDE; diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 479849f608bc..25714b31635c 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -219,7 +219,9 @@ public: SAL_DLLPRIVATE Menu* ImplGetStartedFrom() const { return pStartedFrom; } SAL_DLLPRIVATE vcl::Window* ImplGetWindow() const { return pWindow; } +#if defined(MACOSX) void ImplSelectWithStart( Menu* pStartMenu = NULL ); +#endif protected: @@ -290,7 +292,6 @@ public: bool IsItemChecked( sal_uInt16 nItemId ) const; virtual void SelectItem(sal_uInt16 nItemId) = 0; - void DeSelect() { SelectItem( 0xFFFF ); } // MENUITEMPOS_INVALID void EnableItem( sal_uInt16 nItemId, bool bEnable = true ); void EnableItem(const OString &rIdent, bool bEnable = true) @@ -351,15 +352,6 @@ public: { aSelectHdl = rLink; } - const Link<>& GetSelectHdl() const - { - return aSelectHdl; - } - - bool HasLogo() const - { - return pLogo != nullptr; - } sal_uInt16 GetTitleHeight() { @@ -368,8 +360,6 @@ public: void AddEventListener( const Link<>& rEventListener ); void RemoveEventListener( const Link<>& rEventListener ); - void AddChildEventListener( const Link<>& rEventListener ); - void RemoveChildEventListener( const Link<>& rEventListener ); Menu& operator =( const Menu& rMenu ); @@ -481,9 +471,7 @@ public: void SetCloseButtonClickHdl( const Link<>& rLink ) { maCloseHdl = rLink; } const Link<>& GetCloseButtonClickHdl() const { return maCloseHdl; } - void SetFloatButtonClickHdl( const Link<>& rLink ) { maFloatHdl = rLink; } const Link<>& GetFloatButtonClickHdl() const { return maFloatHdl; } - void SetHideButtonClickHdl( const Link<>& rLink ) { maHideHdl = rLink; } const Link<>& GetHideButtonClickHdl() const { return maHideHdl; } // - by default a menubar is displayable @@ -552,10 +540,6 @@ public: { aTitleText = rTitle; } - const OUString& GetText() const - { - return aTitleText; - } sal_uInt16 Execute( vcl::Window* pWindow, const Point& rPopupPos ); sal_uInt16 Execute( vcl::Window* pWindow, const Rectangle& rRect, PopupMenuFlags nFlags = PopupMenuFlags::NONE ); diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 8f39b2febe13..7c4a27a3b2b3 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1717,8 +1717,6 @@ public: const MapMode& rMapMode ) const; Polygon LogicToPixel( const Polygon& rLogicPoly, const MapMode& rMapMode ) const; - tools::PolyPolygon LogicToPixel( const tools::PolyPolygon& rLogicPolyPoly, - const MapMode& rMapMode ) const; basegfx::B2DPolyPolygon LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly, const MapMode& rMapMode ) const; @@ -1739,8 +1737,6 @@ public: const MapMode& rMapMode ) const; basegfx::B2DPolygon PixelToLogic( const basegfx::B2DPolygon& rDevicePoly, const MapMode& rMapMode ) const; - tools::PolyPolygon PixelToLogic( const tools::PolyPolygon& rDevicePolyPoly, - const MapMode& rMapMode ) const; basegfx::B2DPolyPolygon PixelToLogic( const basegfx::B2DPolyPolygon& rDevicePolyPoly, const MapMode& rMapMode ) const; @@ -1806,7 +1802,6 @@ public: SAL_DLLPRIVATE long ImplLogicWidthToDevicePixel( long nWidth ) const; SAL_DLLPRIVATE DeviceCoordinate LogicWidthToDeviceCoordinate( long nWidth ) const; - SAL_DLLPRIVATE DeviceCoordinate LogicHeightToDeviceCoordinate( long nHeight ) const; protected: /** @@ -1905,22 +1900,6 @@ private: */ SAL_DLLPRIVATE Rectangle ImplDevicePixelToLogic( const Rectangle& rPixelRect ) const; - /** Convert a logical B2DPolygon to a B2DPolygon in physical device pixel units. - - @param rLogicSize Const reference to a B2DPolygon in logical units - - @returns B2DPolyPolygon based on physical device pixel coordinates and units. - */ - SAL_DLLPRIVATE ::basegfx::B2DPolygon ImplLogicToDevicePixel( const ::basegfx::B2DPolygon& rLogicPoly ) const; - - /** Convert a logical B2DPolyPolygon to a B2DPolyPolygon in physical device pixel units. - - @param rLogicPolyPoly Const reference to a B2DPolyPolygon in logical units - - @returns B2DPolyPolygon based on physical device pixel coordinates and units. - */ - SAL_DLLPRIVATE ::basegfx::B2DPolyPolygon ImplLogicToDevicePixel( const ::basegfx::B2DPolyPolygon& rLogicPolyPoly ) const; - /** Convert a logical polygon to a polygon in physical device pixel units. @param rLogicPoly Const reference to a polygon in logical units diff --git a/include/vcl/rendersettings.hxx b/include/vcl/rendersettings.hxx index f6df7215441d..41a2775db081 100644 --- a/include/vcl/rendersettings.hxx +++ b/include/vcl/rendersettings.hxx @@ -29,12 +29,6 @@ public: virtual ~RenderSettings() {} - inline void SetLineColor(const Color& rColor); - inline void SetFillColor(const Color& rColor); - inline void SetBackground(const Wallpaper& rBackground); - inline void SetFont(const vcl::Font& rNewFont); - - void PushAndApply(vcl::RenderContext& rRenderContext); void Apply(vcl::RenderContext& rRenderContext); }; diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx index 1c3c63f8fd2d..5de297fdb1e9 100644 --- a/include/vcl/scrbar.hxx +++ b/include/vcl/scrbar.hxx @@ -115,7 +115,6 @@ public: void EnableDrag( bool bEnable = true ) { mbFullDrag = bEnable; } - bool IsDragEnabled() const { return mbFullDrag; } void SetRangeMin( long nNewRange ); long GetRangeMin() const { return mnMinRange; } @@ -136,7 +135,6 @@ public: ScrollType GetType() const { return meScrollType; } void SetScrollHdl( const Link<>& rLink ) { maScrollHdl = rLink; } - const Link<>& GetScrollHdl() const { return maScrollHdl; } void SetEndScrollHdl( const Link<>& rLink ) { maEndScrollHdl = rLink; } const Link<>& GetEndScrollHdl() const { return maEndScrollHdl; } diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 59af8ee62c7b..996feb1e7c7d 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -409,7 +409,6 @@ public: void SetInactiveTabColor( const Color& rColor ); const Color& GetInactiveTabColor() const; - void SetAlternatingRowColor( const Color& rColor ); const Color& GetAlternatingRowColor() const; void SetHighContrastMode(bool bHighContrast ); diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index 875586dbc44b..94ecbadf05ee 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -228,7 +228,6 @@ public: void SetMenuBar(MenuBar* pMenuBar, const css::uno::Reference<css::frame::XFrame>& rFrame = css::uno::Reference<css::frame::XFrame>()); MenuBar* GetMenuBar() const { return mpMenuBar; } void SetMenuBarMode( MenuBarMode nMode ); - MenuBarMode GetMenuBarMode() const { return mnMenuBarMode; } TaskPaneList* GetTaskPaneList(); void GetWindowStateData( WindowStateData& rData ) const; diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx index 4a6a53041442..3d4ab0533e3c 100644 --- a/include/vcl/tabctrl.hxx +++ b/include/vcl/tabctrl.hxx @@ -140,9 +140,6 @@ public: void SelectTabPage( sal_uInt16 nPageId ); void SetMaxPageWidth( long nMaxWidth ) { mnMaxPageWidth = nMaxWidth; } - long GetMaxPageWidth() const { return mnMaxPageWidth; } - void ResetMaxPageWidth() { SetMaxPageWidth( 0 ); } - bool IsMaxPageWidth() const { return mnMaxPageWidth != 0; } void SetTabPage( sal_uInt16 nPageId, TabPage* pPage ); TabPage* GetTabPage( sal_uInt16 nPageId ) const; @@ -161,18 +158,12 @@ public: void SetPageImage( sal_uInt16 nPageId, const Image& rImage ); - void SetHelpText( const OUString& rText ) - { Control::SetHelpText( rText ); } - const OUString& GetHelpText() const - { return Control::GetHelpText(); } - void SetHelpId( const OString& rId ) { Control::SetHelpId( rId ); } const OString& GetHelpId() const { return Control::GetHelpId(); } void SetActivatePageHdl( const Link<>& rLink ) { maActivateHdl = rLink; } - const Link<>& GetActivatePageHdl() const { return maActivateHdl; } void SetDeactivatePageHdl( const Link<TabControl *, bool>& rLink ) { maDeactivateHdl = rLink; } // returns (control relative) bounding rectangle for the diff --git a/include/vcl/tabdlg.hxx b/include/vcl/tabdlg.hxx index db3f592ea20b..8a1a94fc9bff 100644 --- a/include/vcl/tabdlg.hxx +++ b/include/vcl/tabdlg.hxx @@ -47,9 +47,8 @@ public: virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; void SetViewWindow( vcl::Window* pWindow ) { mpViewWindow = pWindow; } - vcl::Window* GetViewWindow() const { return mpViewWindow; } + vcl::Window* GetViewWindow() const { return mpViewWindow; } void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; } - WindowAlign GetViewAlign() const { return meViewAlign; } }; #endif // INCLUDED_VCL_TABDLG_HXX diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index 23ae8edcf25e..73cb93728d03 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -52,12 +52,6 @@ public: ToolBoxCustomizeEvent( ToolBox* pDropBox, sal_uInt16 nId, sal_uInt16 nPos = 0, void* pUserData = NULL ); - - ToolBox* GetTargetBox() const { return mpTargetBox; } - sal_uInt16 GetTargetPos() const { return mnPosTo; } - sal_uInt16 GetSourceId() const { return mnIdFrom; } - void* GetData() const { return mpData; } - bool IsResized() const; }; inline ToolBoxCustomizeEvent::ToolBoxCustomizeEvent() @@ -78,14 +72,6 @@ inline ToolBoxCustomizeEvent::ToolBoxCustomizeEvent( ToolBox* pDropBox, mpData = pUserData; } -inline bool ToolBoxCustomizeEvent::IsResized() const -{ - if ( mnPosTo == TOOLBOX_CUSTOMIZE_RESIZE ) - return true; - else - return false; -} - #define TOOLBOX_STYLE_FLAT ((sal_uInt16)0x0004) #define TOOLBOX_APPEND ((sal_uInt16)0xFFFF) @@ -372,8 +358,6 @@ public: bool IsHorizontal() const { return mbHorz; } void SetLineCount( sal_uInt16 nNewLines ); - sal_uInt16 GetLineCount() const { return mnLines; } - sal_uInt16 GetCurLine() const { return mnCurLine; } void ShowLine( bool bNext ); // Used to enable/disable scrolling one page at a time for toolbar @@ -396,10 +380,8 @@ public: /// Retrieves the optimal position to place a popup window for this item (subtoolbar or dropdown) Point GetItemPopupPosition( sal_uInt16 nItemId, const Size& rSize ) const; - Rectangle GetScrollRect() const; sal_uInt16 GetCurItemId() const { return mnCurItemId; } sal_uInt16 GetDownItemId() const { return mnDownItemId; } - sal_uInt16 GetClicks() const { return mnMouseClicks; } sal_uInt16 GetModifier() const { return mnMouseModifier; } sal_uInt16 GetKeyModifier() const { return mnKeyModifier; } @@ -480,8 +462,6 @@ public: // computes the smallest useful size when docked, ie with the first item visible only (+drag area and menu button) Size CalcMinimumWindowSizePixel() const; - void SetDockingRects( const Rectangle& rOutRect, - const Rectangle& rInRect ); void SetFloatingLines( sal_uInt16 nFloatLines ); sal_uInt16 GetFloatingLines() const; @@ -495,14 +475,12 @@ public: static bool AlwaysLocked(); void EnableMenuStrings( bool bEnable = true ) { mbMenuStrings = bEnable; } - bool IsMenuStringsEnabled() const { return mbMenuStrings; } void SetOutStyle( sal_uInt16 nNewStyle ); sal_uInt16 GetOutStyle() const { return mnOutStyle; } void EnableCustomize( bool bEnable = true ); bool IsCustomize() { return mbCustomize; } - bool IsInCustomizeMode() const { return mbCustomizeMode; } using DockingWindow::SetHelpText; using DockingWindow::GetHelpText; @@ -537,8 +515,6 @@ public: // open custommenu void ExecuteCustomMenu(); - // allow Click Handler to detect special key - bool IsShift() const { return mbIsShift; } // allow Click Handler to distinguish between mouse and key input bool IsKeyEvent() const { return mbIsKeyEvent; } @@ -580,17 +556,6 @@ inline Size ToolBox::CalcWindowSizePixel() const return CalcWindowSizePixel( mnLines ); } -inline Rectangle ToolBox::GetScrollRect() const -{ - return maUpperRect.GetUnion( maLowerRect ); -} - -inline void ToolBox::SetDockingRects( const Rectangle& rOutRect, - const Rectangle& rInRect ) -{ - maOutDockRect = rOutRect; - maInDockRect = rInRect; -} inline void ToolBox::SetFloatingLines( sal_uInt16 nNewLines ) { diff --git a/include/vcl/vclmedit.hxx b/include/vcl/vclmedit.hxx index 54165218ae85..5b1ec57dc666 100644 --- a/include/vcl/vclmedit.hxx +++ b/include/vcl/vclmedit.hxx @@ -108,7 +108,6 @@ public: void SaveValue() { aSaveValue = GetText(); } const OUString& GetSavedValue() const { return aSaveValue; } - bool IsValueChangedFromSaved() const { return aSaveValue != GetText(); } void SetModifyHdl( const Link<>& rLink ) SAL_OVERRIDE { aModifyHdlLink = rLink; } const Link<>& GetModifyHdl() const SAL_OVERRIDE { return aModifyHdlLink; } diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx index 9f0fdbcc48da..ef86e5de7cac 100644 --- a/include/vcl/virdev.hxx +++ b/include/vcl/virdev.hxx @@ -69,7 +69,6 @@ protected: virtual void ReleaseGraphics( bool bRelease = true ) SAL_OVERRIDE; public: - SalVirtualDevice* getSalVirtualDevice() { return mpVirDev; } /** Create a virtual device of size 1x1 diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 545f4bb52af6..46d0176ea2c2 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -570,7 +570,6 @@ public: DECL_DLLPRIVATE_LINK_TYPED( ImplTrackTimerHdl, Timer*, void ); DECL_DLLPRIVATE_LINK( ImplAsyncFocusHdl, void* ); DECL_DLLPRIVATE_LINK_TYPED( ImplHandleResizeTimerHdl, Idle*, void ); - DECL_DLLPRIVATE_LINK( ImplHideOwnerDrawWindowsHdl, void* ); SAL_DLLPRIVATE static void ImplInitAppFontData( vcl::Window* pWindow ); @@ -760,7 +759,6 @@ private: SAL_DLLPRIVATE void ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl = true ); - SAL_DLLPRIVATE void ImplAlignChildren(); SAL_DLLPRIVATE void ImplToBottomChild(); SAL_DLLPRIVATE void ImplCalcToTop( ImplCalcToTopData* pPrevData ); @@ -1363,8 +1361,6 @@ private: SAL_DLLPRIVATE bool ImplIsAccessibleNativeFrame() const; SAL_DLLPRIVATE sal_uInt16 ImplGetAccessibleCandidateChildWindowCount( GetWindowType nFirstWindowType ) const; SAL_DLLPRIVATE vcl::Window* ImplGetAccessibleCandidateChild( sal_uInt16 nChild, sal_uInt16& rChildCount, GetWindowType nFirstWindowType, bool bTopLevel = true ) const; - SAL_DLLPRIVATE bool ImplRegisterAccessibleNativeFrame(); - SAL_DLLPRIVATE void ImplRevokeAccessibleNativeFrame(); ///@} /* diff --git a/include/vcl/wrkwin.hxx b/include/vcl/wrkwin.hxx index 493779ae75e1..467e54ad4e9b 100644 --- a/include/vcl/wrkwin.hxx +++ b/include/vcl/wrkwin.hxx @@ -96,7 +96,6 @@ public: */ void StartPresentationMode( bool bPresentation = true, PresentationFlags nFlags = PresentationFlags::NONE ); - void EndPresentationMode() { StartPresentationMode( false ); } bool IsPresentationMode() const { return mbPresentationMode; } bool IsMinimized() const; |