2001-05-10 07:40:24 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* $RCSfile: printdata.hxx,v $
|
|
|
|
* $Revision: 1.11 $
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
2008-04-10 10:30:48 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2001-05-10 07:40:24 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _SW_PRINTDATA_HXX
|
|
|
|
#define _SW_PRINTDATA_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include <sal/types.h>
|
2006-06-19 11:39:31 +00:00
|
|
|
#include <rtl/ustring.hxx>
|
2001-08-08 20:40:10 +00:00
|
|
|
|
2001-05-10 07:40:24 +00:00
|
|
|
struct SwPrintData
|
|
|
|
{
|
2001-08-08 20:40:10 +00:00
|
|
|
sal_Bool bPrintGraphic, bPrintTable, bPrintDraw, bPrintControl, bPrintPageBackground,
|
2007-11-26 16:27:49 +00:00
|
|
|
bPrintBlackFont,
|
|
|
|
//#i81434# - printing of hidden text
|
|
|
|
bPrintHiddenText, bPrintTextPlaceholder,
|
|
|
|
bPrintLeftPage, bPrintRightPage, bPrintReverse, bPrintProspect,
|
2007-04-03 12:46:03 +00:00
|
|
|
bPrintProspect_RTL,
|
2005-12-21 14:09:55 +00:00
|
|
|
bPrintSingleJobs, bPaperFromSetup,
|
|
|
|
// --> FME 2005-12-13 #b6354161# Print empty pages
|
|
|
|
bPrintEmptyPages,
|
|
|
|
// <--
|
2006-04-27 08:44:31 +00:00
|
|
|
// #i56195# no field update while printing mail merge documents
|
|
|
|
bUpdateFieldsInPrinting,
|
2005-12-21 14:09:55 +00:00
|
|
|
bModified;
|
2001-05-10 07:40:24 +00:00
|
|
|
|
|
|
|
sal_Int16 nPrintPostIts;
|
|
|
|
rtl::OUString sFaxName;
|
|
|
|
|
2001-08-08 20:40:10 +00:00
|
|
|
SwPrintData()
|
|
|
|
{
|
|
|
|
bPrintGraphic =
|
|
|
|
bPrintTable =
|
|
|
|
bPrintDraw =
|
|
|
|
bPrintControl =
|
|
|
|
bPrintLeftPage =
|
|
|
|
bPrintRightPage =
|
2005-12-21 14:09:55 +00:00
|
|
|
bPrintPageBackground =
|
2006-04-27 08:44:31 +00:00
|
|
|
bPrintEmptyPages =
|
|
|
|
bUpdateFieldsInPrinting = sal_True;
|
2001-05-10 07:40:24 +00:00
|
|
|
|
2001-08-08 20:40:10 +00:00
|
|
|
bPaperFromSetup =
|
|
|
|
bPrintReverse =
|
|
|
|
bPrintProspect =
|
2007-04-03 12:46:03 +00:00
|
|
|
bPrintProspect_RTL =
|
2001-08-08 20:40:10 +00:00
|
|
|
bPrintSingleJobs =
|
|
|
|
bModified =
|
2007-11-26 16:27:49 +00:00
|
|
|
bPrintBlackFont =
|
|
|
|
bPrintHiddenText =
|
|
|
|
bPrintTextPlaceholder = sal_False;
|
2001-08-08 20:40:10 +00:00
|
|
|
|
|
|
|
nPrintPostIts = 0;
|
|
|
|
}
|
2001-05-10 07:40:24 +00:00
|
|
|
|
2007-09-27 07:08:10 +00:00
|
|
|
virtual ~SwPrintData() {}
|
|
|
|
|
2001-05-10 07:40:24 +00:00
|
|
|
sal_Bool operator==(const SwPrintData& rData)const
|
|
|
|
{
|
|
|
|
return
|
|
|
|
bPrintGraphic == rData.bPrintGraphic &&
|
|
|
|
bPrintTable == rData.bPrintTable &&
|
|
|
|
bPrintDraw == rData.bPrintDraw &&
|
|
|
|
bPrintControl == rData.bPrintControl &&
|
|
|
|
bPrintPageBackground== rData.bPrintPageBackground&&
|
|
|
|
bPrintBlackFont == rData.bPrintBlackFont &&
|
|
|
|
bPrintLeftPage == rData.bPrintLeftPage &&
|
|
|
|
bPrintRightPage == rData.bPrintRightPage &&
|
|
|
|
bPrintReverse == rData.bPrintReverse &&
|
|
|
|
bPrintProspect == rData.bPrintProspect &&
|
2007-04-03 12:46:03 +00:00
|
|
|
bPrintProspect_RTL == rData.bPrintProspect_RTL &&
|
2001-05-10 07:40:24 +00:00
|
|
|
bPrintSingleJobs == rData.bPrintSingleJobs &&
|
|
|
|
bPaperFromSetup == rData.bPaperFromSetup &&
|
2005-12-21 14:09:55 +00:00
|
|
|
bPrintEmptyPages == rData.bPrintEmptyPages &&
|
2006-04-27 08:44:31 +00:00
|
|
|
bUpdateFieldsInPrinting == rData.bUpdateFieldsInPrinting &&
|
2001-05-10 07:40:24 +00:00
|
|
|
nPrintPostIts == rData.nPrintPostIts &&
|
2007-11-26 16:27:49 +00:00
|
|
|
sFaxName == rData.sFaxName &&
|
|
|
|
bPrintHiddenText == rData.bPrintHiddenText &&
|
|
|
|
bPrintTextPlaceholder == rData.bPrintTextPlaceholder;
|
2001-05-10 07:40:24 +00:00
|
|
|
}
|
2001-08-08 20:40:10 +00:00
|
|
|
sal_Bool IsPrintGraphic() const { return bPrintGraphic; }
|
|
|
|
sal_Bool IsPrintTable() const { return bPrintTable; }
|
|
|
|
sal_Bool IsPrintDraw() const { return bPrintDraw; }
|
|
|
|
sal_Bool IsPrintControl() const { return bPrintControl; }
|
|
|
|
sal_Bool IsPrintLeftPage() const { return bPrintLeftPage; }
|
|
|
|
sal_Bool IsPrintRightPage() const { return bPrintRightPage; }
|
|
|
|
sal_Bool IsPrintReverse() const { return bPrintReverse; }
|
|
|
|
sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; }
|
2005-12-21 14:09:55 +00:00
|
|
|
sal_Bool IsPrintEmptyPages() const{ return bPrintEmptyPages; }
|
2001-08-08 20:40:10 +00:00
|
|
|
sal_Bool IsPrintProspect() const { return bPrintProspect; }
|
2007-04-03 12:46:03 +00:00
|
|
|
sal_Bool IsPrintProspect_RTL() const { return bPrintProspect_RTL; }
|
2001-08-08 20:40:10 +00:00
|
|
|
sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; }
|
|
|
|
sal_Bool IsPrintBlackFont() const { return bPrintBlackFont;}
|
|
|
|
sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs;}
|
|
|
|
sal_Int16 GetPrintPostIts() const { return nPrintPostIts; }
|
|
|
|
const rtl::OUString GetFaxName() const{return sFaxName;}
|
2007-11-26 16:27:49 +00:00
|
|
|
sal_Bool IsPrintHiddenText() const {return bPrintHiddenText;}
|
|
|
|
sal_Bool IsPrintTextPlaceholder() const {return bPrintTextPlaceholder;}
|
2001-08-08 20:40:10 +00:00
|
|
|
|
|
|
|
void SetPrintGraphic ( sal_Bool b ) { doSetModified(); bPrintGraphic = b;}
|
|
|
|
void SetPrintTable ( sal_Bool b ) { doSetModified(); bPrintTable = b;}
|
|
|
|
void SetPrintDraw ( sal_Bool b ) { doSetModified(); bPrintDraw = b;}
|
|
|
|
void SetPrintControl ( sal_Bool b ) { doSetModified(); bPrintControl = b; }
|
|
|
|
void SetPrintLeftPage ( sal_Bool b ) { doSetModified(); bPrintLeftPage = b;}
|
|
|
|
void SetPrintRightPage( sal_Bool b ) { doSetModified(); bPrintRightPage = b;}
|
|
|
|
void SetPrintReverse ( sal_Bool b ) { doSetModified(); bPrintReverse = b;}
|
|
|
|
void SetPaperFromSetup( sal_Bool b ) { doSetModified(); bPaperFromSetup = b;}
|
2005-12-21 14:09:55 +00:00
|
|
|
void SetPrintEmptyPages(sal_Bool b ) { doSetModified(); bPrintEmptyPages = b;}
|
2001-08-08 20:40:10 +00:00
|
|
|
void SetPrintPostIts ( sal_Int16 n){ doSetModified(); nPrintPostIts = n; }
|
|
|
|
void SetPrintProspect ( sal_Bool b ) { doSetModified(); bPrintProspect = b; }
|
|
|
|
void SetPrintPageBackground(sal_Bool b){ doSetModified(); bPrintPageBackground = b;}
|
|
|
|
void SetPrintBlackFont(sal_Bool b){ doSetModified(); bPrintBlackFont = b;}
|
|
|
|
void SetPrintSingleJobs(sal_Bool b){ doSetModified(); bPrintSingleJobs = b;}
|
|
|
|
void SetFaxName(const rtl::OUString& rSet){sFaxName = rSet;}
|
2007-11-26 16:27:49 +00:00
|
|
|
void SetPrintHiddenText(sal_Bool b){ doSetModified(); bPrintHiddenText = b;}
|
|
|
|
void SetPrintTextPlaceholder(sal_Bool b){ doSetModified(); bPrintTextPlaceholder = b;}
|
2001-08-08 20:40:10 +00:00
|
|
|
virtual void doSetModified () { bModified = sal_True;}
|
2001-05-10 07:40:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_SW_PRINTDATA_HXX
|
|
|
|
|