summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/print/genpspgraphics.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/print/genpspgraphics.cxx')
-rw-r--r--vcl/unx/generic/print/genpspgraphics.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx
index ab5c2ab77d7a..8f1adf73e632 100644
--- a/vcl/unx/generic/print/genpspgraphics.cxx
+++ b/vcl/unx/generic/print/genpspgraphics.cxx
@@ -56,6 +56,8 @@ using namespace psp;
// ----- Implementation of PrinterBmp by means of SalBitmap/BitmapBuffer ---------------
+namespace {
+
class SalPrinterBmp : public psp::PrinterBmp
{
private:
@@ -76,8 +78,6 @@ public:
virtual sal_uInt32 GetDepth () const override;
};
-namespace
-{
bool Bitmap32IsPreMultipled()
{
auto pBackendCapabilities = ImplGetSVData()->mpDefInst->GetBackendCapabilities();
@@ -533,6 +533,8 @@ void GenPspGraphics::invert(long,long,long,long,SalInvert)
OSL_FAIL("Warning: PrinterGfx::Invert() not implemented");
}
+namespace {
+
class ImplPspFontData : public FreetypeFontFace
{
private:
@@ -543,11 +545,15 @@ public:
virtual sal_IntPtr GetFontId() const override { return mnFontId; }
};
+}
+
ImplPspFontData::ImplPspFontData(const psp::FastPrintFontInfo& rInfo)
: FreetypeFontFace(nullptr, GenPspGraphics::Info2FontAttributes(rInfo)),
mnFontId( rInfo.m_nID )
{}
+namespace {
+
class PspSalLayout : public GenericSalLayout
{
public:
@@ -565,6 +571,8 @@ private:
bool mbArtBold;
};
+}
+
PspSalLayout::PspSalLayout(::psp::PrinterGfx& rGfx, const FreetypeFont& rFont)
: GenericSalLayout(*rFont.GetFontInstance())
, mrPrinterGfx(rGfx)