summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTibor Nagy <tibor.nagy.extern@allotropia.de>2024-01-31 16:49:24 +0100
committerNagy Tibor <tibor.nagy.extern@allotropia.de>2024-02-09 12:06:01 +0100
commita67cd7b3cf03163f87811f7080cabc49750c4fd5 (patch)
treedcafe31ec7a97310ae2d94b822924769d50f9cb9 /include
parent7327752ef5d1fa2239cdd8355fb78da41c282717 (diff)
tdf#155218 sc: fix different page orientation in print dialog
The page orientation is correct if you set it in the page style first. However, if you change it in the Print dialog the page layout and size refresh but the content orientation remains the same. Change-Id: I5e494a0714e398221bee00744d7e25c419a41df7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162845 Tested-by: Jenkins Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/print.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index e23cf8d0af1b..870ed5d915a1 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -80,6 +80,7 @@ private:
JobSetup maJobSetup;
Point maPageOffset;
Size maPaperSize;
+ Size maPrintPageSize;
ErrCode mnError;
sal_uInt16 mnPageQueueSize;
sal_uInt16 mnCopyCount;
@@ -91,6 +92,7 @@ private:
bool mbInPrintPage;
bool mbNewJobSetup;
bool mbSinglePrintJobs;
+ bool mbUsePrintSetting;
VCL_DLLPRIVATE void ImplInitData();
VCL_DLLPRIVATE void ImplInit( SalPrinterQueueInfo* pInfo );
@@ -220,6 +222,10 @@ public:
VCL_DLLPRIVATE void SetPrinterOptions( const vcl::printer::Options& rOptions );
const vcl::printer::Options& GetPrinterOptions() const { return( *mpPrinterOptions ); }
+ void SetUsePrintDialogSetting(bool bUsed) { mbUsePrintSetting = bUsed; }
+ bool IsUsePrintDialogSetting() { return mbUsePrintSetting; }
+ void SetPrintPageSize(Size aPrintPageSize) { maPrintPageSize = aPrintPageSize; }
+ Size GetPrintPageSize() { return maPrintPageSize; }
bool SetOrientation( Orientation eOrient );
Orientation GetOrientation() const;
void SetDuplexMode( DuplexMode );