1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: printdata.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SW_PRINTDATA_HXX
31 #define _SW_PRINTDATA_HXX
35 #include <sal/types.h>
37 #ifndef _RTL_USTRING_HXX_
38 #include "rtl/ustring.hxx"
44 sal_Bool bPrintGraphic
, bPrintTable
, bPrintDraw
, bPrintControl
, bPrintPageBackground
,
45 bPrintBlackFont
, bPrintLeftPage
, bPrintRightPage
, bPrintReverse
, bPrintProspect
,
46 bPrintSingleJobs
, bPaperFromSetup
, bModified
;
48 sal_Int16 nPrintPostIts
;
49 ::rtl::OUString sFaxName
;
59 bPrintPageBackground
= sal_True
;
66 bPrintBlackFont
= sal_False
;
71 sal_Bool
operator==(const SwPrintData
& rData
)const
74 bPrintGraphic
== rData
.bPrintGraphic
&&
75 bPrintTable
== rData
.bPrintTable
&&
76 bPrintDraw
== rData
.bPrintDraw
&&
77 bPrintControl
== rData
.bPrintControl
&&
78 bPrintPageBackground
== rData
.bPrintPageBackground
&&
79 bPrintBlackFont
== rData
.bPrintBlackFont
&&
80 bPrintLeftPage
== rData
.bPrintLeftPage
&&
81 bPrintRightPage
== rData
.bPrintRightPage
&&
82 bPrintReverse
== rData
.bPrintReverse
&&
83 bPrintProspect
== rData
.bPrintProspect
&&
84 bPrintSingleJobs
== rData
.bPrintSingleJobs
&&
85 bPaperFromSetup
== rData
.bPaperFromSetup
&&
86 nPrintPostIts
== rData
.nPrintPostIts
&&
87 sFaxName
== rData
.sFaxName
;
89 sal_Bool
IsPrintGraphic() const { return bPrintGraphic
; }
90 sal_Bool
IsPrintTable() const { return bPrintTable
; }
91 sal_Bool
IsPrintDraw() const { return bPrintDraw
; }
92 sal_Bool
IsPrintControl() const { return bPrintControl
; }
93 sal_Bool
IsPrintLeftPage() const { return bPrintLeftPage
; }
94 sal_Bool
IsPrintRightPage() const { return bPrintRightPage
; }
95 sal_Bool
IsPrintReverse() const { return bPrintReverse
; }
96 sal_Bool
IsPaperFromSetup() const { return bPaperFromSetup
; }
97 sal_Bool
IsPrintProspect() const { return bPrintProspect
; }
98 sal_Bool
IsPrintPageBackground() const { return bPrintPageBackground
; }
99 sal_Bool
IsPrintBlackFont() const { return bPrintBlackFont
;}
100 sal_Bool
IsPrintSingleJobs() const { return bPrintSingleJobs
;}
101 sal_Int16
GetPrintPostIts() const { return nPrintPostIts
; }
102 const ::rtl::OUString
GetFaxName() const{return sFaxName
;}
104 void SetPrintGraphic ( sal_Bool b
) { doSetModified(); bPrintGraphic
= b
;}
105 void SetPrintTable ( sal_Bool b
) { doSetModified(); bPrintTable
= b
;}
106 void SetPrintDraw ( sal_Bool b
) { doSetModified(); bPrintDraw
= b
;}
107 void SetPrintControl ( sal_Bool b
) { doSetModified(); bPrintControl
= b
; }
108 void SetPrintLeftPage ( sal_Bool b
) { doSetModified(); bPrintLeftPage
= b
;}
109 void SetPrintRightPage( sal_Bool b
) { doSetModified(); bPrintRightPage
= b
;}
110 void SetPrintReverse ( sal_Bool b
) { doSetModified(); bPrintReverse
= b
;}
111 void SetPaperFromSetup( sal_Bool b
) { doSetModified(); bPaperFromSetup
= b
;}
112 void SetPrintPostIts ( sal_Int16 n
){ doSetModified(); nPrintPostIts
= n
; }
113 void SetPrintProspect ( sal_Bool b
) { doSetModified(); bPrintProspect
= b
; }
114 void SetPrintPageBackground(sal_Bool b
){ doSetModified(); bPrintPageBackground
= b
;}
115 void SetPrintBlackFont(sal_Bool b
){ doSetModified(); bPrintBlackFont
= b
;}
116 void SetPrintSingleJobs(sal_Bool b
){ doSetModified(); bPrintSingleJobs
= b
;}
117 void SetFaxName(const ::rtl::OUString
& rSet
){sFaxName
= rSet
;}
118 virtual void doSetModified () { bModified
= sal_True
;}
119 sal_Bool
WasModified () { return bModified
; }
122 } //namespace binfilter
123 #endif //_SW_PRINTDATA_HXX