1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef _SC_ACCESSIBLETEXT_HXX 29*cdf0e10cSrcweir #define _SC_ACCESSIBLETEXT_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include "textuno.hxx" 32*cdf0e10cSrcweir #include "global.hxx" 33*cdf0e10cSrcweir #include "viewdata.hxx" 34*cdf0e10cSrcweir #include <editeng/svxenum.hxx> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include <memory> 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir class ScDocShell; 39*cdf0e10cSrcweir class ScViewForwarder; 40*cdf0e10cSrcweir class ScEditObjectViewForwarder; 41*cdf0e10cSrcweir class ScPreviewViewForwarder; 42*cdf0e10cSrcweir class ScEditViewForwarder; 43*cdf0e10cSrcweir class ScPreviewShell; 44*cdf0e10cSrcweir class EditTextObject; 45*cdf0e10cSrcweir class ScCsvViewForwarder; 46*cdf0e10cSrcweir class ScAccessibleCell; 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir // ============================================================================ 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir class ScAccessibleTextData : public SfxListener 52*cdf0e10cSrcweir { 53*cdf0e10cSrcweir public: 54*cdf0e10cSrcweir ScAccessibleTextData() {} 55*cdf0e10cSrcweir virtual ~ScAccessibleTextData() {} 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const = 0; 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& /* rBC */, const SfxHint& /* rHint */ ) {} 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder() = 0; 62*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder() = 0; 63*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ) = 0; 64*cdf0e10cSrcweir virtual SfxBroadcaster& GetBroadcaster() const { return maBroadcaster; } 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir virtual void UpdateData() = 0; 67*cdf0e10cSrcweir virtual void SetDoUpdate(sal_Bool bValue) = 0; 68*cdf0e10cSrcweir virtual sal_Bool IsDirty() const = 0; 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir private: 71*cdf0e10cSrcweir mutable SfxBroadcaster maBroadcaster; 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir // prevent the using of this method of the base class 74*cdf0e10cSrcweir ScSharedCellEditSource* GetOriginalSource() { return NULL; } 75*cdf0e10cSrcweir }; 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir // ============================================================================ 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir class ScAccessibleCellBaseTextData : public ScAccessibleTextData, 81*cdf0e10cSrcweir public ScCellTextData 82*cdf0e10cSrcweir { 83*cdf0e10cSrcweir public: 84*cdf0e10cSrcweir ScAccessibleCellBaseTextData(ScDocShell* pDocShellP, 85*cdf0e10cSrcweir const ScAddress& rP) 86*cdf0e10cSrcweir : ScCellTextData(pDocShellP, rP) {} 87*cdf0e10cSrcweir virtual ~ScAccessibleCellBaseTextData() {} 88*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { ScCellTextData::Notify(rBC, rHint); } 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir virtual void UpdateData() { ScCellTextData::UpdateData(); } 91*cdf0e10cSrcweir virtual void SetDoUpdate(sal_Bool bValue) { ScCellTextData::SetDoUpdate(bValue); } 92*cdf0e10cSrcweir virtual sal_Bool IsDirty() const { return ScCellTextData::IsDirty(); } 93*cdf0e10cSrcweir }; 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir // ============================================================================ 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir // ScAccessibleCellTextData: shared data between sub objects of a accessible cell text object 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir class ScAccessibleCellTextData : public ScAccessibleCellBaseTextData 101*cdf0e10cSrcweir { 102*cdf0e10cSrcweir public: 103*cdf0e10cSrcweir ScAccessibleCellTextData(ScTabViewShell* pViewShell, 104*cdf0e10cSrcweir const ScAddress& rP, ScSplitPos eSplitPos, ScAccessibleCell* pAccCell); 105*cdf0e10cSrcweir virtual ~ScAccessibleCellTextData(); 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 112*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 113*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ); 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir DECL_LINK( NotifyHdl, EENotify* ); 116*cdf0e10cSrcweir protected: 117*cdf0e10cSrcweir virtual void GetCellText(const ScAddress& rCellPos, String& rText); 118*cdf0e10cSrcweir private: 119*cdf0e10cSrcweir ScViewForwarder* mpViewForwarder; 120*cdf0e10cSrcweir ScEditViewForwarder* mpEditViewForwarder; 121*cdf0e10cSrcweir ScTabViewShell* mpViewShell; 122*cdf0e10cSrcweir ScSplitPos meSplitPos; 123*cdf0e10cSrcweir sal_Bool mbViewEditEngine; 124*cdf0e10cSrcweir ScAccessibleCell* mpAccessibleCell; 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir // prevent the using of this method of the base class 127*cdf0e10cSrcweir ScSharedCellEditSource* GetOriginalSource() { return NULL; } 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir using ScAccessibleCellBaseTextData::GetDocShell; 130*cdf0e10cSrcweir ScDocShell* GetDocShell(ScTabViewShell* pViewShell); 131*cdf0e10cSrcweir }; 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir // ============================================================================ 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir class ScAccessibleEditObjectTextData : public ScAccessibleTextData 137*cdf0e10cSrcweir { 138*cdf0e10cSrcweir public: 139*cdf0e10cSrcweir ScAccessibleEditObjectTextData(EditView* pEditView, Window* pWin); 140*cdf0e10cSrcweir virtual ~ScAccessibleEditObjectTextData(); 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 147*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 148*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ); 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir virtual void UpdateData() { } 151*cdf0e10cSrcweir virtual void SetDoUpdate(sal_Bool /* bValue */) { } 152*cdf0e10cSrcweir virtual sal_Bool IsDirty() const { return sal_False; } 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir DECL_LINK( NotifyHdl, EENotify* ); 155*cdf0e10cSrcweir protected: 156*cdf0e10cSrcweir ScEditObjectViewForwarder* mpViewForwarder; 157*cdf0e10cSrcweir ScEditViewForwarder* mpEditViewForwarder; 158*cdf0e10cSrcweir EditView* mpEditView; 159*cdf0e10cSrcweir EditEngine* mpEditEngine; 160*cdf0e10cSrcweir SvxEditEngineForwarder* mpForwarder; 161*cdf0e10cSrcweir Window* mpWindow; 162*cdf0e10cSrcweir }; 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir // ============================================================================ 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir class ScAccessibleEditLineTextData : public ScAccessibleEditObjectTextData 168*cdf0e10cSrcweir { 169*cdf0e10cSrcweir public: 170*cdf0e10cSrcweir ScAccessibleEditLineTextData(EditView* pEditView, Window* pWin); 171*cdf0e10cSrcweir virtual ~ScAccessibleEditLineTextData(); 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 174*cdf0e10cSrcweir 175*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 176*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ); 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir void Dispose(); 179*cdf0e10cSrcweir void TextChanged(); 180*cdf0e10cSrcweir void StartEdit(); 181*cdf0e10cSrcweir void EndEdit(); 182*cdf0e10cSrcweir private: 183*cdf0e10cSrcweir void ResetEditMode(); 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir sal_Bool mbEditEngineCreated; 186*cdf0e10cSrcweir }; 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir // ============================================================================ 190*cdf0e10cSrcweir 191*cdf0e10cSrcweir class ScAccessiblePreviewCellTextData : public ScAccessibleCellBaseTextData 192*cdf0e10cSrcweir { 193*cdf0e10cSrcweir public: 194*cdf0e10cSrcweir ScAccessiblePreviewCellTextData(ScPreviewShell* pViewShell, 195*cdf0e10cSrcweir const ScAddress& rP); 196*cdf0e10cSrcweir virtual ~ScAccessiblePreviewCellTextData(); 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 199*cdf0e10cSrcweir 200*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 201*cdf0e10cSrcweir 202*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 203*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 204*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir //UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* ); 207*cdf0e10cSrcweir private: 208*cdf0e10cSrcweir ScPreviewViewForwarder* mpViewForwarder; 209*cdf0e10cSrcweir ScPreviewShell* mpViewShell; 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir // prevent the using of this method of the base class 212*cdf0e10cSrcweir ScSharedCellEditSource* GetOriginalSource() { return NULL; } 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir using ScAccessibleCellBaseTextData::GetDocShell; 215*cdf0e10cSrcweir ScDocShell* GetDocShell(ScPreviewShell* pViewShell); 216*cdf0e10cSrcweir }; 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir // ============================================================================ 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir class ScAccessiblePreviewHeaderCellTextData : public ScAccessibleCellBaseTextData 222*cdf0e10cSrcweir { 223*cdf0e10cSrcweir public: 224*cdf0e10cSrcweir ScAccessiblePreviewHeaderCellTextData(ScPreviewShell* pViewShell, 225*cdf0e10cSrcweir const String& rText, const ScAddress& rP, sal_Bool bColHeader, sal_Bool bRowHeader); 226*cdf0e10cSrcweir virtual ~ScAccessiblePreviewHeaderCellTextData(); 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 233*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 234*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } 235*cdf0e10cSrcweir 236*cdf0e10cSrcweir //UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* ); 237*cdf0e10cSrcweir private: 238*cdf0e10cSrcweir ScPreviewViewForwarder* mpViewForwarder; 239*cdf0e10cSrcweir ScPreviewShell* mpViewShell; 240*cdf0e10cSrcweir String maText; 241*cdf0e10cSrcweir sal_Bool mbColHeader; 242*cdf0e10cSrcweir sal_Bool mbRowHeader; 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir // prevent the using of this method of the base class 245*cdf0e10cSrcweir ScSharedCellEditSource* GetOriginalSource() { return NULL; } 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir using ScAccessibleCellBaseTextData::GetDocShell; 248*cdf0e10cSrcweir ScDocShell* GetDocShell(ScPreviewShell* pViewShell); 249*cdf0e10cSrcweir }; 250*cdf0e10cSrcweir 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir // ============================================================================ 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir class ScAccessibleHeaderTextData : public ScAccessibleTextData 255*cdf0e10cSrcweir { 256*cdf0e10cSrcweir public: 257*cdf0e10cSrcweir ScAccessibleHeaderTextData(ScPreviewShell* pViewShell, 258*cdf0e10cSrcweir const EditTextObject* pEditObj, sal_Bool bHeader, SvxAdjust eAdjust); 259*cdf0e10cSrcweir virtual ~ScAccessibleHeaderTextData(); 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 266*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 267*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } 268*cdf0e10cSrcweir 269*cdf0e10cSrcweir virtual void UpdateData() { } 270*cdf0e10cSrcweir virtual void SetDoUpdate(sal_Bool /* bValue */) { } 271*cdf0e10cSrcweir virtual sal_Bool IsDirty() const { return sal_False; } 272*cdf0e10cSrcweir private: 273*cdf0e10cSrcweir ScPreviewViewForwarder* mpViewForwarder; 274*cdf0e10cSrcweir ScPreviewShell* mpViewShell; 275*cdf0e10cSrcweir ScEditEngineDefaulter* mpEditEngine; 276*cdf0e10cSrcweir SvxEditEngineForwarder* mpForwarder; 277*cdf0e10cSrcweir ScDocShell* mpDocSh; 278*cdf0e10cSrcweir const EditTextObject* mpEditObj; 279*cdf0e10cSrcweir sal_Bool mbHeader; 280*cdf0e10cSrcweir sal_Bool mbDataValid; 281*cdf0e10cSrcweir SvxAdjust meAdjust; 282*cdf0e10cSrcweir }; 283*cdf0e10cSrcweir 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir // ============================================================================ 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir class ScAccessibleNoteTextData : public ScAccessibleTextData 288*cdf0e10cSrcweir { 289*cdf0e10cSrcweir public: 290*cdf0e10cSrcweir ScAccessibleNoteTextData(ScPreviewShell* pViewShell, 291*cdf0e10cSrcweir const String& sText, const ScAddress& aCellPos, sal_Bool bMarkNote); 292*cdf0e10cSrcweir virtual ~ScAccessibleNoteTextData(); 293*cdf0e10cSrcweir 294*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 295*cdf0e10cSrcweir 296*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 297*cdf0e10cSrcweir 298*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 299*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 300*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } 301*cdf0e10cSrcweir 302*cdf0e10cSrcweir virtual void UpdateData() { } 303*cdf0e10cSrcweir virtual void SetDoUpdate(sal_Bool /* bValue */) { } 304*cdf0e10cSrcweir virtual sal_Bool IsDirty() const { return sal_False; } 305*cdf0e10cSrcweir private: 306*cdf0e10cSrcweir ScPreviewViewForwarder* mpViewForwarder; 307*cdf0e10cSrcweir ScPreviewShell* mpViewShell; 308*cdf0e10cSrcweir ScEditEngineDefaulter* mpEditEngine; 309*cdf0e10cSrcweir SvxEditEngineForwarder* mpForwarder; 310*cdf0e10cSrcweir ScDocShell* mpDocSh; 311*cdf0e10cSrcweir String msText; 312*cdf0e10cSrcweir ScAddress maCellPos; 313*cdf0e10cSrcweir sal_Bool mbMarkNote; 314*cdf0e10cSrcweir sal_Bool mbDataValid; 315*cdf0e10cSrcweir }; 316*cdf0e10cSrcweir 317*cdf0e10cSrcweir 318*cdf0e10cSrcweir // ============================================================================ 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir class ScAccessibleCsvTextData : public ScAccessibleTextData 321*cdf0e10cSrcweir { 322*cdf0e10cSrcweir private: 323*cdf0e10cSrcweir typedef ::std::auto_ptr< SvxTextForwarder > TextForwarderPtr; 324*cdf0e10cSrcweir typedef ::std::auto_ptr< ScCsvViewForwarder > ViewForwarderPtr; 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir Window* mpWindow; 327*cdf0e10cSrcweir EditEngine* mpEditEngine; 328*cdf0e10cSrcweir TextForwarderPtr mpTextForwarder; 329*cdf0e10cSrcweir ViewForwarderPtr mpViewForwarder; 330*cdf0e10cSrcweir String maCellText; 331*cdf0e10cSrcweir Rectangle maBoundBox; 332*cdf0e10cSrcweir Size maCellSize; 333*cdf0e10cSrcweir 334*cdf0e10cSrcweir public: 335*cdf0e10cSrcweir explicit ScAccessibleCsvTextData( 336*cdf0e10cSrcweir Window* pWindow, 337*cdf0e10cSrcweir EditEngine* pEditEngine, 338*cdf0e10cSrcweir const String& rCellText, 339*cdf0e10cSrcweir const Rectangle& rBoundBox, 340*cdf0e10cSrcweir const Size& rCellSize ); 341*cdf0e10cSrcweir virtual ~ScAccessibleCsvTextData(); 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir virtual ScAccessibleTextData* Clone() const; 344*cdf0e10cSrcweir 345*cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 346*cdf0e10cSrcweir 347*cdf0e10cSrcweir virtual SvxTextForwarder* GetTextForwarder(); 348*cdf0e10cSrcweir virtual SvxViewForwarder* GetViewForwarder(); 349*cdf0e10cSrcweir virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ); 350*cdf0e10cSrcweir 351*cdf0e10cSrcweir virtual void UpdateData() {} 352*cdf0e10cSrcweir virtual void SetDoUpdate( sal_Bool /* bValue */ ) {} 353*cdf0e10cSrcweir virtual sal_Bool IsDirty() const { return sal_False; } 354*cdf0e10cSrcweir }; 355*cdf0e10cSrcweir 356*cdf0e10cSrcweir 357*cdf0e10cSrcweir // ============================================================================ 358*cdf0e10cSrcweir 359*cdf0e10cSrcweir #endif 360