summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/DocumentRenderer.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-25 05:20:00 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-25 05:41:09 +0200
commited6b8a100c1aabb342573f252509573bbe124d29 (patch)
tree35874493d9470202b3221aa2a1666b6647494242 /sd/source/ui/view/DocumentRenderer.cxx
parent78f6407978aa48c3cbb116bc281940dbf1f2dcbc (diff)
remove whitespaces
Change-Id: I9daea42a433b5032931a722878874917cf37f4d1
Diffstat (limited to 'sd/source/ui/view/DocumentRenderer.cxx')
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx94
1 files changed, 0 insertions, 94 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index 59106a7454e7..def627d9988f 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <com/sun/star/beans/XPropertySet.hpp>
#include "DocumentRenderer.hxx"
@@ -57,12 +56,10 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-
namespace sd {
namespace {
-
/** Convenience class to extract values from the sequence of properties
given to one of the XRenderable methods.
*/
@@ -245,8 +242,6 @@ namespace {
}
};
-
-
/** A collection of values that helps to reduce the number of arguments
given to some functions. Note that not all values are set at the
same time.
@@ -279,8 +274,6 @@ namespace {
const bool mbPrintMarkedOnly;
};
-
-
/** Output one page of the document to the given printer. Note that
more than one document page may be output to one printer page.
*/
@@ -314,9 +307,6 @@ namespace {
rPrintView.HideSdrPage();
}
-
-
-
/** Output a string (that typically is not part of a document page) to
the given printer.
*/
@@ -331,9 +321,6 @@ namespace {
rPrinter.SetFont(aOriginalFont);
}
-
-
-
/** Read the resource file and process it into a sequence of properties
that can be passed to the printing dialog.
*/
@@ -441,7 +428,6 @@ namespace {
AddDialogControl( vcl::PrinterOptionsHelper::setSubgroupControlOpt("contents",
SD_RESSTR(_STR_IMPRESS_PRINT_UI_INCLUDE_CONTENT), "" ) );
-
if( mbImpress )
{
AddDialogControl( vcl::PrinterOptionsHelper::setBoolControlOpt("printname",
@@ -660,9 +646,6 @@ namespace {
}
};
-
-
-
/** The Prepare... methods of the DocumentRenderer::Implementation class
create a set of PrinterPage objects that contain all necessary
information to do the actual printing. There is one PrinterPage
@@ -723,9 +706,6 @@ namespace {
const sal_uInt16 mnPaperTray;
};
-
-
-
/** The RegularPrinterPage is used for printing one regular slide (no
notes, handout, or outline) to one printer page.
*/
@@ -780,9 +760,6 @@ namespace {
const sal_uInt16 mnPageIndex;
};
-
-
-
/** Print one slide multiple times on a printer page so that the whole
printer page is covered.
*/
@@ -942,9 +919,6 @@ namespace {
const Point maSecondOffset;
};
-
-
-
/** One handout page displays one to nine slides.
*/
class HandoutPrinterPage : public PrinterPage
@@ -1087,9 +1061,6 @@ namespace {
const ::std::vector<sal_uInt16> maPageIndices;
};
-
-
-
/** The outline information (title, subtitle, outline objects) of the
document. There is no fixed mapping of slides to printer pages.
*/
@@ -1165,7 +1136,6 @@ namespace {
};
}
-
//===== DocumentRenderer::Implementation ======================================
class DocumentRenderer::Implementation
@@ -1190,17 +1160,11 @@ public:
StartListening(mrBase);
}
-
-
-
virtual ~Implementation()
{
EndListening(mrBase);
}
-
-
-
virtual void Notify (SfxBroadcaster& rBroadcaster, const SfxHint& rHint) SAL_OVERRIDE
{
const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint);
@@ -1212,8 +1176,6 @@ public:
}
}
-
-
/** Process the sequence of properties given to one of the XRenderable
methods.
*/
@@ -1253,8 +1215,6 @@ public:
PreparePages();
}
-
-
/** Return the number of pages that are to be printed.
*/
sal_Int32 GetPrintPageCount()
@@ -1266,8 +1226,6 @@ public:
return maPrinterPages.size();
}
-
-
/** Return a sequence of properties that can be returned by the
XRenderable::getRenderer() method.
*/
@@ -1291,9 +1249,6 @@ public:
return aProperties;
}
-
-
-
/** Print one of the prepared pages.
*/
void PrintPage (const sal_Int32 nIndex)
@@ -1330,7 +1285,6 @@ public:
const MapMode aSavedMapMode (rPrinter.GetMapMode());
const sal_uInt16 nSavedPaperBin (rPrinter.GetPaperBin());
-
// Set page orientation.
if ( ! rPrinter.SetOrientation(pPage->GetOrientation()))
{
@@ -1373,9 +1327,6 @@ public:
rPrinter.SetPaperBin(nSavedPaperBin);
}
-
-
-
private:
// rhbz#657394: keep the document alive: prevents crash when
SfxObjectShellRef mxObjectShell; // destroying mpPrintView
@@ -1436,8 +1387,6 @@ private:
return true;
}
-
-
/** Top most method for preparing printer pages. In this and the other
Prepare... methods the various special cases are detected and
handled.
@@ -1522,9 +1471,6 @@ private:
}
}
-
-
-
/** Create the page objects of the handout template. When the actual
printing takes place then the page objects are assigned different
sets of slides for each printed page (see HandoutPrinterPage::Print).
@@ -1603,9 +1549,6 @@ private:
}
}
-
-
-
/** Detect whether the specified slide is to be printed.
@return
When the slide is not to be printed then <NULL/> is returned.
@@ -1628,9 +1571,6 @@ private:
return NULL;
}
-
-
-
/** Prepare the outline of the document for printing. There is no fixed
number of slides whose outline data is put onto one printer page.
If the current printer page has enough room for the outline of the
@@ -1788,9 +1728,6 @@ private:
pOutliner->Init(nSavedOutlMode);
}
-
-
-
/** Prepare handout pages for slides that are to be printed.
*/
void PrepareHandout (PrintInfo& rInfo)
@@ -1905,9 +1842,6 @@ private:
}
}
-
-
-
/** Prepare the notes pages or regular slides.
*/
void PrepareStdOrNotes (
@@ -1935,9 +1869,6 @@ private:
PrepareRegularPages(ePageKind, rInfo);
}
-
-
-
/** Prepare slides in a non-booklet way: one slide per one to many
printer pages.
*/
@@ -2022,9 +1953,6 @@ private:
}
}
-
-
-
/** Put two slides on one printer page.
*/
void PrepareBooklet (
@@ -2148,9 +2076,6 @@ private:
}
}
-
-
-
/** Print one slide multiple times on one printer page so that the whole
printer page is covered.
*/
@@ -2180,8 +2105,6 @@ private:
nPaperBin)));
}
-
-
/** Print one standard slide or notes page on one to many printer
pages. More than on printer page is used when the slide is larger
than the printable area.
@@ -2270,9 +2193,6 @@ private:
}
};
-
-
-
//===== DocumentRenderer ======================================================
DocumentRenderer::DocumentRenderer (ViewShellBase& rBase)
@@ -2281,16 +2201,10 @@ DocumentRenderer::DocumentRenderer (ViewShellBase& rBase)
{
}
-
-
-
DocumentRenderer::~DocumentRenderer()
{
}
-
-
-
//----- XRenderable -----------------------------------------------------------
sal_Int32 SAL_CALL DocumentRenderer::getRendererCount (
@@ -2303,9 +2217,6 @@ sal_Int32 SAL_CALL DocumentRenderer::getRendererCount (
return mpImpl->GetPrintPageCount();
}
-
-
-
Sequence<beans::PropertyValue> SAL_CALL DocumentRenderer::getRenderer (
sal_Int32 nRenderer,
const css::uno::Any& rSelection,
@@ -2318,9 +2229,6 @@ Sequence<beans::PropertyValue> SAL_CALL DocumentRenderer::getRenderer (
return mpImpl->GetProperties(rOptions);
}
-
-
-
void SAL_CALL DocumentRenderer::render (
sal_Int32 nRenderer,
const css::uno::Any& rSelection,
@@ -2332,8 +2240,6 @@ void SAL_CALL DocumentRenderer::render (
mpImpl->PrintPage(nRenderer);
}
-
-
} // end of namespace sd
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */