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