Kaydet (Commit) a6f5e523 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix one more use of removed ViewHandler.py

...in the style of d6308705 "pywizards: get rid
of ViewHandler" and 15560086 "fdo#59248: Remove
remaining dangling view of ViewHandler.py," though the Python version of the
Agenda wizard appers not be used yet, anyway.

Change-Id: I993306d6ffa87d0938763706d41e12b2ffdf57e6
üst 3495f481
...@@ -31,7 +31,6 @@ from ..common.Desktop import Desktop ...@@ -31,7 +31,6 @@ from ..common.Desktop import Desktop
from ..common.HelpIds import HelpIds from ..common.HelpIds import HelpIds
from ..common.Configuration import Configuration from ..common.Configuration import Configuration
from ..document.OfficeDocument import OfficeDocument from ..document.OfficeDocument import OfficeDocument
from ..text.ViewHandler import ViewHandler
from com.sun.star.view.DocumentZoomType import OPTIMAL from com.sun.star.view.DocumentZoomType import OPTIMAL
from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO
...@@ -384,8 +383,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog): ...@@ -384,8 +383,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
oDoc = OfficeDocument.load( oDoc = OfficeDocument.load(
Desktop.getDesktop(self.xMSF), Desktop.getDesktop(self.xMSF),
self.sPath, "_default", loadValues) self.sPath, "_default", loadValues)
myViewHandler = ViewHandler(self.xMSF, oDoc) oDoc.CurrentController.ViewSettings.ZoomType = OPTIMAL
myViewHandler.setViewSetting("ZoomType", OPTIMAL)
else: else:
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment