diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-22 15:08:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-22 18:56:58 +0000 |
commit | c4cd079b8f613084a99a83b95c3968b65cbd8900 (patch) | |
tree | 16051edcfd1f7109aefa08af6d71da0687b20f8a /sdext/source | |
parent | sd lok: fix pixel-to-logic conversion in DrawViewShell::MakeVisible() (diff) | |
download | core-c4cd079b8f613084a99a83b95c3968b65cbd8900.tar.gz core-c4cd079b8f613084a99a83b95c3968b65cbd8900.zip |
loplugin:unusedmethods in sc..vcl
Change-Id: I70fcf95dfd3db05b4fd6e5cee37866f673d3afa8
Reviewed-on: https://gerrit.libreoffice.org/29183
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/inc/pdfparse.hxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 17 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterPaneBase.cxx | 29 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterPaneBase.hxx | 1 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterWindowManager.hxx | 2 |
5 files changed, 0 insertions, 51 deletions
diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx index f11c833161b1..a43bfbbb321a 100644 --- a/sdext/source/pdfimport/inc/pdfparse.hxx +++ b/sdext/source/pdfimport/inc/pdfparse.hxx @@ -255,8 +255,6 @@ public: bool decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen, sal_uInt8* pOutBuffer, unsigned int nObject, unsigned int nGeneration ) const; - - OUString getDecryptionKey() const; }; struct PDFObject : public PDFContainer diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 01e9893f989d..237609ef76fd 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -1262,23 +1262,6 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const return bValid; } -OUString PDFFile::getDecryptionKey() const -{ - OUStringBuffer aBuf( ENCRYPTION_KEY_LEN * 2 ); - if( impl_getData()->m_bIsEncrypted ) - { - for( sal_uInt32 i = 0; i < m_pData->m_nKeyLength; i++ ) - { - static const sal_Unicode pHexTab[16] = { '0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - aBuf.append( pHexTab[(m_pData->m_aDecryptionKey[i] >> 4) & 0x0f] ); - aBuf.append( pHexTab[(m_pData->m_aDecryptionKey[i] & 0x0f)] ); - } - - } - return aBuf.makeStringAndClear(); -} - PDFFileImplData* PDFFile::impl_getData() const { if( m_pData ) diff --git a/sdext/source/presenter/PresenterPaneBase.cxx b/sdext/source/presenter/PresenterPaneBase.cxx index 6b4e5f92a6fa..c8497ff76d55 100644 --- a/sdext/source/presenter/PresenterPaneBase.cxx +++ b/sdext/source/presenter/PresenterPaneBase.cxx @@ -127,35 +127,6 @@ const Reference<drawing::framework::XPaneBorderPainter>& return mxBorderPainter; } -void PresenterPaneBase::SetCalloutAnchor (const css::awt::Point& rCalloutAnchor) -{ - mbHasCallout = true; - // Anchor is given in the coordinate system of the parent window. - // Transform it into the local coordinate system. - maCalloutAnchor = rCalloutAnchor; - const awt::Rectangle aBorderBox (mxBorderWindow->getPosSize()); - maCalloutAnchor.X -= aBorderBox.X; - maCalloutAnchor.Y -= aBorderBox.Y; - - // Move the bottom of the border window so that it goes through the - // callout anchor (special case for bottom callout). - sal_Int32 nHeight (rCalloutAnchor.Y - aBorderBox.Y); - if (mxBorderPainter.is() && mxPaneId.is()) - nHeight += mxBorderPainter->getCalloutOffset(mxPaneId->getResourceURL()).Y; - - if (nHeight != aBorderBox.Height) - { - mxBorderWindow->setPosSize( - aBorderBox.X, - aBorderBox.Y, - aBorderBox.Width, - nHeight, - awt::PosSize::HEIGHT); - } - - mpPresenterController->GetPaintManager()->Invalidate(mxBorderWindow); -} - const awt::Point& PresenterPaneBase::GetCalloutAnchor() const { return maCalloutAnchor; diff --git a/sdext/source/presenter/PresenterPaneBase.hxx b/sdext/source/presenter/PresenterPaneBase.hxx index 1211ab708c68..e46c5d01368a 100644 --- a/sdext/source/presenter/PresenterPaneBase.hxx +++ b/sdext/source/presenter/PresenterPaneBase.hxx @@ -76,7 +76,6 @@ public: void SetTitle (const OUString& rsTitle); const OUString& GetTitle() const; const css::uno::Reference<css::drawing::framework::XPaneBorderPainter>& GetPaneBorderPainter() const; - void SetCalloutAnchor (const css::awt::Point& rAnchorPosition); const css::awt::Point& GetCalloutAnchor() const; // XInitialization diff --git a/sdext/source/presenter/PresenterWindowManager.hxx b/sdext/source/presenter/PresenterWindowManager.hxx index bca8590ac60c..13115fba4ab7 100644 --- a/sdext/source/presenter/PresenterWindowManager.hxx +++ b/sdext/source/presenter/PresenterWindowManager.hxx @@ -193,8 +193,6 @@ private: void ProvideBackgroundBitmap(); css::uno::Reference<css::rendering::XPolyPolygon2D> CreateClipPolyPolygon() const; - static void UpdateWindowList(); - void Invalidate(); void StoreViewMode (const ViewMode eViewMode); |