1*96de5490SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*96de5490SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*96de5490SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*96de5490SAndrew Rist * distributed with this work for additional information 6*96de5490SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*96de5490SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*96de5490SAndrew Rist * "License"); you may not use this file except in compliance 9*96de5490SAndrew Rist * with the License. You may obtain a copy of the License at 10*96de5490SAndrew Rist * 11*96de5490SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*96de5490SAndrew Rist * 13*96de5490SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*96de5490SAndrew Rist * software distributed under the License is distributed on an 15*96de5490SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*96de5490SAndrew Rist * KIND, either express or implied. See the License for the 17*96de5490SAndrew Rist * specific language governing permissions and limitations 18*96de5490SAndrew Rist * under the License. 19*96de5490SAndrew Rist * 20*96de5490SAndrew Rist *************************************************************/ 21*96de5490SAndrew Rist 22*96de5490SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_dbaccess.hxx" 26cdf0e10cSrcweir #include "RtfReader.hxx" 27cdf0e10cSrcweir #include <tools/debug.hxx> 28cdf0e10cSrcweir #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp> 29cdf0e10cSrcweir #include <com/sun/star/sdbcx/XColumnsSupplier.hpp> 30cdf0e10cSrcweir #include <com/sun/star/sdbcx/XAppend.hpp> 31cdf0e10cSrcweir #include <com/sun/star/sdbc/DataType.hpp> 32cdf0e10cSrcweir #include <com/sun/star/sdbc/ColumnValue.hpp> 33cdf0e10cSrcweir #include <com/sun/star/awt/FontDescriptor.hpp> 34cdf0e10cSrcweir #include <com/sun/star/awt/FontWeight.hpp> 35cdf0e10cSrcweir #include <com/sun/star/awt/FontStrikeout.hpp> 36cdf0e10cSrcweir #include <com/sun/star/awt/FontSlant.hpp> 37cdf0e10cSrcweir #include <com/sun/star/awt/FontUnderline.hpp> 38cdf0e10cSrcweir #include <com/sun/star/util/NumberFormat.hpp> 39cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatTypes.hpp> 40cdf0e10cSrcweir #include "dbustrings.hrc" 41cdf0e10cSrcweir #include <svtools/rtftoken.h> 42cdf0e10cSrcweir #include "dbu_misc.hrc" 43cdf0e10cSrcweir #include <vcl/msgbox.hxx> 44cdf0e10cSrcweir #include <connectivity/dbconversion.hxx> 45cdf0e10cSrcweir #include <connectivity/dbtools.hxx> 46cdf0e10cSrcweir #include <comphelper/extract.hxx> 47cdf0e10cSrcweir #include <tools/color.hxx> 48cdf0e10cSrcweir #include "WExtendPages.hxx" 49cdf0e10cSrcweir #include "moduledbu.hxx" 50cdf0e10cSrcweir #include "QEnumTypes.hxx" 51cdf0e10cSrcweir #include "UITools.hxx" 52cdf0e10cSrcweir #include <vcl/svapp.hxx> 53cdf0e10cSrcweir #include <rtl/logfile.hxx> 54cdf0e10cSrcweir 55cdf0e10cSrcweir using namespace dbaui; 56cdf0e10cSrcweir using namespace ::com::sun::star::uno; 57cdf0e10cSrcweir using namespace ::com::sun::star::beans; 58cdf0e10cSrcweir using namespace ::com::sun::star::container; 59cdf0e10cSrcweir using namespace ::com::sun::star::sdbc; 60cdf0e10cSrcweir using namespace ::com::sun::star::sdbcx; 61cdf0e10cSrcweir using namespace ::com::sun::star::awt; 62cdf0e10cSrcweir 63cdf0e10cSrcweir DBG_NAME(ORTFReader) 64cdf0e10cSrcweir // ========================================================================== 65cdf0e10cSrcweir // ORTFReader 66cdf0e10cSrcweir // ========================================================================== 67cdf0e10cSrcweir ORTFReader::ORTFReader( SvStream& rIn, 68cdf0e10cSrcweir const SharedConnection& _rxConnection, 69cdf0e10cSrcweir const Reference< ::com::sun::star::util::XNumberFormatter >& _rxNumberF, 70cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rM, 71cdf0e10cSrcweir const TColumnVector* pList, 72cdf0e10cSrcweir const OTypeInfoMap* _pInfoMap) 73cdf0e10cSrcweir :SvRTFParser(rIn) 74cdf0e10cSrcweir ,ODatabaseExport( _rxConnection, _rxNumberF, _rM, pList, _pInfoMap, rIn ) 75cdf0e10cSrcweir { 76cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::ORTFReader" ); 77cdf0e10cSrcweir DBG_CTOR(ORTFReader,NULL); 78cdf0e10cSrcweir m_bAppendFirstLine = false; 79cdf0e10cSrcweir } 80cdf0e10cSrcweir // --------------------------------------------------------------------------- 81cdf0e10cSrcweir ORTFReader::ORTFReader(SvStream& rIn, 82cdf0e10cSrcweir sal_Int32 nRows, 83cdf0e10cSrcweir const TPositions &_rColumnPositions, 84cdf0e10cSrcweir const Reference< ::com::sun::star::util::XNumberFormatter >& _rxNumberF, 85cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rM, 86cdf0e10cSrcweir const TColumnVector* pList, 87cdf0e10cSrcweir const OTypeInfoMap* _pInfoMap, 88cdf0e10cSrcweir sal_Bool _bAutoIncrementEnabled) 89cdf0e10cSrcweir :SvRTFParser(rIn) 90cdf0e10cSrcweir ,ODatabaseExport( nRows, _rColumnPositions, _rxNumberF, _rM, pList, _pInfoMap, _bAutoIncrementEnabled, rIn ) 91cdf0e10cSrcweir { 92cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::ORTFReader" ); 93cdf0e10cSrcweir DBG_CTOR(ORTFReader,NULL); 94cdf0e10cSrcweir m_bAppendFirstLine = false; 95cdf0e10cSrcweir } 96cdf0e10cSrcweir // --------------------------------------------------------------------------- 97cdf0e10cSrcweir ORTFReader::~ORTFReader() 98cdf0e10cSrcweir { 99cdf0e10cSrcweir DBG_DTOR(ORTFReader,NULL); 100cdf0e10cSrcweir } 101cdf0e10cSrcweir // --------------------------------------------------------------------------- 102cdf0e10cSrcweir SvParserState ORTFReader::CallParser() 103cdf0e10cSrcweir { 104cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::CallParser" ); 105cdf0e10cSrcweir DBG_CHKTHIS(ORTFReader,NULL); 106cdf0e10cSrcweir rInput.Seek(STREAM_SEEK_TO_BEGIN); 107cdf0e10cSrcweir rInput.ResetError(); 108cdf0e10cSrcweir SvParserState eParseState = SvRTFParser::CallParser(); 109cdf0e10cSrcweir SetColumnTypes(m_pColumnList,m_pInfoMap); 110cdf0e10cSrcweir return m_bFoundTable ? eParseState : SVPAR_ERROR; 111cdf0e10cSrcweir } 112cdf0e10cSrcweir // --------------------------------------------------------------------------- 113cdf0e10cSrcweir void ORTFReader::NextToken( int nToken ) 114cdf0e10cSrcweir { 115cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::NextToken" ); 116cdf0e10cSrcweir DBG_CHKTHIS(ORTFReader,NULL); 117cdf0e10cSrcweir if(m_bError || !m_nRows) // falls Fehler oder keine Rows mehr zur "Uberpr"ufung dann gleich zur"uck 118cdf0e10cSrcweir return; 119cdf0e10cSrcweir 120cdf0e10cSrcweir if(m_xConnection.is()) // gibt an welcher CTOR gerufen wurde und damit, ob eine Tabelle erstellt werden soll 121cdf0e10cSrcweir { 122cdf0e10cSrcweir switch(nToken) 123cdf0e10cSrcweir { 124cdf0e10cSrcweir case RTF_COLORTBL: 125cdf0e10cSrcweir { 126cdf0e10cSrcweir 127cdf0e10cSrcweir int nTmpToken2 = GetNextToken(); 128cdf0e10cSrcweir sal_Bool bNext = sal_True; 129cdf0e10cSrcweir do 130cdf0e10cSrcweir { 131cdf0e10cSrcweir Color aColor; 132cdf0e10cSrcweir do 133cdf0e10cSrcweir { 134cdf0e10cSrcweir switch(nTmpToken2) 135cdf0e10cSrcweir { 136cdf0e10cSrcweir case RTF_RED: aColor.SetRed((sal_uInt8)nTokenValue); break; 137cdf0e10cSrcweir case RTF_BLUE: aColor.SetBlue((sal_uInt8)nTokenValue); break; 138cdf0e10cSrcweir case RTF_GREEN: aColor.SetGreen((sal_uInt8)nTokenValue); break; 139cdf0e10cSrcweir default: 140cdf0e10cSrcweir bNext = sal_False; 141cdf0e10cSrcweir } 142cdf0e10cSrcweir nTmpToken2 = GetNextToken(); 143cdf0e10cSrcweir } 144cdf0e10cSrcweir while(aToken.GetChar(0) != ';' && eState != SVPAR_ERROR && eState != SVPAR_ACCEPTED); 145cdf0e10cSrcweir m_vecColor.push_back(aColor.GetRGBColor()); 146cdf0e10cSrcweir nTmpToken2 = GetNextToken(); 147cdf0e10cSrcweir } 148cdf0e10cSrcweir while(nTmpToken2 == RTF_RED && eState != SVPAR_ERROR && eState != SVPAR_ACCEPTED); 149cdf0e10cSrcweir SkipToken(); 150cdf0e10cSrcweir } 151cdf0e10cSrcweir break; 152cdf0e10cSrcweir 153cdf0e10cSrcweir case RTF_DEFLANG: 154cdf0e10cSrcweir case RTF_LANG: // Sprache abfragen 155cdf0e10cSrcweir m_nDefToken = (rtl_TextEncoding)nTokenValue; 156cdf0e10cSrcweir break; 157cdf0e10cSrcweir case RTF_TROWD: 158cdf0e10cSrcweir { 159cdf0e10cSrcweir bool bInsertRow = true; 160cdf0e10cSrcweir if ( !m_xTable.is() ) // erste Zeile als Header verwenden 161cdf0e10cSrcweir { 162cdf0e10cSrcweir sal_uInt32 nTell = rInput.Tell(); // ver�ndert vielleicht die Position des Streams 163cdf0e10cSrcweir 164cdf0e10cSrcweir m_bError = !CreateTable(nToken); 165cdf0e10cSrcweir bInsertRow = m_bAppendFirstLine; 166cdf0e10cSrcweir if ( m_bAppendFirstLine ) 167cdf0e10cSrcweir { 168cdf0e10cSrcweir rInput.Seek(nTell); 169cdf0e10cSrcweir rInput.ResetError(); 170cdf0e10cSrcweir } 171cdf0e10cSrcweir } 172cdf0e10cSrcweir if ( bInsertRow && !m_bError) 173cdf0e10cSrcweir { 174cdf0e10cSrcweir try 175cdf0e10cSrcweir { 176cdf0e10cSrcweir m_pUpdateHelper->moveToInsertRow(); // sonst neue Zeile anh"angen 177cdf0e10cSrcweir } 178cdf0e10cSrcweir catch(SQLException& e) 179cdf0e10cSrcweir // UpdateFehlerbehandlung 180cdf0e10cSrcweir { 181cdf0e10cSrcweir showErrorDialog(e); 182cdf0e10cSrcweir } 183cdf0e10cSrcweir } 184cdf0e10cSrcweir } 185cdf0e10cSrcweir break; 186cdf0e10cSrcweir case RTF_INTBL: 187cdf0e10cSrcweir if(m_bInTbl) 188cdf0e10cSrcweir { 189cdf0e10cSrcweir eraseTokens(); 190cdf0e10cSrcweir } 191cdf0e10cSrcweir 192cdf0e10cSrcweir m_bInTbl = sal_True; // jetzt befinden wir uns in einer Tabellenbeschreibung 193cdf0e10cSrcweir break; 194cdf0e10cSrcweir case RTF_TEXTTOKEN: 195cdf0e10cSrcweir case RTF_SINGLECHAR: 196cdf0e10cSrcweir if(m_bInTbl) // wichtig, da wir sonst auch die Namen der Fonts bekommen 197cdf0e10cSrcweir m_sTextToken += aToken; 198cdf0e10cSrcweir break; 199cdf0e10cSrcweir case RTF_CELL: 200cdf0e10cSrcweir { 201cdf0e10cSrcweir try 202cdf0e10cSrcweir { 203cdf0e10cSrcweir insertValueIntoColumn(); 204cdf0e10cSrcweir } 205cdf0e10cSrcweir catch(SQLException& e) 206cdf0e10cSrcweir // UpdateFehlerbehandlung 207cdf0e10cSrcweir { 208cdf0e10cSrcweir showErrorDialog(e); 209cdf0e10cSrcweir } 210cdf0e10cSrcweir m_nColumnPos++; 211cdf0e10cSrcweir eraseTokens(); 212cdf0e10cSrcweir } 213cdf0e10cSrcweir break; 214cdf0e10cSrcweir case RTF_ROW: 215cdf0e10cSrcweir // es kann vorkommen, da� die letzte Celle nicht mit \cell abgeschlossen ist 216cdf0e10cSrcweir try 217cdf0e10cSrcweir { 218cdf0e10cSrcweir insertValueIntoColumn(); 219cdf0e10cSrcweir m_nRowCount++; 220cdf0e10cSrcweir if(m_bIsAutoIncrement) // if bSetAutoIncrement then I have to set the autoincrement 221cdf0e10cSrcweir m_pUpdateHelper->updateInt(1,m_nRowCount); 222cdf0e10cSrcweir m_pUpdateHelper->insertRow(); 223cdf0e10cSrcweir } 224cdf0e10cSrcweir catch(SQLException& e) 225cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////// 226cdf0e10cSrcweir // UpdateFehlerbehandlung 227cdf0e10cSrcweir { 228cdf0e10cSrcweir showErrorDialog(e); 229cdf0e10cSrcweir } 230cdf0e10cSrcweir m_nColumnPos = 0; 231cdf0e10cSrcweir break; 232cdf0e10cSrcweir } 233cdf0e10cSrcweir } 234cdf0e10cSrcweir else // Zweig nur f"ur Typpr"ufung g"ultig 235cdf0e10cSrcweir { 236cdf0e10cSrcweir switch(nToken) 237cdf0e10cSrcweir { 238cdf0e10cSrcweir case RTF_TROWD: 239cdf0e10cSrcweir // Der Spalten Kopf z"ahlt nicht mit 240cdf0e10cSrcweir if(m_bHead) 241cdf0e10cSrcweir { 242cdf0e10cSrcweir do 243cdf0e10cSrcweir {} 244cdf0e10cSrcweir while(GetNextToken() != RTF_ROW && eState != SVPAR_ERROR && eState != SVPAR_ACCEPTED); 245cdf0e10cSrcweir m_bHead = sal_False; 246cdf0e10cSrcweir } 247cdf0e10cSrcweir break; 248cdf0e10cSrcweir case RTF_INTBL: 249cdf0e10cSrcweir m_bInTbl = sal_True; 250cdf0e10cSrcweir break; 251cdf0e10cSrcweir case RTF_TEXTTOKEN: 252cdf0e10cSrcweir case RTF_SINGLECHAR: 253cdf0e10cSrcweir if(m_bInTbl) 254cdf0e10cSrcweir m_sTextToken += aToken; 255cdf0e10cSrcweir break; 256cdf0e10cSrcweir case RTF_CELL: 257cdf0e10cSrcweir adjustFormat(); 258cdf0e10cSrcweir m_nColumnPos++; 259cdf0e10cSrcweir break; 260cdf0e10cSrcweir case RTF_ROW: 261cdf0e10cSrcweir adjustFormat(); 262cdf0e10cSrcweir m_nColumnPos = 0; 263cdf0e10cSrcweir m_nRows--; 264cdf0e10cSrcweir break; 265cdf0e10cSrcweir } 266cdf0e10cSrcweir } 267cdf0e10cSrcweir } 268cdf0e10cSrcweir // --------------------------------------------------------------------------- 269cdf0e10cSrcweir sal_Bool ORTFReader::CreateTable(int nToken) 270cdf0e10cSrcweir { 271cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::CreateTable" ); 272cdf0e10cSrcweir DBG_CHKTHIS(ORTFReader,NULL); 273cdf0e10cSrcweir String aTableName(ModuleRes(STR_TBL_TITLE)); 274cdf0e10cSrcweir aTableName = aTableName.GetToken(0,' '); 275cdf0e10cSrcweir aTableName = String(::dbtools::createUniqueName(m_xTables,::rtl::OUString(aTableName))); 276cdf0e10cSrcweir 277cdf0e10cSrcweir int nTmpToken2 = nToken; 278cdf0e10cSrcweir String aColumnName; 279cdf0e10cSrcweir 280cdf0e10cSrcweir FontDescriptor aFont = ::dbaui::CreateFontDescriptor(Application::GetSettings().GetStyleSettings().GetAppFont()); 281cdf0e10cSrcweir do 282cdf0e10cSrcweir { 283cdf0e10cSrcweir switch(nTmpToken2) 284cdf0e10cSrcweir { 285cdf0e10cSrcweir case RTF_UNKNOWNCONTROL: 286cdf0e10cSrcweir case RTF_UNKNOWNDATA: 287cdf0e10cSrcweir m_bInTbl = sal_False; 288cdf0e10cSrcweir aColumnName.Erase(); 289cdf0e10cSrcweir break; 290cdf0e10cSrcweir case RTF_INTBL: 291cdf0e10cSrcweir if(m_bInTbl) 292cdf0e10cSrcweir aColumnName.Erase(); 293cdf0e10cSrcweir 294cdf0e10cSrcweir m_bInTbl = sal_True; 295cdf0e10cSrcweir break; 296cdf0e10cSrcweir case RTF_TEXTTOKEN: 297cdf0e10cSrcweir case RTF_SINGLECHAR: 298cdf0e10cSrcweir if(m_bInTbl) 299cdf0e10cSrcweir aColumnName += aToken; 300cdf0e10cSrcweir break; 301cdf0e10cSrcweir case RTF_CELL: 302cdf0e10cSrcweir { 303cdf0e10cSrcweir aColumnName.EraseLeadingChars(); 304cdf0e10cSrcweir aColumnName.EraseTrailingChars(); 305cdf0e10cSrcweir if (!aColumnName.Len() || m_bAppendFirstLine ) 306cdf0e10cSrcweir aColumnName = String(ModuleRes(STR_COLUMN_NAME)); 307cdf0e10cSrcweir 308cdf0e10cSrcweir CreateDefaultColumn(aColumnName); 309cdf0e10cSrcweir aColumnName.Erase(); 310cdf0e10cSrcweir } 311cdf0e10cSrcweir break; 312cdf0e10cSrcweir case RTF_CF: 313cdf0e10cSrcweir // if(nTokenValue < m_vecColor.size()) 314cdf0e10cSrcweir // m_xTable->setPropertyValue(PROPERTY_TEXTCOLOR,makeAny(m_vecColor[nTokenValue])); 315cdf0e10cSrcweir break; 316cdf0e10cSrcweir case RTF_B: 317cdf0e10cSrcweir aFont.Weight = ::com::sun::star::awt::FontWeight::BOLD; 318cdf0e10cSrcweir break; 319cdf0e10cSrcweir case RTF_I: 320cdf0e10cSrcweir aFont.Slant = ::com::sun::star::awt::FontSlant_ITALIC; 321cdf0e10cSrcweir break; 322cdf0e10cSrcweir case RTF_UL: 323cdf0e10cSrcweir aFont.Underline = ::com::sun::star::awt::FontUnderline::SINGLE; 324cdf0e10cSrcweir break; 325cdf0e10cSrcweir case RTF_STRIKE: 326cdf0e10cSrcweir aFont.Strikeout = ::com::sun::star::awt::FontStrikeout::SINGLE; 327cdf0e10cSrcweir break; 328cdf0e10cSrcweir } 329cdf0e10cSrcweir } 330cdf0e10cSrcweir while((nTmpToken2 = GetNextToken()) != RTF_TROWD && eState != SVPAR_ERROR && eState != SVPAR_ACCEPTED); 331cdf0e10cSrcweir 332cdf0e10cSrcweir sal_Bool bOk = !m_vDestVector.empty(); 333cdf0e10cSrcweir if(bOk) 334cdf0e10cSrcweir { 335cdf0e10cSrcweir if ( aColumnName.Len() ) 336cdf0e10cSrcweir { 337cdf0e10cSrcweir if ( m_bAppendFirstLine ) 338cdf0e10cSrcweir aColumnName = String(ModuleRes(STR_COLUMN_NAME)); 339cdf0e10cSrcweir CreateDefaultColumn(aColumnName); 340cdf0e10cSrcweir } 341cdf0e10cSrcweir 342cdf0e10cSrcweir m_bInTbl = sal_False; 343cdf0e10cSrcweir m_bFoundTable = sal_True; 344cdf0e10cSrcweir 345cdf0e10cSrcweir if ( isCheckEnabled() ) 346cdf0e10cSrcweir return sal_True; 347cdf0e10cSrcweir Any aTextColor; 348cdf0e10cSrcweir if(!m_vecColor.empty()) 349cdf0e10cSrcweir aTextColor <<= m_vecColor[0]; 350cdf0e10cSrcweir 351cdf0e10cSrcweir bOk = !executeWizard(aTableName,aTextColor,aFont) && m_xTable.is(); 352cdf0e10cSrcweir } 353cdf0e10cSrcweir return bOk; 354cdf0e10cSrcweir } 355cdf0e10cSrcweir // ----------------------------------------------------------------------------- 356cdf0e10cSrcweir void ORTFReader::release() 357cdf0e10cSrcweir { 358cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::release" ); 359cdf0e10cSrcweir DBG_CHKTHIS(ORTFReader,NULL); 360cdf0e10cSrcweir ReleaseRef(); 361cdf0e10cSrcweir } 362cdf0e10cSrcweir 363cdf0e10cSrcweir // ----------------------------------------------------------------------------- 364cdf0e10cSrcweir TypeSelectionPageFactory ORTFReader::getTypeSelectionPageFactory() 365cdf0e10cSrcweir { 366cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "ORTFReader::getTypeSelectionPageFactory" ); 367cdf0e10cSrcweir DBG_CHKTHIS(ORTFReader,NULL); 368cdf0e10cSrcweir return &OWizRTFExtend::Create; 369cdf0e10cSrcweir } 370cdf0e10cSrcweir // ----------------------------------------------------------------------------- 371cdf0e10cSrcweir 372cdf0e10cSrcweir 373cdf0e10cSrcweir 374