summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/print
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 10:02:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 11:04:05 +0200
commit3be72fe233b3e6d7aeb267f6c82d8bf9759b39ef (patch)
treea8304c473bac0da12a6b5d35f7841cd61a13b01c /vcl/unx/generic/print
parentb5c5cccabe68dc2de84cee4ef041f52268e5b8b4 (diff)
loplugin:constmethod in vcl
Change-Id: I20545527b117c9562b91076b748fb3e2659d2497 Reviewed-on: https://gerrit.libreoffice.org/77944 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/print')
-rw-r--r--vcl/unx/generic/print/glyphset.hxx4
-rw-r--r--vcl/unx/generic/print/prtsetup.cxx8
-rw-r--r--vcl/unx/generic/print/prtsetup.hxx8
3 files changed, 10 insertions, 10 deletions
diff --git a/vcl/unx/generic/print/glyphset.hxx b/vcl/unx/generic/print/glyphset.hxx
index 52f7052bd710..f3599a4e8a89 100644
--- a/vcl/unx/generic/print/glyphset.hxx
+++ b/vcl/unx/generic/print/glyphset.hxx
@@ -65,12 +65,12 @@ public:
GlyphSet (sal_Int32 nFontID, bool bVertical);
~GlyphSet ();
- sal_Int32 GetFontID () { return mnFontID;}
+ sal_Int32 GetFontID () const { return mnFontID;}
static OString
GetReencodedFontName (rtl_TextEncoding nEnc,
const OString &rFontName);
- bool IsVertical () { return mbVertical;}
+ bool IsVertical () const { return mbVertical;}
void DrawGlyph (PrinterGfx& rGfx,
const Point& rPoint,
diff --git a/vcl/unx/generic/print/prtsetup.cxx b/vcl/unx/generic/print/prtsetup.cxx
index d3c565846c17..72d550f11844 100644
--- a/vcl/unx/generic/print/prtsetup.cxx
+++ b/vcl/unx/generic/print/prtsetup.cxx
@@ -378,7 +378,7 @@ RTSDevicePage::~RTSDevicePage()
{
}
-sal_uLong RTSDevicePage::getDepth()
+sal_uLong RTSDevicePage::getDepth() const
{
sal_uInt16 nSelectPos = m_xDepthBox->get_active();
if (nSelectPos == 0)
@@ -387,7 +387,7 @@ sal_uLong RTSDevicePage::getDepth()
return 24;
}
-sal_uLong RTSDevicePage::getColorDevice()
+sal_uLong RTSDevicePage::getColorDevice() const
{
sal_uInt16 nSelectPos = m_xSpaceBox->get_active();
switch (nSelectPos)
@@ -402,7 +402,7 @@ sal_uLong RTSDevicePage::getColorDevice()
return 0;
}
-sal_uLong RTSDevicePage::getLevel()
+sal_uLong RTSDevicePage::getLevel() const
{
auto nLevel = m_xLevelBox->get_active_id().toInt32();
if (nLevel == 0)
@@ -410,7 +410,7 @@ sal_uLong RTSDevicePage::getLevel()
return nLevel < 10 ? nLevel-1 : 0;
}
-sal_uLong RTSDevicePage::getPDFDevice()
+sal_uLong RTSDevicePage::getPDFDevice() const
{
auto nLevel = m_xLevelBox->get_active_id().toInt32();
if (nLevel > 9)
diff --git a/vcl/unx/generic/print/prtsetup.hxx b/vcl/unx/generic/print/prtsetup.hxx
index 67eabe92a6a6..a2282e2980b1 100644
--- a/vcl/unx/generic/print/prtsetup.hxx
+++ b/vcl/unx/generic/print/prtsetup.hxx
@@ -126,10 +126,10 @@ public:
RTSDevicePage(weld::Widget* pPage, RTSDialog* pDialog);
~RTSDevicePage();
- sal_uLong getLevel();
- sal_uLong getPDFDevice();
- sal_uLong getDepth();
- sal_uLong getColorDevice();
+ sal_uLong getLevel() const;
+ sal_uLong getPDFDevice() const;
+ sal_uLong getDepth() const;
+ sal_uLong getColorDevice() const;
};
int SetupPrinterDriver(weld::Window* pParent, ::psp::PrinterInfo& rJobData);