1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef  SVTOOLS_PRINTOPTTEST_HXX
29 #define  SVTOOLS_PRINTOPTTEST_HXX
30 
31 #include <com/sun/star/container/XNameAccess.hpp>
32 #include <svl/printoptions.hxx>
33 
34 namespace css = ::com::sun::star;
35 
36 class PrintOptTest
37 {
38 public:
39 
40 	PrintOptTest();
41 	~PrintOptTest();
42 
43 	void impl_checkPrint();
44 
45 private: //members
46 
47 	SvtPrinterOptions aPrintOpt;
48 	css::uno::Reference< css::container::XNameAccess > m_xCfg;
49 	css::uno::Reference< css::container::XNameAccess > m_xNode;
50 
51 private: // methods
52 	sal_Bool    impl_IsReduceTransparency() const ;
53 	void        impl_SetReduceTransparency( sal_Bool bState ) ;
54 
55 	sal_Int16   impl_GetReducedTransparencyMode() const ;
56     void        impl_SetReducedTransparencyMode( sal_Int16 nMode ) ;
57 
58 	sal_Bool	impl_IsReduceGradients() const ;
59 	void        impl_SetReduceGradients( sal_Bool bState ) ;
60 
61 	sal_Int16   impl_GetReducedGradientMode() const ;
62     void        impl_SetReducedGradientMode( sal_Int16 nMode ) ;
63 
64 	sal_Int16   impl_GetReducedGradientStepCount() const ;
65 	void        impl_SetReducedGradientStepCount( sal_Int16 nStepCount );
66 
67 	sal_Bool	impl_IsReduceBitmaps() const ;
68 	void        impl_SetReduceBitmaps( sal_Bool bState ) ;
69 
70 	sal_Int16   impl_GetReducedBitmapMode() const ;
71 	void        impl_SetReducedBitmapMode( sal_Int16 nMode ) ;
72 
73 	sal_Int16   impl_GetReducedBitmapResolution() const ;
74 	void        impl_SetReducedBitmapResolution( sal_Int16 nResolution ) ;
75 
76 	sal_Bool	impl_IsReducedBitmapIncludesTransparency() const ;
77 	void        impl_SetReducedBitmapIncludesTransparency( sal_Bool bState ) ;
78 
79 	sal_Bool	impl_IsConvertToGreyscales() const;
80 	void        impl_SetConvertToGreyscales( sal_Bool bState ) ;
81 
82 };
83 
84 #endif // #ifndef  SVTOOLS_PRINTOPTTEST_HXX
85