diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2017-01-06 02:00:06 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-01-06 21:33:13 +0000 |
commit | 6b737072279b137b0224a3bbe48907621a36f434 (patch) | |
tree | 0c2200b3ddec6dd90be07257d861fad2f69bcf98 | |
parent | baa99b4e3a466495d0fa8fdef313230eec44c9ce (diff) |
Drop macros that are used only once
Change-Id: Ib75c0db614448f5297de9924335e2ee9f71f3a3f
Reviewed-on: https://gerrit.libreoffice.org/32766
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | vcl/source/gdi/print.cxx | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index a0b9218013a8..50bc4ad3a2ce 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -106,18 +106,6 @@ PrinterOptions::~PrinterOptions() { } -#define PROPERTYNAME_REDUCETRANSPARENCY "ReduceTransparency" -#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE "ReducedTransparencyMode" -#define PROPERTYNAME_REDUCEGRADIENTS "ReduceGradients" -#define PROPERTYNAME_REDUCEDGRADIENTMODE "ReducedGradientMode" -#define PROPERTYNAME_REDUCEDGRADIENTSTEPCOUNT "ReducedGradientStepCount" -#define PROPERTYNAME_REDUCEBITMAPS "ReduceBitmaps" -#define PROPERTYNAME_REDUCEDBITMAPMODE "ReducedBitmapMode" -#define PROPERTYNAME_REDUCEDBITMAPRESOLUTION "ReducedBitmapResolution" -#define PROPERTYNAME_REDUCEDBITMAPINCLUDESTRANSPARENCY "ReducedBitmapIncludesTransparency" -#define PROPERTYNAME_CONVERTTOGREYSCALES "ConvertToGreyscales" -#define PROPERTYNAME_PDFASSTANDARDPRINTJOBFORMAT "PDFAsStandardPrintJobFormat" - bool PrinterOptions::ReadFromConfig( bool i_bFile ) { bool bSuccess = false; @@ -155,27 +143,27 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile ) { sal_Int32 nValue = 0; bool bValue = false; - if( xSet->getPropertyValue(PROPERTYNAME_REDUCETRANSPARENCY) >>= bValue ) + if( xSet->getPropertyValue("ReduceTransparency") >>= bValue ) SetReduceTransparency( bValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEDTRANSPARENCYMODE) >>= nValue ) + if( xSet->getPropertyValue("ReducedTransparencyMode") >>= nValue ) SetReducedTransparencyMode( (PrinterTransparencyMode)nValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEGRADIENTS) >>= bValue ) + if( xSet->getPropertyValue("ReduceGradients") >>= bValue ) SetReduceGradients( bValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEDGRADIENTMODE) >>= nValue ) + if( xSet->getPropertyValue("ReducedGradientMode") >>= nValue ) SetReducedGradientMode( (PrinterGradientMode)nValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEDGRADIENTSTEPCOUNT) >>= nValue ) + if( xSet->getPropertyValue("ReducedGradientStepCount") >>= nValue ) SetReducedGradientStepCount( (sal_uInt16)nValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEBITMAPS) >>= bValue ) + if( xSet->getPropertyValue("ReduceBitmaps") >>= bValue ) SetReduceBitmaps( bValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEDBITMAPMODE) >>= nValue ) + if( xSet->getPropertyValue("ReducedBitmapMode") >>= nValue ) SetReducedBitmapMode( (PrinterBitmapMode)nValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEDBITMAPRESOLUTION) >>= nValue ) + if( xSet->getPropertyValue("ReducedBitmapResolution") >>= nValue ) SetReducedBitmapResolution( (sal_uInt16)nValue ); - if( xSet->getPropertyValue(PROPERTYNAME_REDUCEDBITMAPINCLUDESTRANSPARENCY) >>= bValue ) + if( xSet->getPropertyValue("ReducedBitmapIncludesTransparency") >>= bValue ) SetReducedBitmapIncludesTransparency( bValue ); - if( xSet->getPropertyValue(PROPERTYNAME_CONVERTTOGREYSCALES) >>= bValue ) + if( xSet->getPropertyValue("ConvertToGreyscales") >>= bValue ) SetConvertToGreyscales( bValue ); - if( xSet->getPropertyValue(PROPERTYNAME_PDFASSTANDARDPRINTJOBFORMAT) >>= bValue ) + if( xSet->getPropertyValue("PDFAsStandardPrintJobFormat") >>= bValue ) SetPDFAsStandardPrintJobFormat( bValue ); bSuccess = true; |