forked from amazingfate/loongoffice
DocShell in Writer, made SwDrawModel and handling more known (includes suspicious removal of setting SID_ATTR_LINEEND_WIDTH_DEFAULT) (cherry picked from commit a7ccadbf3b1ac378ca15d3630d48f48734700e5c) Conflicts: sw/inc/IDocumentDrawModelAccess.hxx sw/inc/doc.hxx sw/inc/docsh.hxx sw/inc/dpage.hxx sw/inc/drawdoc.hxx sw/source/core/access/accmap.cxx sw/source/core/doc/doc.cxx sw/source/core/doc/docdesc.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfly.cxx sw/source/core/doc/doclay.cxx sw/source/core/doc/docnew.cxx sw/source/core/draw/dcontact.cxx sw/source/core/draw/dpage.cxx sw/source/core/draw/drawdoc.cxx sw/source/core/frmedt/feshview.cxx sw/source/core/layout/fly.cxx sw/source/core/layout/frmtool.cxx sw/source/core/layout/newfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/undo/docundo.cxx sw/source/core/undo/unattr.cxx sw/source/core/unocore/unodraw.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/view/vdraw.cxx sw/source/core/view/viewimp.cxx sw/source/core/view/viewsh.cxx sw/source/filter/html/htmldrawreader.cxx sw/source/filter/rtf/rtffly.cxx sw/source/filter/rtf/swparrtf.cxx sw/source/filter/ww8/docxattributeoutput.cxx sw/source/filter/ww8/rtfattributeoutput.cxx sw/source/filter/ww8/wrtw8esh.cxx sw/source/filter/ww8/wrtww8.cxx sw/source/filter/ww8/ww8graf.cxx sw/source/filter/xml/swxml.cxx sw/source/filter/xml/xmlexp.cxx sw/source/filter/xml/xmlimp.cxx sw/source/ui/app/docshdrw.cxx sw/source/ui/uiview/view.cxx sw/source/ui/uno/unodefaults.cxx sw/source/uibase/app/docst.cxx sw/source/uibase/app/docstyle.cxx sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx sw/source/uibase/lingu/sdrhhcwrap.cxx sw/source/uibase/shells/drwbassh.cxx sw/source/uibase/shells/frmsh.cxx sw/source/uibase/shells/grfsh.cxx sw/source/uibase/shells/textsh1.cxx sw/source/uibase/uno/unotxdoc.cxx sw/source/uibase/utlui/content.cxx Conflicts: sw/source/uibase/app/docshdrw.cxx Change-Id: Icb99eaa7bfb1eb8922a9fd928b5e4149821130dd
93 lines
3.0 KiB
C++
93 lines
3.0 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
|
|
#ifndef INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTDRAWMODELMANAGER_HXX
|
|
#define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTDRAWMODELMANAGER_HXX
|
|
|
|
#include <sal/types.h>
|
|
#include <IDocumentDrawModelAccess.hxx>
|
|
#include <boost/utility.hpp>
|
|
#include <svx/svdtypes.hxx>
|
|
|
|
class SwDrawModel;
|
|
class SdrPageView;
|
|
class SwDoc;
|
|
|
|
namespace sw
|
|
{
|
|
|
|
class DocumentDrawModelManager : public IDocumentDrawModelAccess,
|
|
public ::boost::noncopyable
|
|
{
|
|
public:
|
|
|
|
DocumentDrawModelManager( SwDoc& i_rSwdoc );
|
|
|
|
void InitDrawModel();
|
|
void ReleaseDrawModel();
|
|
void DrawNotifyUndoHdl();
|
|
|
|
//IDocumentDrawModelAccess
|
|
virtual const SwDrawModel* GetDrawModel() const SAL_OVERRIDE;
|
|
virtual SwDrawModel* GetDrawModel() SAL_OVERRIDE;
|
|
virtual SwDrawModel* _MakeDrawModel() SAL_OVERRIDE;
|
|
virtual SwDrawModel* GetOrCreateDrawModel() SAL_OVERRIDE;
|
|
virtual SdrLayerID GetHeavenId() const SAL_OVERRIDE;
|
|
virtual SdrLayerID GetHellId() const SAL_OVERRIDE;
|
|
virtual SdrLayerID GetControlsId() const SAL_OVERRIDE;
|
|
virtual SdrLayerID GetInvisibleHeavenId() const SAL_OVERRIDE;
|
|
virtual SdrLayerID GetInvisibleHellId() const SAL_OVERRIDE;
|
|
virtual SdrLayerID GetInvisibleControlsId() const SAL_OVERRIDE;
|
|
|
|
virtual void NotifyInvisibleLayers( SdrPageView& _rSdrPageView ) SAL_OVERRIDE;
|
|
|
|
virtual bool IsVisibleLayerId( const SdrLayerID& _nLayerId ) const SAL_OVERRIDE;
|
|
|
|
virtual SdrLayerID GetVisibleLayerIdByInvisibleOne( const SdrLayerID& _nInvisibleLayerId ) SAL_OVERRIDE;
|
|
|
|
virtual SdrLayerID GetInvisibleLayerIdByVisibleOne( const SdrLayerID& _nVisibleLayerId ) SAL_OVERRIDE;
|
|
|
|
virtual ~DocumentDrawModelManager() {}
|
|
|
|
private:
|
|
|
|
SwDoc& m_rSwdoc;
|
|
|
|
|
|
SwDrawModel* mpDrawModel;
|
|
|
|
/** Draw Model Layer IDs
|
|
* LayerIds, Heaven == above document
|
|
* Hell == below document
|
|
* Controls == at the very top
|
|
*/
|
|
SdrLayerID mnHeaven;
|
|
SdrLayerID mnHell;
|
|
SdrLayerID mnControls;
|
|
SdrLayerID mnInvisibleHeaven;
|
|
SdrLayerID mnInvisibleHell;
|
|
SdrLayerID mnInvisibleControls;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|