19 #ifndef INCLUDED_SW_INC_PRINTDATA_HXX
20 #define INCLUDED_SW_INC_PRINTDATA_HXX
23 #include <rtl/ustring.hxx>
73 m_pRenderData =
nullptr;
81 m_bPrintPageBackground =
82 m_bPrintEmptyPages =
true;
91 m_bPrintTextPlaceholder =
false;
165 void SetFaxName(
const OUString& rSet ) { m_sFaxName = rSet; }
178 SwPrintUIOptions( sal_uInt16 nCurrentPage,
bool bWeb,
bool bSwSrcView,
bool bHasSelection,
bool bHasPostIts,
const SwPrintData &rDefaultPrintData );
293 #endif // INCLUDED_SW_INC_PRINTDATA_HXX
bool IsPaperFromSetup() const
void SetPrintPostIts(SwPostItMode n)
std::unique_ptr< SwPrintData > m_pPrtOptions
bool getBoolValue(const OUString &i_rPropertyName, bool i_bDefault) const
PagePairsVec_t & GetPagePairsForProspectPrinting()
used for prospect printing only
SfxObjectShellLock const & GetTempDocShell() const
bool IsPaperFromSetup() const
std::vector< std::pair< sal_Int32, sal_Int32 > > m_aPagePairs
for prospect printing: the pairs of pages to be printed together on a single prospect page...
void SetPrintLeftPage(bool b)
void SetPrintRightPage(bool b)
void InitPrintOptionsFromApplication(SwPrintData &o_rData, bool const bWeb)
SwPostItMode GetPrintPostIts() const
virtual void doSetModified()
void SetPrintControl(bool b)
std::unique_ptr< SwViewShell > m_pPostItShell
this contains a SwDoc with the post-it content
void SetPrintTextPlaceholder(bool b)
bool IsPrintTable() const
std::vector< std::pair< sal_Int32, sal_Int32 > > PagePairsVec_t
void SetTempDocShell(SfxObjectShellLock const &)
std::unique_ptr< SwViewOptionAdjust_Impl > m_pViewOptionAdjust
the view options to be applied for printing
Dialog to specify the properties of date form field.
bool IsPrintProspectRTL() const
void SetPrintGraphic(bool b)
bool IsPrintHiddenText() const
std::unique_ptr< SetGetExpFields > m_pPostItFields
an array of "SetGetExpField *" sorted by page and line numbers
bool IsPrintReverse() const
A class that stores temporary data that is needed for rendering the document.
bool IsPrintProspect() const
const OUString & GetFaxName() const
SwPrintData const * GetSwPrtOptions() const
const o3tl::sorted_vector< sal_Int32 > & GetValidPagesSet() const
bool processPropertiesAndCheckFormat(const css::uno::Sequence< css::beans::PropertyValue > &i_rNewProp)
void ViewOptionAdjustStart(SwViewShell &rSh, const SwViewOption &rViewOptions)
void SetPageRange(const OUString &rRange)
bool IsPrintGraphic() const
const std::map< sal_Int32, sal_Int32 > & GetPrinterPaperTrays() const
void SetPrintEmptyPages(bool b)
void SetFaxName(const OUString &rSet)
bool IsPrintPageBackground() const
std::map< sal_Int32, sal_Int32 > m_aPrinterPaperTrays
printer paper tray to use for each of the m_aValidPages above
bool IsPrintHiddenText() const
bool m_bPrintPageBackground
bool m_bPrintTextPlaceholder
const SwRenderData & GetRenderData() const
Note: in the context where this class is used the pointers should always be valid during the lifetime...
void SetPrintProspect_RTL(bool b)
void SetPrintBlackFont(bool b)
bool IsPrintRightPage() const
void SetPrintHiddenText(bool b)
bool IsPrintPageBackground() const
bool IsPrintSingleJobs() const
virtual ~SwPrintUIOptions()
void SetPrintReverse(bool b)
SwPrintUIOptions(sal_uInt16 nCurrentPage, bool bWeb, bool bSwSrcView, bool bHasSelection, bool bHasPostIts, const SwPrintData &rDefaultPrintData)
SwPostItMode GetPrintPostItsType() const
void SetPrintTable(bool b)
o3tl::sorted_vector< sal_Int32 > & GetValidPagesSet()
bool IsPrintLeftPages() const
void SetPaperFromSetup(bool b)
bool IsPrintControl() const
std::vector< sal_Int32 > m_aPagesToPrint
vector of pages and their order to be printed (duplicates and any order allowed!) (see 'render' in un...
const OUString & GetPageRange() const
void CreatePostItData(SwDoc &rDoc, const SwViewOption *pViewOpt, OutputDevice *pOutDev)
void SetPrintPageBackground(bool b)
bool IsPrintTextPlaceholder() const
bool IsPrintBlackFont() const
bool IsPrintTextPlaceholders() const
bool IsPrintGraphics() const
SwPostItMode
this must match the definitions in css::text::NotePrintMode
bool HasSwPrtOptions() const
SfxObjectShellLock m_xTempDocShell
temp print document – must live longer than m_pViewOptionAdjust! also this is a Lock and not a Ref b...
const SwPrintData & m_rDefaultPrintData
bool IsViewOptionAdjust() const
void MakeSwPrtOptions(SwDocShell const *const pDocShell, SwPrintUIOptions const *const pOpt, bool const bIsPDFExport)
bool IsPrintWithBlackTextColor() const
std::map< sal_Int32, sal_Int32 > & GetPrinterPaperTrays()
a map for printer paper tray numbers to use for each document page a value of -1 for the tray means t...
bool HasPostItData() const
SwPrintData & operator=(SwPrintData const &)=default
void SetPrintSingleJobs(bool b)
bool IsPrintProspectRTL() const
bool IsPrintEmptyPages() const
VclPtr< OutputDevice > m_pLast
bool IsPrintFormControls() const
bool m_bPrintEmptyPages
Print empty pages.
bool NeedNewViewOptionAdjust(const SwViewShell &) const
bool operator==(const SwPrintData &rData) const
void SetPrintProspect(bool b)
o3tl::sorted_vector< sal_Int32 > m_aValidPages
pages valid for printing (according to the current settings) This set of pages does NOT depend on the...
const std::vector< sal_Int32 > & GetPagesToPrint() const
void ViewOptionAdjustCrashPreventionKludge()
std::vector< sal_Int32 > & GetPagesToPrint()
used for 'normal' printing A page value of 0 as entry indicates that this page is not from the docume...
bool IsPrintRightPages() const
bool IsPrintDrawings() const
bool IsPrintLeftPage() const
bool IsPrintProspect() const
void SetPrintDraw(bool b)
const SwRenderData * m_pRenderData
SwPostItMode m_nPrintPostIts
void SetRenderData(const SwRenderData *pData)
const PagePairsVec_t & GetPagePairsForProspectPrinting() const
void ViewOptionAdjust(SwPrintData const *const pPrtOptions, bool setShowPlaceHoldersInPDF)
sal_Int64 getIntValue(const OUString &i_rPropertyName, sal_Int64 i_nDefault) const
bool IsPrintEmptyPages(bool bIsPDFExport) const
void ViewOptionAdjustStop()