1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10*1d2dbeb0SAndrew Rist * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1d2dbeb0SAndrew Rist * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19*1d2dbeb0SAndrew Rist * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef IDOCUMENTDRAWMODEL_HXX_INCLUDED 25cdf0e10cSrcweir #define IDOCUMENTDRAWMODEL_HXX_INCLUDED 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <svx/svdtypes.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir class SdrModel; 30cdf0e10cSrcweir class SdrPageView; 31cdf0e10cSrcweir 32cdf0e10cSrcweir /** IDocumentDrawModelAccess 33cdf0e10cSrcweir */ 34cdf0e10cSrcweir class IDocumentDrawModelAccess 35cdf0e10cSrcweir { 36cdf0e10cSrcweir public: 37cdf0e10cSrcweir 38cdf0e10cSrcweir /** Draw Model and id accessors 39cdf0e10cSrcweir */ 40cdf0e10cSrcweir virtual const SdrModel* GetDrawModel() const = 0; 41cdf0e10cSrcweir virtual SdrModel* GetDrawModel() = 0; 42cdf0e10cSrcweir virtual SdrModel* _MakeDrawModel() = 0; 43cdf0e10cSrcweir virtual SdrModel* GetOrCreateDrawModel() = 0; 44cdf0e10cSrcweir virtual SdrLayerID GetHeavenId() const = 0; 45cdf0e10cSrcweir virtual SdrLayerID GetHellId() const = 0; 46cdf0e10cSrcweir virtual SdrLayerID GetControlsId() const = 0; 47cdf0e10cSrcweir virtual SdrLayerID GetInvisibleHeavenId() const = 0; 48cdf0e10cSrcweir virtual SdrLayerID GetInvisibleHellId() const = 0; 49cdf0e10cSrcweir virtual SdrLayerID GetInvisibleControlsId() const = 0; 50cdf0e10cSrcweir 51cdf0e10cSrcweir /** method to notify drawing page view about the invisible layers 52cdf0e10cSrcweir OD 26.06.2003 #108784# 53cdf0e10cSrcweir @author OD 54cdf0e10cSrcweir */ 55cdf0e10cSrcweir virtual void NotifyInvisibleLayers( SdrPageView& _rSdrPageView ) = 0; 56cdf0e10cSrcweir 57cdf0e10cSrcweir /** method to determine, if a layer ID belongs to the visible ones. 58cdf0e10cSrcweir OD 25.06.2003 #108784# 59cdf0e10cSrcweir Note: If given layer ID is unknown, method asserts and returns <false>. 60cdf0e10cSrcweir @author OD 61cdf0e10cSrcweir 62cdf0e10cSrcweir @param _nLayerId 63cdf0e10cSrcweir input parameter - layer ID, which has to be checked, if it belongs to 64cdf0e10cSrcweir the visible ones. 65cdf0e10cSrcweir 66cdf0e10cSrcweir @return bool, indicating, if given layer ID belongs to the visible ones. 67cdf0e10cSrcweir */ 68cdf0e10cSrcweir virtual bool IsVisibleLayerId( const SdrLayerID& _nLayerId ) const = 0; 69cdf0e10cSrcweir 70cdf0e10cSrcweir /** method to determine, if the corresponding visible layer ID for a invisible one. 71cdf0e10cSrcweir 72cdf0e10cSrcweir OD 25.06.2003 #108784# 73cdf0e10cSrcweir Note: If given layer ID is a visible one, method returns given layer ID. 74cdf0e10cSrcweir Note: If given layer ID is unknown, method returns given layer ID. 75cdf0e10cSrcweir 76cdf0e10cSrcweir @author OD 77cdf0e10cSrcweir 78cdf0e10cSrcweir @param _nInvisibleLayerId 79cdf0e10cSrcweir input parameter - invisible layer ID for which the corresponding 80cdf0e10cSrcweir visible one has to be returned. 81cdf0e10cSrcweir 82cdf0e10cSrcweir @return sal_Int8, visible layer ID corresponding to given layer ID 83cdf0e10cSrcweir */ 84cdf0e10cSrcweir virtual SdrLayerID GetVisibleLayerIdByInvisibleOne( const SdrLayerID& _nInvisibleLayerId ) = 0; 85cdf0e10cSrcweir 86cdf0e10cSrcweir /** method to determine, if the corresponding invisible layer ID for a visible one. 87cdf0e10cSrcweir 88cdf0e10cSrcweir OD 25.06.2003 #108784# 89cdf0e10cSrcweir Note: If given layer ID is a invisible one, method returns given layer ID. 90cdf0e10cSrcweir Note: If given layer ID is unknown, method returns given layer ID. 91cdf0e10cSrcweir 92cdf0e10cSrcweir @author OD 93cdf0e10cSrcweir 94cdf0e10cSrcweir @param _nVisibleLayerId 95cdf0e10cSrcweir input parameter - visible layer ID for which the corresponding 96cdf0e10cSrcweir invisible one has to be returned. 97cdf0e10cSrcweir 98cdf0e10cSrcweir @return sal_Int8, invisible layer ID corresponding to given layer ID 99cdf0e10cSrcweir */ 100cdf0e10cSrcweir virtual SdrLayerID GetInvisibleLayerIdByVisibleOne( const SdrLayerID& _nVisibleLayerId ) = 0; 101cdf0e10cSrcweir 102cdf0e10cSrcweir protected: 103cdf0e10cSrcweir ~IDocumentDrawModelAccess()104cdf0e10cSrcweir virtual ~IDocumentDrawModelAccess() {}; 105cdf0e10cSrcweir }; 106cdf0e10cSrcweir 107cdf0e10cSrcweir #endif 108