xref: /aoo41x/main/basctl/source/dlged/dlgedmod.cxx (revision 31598a22)
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 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_basctl.hxx"
26 
27 
28 #include "dlgedmod.hxx"
29 #include "dlgedpage.hxx"
30 #include <tools/debug.hxx>
31 
32 
33 DBG_NAME(DlgEdModel)
34 
35 TYPEINIT1(DlgEdModel,SdrModel);
36 
37 //----------------------------------------------------------------------------
38 
DlgEdModel()39 DlgEdModel::DlgEdModel()
40     :SdrModel(NULL, NULL)
41 {
42 	DBG_CTOR(DlgEdModel,0);
43 }
44 
45 //----------------------------------------------------------------------------
46 
~DlgEdModel()47 DlgEdModel::~DlgEdModel()
48 {
49 	DBG_DTOR(DlgEdModel,0);
50 }
51 
52 //----------------------------------------------------------------------------
53 
AllocPage(FASTBOOL bMasterPage)54 SdrPage* DlgEdModel::AllocPage(FASTBOOL bMasterPage)
55 {
56 	DBG_CHKTHIS(DlgEdModel, 0);
57 	return new DlgEdPage(*this, bMasterPage);
58 }
59 
60 //----------------------------------------------------------------------------
61 
DlgEdModelChanged(FASTBOOL bChanged)62 void DlgEdModel::DlgEdModelChanged( FASTBOOL bChanged )
63 {
64 	SetChanged( static_cast< sal_Bool > ( bChanged ) );
65 }
66 
67 //----------------------------------------------------------------------------
68 
GetCurDocViewWin()69 Window* DlgEdModel::GetCurDocViewWin()
70 {
71 	return 0;
72 }
73 
74 //----------------------------------------------------------------------------
75 
76