summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh3.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-09-28 16:16:55 +0000
committerSascha Ballach <sab@openoffice.org>2001-09-28 16:16:55 +0000
commit8e5c7db29546f192f5414c7052dbbb87f7ad4455 (patch)
tree09b37b7cd8bc3c7514c387dff364fa54e81d6e40 /sc/source/ui/docshell/docsh3.cxx
parent0b266cfc991326562c43ce2139237822be833424 (diff)
#92131#; Update the Ref Device of all Input Handler
Diffstat (limited to 'sc/source/ui/docshell/docsh3.cxx')
-rw-r--r--sc/source/ui/docshell/docsh3.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index b6df711a9a20..df9834090752 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docsh3.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: nn $ $Date: 2001-08-14 18:14:53 $
+ * last change: $Author: sab $ $Date: 2001-09-28 17:16:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -111,6 +111,7 @@
#include "sc.hrc"
#include "inputopt.hxx"
#include "drwlayer.hxx"
+#include "inputhdl.hxx"
//------------------------------------------------------------------
@@ -467,6 +468,21 @@ USHORT ScDocShell::SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags )
PutItem( aFontListItem );
CalcOutputFactor();
+
+ ScModule* pScMod = SC_MOD();
+ SfxViewFrame *pFrame = SfxViewFrame::GetFirst( this );
+ while (pFrame)
+ {
+ SfxViewShell* pSh = pFrame->GetViewShell();
+ if (pSh && pSh->ISA(ScTabViewShell))
+ {
+ ScTabViewShell* pViewSh = (ScTabViewShell*)pSh;
+ ScInputHandler* pInputHdl = pScMod->GetInputHdl(pViewSh);
+ if (pInputHdl)
+ pInputHdl->UpdateRefDevice();
+ }
+ pFrame = SfxViewFrame::GetNext( *pFrame, this );
+ }
}
}
else if (nDiffFlags & SFX_PRINTER_JOBSETUP)