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