Split out the IDocumentDeviceAccess interface of SwDoc

Desktop / LibreOffice - Valentin Kettner [gmail.com] - 22 April 2014 07:36 UTC

The interface implementation is now in the class DocumentDeviceManager and SwDoc has a member variable of that class to which the Interface's method calls get forwarded. The following methods were also moved because they are only used by this interface: CreateVirtualDevice_, CreatePrinter_ and PrtDataChanged.

185c270 Split out the IDocumentDeviceAccess interface of SwDoc.
sw/Library_sw.mk | 1 +
sw/inc/doc.hxx | 38 ++-
sw/source/core/doc/DocumentDeviceManager.cxx | 360 ++++++++++++++++++++++++++
sw/source/core/doc/doc.cxx | 182 ++-----------
sw/source/core/doc/docdesc.cxx | 65 -----
sw/source/core/doc/docnew.cxx | 56 +---
sw/source/core/docnode/node.cxx | 2 +-
sw/source/core/inc/DocumentDeviceManager.hxx | 83 ++++++
sw/source/core/uibase/app/docshini.cxx | 2 +-
sw/source/core/view/viewsh.cxx | 4 +-
10 files changed, 498 insertions(+), 295 deletions(-)

Upstream: cgit.freedesktop.org


  • Share