1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef IDOCUMENTDRAWMODEL_HXX_INCLUDED 29*cdf0e10cSrcweir #define IDOCUMENTDRAWMODEL_HXX_INCLUDED 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <svx/svdtypes.hxx> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir class SdrModel; 34*cdf0e10cSrcweir class SdrPageView; 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir /** IDocumentDrawModelAccess 37*cdf0e10cSrcweir */ 38*cdf0e10cSrcweir class IDocumentDrawModelAccess 39*cdf0e10cSrcweir { 40*cdf0e10cSrcweir public: 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir /** Draw Model and id accessors 43*cdf0e10cSrcweir */ 44*cdf0e10cSrcweir virtual const SdrModel* GetDrawModel() const = 0; 45*cdf0e10cSrcweir virtual SdrModel* GetDrawModel() = 0; 46*cdf0e10cSrcweir virtual SdrModel* _MakeDrawModel() = 0; 47*cdf0e10cSrcweir virtual SdrModel* GetOrCreateDrawModel() = 0; 48*cdf0e10cSrcweir virtual SdrLayerID GetHeavenId() const = 0; 49*cdf0e10cSrcweir virtual SdrLayerID GetHellId() const = 0; 50*cdf0e10cSrcweir virtual SdrLayerID GetControlsId() const = 0; 51*cdf0e10cSrcweir virtual SdrLayerID GetInvisibleHeavenId() const = 0; 52*cdf0e10cSrcweir virtual SdrLayerID GetInvisibleHellId() const = 0; 53*cdf0e10cSrcweir virtual SdrLayerID GetInvisibleControlsId() const = 0; 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir /** method to notify drawing page view about the invisible layers 56*cdf0e10cSrcweir OD 26.06.2003 #108784# 57*cdf0e10cSrcweir @author OD 58*cdf0e10cSrcweir */ 59*cdf0e10cSrcweir virtual void NotifyInvisibleLayers( SdrPageView& _rSdrPageView ) = 0; 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /** method to determine, if a layer ID belongs to the visible ones. 62*cdf0e10cSrcweir OD 25.06.2003 #108784# 63*cdf0e10cSrcweir Note: If given layer ID is unknown, method asserts and returns <false>. 64*cdf0e10cSrcweir @author OD 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir @param _nLayerId 67*cdf0e10cSrcweir input parameter - layer ID, which has to be checked, if it belongs to 68*cdf0e10cSrcweir the visible ones. 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir @return bool, indicating, if given layer ID belongs to the visible ones. 71*cdf0e10cSrcweir */ 72*cdf0e10cSrcweir virtual bool IsVisibleLayerId( const SdrLayerID& _nLayerId ) const = 0; 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir /** method to determine, if the corresponding visible layer ID for a invisible one. 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir OD 25.06.2003 #108784# 77*cdf0e10cSrcweir Note: If given layer ID is a visible one, method returns given layer ID. 78*cdf0e10cSrcweir Note: If given layer ID is unknown, method returns given layer ID. 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir @author OD 81*cdf0e10cSrcweir 82*cdf0e10cSrcweir @param _nInvisibleLayerId 83*cdf0e10cSrcweir input parameter - invisible layer ID for which the corresponding 84*cdf0e10cSrcweir visible one has to be returned. 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir @return sal_Int8, visible layer ID corresponding to given layer ID 87*cdf0e10cSrcweir */ 88*cdf0e10cSrcweir virtual SdrLayerID GetVisibleLayerIdByInvisibleOne( const SdrLayerID& _nInvisibleLayerId ) = 0; 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir /** method to determine, if the corresponding invisible layer ID for a visible one. 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir OD 25.06.2003 #108784# 93*cdf0e10cSrcweir Note: If given layer ID is a invisible one, method returns given layer ID. 94*cdf0e10cSrcweir Note: If given layer ID is unknown, method returns given layer ID. 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir @author OD 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir @param _nVisibleLayerId 99*cdf0e10cSrcweir input parameter - visible layer ID for which the corresponding 100*cdf0e10cSrcweir invisible one has to be returned. 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir @return sal_Int8, invisible layer ID corresponding to given layer ID 103*cdf0e10cSrcweir */ 104*cdf0e10cSrcweir virtual SdrLayerID GetInvisibleLayerIdByVisibleOne( const SdrLayerID& _nVisibleLayerId ) = 0; 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir protected: 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir virtual ~IDocumentDrawModelAccess() {}; 109*cdf0e10cSrcweir }; 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir #endif 112