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