diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-16 22:33:14 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-16 22:40:42 +0200 |
commit | 2976b53ff8c815f5f6a5deba1763fba153bd528f (patch) | |
tree | 178b9b8384f71f27c39922f3a30b432034375c49 /svtools/source/config | |
parent | 7956ff62ee9a4b82f64d19d51cccddd73bc49d1e (diff) |
Bin more pointless comments and ASCII graphics
Suggested Easy Hack: Replace all instances of // -------- comments
including surrounding newlines with a single newline.
Another Easy Hack, slightly harder to automate: Remove all the
pointless comments that just tell the class name right before the
declaration of that class.
Change-Id: Ia890ed613b53c5d719988697e20a983d62334123
Diffstat (limited to 'svtools/source/config')
-rw-r--r-- | svtools/source/config/printoptions.cxx | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx index e67ddfd529d6..87e8e353b312 100644 --- a/svtools/source/config/printoptions.cxx +++ b/svtools/source/config/printoptions.cxx @@ -36,18 +36,11 @@ #include <itemholder2.hxx> #include <sal/macros.h> -// ----------- -// - statics - -// ----------- static sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 }; #define DPI_COUNT (SAL_N_ELEMENTS(aDPIArray)) -// ----------- -// - Defines - -// ----------- - #define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Print/Option")) #define ROOTNODE_PRINTOPTION OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.Common/Print/Option")) @@ -63,19 +56,11 @@ static sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 }; #define PROPERTYNAME_CONVERTTOGREYSCALES OUString(RTL_CONSTASCII_USTRINGPARAM("ConvertToGreyscales")) #define PROPERTYNAME_PDFASSTANDARDPRINTJOBFORMAT OUString(RTL_CONSTASCII_USTRINGPARAM("PDFAsStandardPrintJobFormat")) -// -------------- -// - Namespaces - -// -------------- - using namespace ::utl; using namespace ::rtl; using namespace ::osl; using namespace ::com::sun::star::uno; -// ----------- -// - statics - -// ----------- - static SvtPrintOptions_Impl* pPrinterOptionsDataContainer = NULL; static SvtPrintOptions_Impl* pPrintFileOptionsDataContainer = NULL; @@ -85,25 +70,12 @@ sal_Int32 SvtPrinterOptions::m_nRefCount = 0; SvtPrintOptions_Impl* SvtPrintFileOptions::m_pStaticDataContainer = NULL; sal_Int32 SvtPrintFileOptions::m_nRefCount = 0; -// ------------------------ -// - SvtPrintOptions_Impl - -// ------------------------ - class SvtPrintOptions_Impl { public: - -//--------------------------------------------------------------------------------------------------------- -// constructor / destructor -//--------------------------------------------------------------------------------------------------------- - SvtPrintOptions_Impl( const OUString& rConfigRoot ); ~SvtPrintOptions_Impl(); -//--------------------------------------------------------------------------------------------------------- -// public interface -//--------------------------------------------------------------------------------------------------------- - sal_Bool IsReduceTransparency() const ; sal_Int16 GetReducedTransparencyMode() const ; sal_Bool IsReduceGradients() const ; @@ -531,25 +503,14 @@ void SvtPrintOptions_Impl::impl_setValue (const ::rtl::OUString& sProp, } } -// ----------------------------------------------------------------------------- - - -// ----------------------- -// - SvtBasePrintOptions - -// ----------------------- - SvtBasePrintOptions::SvtBasePrintOptions() { } -// ----------------------------------------------------------------------------- - SvtBasePrintOptions::~SvtBasePrintOptions() { } -// ----------------------------------------------------------------------------- - Mutex& SvtBasePrintOptions::GetOwnStaticMutex() { // Initialize static mutex only for one time! @@ -572,184 +533,138 @@ Mutex& SvtBasePrintOptions::GetOwnStaticMutex() return *pMutex; } -// ----------------------------------------------------------------------------- - sal_Bool SvtBasePrintOptions::IsReduceTransparency() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsReduceTransparency(); } -// ----------------------------------------------------------------------------- - sal_Int16 SvtBasePrintOptions::GetReducedTransparencyMode() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->GetReducedTransparencyMode(); } -// ----------------------------------------------------------------------------- - sal_Bool SvtBasePrintOptions::IsReduceGradients() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsReduceGradients(); } -// ----------------------------------------------------------------------------- - sal_Int16 SvtBasePrintOptions::GetReducedGradientMode() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->GetReducedGradientMode(); } -// ----------------------------------------------------------------------------- - sal_Int16 SvtBasePrintOptions::GetReducedGradientStepCount() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->GetReducedGradientStepCount(); } -// ----------------------------------------------------------------------------- - sal_Bool SvtBasePrintOptions::IsReduceBitmaps() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsReduceBitmaps(); } -// ----------------------------------------------------------------------------- - sal_Int16 SvtBasePrintOptions::GetReducedBitmapMode() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->GetReducedBitmapMode(); } -// ----------------------------------------------------------------------------- - sal_Int16 SvtBasePrintOptions::GetReducedBitmapResolution() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->GetReducedBitmapResolution(); } -// ----------------------------------------------------------------------------- - sal_Bool SvtBasePrintOptions::IsReducedBitmapIncludesTransparency() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsReducedBitmapIncludesTransparency(); } -// ----------------------------------------------------------------------------- - sal_Bool SvtBasePrintOptions::IsConvertToGreyscales() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsConvertToGreyscales(); } -// ----------------------------------------------------------------------------- - sal_Bool SvtBasePrintOptions::IsPDFAsStandardPrintJobFormat() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsPDFAsStandardPrintJobFormat(); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReduceTransparency( sal_Bool bState ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReduceTransparency( bState ) ; } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReducedTransparencyMode( sal_Int16 nMode ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReducedTransparencyMode( nMode ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReduceGradients( sal_Bool bState ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReduceGradients( bState ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReducedGradientMode( sal_Int16 nMode ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReducedGradientMode( nMode ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReducedGradientStepCount( sal_Int16 nStepCount ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReducedGradientStepCount( nStepCount ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReduceBitmaps( sal_Bool bState ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReduceBitmaps( bState ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReducedBitmapMode( sal_Int16 nMode ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReducedBitmapMode( nMode ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReducedBitmapResolution( sal_Int16 nResolution ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReducedBitmapResolution( nResolution ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetReducedBitmapIncludesTransparency( sal_Bool bState ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetReducedBitmapIncludesTransparency( bState ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetConvertToGreyscales( sal_Bool bState ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetConvertToGreyscales( bState ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetPDFAsStandardPrintJobFormat( sal_Bool bState ) { MutexGuard aGuard( GetOwnStaticMutex() ); m_pDataContainer->SetPDFAsStandardPrintJobFormat( bState ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::GetPrinterOptions( PrinterOptions& rOptions ) const { rOptions.SetReduceTransparency( IsReduceTransparency() ); @@ -765,8 +680,6 @@ void SvtBasePrintOptions::GetPrinterOptions( PrinterOptions& rOptions ) const rOptions.SetPDFAsStandardPrintJobFormat( IsPDFAsStandardPrintJobFormat() ); } -// ----------------------------------------------------------------------------- - void SvtBasePrintOptions::SetPrinterOptions( const PrinterOptions& rOptions ) { SetReduceTransparency( rOptions.IsReduceTransparency() ); @@ -801,10 +714,6 @@ void SvtBasePrintOptions::SetPrinterOptions( const PrinterOptions& rOptions ) } } -// --------------------- -// - SvtPrinterOptions - -// --------------------- - SvtPrinterOptions::SvtPrinterOptions() { // Global access, must be guarded (multithreading!). @@ -823,8 +732,6 @@ SvtPrinterOptions::SvtPrinterOptions() SetDataContainer( m_pStaticDataContainer ); } -// ----------------------------------------------------------------------------- - SvtPrinterOptions::~SvtPrinterOptions() { // Global access, must be guarded (multithreading!) @@ -841,10 +748,6 @@ SvtPrinterOptions::~SvtPrinterOptions() } } -// --------------------- -// - SvtPrintFileOptions - -// --------------------- - SvtPrintFileOptions::SvtPrintFileOptions() { // Global access, must be guarded (multithreading!). @@ -864,8 +767,6 @@ SvtPrintFileOptions::SvtPrintFileOptions() SetDataContainer( m_pStaticDataContainer ); } -// ----------------------------------------------------------------------------- - SvtPrintFileOptions::~SvtPrintFileOptions() { // Global access, must be guarded (multithreading!) |