2001-05-10 02:40:24 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* $RCSfile: printdata.hxx,v $
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2007-09-27 02:08:10 -05:00
|
|
|
* $Revision: 1.9 $
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2007-09-27 02:08:10 -05:00
|
|
|
* last change: $Author: hr $ $Date: 2007-09-27 08:08:10 $
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* This library 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 for more details.
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
2005-09-08 20:05:30 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2001-05-10 02:40:24 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _SW_PRINTDATA_HXX
|
|
|
|
#define _SW_PRINTDATA_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _SAL_TYPES_H_
|
|
|
|
#include <sal/types.h>
|
|
|
|
#endif
|
2006-06-19 06:39:31 -05:00
|
|
|
#ifndef _RTL_USTRING_HXX_
|
|
|
|
#include <rtl/ustring.hxx>
|
2001-05-10 02:40:24 -05:00
|
|
|
#endif
|
2001-08-08 15:40:10 -05:00
|
|
|
|
2001-05-10 02:40:24 -05:00
|
|
|
struct SwPrintData
|
|
|
|
{
|
2001-08-08 15:40:10 -05:00
|
|
|
sal_Bool bPrintGraphic, bPrintTable, bPrintDraw, bPrintControl, bPrintPageBackground,
|
|
|
|
bPrintBlackFont, bPrintLeftPage, bPrintRightPage, bPrintReverse, bPrintProspect,
|
2007-04-03 07:46:03 -05:00
|
|
|
bPrintProspect_RTL,
|
2005-12-21 08:09:55 -06:00
|
|
|
bPrintSingleJobs, bPaperFromSetup,
|
|
|
|
// --> FME 2005-12-13 #b6354161# Print empty pages
|
|
|
|
bPrintEmptyPages,
|
|
|
|
// <--
|
2006-04-27 03:44:31 -05:00
|
|
|
// #i56195# no field update while printing mail merge documents
|
|
|
|
bUpdateFieldsInPrinting,
|
2005-12-21 08:09:55 -06:00
|
|
|
bModified;
|
2001-05-10 02:40:24 -05:00
|
|
|
|
|
|
|
sal_Int16 nPrintPostIts;
|
|
|
|
rtl::OUString sFaxName;
|
|
|
|
|
2001-08-08 15:40:10 -05:00
|
|
|
SwPrintData()
|
|
|
|
{
|
|
|
|
bPrintGraphic =
|
|
|
|
bPrintTable =
|
|
|
|
bPrintDraw =
|
|
|
|
bPrintControl =
|
|
|
|
bPrintLeftPage =
|
|
|
|
bPrintRightPage =
|
2005-12-21 08:09:55 -06:00
|
|
|
bPrintPageBackground =
|
2006-04-27 03:44:31 -05:00
|
|
|
bPrintEmptyPages =
|
|
|
|
bUpdateFieldsInPrinting = sal_True;
|
2001-05-10 02:40:24 -05:00
|
|
|
|
2001-08-08 15:40:10 -05:00
|
|
|
bPaperFromSetup =
|
|
|
|
bPrintReverse =
|
|
|
|
bPrintProspect =
|
2007-04-03 07:46:03 -05:00
|
|
|
bPrintProspect_RTL =
|
2001-08-08 15:40:10 -05:00
|
|
|
bPrintSingleJobs =
|
|
|
|
bModified =
|
|
|
|
bPrintBlackFont = sal_False;
|
|
|
|
|
|
|
|
nPrintPostIts = 0;
|
|
|
|
}
|
2001-05-10 02:40:24 -05:00
|
|
|
|
2007-09-27 02:08:10 -05:00
|
|
|
virtual ~SwPrintData() {}
|
|
|
|
|
2001-05-10 02:40:24 -05: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 07:46:03 -05:00
|
|
|
bPrintProspect_RTL == rData.bPrintProspect_RTL &&
|
2001-05-10 02:40:24 -05:00
|
|
|
bPrintSingleJobs == rData.bPrintSingleJobs &&
|
|
|
|
bPaperFromSetup == rData.bPaperFromSetup &&
|
2005-12-21 08:09:55 -06:00
|
|
|
bPrintEmptyPages == rData.bPrintEmptyPages &&
|
2006-04-27 03:44:31 -05:00
|
|
|
bUpdateFieldsInPrinting == rData.bUpdateFieldsInPrinting &&
|
2001-05-10 02:40:24 -05:00
|
|
|
nPrintPostIts == rData.nPrintPostIts &&
|
|
|
|
sFaxName == rData.sFaxName;
|
|
|
|
}
|
2001-08-08 15:40:10 -05: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 08:09:55 -06:00
|
|
|
sal_Bool IsPrintEmptyPages() const{ return bPrintEmptyPages; }
|
2001-08-08 15:40:10 -05:00
|
|
|
sal_Bool IsPrintProspect() const { return bPrintProspect; }
|
2007-04-03 07:46:03 -05:00
|
|
|
sal_Bool IsPrintProspect_RTL() const { return bPrintProspect_RTL; }
|
2001-08-08 15:40:10 -05: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;}
|
|
|
|
|
|
|
|
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 08:09:55 -06:00
|
|
|
void SetPrintEmptyPages(sal_Bool b ) { doSetModified(); bPrintEmptyPages = b;}
|
2001-08-08 15:40:10 -05: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;}
|
|
|
|
virtual void doSetModified () { bModified = sal_True;}
|
2001-05-10 02:40:24 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_SW_PRINTDATA_HXX
|
|
|
|
|