diff options
author | Eike Rathke <erack@redhat.com> | 2017-09-19 18:55:19 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-09-19 18:56:29 +0200 |
commit | 179da6befe2181e276a12de350e3dd80682c4b2f (patch) | |
tree | a71720a25c9f225af78b7f6f302d8de28d4a698d /svtools | |
parent | d915987bfcd99deb9446781408d475ff96b1df55 (diff) |
Rename getCurrentPageWriter() to getCurrentPage()
... and let getCurrentPageWriter() be a private implementation detail.
Change-Id: Iaa14d8eab81e5750fbaf45adc6aab66eee9018eb
Reviewed-on: https://gerrit.libreoffice.org/42488
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/DocumentToGraphicRenderer.cxx | 5 | ||||
-rw-r--r-- | svtools/source/filter/GraphicExportOptionsDialog.cxx | 2 | ||||
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx index d3f78afa575d..459bfb925174 100644 --- a/svtools/source/filter/DocumentToGraphicRenderer.cxx +++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx @@ -181,6 +181,11 @@ Graphic DocumentToGraphicRenderer::renderToGraphic( return Graphic(aMtf); } +sal_Int32 DocumentToGraphicRenderer::getCurrentPage() +{ + return getCurrentPageWriter(); +} + sal_Int32 DocumentToGraphicRenderer::getCurrentPageWriter() { Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(mxModel->getCurrentController(), UNO_QUERY); diff --git a/svtools/source/filter/GraphicExportOptionsDialog.cxx b/svtools/source/filter/GraphicExportOptionsDialog.cxx index cb7cb64c919e..60c3dc05bba4 100644 --- a/svtools/source/filter/GraphicExportOptionsDialog.cxx +++ b/svtools/source/filter/GraphicExportOptionsDialog.cxx @@ -60,7 +60,7 @@ void GraphicExportOptionsDialog::dispose() void GraphicExportOptionsDialog::initialize() { - mCurrentPage = mRenderer.getCurrentPageWriter(); + mCurrentPage = mRenderer.getCurrentPage(); mSize100mm = mRenderer.getDocumentSizeIn100mm(mCurrentPage); // Init DPI with screen resolution, taking width. This may lead to unusual // DPI values but ensures a size in pixels that matches the actual screen diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index db1c77e2b38e..3de009f3daef 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -351,7 +351,7 @@ awt::Size ExportDialog::GetOriginalSize() else if (!mbGraphicsSource) { DocumentToGraphicRenderer aRenderer( mxSourceDocument, mbExportSelection); - const sal_Int32 nCurrentPage = aRenderer.getCurrentPageWriter(); + const sal_Int32 nCurrentPage = aRenderer.getCurrentPage(); const Size aSize = aRenderer.getDocumentSizeIn100mm( nCurrentPage); return awt::Size( aSize.Width(), aSize.Height()); } @@ -435,7 +435,7 @@ void ExportDialog::GetGraphicStream() { // Create a Graphic to be used below. DocumentToGraphicRenderer aRenderer( mxSourceDocument, mbExportSelection); - const sal_Int32 nCurrentPage = aRenderer.getCurrentPageWriter(); + const sal_Int32 nCurrentPage = aRenderer.getCurrentPage(); const Size aDocumentSizePixel = aRenderer.getDocumentSizeInPixels( nCurrentPage); const Size aTargetSizePixel( mbIsPixelFormat ? |