xref: /aoo41x/main/sd/source/ui/view/clview.cxx (revision 79aad27f)
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_sd.hxx"
26 #include <sfx2/app.hxx>
27 
28 
29 #include "ClientView.hxx"
30 #include "drawview.hxx"
31 #include "sdpage.hxx"
32 
33 class DrawDocShell;
34 
35 namespace sd {
36 
37 class DrawViewShell;
38 
39 
40 /*************************************************************************
41 |*
42 |* Ctor: Die ClientView wird fuer DrawDocShell::Draw() verwendet
43 |*
44 \************************************************************************/
45 
ClientView(DrawDocShell * pDocSh,OutputDevice * pOutDev,DrawViewShell * pShell)46 ClientView::ClientView(
47     DrawDocShell* pDocSh,
48     OutputDevice* pOutDev,
49     DrawViewShell* pShell)
50     : DrawView (pDocSh, pOutDev, pShell)
51 {
52 }
53 
54 
55 /*************************************************************************
56 |*
57 |* Dtor
58 |*
59 \************************************************************************/
60 
~ClientView()61 ClientView::~ClientView()
62 {
63 }
64 
65 /*************************************************************************
66 |*
67 |* Wenn die View kein Invalidate() an den Fenstern durchfuehren soll, muss
68 |* man diese Methode ueberladen und entsprechend anders reagieren.
69 |*
70 \************************************************************************/
71 
InvalidateOneWin(::Window & rWin)72 void ClientView::InvalidateOneWin(::Window& rWin)
73 {
74 	Region aRegion;
75 	CompleteRedraw(&rWin, aRegion);
76 }
77 
78 /*************************************************************************
79 |*
80 |* Wenn die View kein Invalidate() an den Fenstern durchfuehren soll, muss
81 |* man diese Methode ueberladen und entsprechend anders reagieren.
82 |*
83 \************************************************************************/
84 
InvalidateOneWin(::Window & rWin,const Rectangle & rRect)85 void ClientView::InvalidateOneWin(::Window& rWin, const Rectangle& rRect)
86 {
87 	CompleteRedraw(&rWin, rRect);
88 }
89 
90 
91 /*************************************************************************
92 |*
93 |*
94 |*
95 \************************************************************************/
96 
CompleteRedraw(OutputDevice * pOutDev,const Region & rReg,sdr::contact::ViewObjectContactRedirector * pRedirector)97 void ClientView::CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector )
98 {
99 	DrawView::CompleteRedraw(pOutDev, rReg, pRedirector);
100 }
101 
102 
103 } // end of namespace sd
104