summaryrefslogtreecommitdiff
path: root/sw/inc/printdata.hxx
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-02-16 15:35:40 +0100
committerThomas Lange [tl] <tl@openoffice.org>2010-02-16 15:35:40 +0100
commite32f77109ee1ae17b4975a8060029cb1aec6fa1d (patch)
tree49f981a2b01b5edcfbb55efe97f11ffabc9a1a8c /sw/inc/printdata.hxx
parent90ea4683b913048402ed7bd586384ff16290d870 (diff)
#108327# handling of paper tray for printing
Diffstat (limited to 'sw/inc/printdata.hxx')
-rwxr-xr-xsw/inc/printdata.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index 7851cf50e1d9..ce3e3cc6adbc 100755
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -233,6 +233,9 @@ class SwRenderData
std::set< sal_Int32 > m_aValidPages; // the set of possible pages (see StringRangeEnumerator::getRangesFromString )
std::map< sal_Int32, const SwPageFrm * > m_aValidStartFrames; // the map of start frames for those pages
+ // printer paper tray to use for each of the m_aValidPages above
+ std::map< sal_Int32, sal_Int32 > m_aPrinterPaperTrays;
+
// vector of pages and their order to be printed (duplicates and any order allowed!)
// (see 'render' in unotxdoc.cxx)
std::vector< sal_Int32 > m_aPagesToPrint;
@@ -288,6 +291,11 @@ public:
ValidStartFramesMap_t & GetValidStartFrames() { return m_aValidStartFrames; }
const ValidStartFramesMap_t & GetValidStartFrames() const { return m_aValidStartFrames; }
+ // 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
+ std::map< sal_Int32, sal_Int32 > GetPrinterPaperTrays() { return m_aPrinterPaperTrays; }
+ const std::map< sal_Int32, sal_Int32 > GetPrinterPaperTrays() const { return m_aPrinterPaperTrays; }
+
// 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)