summaryrefslogtreecommitdiff
path: root/sw/inc/unotxdoc.hxx
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2009-12-03 15:25:10 +0100
committerThomas Lange [tl] <tl@openoffice.org>2009-12-03 15:25:10 +0100
commit0b7a663872f6377fced80cdd6368174f1f28eddb (patch)
tree6213bae8b11c9c8caaa0bb7f1488861e6f9d9e63 /sw/inc/unotxdoc.hxx
parent1b9308fe40e222d3a2262c7c0e399e8c6aa6ffde (diff)
#i106926# printing of hidden text fixed
Diffstat (limited to 'sw/inc/unotxdoc.hxx')
-rwxr-xr-x[-rw-r--r--]sw/inc/unotxdoc.hxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index bea720e592bf..a5c39b2d928d 100644..100755
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -591,21 +591,28 @@ public:
/*-- 06.01.2004 15:08:34---------------------------------------------------
The class SwViewOptionAdjust_Impl is used to adjust the SwViewOption of
the current ViewShell so that fields are not printed as commands and
- hidden text and hidden characters are always invisible.
+ hidden characters are always invisible. Hidden text and place holders
+ should be printed according to the current print options.
After printing the view options are restored
-----------------------------------------------------------------------*/
class SwViewOptionAdjust_Impl
{
+ // options not available in the File/Print UI, should be turned off for
+ // printing and PDF export if they are enabled
bool m_bSwitchOff_IsFldName;
- bool m_bSwitchOff_PlaceHolderView;
- bool m_bSwitchOff_HiddenChar;
- bool m_bSwitchOff_HiddenParagraphs;
- bool m_bSwitchOff_IsShowHiddenField;
+
+ // options available in the File/Print UI, should be turned of for PDF export
+ // and otherwise set (or not) according to
+ // pPrtOptions->bPrintHiddenText and pPrtOptions->bPrintTextPlaceholder
+ bool m_bToggle_HiddenChar;
+ bool m_bToggle_HiddenField;
+ bool m_bToggle_HiddenParagraphs;
+ bool m_bToggle_PlaceHolderView;
SwViewOption* m_pViewOption;
SwWrtShell& m_rShell;
public:
- SwViewOptionAdjust_Impl(SwWrtShell& rSh);
+ SwViewOptionAdjust_Impl( SwWrtShell& rSh, const SwPrtOptions *pPrtOptions );
~SwViewOptionAdjust_Impl();
};