xref: /AOO41X/main/sw/inc/dpage.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _DPAGE_HXX
24 #define _DPAGE_HXX
25 
26 #ifndef _FM_FMPAGE_HXX
27 #include <svx/fmpage.hxx>
28 #endif
29 #include <svx/svdobj.hxx>
30 
31 class SdrPageGridFrameList;
32 class SwDrawDocument;
33 class SwDoc;
34 
35 class SwDPage : public FmFormPage, public SdrObjUserCall
36 {
37     SdrPageGridFrameList*   pGridLst;
38     SwDoc&                  rDoc;
39 
40 public:
41     SwDPage(SwDrawDocument& rNewModel, sal_Bool bMasterPage=sal_False);
42     ~SwDPage();
43 
44     // #i3694#
45     // This GetOffset() method is not needed anymore, it even leads to errors.
46     // virtual Point GetOffset() const;
47     virtual SdrObject* ReplaceObject( SdrObject* pNewObj, sal_uLong nObjNum );
48 
49     virtual const SdrPageGridFrameList* GetGridFrameList(const SdrPageView* pPV,
50                                     const Rectangle *pRect) const;
51 
52     sal_Bool RequestHelp( Window* pWindow, SdrView* pView, const HelpEvent& rEvt );
53 
54     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoPage();
55 };
56 
57 #endif     // _DPAGE_HXX
58 
59 
60 
61