1efeef26fSAndrew Rist /**************************************************************
2*111082d9Smseidel *
3efeef26fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4efeef26fSAndrew Rist * or more contributor license agreements. See the NOTICE file
5efeef26fSAndrew Rist * distributed with this work for additional information
6efeef26fSAndrew Rist * regarding copyright ownership. The ASF licenses this file
7efeef26fSAndrew Rist * to you under the Apache License, Version 2.0 (the
8efeef26fSAndrew Rist * "License"); you may not use this file except in compliance
9efeef26fSAndrew Rist * with the License. You may obtain a copy of the License at
10*111082d9Smseidel *
11efeef26fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*111082d9Smseidel *
13efeef26fSAndrew Rist * Unless required by applicable law or agreed to in writing,
14efeef26fSAndrew Rist * software distributed under the License is distributed on an
15efeef26fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16efeef26fSAndrew Rist * KIND, either express or implied. See the License for the
17efeef26fSAndrew Rist * specific language governing permissions and limitations
18efeef26fSAndrew Rist * under the License.
19*111082d9Smseidel *
20efeef26fSAndrew Rist *************************************************************/
21efeef26fSAndrew Rist
22*111082d9Smseidel
23*111082d9Smseidel
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sw.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include <svx/svdmodel.hxx>
28cdf0e10cSrcweir #include <svx/svdpage.hxx>
29cdf0e10cSrcweir #include <tools/shl.hxx>
30cdf0e10cSrcweir #include <swmodule.hxx>
31cdf0e10cSrcweir #include <svtools/accessibilityoptions.hxx>
32cdf0e10cSrcweir #include <svx/svdpagv.hxx>
33cdf0e10cSrcweir #include <fmtanchr.hxx>
34cdf0e10cSrcweir #include <frmfmt.hxx>
35cdf0e10cSrcweir #include <svx/svdoutl.hxx>
36cdf0e10cSrcweir #ifdef DBG_UTIL
37cdf0e10cSrcweir #include <svx/fmglob.hxx>
38cdf0e10cSrcweir #endif
39cdf0e10cSrcweir #include "fesh.hxx"
40cdf0e10cSrcweir #include "pagefrm.hxx"
41cdf0e10cSrcweir #include "rootfrm.hxx"
42cdf0e10cSrcweir #include "viewimp.hxx"
43cdf0e10cSrcweir #include "dflyobj.hxx"
44cdf0e10cSrcweir #include "viewopt.hxx"
45cdf0e10cSrcweir #include "printdata.hxx"
46cdf0e10cSrcweir #include "dcontact.hxx"
47cdf0e10cSrcweir #include "dview.hxx"
48cdf0e10cSrcweir #include "flyfrm.hxx"
49cdf0e10cSrcweir #include <vcl/svapp.hxx>
50cdf0e10cSrcweir #include <IDocumentDrawModelAccess.hxx>
5126ea3662SArmin Le Grand #include <drawdoc.hxx>
52cdf0e10cSrcweir
53cdf0e10cSrcweir /*************************************************************************
54cdf0e10cSrcweir |* SwSaveHdl
55cdf0e10cSrcweir |*
56cdf0e10cSrcweir |* Ersterstellung MA 14. Feb. 95
57cdf0e10cSrcweir |* Letzte Aenderung MA 02. Jun. 98
58*111082d9Smseidel **************************************************************************/
59cdf0e10cSrcweir //SwSaveHdl::SwSaveHdl( SwViewImp *pI ) :
60cdf0e10cSrcweir // pImp( pI ),
61cdf0e10cSrcweir // bXorVis( sal_False )
62cdf0e10cSrcweir //{
63cdf0e10cSrcweir //if ( pImp->HasDrawView() )
64cdf0e10cSrcweir //{
65cdf0e10cSrcweir // bXorVis = pImp->GetDrawView()->IsShownXorVisible( pImp->GetShell()->GetOut());
66cdf0e10cSrcweir // if ( bXorVis )
67cdf0e10cSrcweir // pImp->GetDrawView()->HideShownXor( pImp->GetShell()->GetOut() );
68cdf0e10cSrcweir //}
69cdf0e10cSrcweir //}
70cdf0e10cSrcweir
71cdf0e10cSrcweir
72cdf0e10cSrcweir //SwSaveHdl::~SwSaveHdl()
73cdf0e10cSrcweir //{
74cdf0e10cSrcweir //if ( bXorVis )
75cdf0e10cSrcweir // pImp->GetDrawView()->ShowShownXor( pImp->GetShell()->GetOut() );
76cdf0e10cSrcweir //}
77cdf0e10cSrcweir
78cdf0e10cSrcweir
79cdf0e10cSrcweir /*************************************************************************
80cdf0e10cSrcweir |* SwViewImp::StartAction(), EndAction()
81cdf0e10cSrcweir |*
82cdf0e10cSrcweir |* Ersterstellung MA 14. Feb. 95
83cdf0e10cSrcweir |* Letzte Aenderung MA 14. Sep. 98
84*111082d9Smseidel **************************************************************************/
85cdf0e10cSrcweir
86cdf0e10cSrcweir
StartAction()87cdf0e10cSrcweir void SwViewImp::StartAction()
88cdf0e10cSrcweir {
89cdf0e10cSrcweir if ( HasDrawView() )
90cdf0e10cSrcweir {
91cdf0e10cSrcweir SET_CURR_SHELL( GetShell() );
92cdf0e10cSrcweir if ( pSh->ISA(SwFEShell) )
93cdf0e10cSrcweir ((SwFEShell*)pSh)->HideChainMarker(); //Kann sich geaendert haben
94cdf0e10cSrcweir //bResetXorVisibility = GetDrawView()->IsShownXorVisible( GetShell()->GetOut());
95cdf0e10cSrcweir //GetDrawView()->HideShownXor( GetShell()->GetOut() );
96cdf0e10cSrcweir }
97cdf0e10cSrcweir }
98cdf0e10cSrcweir
99cdf0e10cSrcweir
100cdf0e10cSrcweir
EndAction()101cdf0e10cSrcweir void SwViewImp::EndAction()
102cdf0e10cSrcweir {
103cdf0e10cSrcweir if ( HasDrawView() )
104cdf0e10cSrcweir {
105cdf0e10cSrcweir SET_CURR_SHELL( GetShell() );
106cdf0e10cSrcweir //if ( bResetXorVisibility )
107cdf0e10cSrcweir // GetDrawView()->ShowShownXor( GetShell()->GetOut() );
108cdf0e10cSrcweir if ( pSh->ISA(SwFEShell) )
109cdf0e10cSrcweir ((SwFEShell*)pSh)->SetChainMarker(); //Kann sich geaendert haben
110cdf0e10cSrcweir }
111cdf0e10cSrcweir }
112cdf0e10cSrcweir
113cdf0e10cSrcweir /*************************************************************************
114cdf0e10cSrcweir |* SwViewImp::LockPaint(), UnlockPaint()
115cdf0e10cSrcweir |*
116cdf0e10cSrcweir |* Ersterstellung MA 11. Jun. 96
117cdf0e10cSrcweir |* Letzte Aenderung MA 11. Jun. 96
118*111082d9Smseidel **************************************************************************/
119cdf0e10cSrcweir
120cdf0e10cSrcweir
LockPaint()121cdf0e10cSrcweir void SwViewImp::LockPaint()
122cdf0e10cSrcweir {
123cdf0e10cSrcweir if ( HasDrawView() )
124cdf0e10cSrcweir {
125cdf0e10cSrcweir //HMHbShowHdlPaint = GetDrawView()->IsMarkHdlShown();
126cdf0e10cSrcweir //HMHif ( bShowHdlPaint )
127cdf0e10cSrcweir //HMH GetDrawView()->HideMarkHdl();
128cdf0e10cSrcweir bResetHdlHiddenPaint = !GetDrawView()->areMarkHandlesHidden();
129cdf0e10cSrcweir GetDrawView()->hideMarkHandles();
130cdf0e10cSrcweir }
131cdf0e10cSrcweir else
132cdf0e10cSrcweir {
133cdf0e10cSrcweir //HMHbShowHdlPaint = sal_False;
134cdf0e10cSrcweir bResetHdlHiddenPaint = sal_False;
135cdf0e10cSrcweir }
136cdf0e10cSrcweir }
137cdf0e10cSrcweir
138cdf0e10cSrcweir
139cdf0e10cSrcweir
UnlockPaint()140cdf0e10cSrcweir void SwViewImp::UnlockPaint()
141cdf0e10cSrcweir {
142cdf0e10cSrcweir if ( bResetHdlHiddenPaint )
143cdf0e10cSrcweir GetDrawView()->showMarkHandles();
144cdf0e10cSrcweir //HMHif ( bShowHdlPaint )
145cdf0e10cSrcweir //HMH GetDrawView()->ShowMarkHdl();
146cdf0e10cSrcweir }
147cdf0e10cSrcweir
148cdf0e10cSrcweir
149cdf0e10cSrcweir /*************************************************************************
150cdf0e10cSrcweir |* SwViewImp::PaintLayer(), PaintDispatcher()
151cdf0e10cSrcweir |*
152cdf0e10cSrcweir |* Ersterstellung MA 20. Dec. 94
153cdf0e10cSrcweir |* Letzte Aenderung AMA 04. Jun. 98
154*111082d9Smseidel **************************************************************************/
155cdf0e10cSrcweir // OD 29.08.2002 #102450#
15686e1cf34SPedro Giffuni // add 3rd parameter <const Color* pPageBackgrdColor> for setting this
157cdf0e10cSrcweir // color as the background color at the outliner of the draw view.
158cdf0e10cSrcweir // OD 09.12.2002 #103045# - add 4th parameter for the horizontal text direction
159cdf0e10cSrcweir // of the page in order to set the default horizontal text direction at the
160cdf0e10cSrcweir // outliner of the draw view for painting layers <hell> and <heaven>.
161cdf0e10cSrcweir // OD 25.06.2003 #108784# - correct type of 1st parameter
PaintLayer(const SdrLayerID _nLayerID,SwPrintData const * const pPrintData,const SwRect &,const Color * _pPageBackgrdColor,const bool _bIsPageRightToLeft,sdr::contact::ViewObjectContactRedirector * pRedirector) const162cdf0e10cSrcweir void SwViewImp::PaintLayer( const SdrLayerID _nLayerID,
163cdf0e10cSrcweir SwPrintData const*const pPrintData,
164cdf0e10cSrcweir const SwRect& ,
165cdf0e10cSrcweir const Color* _pPageBackgrdColor,
166cdf0e10cSrcweir const bool _bIsPageRightToLeft,
167cdf0e10cSrcweir sdr::contact::ViewObjectContactRedirector* pRedirector ) const
168cdf0e10cSrcweir {
169cdf0e10cSrcweir if ( HasDrawView() )
170cdf0e10cSrcweir {
171cdf0e10cSrcweir //change the draw mode in high contrast mode
172cdf0e10cSrcweir OutputDevice* pOutDev = GetShell()->GetOut();
173cdf0e10cSrcweir sal_uLong nOldDrawMode = pOutDev->GetDrawMode();
174cdf0e10cSrcweir if( GetShell()->GetWin() &&
175cdf0e10cSrcweir Application::GetSettings().GetStyleSettings().GetHighContrastMode() &&
176cdf0e10cSrcweir (!GetShell()->IsPreView()||SW_MOD()->GetAccessibilityOptions().GetIsForPagePreviews()))
177cdf0e10cSrcweir {
178cdf0e10cSrcweir pOutDev->SetDrawMode( nOldDrawMode | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL |
179cdf0e10cSrcweir DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT );
180cdf0e10cSrcweir }
181cdf0e10cSrcweir
182cdf0e10cSrcweir // OD 29.08.2002 #102450#
183cdf0e10cSrcweir // For correct handling of accessibility, high contrast, the page background
184cdf0e10cSrcweir // color is set as the background color at the outliner of the draw view.
185cdf0e10cSrcweir // Only necessary for the layers hell and heaven
186cdf0e10cSrcweir Color aOldOutlinerBackgrdColor;
187cdf0e10cSrcweir // OD 09.12.2002 #103045# - set default horizontal text direction on
188cdf0e10cSrcweir // painting <hell> or <heaven>.
189cdf0e10cSrcweir EEHorizontalTextDirection aOldEEHoriTextDir = EE_HTEXTDIR_L2R;
190cdf0e10cSrcweir const IDocumentDrawModelAccess* pIDDMA = GetShell()->getIDocumentDrawModelAccess();
191cdf0e10cSrcweir if ( (_nLayerID == pIDDMA->GetHellId()) ||
192cdf0e10cSrcweir (_nLayerID == pIDDMA->GetHeavenId()) )
193cdf0e10cSrcweir {
194cdf0e10cSrcweir ASSERT( _pPageBackgrdColor,
195cdf0e10cSrcweir "incorrect usage of SwViewImp::PaintLayer: pPageBackgrdColor have to be set for painting layer <hell> or <heaven>");
196cdf0e10cSrcweir if ( _pPageBackgrdColor )
197cdf0e10cSrcweir {
198cdf0e10cSrcweir aOldOutlinerBackgrdColor =
199cdf0e10cSrcweir GetDrawView()->GetModel()->GetDrawOutliner().GetBackgroundColor();
200cdf0e10cSrcweir GetDrawView()->GetModel()->GetDrawOutliner().SetBackgroundColor( *_pPageBackgrdColor );
201cdf0e10cSrcweir }
202cdf0e10cSrcweir
203cdf0e10cSrcweir aOldEEHoriTextDir =
204cdf0e10cSrcweir GetDrawView()->GetModel()->GetDrawOutliner().GetDefaultHorizontalTextDirection();
205cdf0e10cSrcweir EEHorizontalTextDirection aEEHoriTextDirOfPage =
206cdf0e10cSrcweir _bIsPageRightToLeft ? EE_HTEXTDIR_R2L : EE_HTEXTDIR_L2R;
207cdf0e10cSrcweir GetDrawView()->GetModel()->GetDrawOutliner().SetDefaultHorizontalTextDirection( aEEHoriTextDirOfPage );
208cdf0e10cSrcweir }
209cdf0e10cSrcweir
210cdf0e10cSrcweir pOutDev->Push( PUSH_LINECOLOR ); // #114231#
211cdf0e10cSrcweir if (pPrintData)
212cdf0e10cSrcweir {
213cdf0e10cSrcweir // hide drawings but not form controls (form controls are handled elsewhere)
214cdf0e10cSrcweir SdrView &rSdrView = const_cast< SdrView & >(GetPageView()->GetView());
215cdf0e10cSrcweir rSdrView.setHideDraw( !pPrintData->IsPrintDraw() );
216cdf0e10cSrcweir }
217cdf0e10cSrcweir GetPageView()->DrawLayer( _nLayerID, pOutDev, pRedirector );
218cdf0e10cSrcweir pOutDev->Pop();
219cdf0e10cSrcweir
220cdf0e10cSrcweir // OD 29.08.2002 #102450#
221cdf0e10cSrcweir // reset background color of the outliner
222cdf0e10cSrcweir // OD 09.12.2002 #103045# - reset default horizontal text direction
223cdf0e10cSrcweir if ( (_nLayerID == pIDDMA->GetHellId()) ||
224cdf0e10cSrcweir (_nLayerID == pIDDMA->GetHeavenId()) )
225cdf0e10cSrcweir {
226cdf0e10cSrcweir GetDrawView()->GetModel()->GetDrawOutliner().SetBackgroundColor( aOldOutlinerBackgrdColor );
227cdf0e10cSrcweir GetDrawView()->GetModel()->GetDrawOutliner().SetDefaultHorizontalTextDirection( aOldEEHoriTextDir );
228cdf0e10cSrcweir }
229cdf0e10cSrcweir
230cdf0e10cSrcweir pOutDev->SetDrawMode( nOldDrawMode );
231cdf0e10cSrcweir }
232cdf0e10cSrcweir }
233cdf0e10cSrcweir
234cdf0e10cSrcweir /*************************************************************************
235cdf0e10cSrcweir |* SwViewImp::IsDragPossible()
236cdf0e10cSrcweir |*
237cdf0e10cSrcweir |* Ersterstellung MA 19. Jan. 93
238cdf0e10cSrcweir |* Letzte Aenderung MA 16. Jan. 95
239*111082d9Smseidel **************************************************************************/
240cdf0e10cSrcweir #define WIEDUWILLST 400
241cdf0e10cSrcweir
IsDragPossible(const Point & rPoint)242cdf0e10cSrcweir sal_Bool SwViewImp::IsDragPossible( const Point &rPoint )
243cdf0e10cSrcweir {
244cdf0e10cSrcweir if ( !HasDrawView() )
245cdf0e10cSrcweir return sal_False;
246cdf0e10cSrcweir
247cdf0e10cSrcweir const SdrMarkList &rMrkList = GetDrawView()->GetMarkedObjectList();
248cdf0e10cSrcweir
249cdf0e10cSrcweir if( !rMrkList.GetMarkCount() )
250cdf0e10cSrcweir return sal_False;
251cdf0e10cSrcweir
252cdf0e10cSrcweir SdrObject *pO = rMrkList.GetMark(rMrkList.GetMarkCount()-1)->GetMarkedSdrObj();
253cdf0e10cSrcweir
254cdf0e10cSrcweir SwRect aRect;
255cdf0e10cSrcweir if( pO && ::CalcClipRect( pO, aRect, sal_False ) )
256cdf0e10cSrcweir {
257cdf0e10cSrcweir SwRect aTmp;
258cdf0e10cSrcweir ::CalcClipRect( pO, aTmp, sal_True );
259cdf0e10cSrcweir aRect.Union( aTmp );
260cdf0e10cSrcweir }
261cdf0e10cSrcweir else
262cdf0e10cSrcweir aRect = GetShell()->GetLayout()->Frm();
263cdf0e10cSrcweir
264cdf0e10cSrcweir aRect.Top( aRect.Top() - WIEDUWILLST );
265cdf0e10cSrcweir aRect.Bottom( aRect.Bottom() + WIEDUWILLST );
266cdf0e10cSrcweir aRect.Left( aRect.Left() - WIEDUWILLST );
267cdf0e10cSrcweir aRect.Right( aRect.Right() + WIEDUWILLST );
268cdf0e10cSrcweir return aRect.IsInside( rPoint );
269cdf0e10cSrcweir }
270cdf0e10cSrcweir
271cdf0e10cSrcweir /*************************************************************************
272cdf0e10cSrcweir |* SwViewImp::NotifySizeChg()
273cdf0e10cSrcweir |*
274cdf0e10cSrcweir |* Ersterstellung MA 23. Jun. 93
275cdf0e10cSrcweir |* Letzte Aenderung MA 05. Oct. 98
276*111082d9Smseidel **************************************************************************/
277cdf0e10cSrcweir
NotifySizeChg(const Size & rNewSz)278cdf0e10cSrcweir void SwViewImp::NotifySizeChg( const Size &rNewSz )
279cdf0e10cSrcweir {
280cdf0e10cSrcweir if ( !HasDrawView() )
281cdf0e10cSrcweir return;
282cdf0e10cSrcweir
283cdf0e10cSrcweir if ( GetPageView() )
284cdf0e10cSrcweir GetPageView()->GetPage()->SetSize( rNewSz );
285cdf0e10cSrcweir
286cdf0e10cSrcweir //Begrenzung des Arbeitsbereiches.
287*111082d9Smseidel const Rectangle aRect( Point( DOCUMENTBORDER, DOCUMENTBORDER ), rNewSz );
288cdf0e10cSrcweir const Rectangle &rOldWork = GetDrawView()->GetWorkArea();
289cdf0e10cSrcweir sal_Bool bCheckDrawObjs = sal_False;
290cdf0e10cSrcweir if ( aRect != rOldWork )
291cdf0e10cSrcweir {
292cdf0e10cSrcweir if ( rOldWork.Bottom() > aRect.Bottom() || rOldWork.Right() > aRect.Right())
293cdf0e10cSrcweir bCheckDrawObjs = sal_True;
294cdf0e10cSrcweir GetDrawView()->SetWorkArea( aRect );
295cdf0e10cSrcweir }
296cdf0e10cSrcweir if ( !bCheckDrawObjs )
297cdf0e10cSrcweir return;
298cdf0e10cSrcweir
299*111082d9Smseidel ASSERT( pSh->getIDocumentDrawModelAccess()->GetDrawModel(), "NotifySizeChg without DrawModel" );
300*111082d9Smseidel SdrPage* pPage = pSh->getIDocumentDrawModelAccess()->GetDrawModel()->GetPage( 0 );
301cdf0e10cSrcweir const sal_uLong nObjs = pPage->GetObjCount();
302cdf0e10cSrcweir for( sal_uLong nObj = 0; nObj < nObjs; ++nObj )
303cdf0e10cSrcweir {
304cdf0e10cSrcweir SdrObject *pObj = pPage->GetObj( nObj );
305cdf0e10cSrcweir if( !pObj->ISA(SwVirtFlyDrawObj) )
306cdf0e10cSrcweir {
307cdf0e10cSrcweir //Teilfix(26793): Objekte, die in Rahmen verankert sind, brauchen
308cdf0e10cSrcweir //nicht angepasst werden.
309cdf0e10cSrcweir const SwContact *pCont = (SwContact*)GetUserCall(pObj);
310cdf0e10cSrcweir //JP - 16.3.00 Bug 73920: this function might be called by the
311cdf0e10cSrcweir // InsertDocument, when a PageDesc-Attribute is
312cdf0e10cSrcweir // set on a node. Then the SdrObject must not have
313cdf0e10cSrcweir // an UserCall.
314cdf0e10cSrcweir if( !pCont || !pCont->ISA(SwDrawContact) )
315cdf0e10cSrcweir continue;
316cdf0e10cSrcweir
317cdf0e10cSrcweir const SwFrm *pAnchor = ((SwDrawContact*)pCont)->GetAnchorFrm();
318cdf0e10cSrcweir if ( !pAnchor || pAnchor->IsInFly() || !pAnchor->IsValid() ||
319cdf0e10cSrcweir !pAnchor->GetUpper() || !pAnchor->FindPageFrm() ||
320cdf0e10cSrcweir (FLY_AS_CHAR == pCont->GetFmt()->GetAnchor().GetAnchorId()) )
321cdf0e10cSrcweir {
322cdf0e10cSrcweir continue;
323cdf0e10cSrcweir }
324cdf0e10cSrcweir
325cdf0e10cSrcweir // OD 19.06.2003 #108784# - no move for drawing objects in header/footer
326cdf0e10cSrcweir if ( pAnchor->FindFooterOrHeader() )
327cdf0e10cSrcweir {
328cdf0e10cSrcweir continue;
329cdf0e10cSrcweir }
330cdf0e10cSrcweir
331cdf0e10cSrcweir const Rectangle aBound( pObj->GetCurrentBoundRect() );
332cdf0e10cSrcweir if ( !aRect.IsInside( aBound ) )
333cdf0e10cSrcweir {
334cdf0e10cSrcweir Size aSz;
335cdf0e10cSrcweir if ( aBound.Left() > aRect.Right() )
336cdf0e10cSrcweir aSz.Width() = (aRect.Right() - aBound.Left()) - MINFLY;
337cdf0e10cSrcweir if ( aBound.Top() > aRect.Bottom() )
338cdf0e10cSrcweir aSz.Height() = (aRect.Bottom() - aBound.Top()) - MINFLY;
339cdf0e10cSrcweir if ( aSz.Width() || aSz.Height() )
340cdf0e10cSrcweir pObj->Move( aSz );
341cdf0e10cSrcweir
342*111082d9Smseidel // Notanker: Grosse Objekte nicht nach oben verschwinden lassen.
343cdf0e10cSrcweir aSz.Width() = aSz.Height() = 0;
344cdf0e10cSrcweir if ( aBound.Bottom() < aRect.Top() )
345cdf0e10cSrcweir aSz.Width() = (aBound.Bottom() - aRect.Top()) - MINFLY;
346cdf0e10cSrcweir if ( aBound.Right() < aRect.Left() )
347cdf0e10cSrcweir aSz.Height() = (aBound.Right() - aRect.Left()) - MINFLY;
348cdf0e10cSrcweir if ( aSz.Width() || aSz.Height() )
349cdf0e10cSrcweir pObj->Move( aSz );
350cdf0e10cSrcweir }
351cdf0e10cSrcweir }
352cdf0e10cSrcweir }
353cdf0e10cSrcweir }
354