LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
SwRenderData Class Reference

A class that stores temporary data that is needed for rendering the document. More...

#include <printdata.hxx>

Collaboration diagram for SwRenderData:
[legend]

Public Types

typedef std::vector< std::pair< sal_Int32, sal_Int32 > > PagePairsVec_t
 

Public Member Functions

 SwRenderData ()
 
 ~SwRenderData ()
 
bool HasPostItData () const
 
void CreatePostItData (SwDoc &rDoc, const SwViewOption *pViewOpt, OutputDevice *pOutDev)
 
void DeletePostItData ()
 
SfxObjectShellLock const & GetTempDocShell () const
 
void SetTempDocShell (SfxObjectShellLock const &)
 
bool IsViewOptionAdjust () const
 
bool NeedNewViewOptionAdjust (const SwViewShell &) const
 
void ViewOptionAdjustStart (SwViewShell &rSh, const SwViewOption &rViewOptions)
 
void ViewOptionAdjust (SwPrintData const *const pPrtOptions, bool setShowPlaceHoldersInPDF)
 
void ViewOptionAdjustStop ()
 
void ViewOptionAdjustCrashPreventionKludge ()
 
bool HasSwPrtOptions () const
 
SwPrintData const * GetSwPrtOptions () const
 
void MakeSwPrtOptions (SwDocShell const *const pDocShell, SwPrintUIOptions const *const pOpt, bool const bIsPDFExport)
 
o3tl::sorted_vector< sal_Int32 > & GetValidPagesSet ()
 
const o3tl::sorted_vector< sal_Int32 > & GetValidPagesSet () 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 that there is no specific tray defined More...
 
const std::map< sal_Int32, sal_Int32 > & GetPrinterPaperTrays () const
 
std::vector< sal_Int32 > & GetPagesToPrint ()
 used for 'normal' printing A page value of 0 as entry indicates that this page is not from the document but from the post-it document. More...
 
const std::vector< sal_Int32 > & GetPagesToPrint () const
 
PagePairsVec_tGetPagePairsForProspectPrinting ()
 used for prospect printing only More...
 
const PagePairsVec_tGetPagePairsForProspectPrinting () const
 
const OUString & GetPageRange () const
 
void SetPageRange (const OUString &rRange)
 

Public Attributes

std::unique_ptr< SetGetExpFieldsm_pPostItFields
 an array of "SetGetExpField *" sorted by page and line numbers More...
 
std::unique_ptr< SwViewShellm_pPostItShell
 this contains a SwDoc with the post-it content More...
 

Private Attributes

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 'PageRange' that is used as a printing option! More...
 
std::map< sal_Int32, sal_Int32 > m_aPrinterPaperTrays
 printer paper tray to use for each of the m_aValidPages above More...
 
std::vector< sal_Int32 > m_aPagesToPrint
 vector of pages and their order to be printed (duplicates and any order allowed!) (see 'render' in unotxdoc.cxx) negative entry indicates the page to be printed is from the post-it doc More...
 
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. More...
 
OUString m_aPageRange
 
SfxObjectShellLock m_xTempDocShell
 temp print document – must live longer than m_pViewOptionAdjust! also this is a Lock and not a Ref because Ref does not delete the doc More...
 
std::unique_ptr< SwViewOptionAdjust_Implm_pViewOptionAdjust
 the view options to be applied for printing More...
 
std::unique_ptr< SwPrintDatam_pPrtOptions
 

Detailed Description

A class that stores temporary data that is needed for rendering the document.

Usually this data is created when 'getRendererCount' is called and and it is used in the 'render' function of that same interface

Definition at line 203 of file printdata.hxx.

Member Typedef Documentation

◆ PagePairsVec_t

typedef std::vector< std::pair< sal_Int32, sal_Int32 > > SwRenderData::PagePairsVec_t

Definition at line 263 of file printdata.hxx.

Constructor & Destructor Documentation

◆ SwRenderData()

SwRenderData::SwRenderData ( )

Definition at line 40 of file printdata.cxx.

◆ ~SwRenderData()

SwRenderData::~SwRenderData ( )

Definition at line 44 of file printdata.cxx.

References m_pPostItFields, and m_pPostItShell.

Member Function Documentation

◆ CreatePostItData()

void SwRenderData::CreatePostItData ( SwDoc rDoc,
const SwViewOption pViewOpt,
OutputDevice pOutDev 
)

! Disable spell and grammar checking in the temporary document. ! Otherwise the grammar checker might process it and crash if we later on ! simply delete this document while he is still at it.

Definition at line 50 of file printdata.cxx.

References DeletePostItData(), SwDoc::getIDocumentFieldsAccess(), m_pPostItFields, m_pPostItShell, SwViewOption::SetOnlineSpell(), and sw_GetPostIts().

◆ DeletePostItData()

void SwRenderData::DeletePostItData ( )

Definition at line 65 of file printdata.cxx.

References HasPostItData(), m_pPostItFields, and m_pPostItShell.

Referenced by CreatePostItData().

◆ GetPagePairsForProspectPrinting() [1/2]

PagePairsVec_t & SwRenderData::GetPagePairsForProspectPrinting ( )
inline

used for prospect printing only

Definition at line 280 of file printdata.hxx.

References m_aPagePairs.

Referenced by SwDoc::CalculatePagePairsForProspectPrinting(), and SwViewShell::PrintProspect().

◆ GetPagePairsForProspectPrinting() [2/2]

const PagePairsVec_t & SwRenderData::GetPagePairsForProspectPrinting ( ) const
inline

Definition at line 281 of file printdata.hxx.

References m_aPagePairs.

◆ GetPageRange()

const OUString & SwRenderData::GetPageRange ( ) const
inline

Definition at line 283 of file printdata.hxx.

References m_aPageRange.

Referenced by SwDoc::UpdatePagesForPrintingWithPostItData().

◆ GetPagesToPrint() [1/2]

std::vector< sal_Int32 > & SwRenderData::GetPagesToPrint ( )
inline

used for 'normal' printing A page value of 0 as entry indicates that this page is not from the document but from the post-it document.

(See also GetPostItStartFrame below)

Definition at line 276 of file printdata.hxx.

References m_aPagesToPrint.

Referenced by SwDoc::CalculatePagesForPrinting(), SwViewShell::PrintOrPDFExport(), and SwDoc::UpdatePagesForPrintingWithPostItData().

◆ GetPagesToPrint() [2/2]

const std::vector< sal_Int32 > & SwRenderData::GetPagesToPrint ( ) const
inline

Definition at line 277 of file printdata.hxx.

References m_aPagesToPrint.

◆ GetPrinterPaperTrays() [1/2]

std::map< sal_Int32, sal_Int32 > & SwRenderData::GetPrinterPaperTrays ( )
inline

a map for printer paper tray numbers to use for each document page a value of -1 for the tray means that there is no specific tray defined

Definition at line 270 of file printdata.hxx.

References m_aPrinterPaperTrays.

Referenced by SwDoc::CalculatePagePairsForProspectPrinting(), and SwDoc::CalculatePagesForPrinting().

◆ GetPrinterPaperTrays() [2/2]

const std::map< sal_Int32, sal_Int32 > & SwRenderData::GetPrinterPaperTrays ( ) const
inline

Definition at line 271 of file printdata.hxx.

References m_aPrinterPaperTrays.

◆ GetSwPrtOptions()

SwPrintData const * SwRenderData::GetSwPrtOptions ( ) const
inline

Definition at line 259 of file printdata.hxx.

References m_pPrtOptions.

◆ GetTempDocShell()

SfxObjectShellLock const & SwRenderData::GetTempDocShell ( ) const
inline

Definition at line 248 of file printdata.hxx.

References m_xTempDocShell.

◆ GetValidPagesSet() [1/2]

o3tl::sorted_vector< sal_Int32 > & SwRenderData::GetValidPagesSet ( )
inline

◆ GetValidPagesSet() [2/2]

const o3tl::sorted_vector< sal_Int32 > & SwRenderData::GetValidPagesSet ( ) const
inline

Definition at line 266 of file printdata.hxx.

References m_aValidPages.

◆ HasPostItData()

bool SwRenderData::HasPostItData ( ) const
inline

Definition at line 244 of file printdata.hxx.

References m_pPostItShell.

Referenced by DeletePostItData(), and SwDoc::UpdatePagesForPrintingWithPostItData().

◆ HasSwPrtOptions()

bool SwRenderData::HasSwPrtOptions ( ) const
inline

Definition at line 258 of file printdata.hxx.

References m_pPrtOptions.

◆ IsViewOptionAdjust()

bool SwRenderData::IsViewOptionAdjust ( ) const
inline

Definition at line 251 of file printdata.hxx.

References m_pViewOptionAdjust.

◆ MakeSwPrtOptions()

void SwRenderData::MakeSwPrtOptions ( SwDocShell const *const  pDocShell,
SwPrintUIOptions const *const  pOpt,
bool const  bIsPDFExport 
)

◆ NeedNewViewOptionAdjust()

bool SwRenderData::NeedNewViewOptionAdjust ( const SwViewShell rCompare) const

Definition at line 84 of file printdata.cxx.

References m_pViewOptionAdjust.

◆ SetPageRange()

void SwRenderData::SetPageRange ( const OUString &  rRange)
inline

Definition at line 284 of file printdata.hxx.

References m_aPageRange.

Referenced by SwDoc::CalculatePagesForPrinting().

◆ SetTempDocShell()

void SwRenderData::SetTempDocShell ( SfxObjectShellLock const &  xShell)

Definition at line 79 of file printdata.cxx.

References m_xTempDocShell.

◆ ViewOptionAdjust()

void SwRenderData::ViewOptionAdjust ( SwPrintData const *const  pPrtOptions,
bool  setShowPlaceHoldersInPDF 
)

Definition at line 100 of file printdata.cxx.

References m_pViewOptionAdjust.

◆ ViewOptionAdjustCrashPreventionKludge()

void SwRenderData::ViewOptionAdjustCrashPreventionKludge ( )

Definition at line 110 of file printdata.cxx.

References m_pViewOptionAdjust.

◆ ViewOptionAdjustStart()

void SwRenderData::ViewOptionAdjustStart ( SwViewShell rSh,
const SwViewOption rViewOptions 
)

Definition at line 89 of file printdata.cxx.

References m_pViewOptionAdjust.

◆ ViewOptionAdjustStop()

void SwRenderData::ViewOptionAdjustStop ( )

Definition at line 105 of file printdata.cxx.

References m_pViewOptionAdjust.

Member Data Documentation

◆ m_aPagePairs

std::vector< std::pair< sal_Int32, sal_Int32 > > SwRenderData::m_aPagePairs
private

for prospect printing: the pairs of pages to be printed together on a single prospect page.

-1 indicates a half page to be left empty.

Definition at line 219 of file printdata.hxx.

Referenced by GetPagePairsForProspectPrinting().

◆ m_aPageRange

OUString SwRenderData::m_aPageRange
private

Definition at line 221 of file printdata.hxx.

Referenced by GetPageRange(), and SetPageRange().

◆ m_aPagesToPrint

std::vector< sal_Int32 > SwRenderData::m_aPagesToPrint
private

vector of pages and their order to be printed (duplicates and any order allowed!) (see 'render' in unotxdoc.cxx) negative entry indicates the page to be printed is from the post-it doc

Definition at line 215 of file printdata.hxx.

Referenced by GetPagesToPrint().

◆ m_aPrinterPaperTrays

std::map< sal_Int32, sal_Int32 > SwRenderData::m_aPrinterPaperTrays
private

printer paper tray to use for each of the m_aValidPages above

Definition at line 210 of file printdata.hxx.

Referenced by GetPrinterPaperTrays().

◆ m_aValidPages

o3tl::sorted_vector< sal_Int32 > SwRenderData::m_aValidPages
private

pages valid for printing (according to the current settings) This set of pages does NOT depend on the 'PageRange' that is used as a printing option!

the set of possible pages (see StringRangeEnumerator::getRangesFromString )

Definition at line 207 of file printdata.hxx.

Referenced by GetValidPagesSet().

◆ m_pPostItFields

std::unique_ptr<SetGetExpFields> SwRenderData::m_pPostItFields

an array of "SetGetExpField *" sorted by page and line numbers

Definition at line 236 of file printdata.hxx.

Referenced by CreatePostItData(), DeletePostItData(), SwDoc::UpdatePagesForPrintingWithPostItData(), and ~SwRenderData().

◆ m_pPostItShell

std::unique_ptr<SwViewShell> SwRenderData::m_pPostItShell

◆ m_pPrtOptions

std::unique_ptr<SwPrintData> SwRenderData::m_pPrtOptions
private

Definition at line 230 of file printdata.hxx.

Referenced by GetSwPrtOptions(), HasSwPrtOptions(), and MakeSwPrtOptions().

◆ m_pViewOptionAdjust

std::unique_ptr<SwViewOptionAdjust_Impl> SwRenderData::m_pViewOptionAdjust
private

◆ m_xTempDocShell

SfxObjectShellLock SwRenderData::m_xTempDocShell
private

temp print document – must live longer than m_pViewOptionAdjust! also this is a Lock and not a Ref because Ref does not delete the doc

Definition at line 225 of file printdata.hxx.

Referenced by GetTempDocShell(), and SetTempDocShell().


The documentation for this class was generated from the following files: