1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef  SVTOOLS_PRINTOPTTEST_HXX
25 #define  SVTOOLS_PRINTOPTTEST_HXX
26 
27 #include <com/sun/star/container/XNameAccess.hpp>
28 #include <svl/printoptions.hxx>
29 
30 namespace css = ::com::sun::star;
31 
32 class PrintOptTest
33 {
34 public:
35 
36 	PrintOptTest();
37 	~PrintOptTest();
38 
39 	void impl_checkPrint();
40 
41 private: //members
42 
43 	SvtPrinterOptions aPrintOpt;
44 	css::uno::Reference< css::container::XNameAccess > m_xCfg;
45 	css::uno::Reference< css::container::XNameAccess > m_xNode;
46 
47 private: // methods
48 	sal_Bool    impl_IsReduceTransparency() const ;
49 	void        impl_SetReduceTransparency( sal_Bool bState ) ;
50 
51 	sal_Int16   impl_GetReducedTransparencyMode() const ;
52     void        impl_SetReducedTransparencyMode( sal_Int16 nMode ) ;
53 
54 	sal_Bool	impl_IsReduceGradients() const ;
55 	void        impl_SetReduceGradients( sal_Bool bState ) ;
56 
57 	sal_Int16   impl_GetReducedGradientMode() const ;
58     void        impl_SetReducedGradientMode( sal_Int16 nMode ) ;
59 
60 	sal_Int16   impl_GetReducedGradientStepCount() const ;
61 	void        impl_SetReducedGradientStepCount( sal_Int16 nStepCount );
62 
63 	sal_Bool	impl_IsReduceBitmaps() const ;
64 	void        impl_SetReduceBitmaps( sal_Bool bState ) ;
65 
66 	sal_Int16   impl_GetReducedBitmapMode() const ;
67 	void        impl_SetReducedBitmapMode( sal_Int16 nMode ) ;
68 
69 	sal_Int16   impl_GetReducedBitmapResolution() const ;
70 	void        impl_SetReducedBitmapResolution( sal_Int16 nResolution ) ;
71 
72 	sal_Bool	impl_IsReducedBitmapIncludesTransparency() const ;
73 	void        impl_SetReducedBitmapIncludesTransparency( sal_Bool bState ) ;
74 
75 	sal_Bool	impl_IsConvertToGreyscales() const;
76 	void        impl_SetConvertToGreyscales( sal_Bool bState ) ;
77 
78 };
79 
80 #endif // #ifndef  SVTOOLS_PRINTOPTTEST_HXX
81