diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-11-23 21:12:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-23 21:12:03 +0000 |
commit | 6eb5f64fd829338614d12212ad9c03ec616f3436 (patch) | |
tree | 295570a56ed26cc7ab109b03e10e854276a47fcc /sw/source/filter/xml | |
parent | c107de4372b711ca716f335bc9301243ac86c5c5 (diff) |
remove dead comments
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r-- | sw/source/filter/xml/swxml.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/xml/wrtxml.cxx | 31 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlbrsh.cxx | 1 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlexp.cxx | 7 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlfmt.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 23 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlimpit.cxx | 3 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlmeta.cxx | 14 | ||||
-rw-r--r-- | sw/source/filter/xml/xmltble.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/xml/xmltbli.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/xml/xmltexte.cxx | 11 |
11 files changed, 2 insertions, 110 deletions
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx index e552d3a0bc21..20cf0fcee793 100644 --- a/sw/source/filter/xml/swxml.cxx +++ b/sw/source/filter/xml/swxml.cxx @@ -445,10 +445,8 @@ void lcl_AdjustOutlineStylesForOOo( SwDoc& _rDoc ) for ( USHORT n = 1; n < rColls.Count(); ++n ) { SwTxtFmtColl* pColl = rColls[ n ]; - //if ( pColl->GetOutlineLevel() != NO_NUMBERING ) //#outline level zhaojianwei if ( pColl->IsAssignedToListLevelOfOutlineStyle() ) { - // aOutlineLevelAssigned[ pColl->GetOutlineLevel() ] = true; aOutlineLevelAssigned[ pColl->GetAssignedOutlineStyleLevel() ] = true;//<-end,zhaojianwei } @@ -471,14 +469,12 @@ void lcl_AdjustOutlineStylesForOOo( SwDoc& _rDoc ) // --> OD 2007-01-11 #i73361# // Do not change assignment of already created default outline style // to a certain outline level. -// if ( aCreatedDefaultOutlineStyles[ i ] != 0 && !aOutlineLevelAssigned[ i ] ) if ( !aOutlineLevelAssigned[ i ] && aCreatedDefaultOutlineStyles[ i ] != 0 && ! aCreatedDefaultOutlineStyles[ i ]->IsAssignedToListLevelOfOutlineStyle() ) // <-- { // apply outline level at created default outline style - //aCreatedDefaultOutlineStyles[ i ]->SetOutlineLevel( i ); aCreatedDefaultOutlineStyles[ i ]->AssignToListLevelOfOutlineStyle(i);//#outline level added by zhaojianwei // apply outline numbering rule, if none is set. diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index 5b91a2ef0966..72e748d6d5ba 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -204,35 +204,6 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg, pStatusBarItem->GetValue() >>= xStatusIndicator; } -// try -// { -// uno::Reference<frame::XModel> xModel( pDoc->GetDocShell()->GetModel()); -// if (xModel.is()) -// { -// uno::Sequence< beans::PropertyValue > xMediaDescr -// uno::Reference<frame::XController> xController( -// xModel->getCurrentController()); -// if( xController.is()) -// { -// uno::Reference<frame::XFrame> xFrame( xController->getFrame()); -// if( xFrame.is()) -// { -// uno::Reference<task::XStatusIndicatorFactory> xFactory( -// xFrame, uno::UNO_QUERY ); -// if( xFactory.is()) -// { -// xStatusIndicator = -// xFactory->createStatusIndicator(); -// } -// } -// } -// } -// } -// catch( const RuntimeException& ) -// { -// xStatusIndicator = 0; -// } - // set progress range and start status indicator sal_Int32 nProgressRange(1000000); if (xStatusIndicator.is()) @@ -472,8 +443,6 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg, if( pDoc->GetRootFrm() && pDoc->GetDocStat().nPage > 1 && !(bOrganizerMode || bBlock || bErr) ) { -// DBG_ASSERT( !pDoc->GetDocStat().bModified, -// "doc stat is modified!" ); OUString sStreamName( RTL_CONSTASCII_USTRINGPARAM("layout-cache") ); try { diff --git a/sw/source/filter/xml/xmlbrsh.cxx b/sw/source/filter/xml/xmlbrsh.cxx index 807159040be4..5ff47b7cf8b6 100644 --- a/sw/source/filter/xml/xmlbrsh.cxx +++ b/sw/source/filter/xml/xmlbrsh.cxx @@ -228,7 +228,6 @@ void SwXMLBrushItemExport::exportXML( const SvxBrushItem& rItem ) { GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, sValue ); GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE ); - // AddAttribute( XML_NAMESPACE_XLINK, XML_SHOW, ACP2WS(sXML_embed) ); GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD ); } diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx index e34873682072..916d1d33269a 100644 --- a/sw/source/filter/xml/xmlexp.cxx +++ b/sw/source/filter/xml/xmlexp.cxx @@ -321,7 +321,6 @@ sal_uInt32 SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) nRef += pDoc->GetCharFmts()->Count() - 1; nRef += pDoc->GetFrmFmts()->Count() - 1; nRef += pDoc->GetTxtFmtColls()->Count() - 1; -// nRef += pDoc->GetPageDescCnt(); nRef *= 2; // for the above styles, xmloff will increment by 2! // #i93174#: count all paragraphs for the progress bar nRef += aDocStat.nAllPara; // 1: only content, no autostyle @@ -813,9 +812,6 @@ Reference< XInterface > SAL_CALL SwXMLExportStyles_createInstance( throw( Exception ) { // #110680# - //return (cppu::OWeakObject*)new SwXMLExport( - // EXPORT_STYLES | EXPORT_MASTERSTYLES | EXPORT_AUTOSTYLES | - // EXPORT_FONTDECLS ); return (cppu::OWeakObject*)new SwXMLExport( rSMgr, EXPORT_STYLES | EXPORT_MASTERSTYLES | EXPORT_AUTOSTYLES | EXPORT_FONTDECLS|EXPORT_OASIS ); @@ -840,9 +836,6 @@ Reference< XInterface > SAL_CALL SwXMLExportContent_createInstance( throw( Exception ) { // #110680# - //return (cppu::OWeakObject*)new SwXMLExport( - // EXPORT_AUTOSTYLES | EXPORT_CONTENT | EXPORT_SCRIPTS | - // EXPORT_FONTDECLS ); return (cppu::OWeakObject*)new SwXMLExport( rSMgr, EXPORT_AUTOSTYLES | EXPORT_CONTENT | EXPORT_SCRIPTS | diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx index 994800316d50..667658cc04a9 100644 --- a/sw/source/filter/xml/xmlfmt.cxx +++ b/sw/source/filter/xml/xmlfmt.cxx @@ -949,12 +949,6 @@ OUString SwXMLStylesContext_Impl::GetServiceName( sal_uInt16 nFamily ) const void SwXMLStylesContext_Impl::EndElement() { GetSwImport().InsertStyles( IsAutomaticStyle() ); - // --> OD 2006-10-11 #i69629# - // assign paragraph styles to list levels of outline style after all styles - // are imported and finished. -// if( !bAutoStyles ) -// GetImport().GetTextImport()->SetOutlineStyles( sal_True ); - // <-- } // --------------------------------------------------------------------- diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 7410b00b09cd..5ec47c7b64e4 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -240,10 +240,7 @@ SvXMLImportContext *SwXMLDocContext_Impl::CreateChildContext( pContext = GetSwImport().CreateStylesContext( rLocalName, xAttrList, sal_True ); break; -// case XML_TOK_DOC_USESTYLES: -// pContext = GetSwImport().CreateUseStylesContext( rLocalName, -// xAttrList ); -// break; + case XML_TOK_DOC_MASTERSTYLES: pContext = GetSwImport().CreateMasterStylesContext( rLocalName, xAttrList ); @@ -407,10 +404,7 @@ SvXMLImportContext *SwXMLImport::CreateContext( // --> OD 2006-10-11 #i69629# // own subclasses for <office:document> and <office:document-styles> if( XML_NAMESPACE_OFFICE==nPrefix && -// ( IsXMLToken( rLocalName, XML_DOCUMENT ) || -// ( IsXMLToken( rLocalName, XML_DOCUMENT_META ) || ( IsXMLToken( rLocalName, XML_DOCUMENT_SETTINGS ) || -// IsXMLToken( rLocalName, XML_DOCUMENT_STYLES ) || IsXMLToken( rLocalName, XML_DOCUMENT_CONTENT ) )) pContext = new SwXMLDocContext_Impl( *this, nPrefix, rLocalName, xAttrList ); @@ -921,10 +915,6 @@ void SwXMLImport::endDocument( void ) if( pNextNd->CanJoinPrev(/* &pPos->nNode*/ ) && *pSttNdIdx != pPos->nNode ) { -// SwTxtNode* pPrevNd = pPos->nNode.GetNode().GetTxtNode(); -// pPos->nContent.Assign( pPrevNd, 0 ); -// pPaM->SetMark(); pPaM->DeleteMark(); -// pPrevNd->JoinNext(); pNextNd->JoinPrev(); } } @@ -1147,8 +1137,6 @@ void SwXMLImport::SetViewSettings(const Sequence < PropertyValue > & aViewProps) bChangeShowRedline = sal_True; } // #105372#: Headers and footers are not displayed in BrowseView anymore -// else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ShowHeaderWhileBrowsing" ) ) ) -// else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ShowFooterWhileBrowsing" ) ) ) else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "InBrowseMode" ) ) ) { bBrowseMode = *(sal_Bool *)(pValue->Value.getValue()); @@ -1580,7 +1568,6 @@ uno::Reference< uno::XInterface > SAL_CALL SwXMLImport_createInstance( throw( uno::Exception ) { // #110680# - // return (cppu::OWeakObject*)new SwXMLImport(IMPORT_ALL); return (cppu::OWeakObject*)new SwXMLImport( rSMgr, IMPORT_ALL ); } @@ -1603,9 +1590,6 @@ uno::Reference< uno::XInterface > SAL_CALL SwXMLImportStyles_createInstance( throw( uno::Exception ) { // #110680# - //return (cppu::OWeakObject*)new SwXMLImport( - // IMPORT_STYLES | IMPORT_MASTERSTYLES | IMPORT_AUTOSTYLES | - // IMPORT_FONTDECLS ); return (cppu::OWeakObject*)new SwXMLImport( rSMgr, IMPORT_STYLES | IMPORT_MASTERSTYLES | IMPORT_AUTOSTYLES | @@ -1631,9 +1615,6 @@ uno::Reference< uno::XInterface > SAL_CALL SwXMLImportContent_createInstance( throw( uno::Exception ) { // #110680# - //return (cppu::OWeakObject*)new SwXMLImport( - // IMPORT_AUTOSTYLES | IMPORT_CONTENT | IMPORT_SCRIPTS | - // IMPORT_FONTDECLS ); return (cppu::OWeakObject*)new SwXMLImport( rSMgr, IMPORT_AUTOSTYLES | IMPORT_CONTENT | IMPORT_SCRIPTS | @@ -1659,7 +1640,6 @@ uno::Reference< uno::XInterface > SAL_CALL SwXMLImportMeta_createInstance( throw( uno::Exception ) { // #110680# - // return (cppu::OWeakObject*)new SwXMLImport( IMPORT_META ); return (cppu::OWeakObject*)new SwXMLImport( rSMgr, IMPORT_META ); } @@ -1682,7 +1662,6 @@ uno::Reference< uno::XInterface > SAL_CALL SwXMLImportSettings_createInstance( throw( uno::Exception ) { // #110680# - // return (cppu::OWeakObject*)new SwXMLImport( IMPORT_SETTINGS ); return (cppu::OWeakObject*)new SwXMLImport( rSMgr, IMPORT_SETTINGS ); } diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index f3eac88edfdf..904288221f15 100644 --- a/sw/source/filter/xml/xmlimpit.cxx +++ b/sw/source/filter/xml/xmlimpit.cxx @@ -124,9 +124,6 @@ void SvXMLImportItemMapper::importXML( SfxItemSet& rSet, if( 0 == (pEntry->nMemberId&MID_SW_FLAG_SPECIAL_ITEM_IMPORT) ) { -// bPut = pNewItem->importXML( rValue, -// pEntry->nMemberId & MID_SW_FLAG_MASK, -// rUnitConverter ); bPut = PutXMLValue( *pNewItem, rValue, static_cast<sal_uInt16>( pEntry->nMemberId & MID_SW_FLAG_MASK ), rUnitConverter ); diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx index 62b5e3bff91e..fc1d425deca5 100644 --- a/sw/source/filter/xml/xmlmeta.cxx +++ b/sw/source/filter/xml/xmlmeta.cxx @@ -97,20 +97,6 @@ enum SvXMLTokenMapAttrs XML_TOK_META_STAT_END=XML_TOK_UNKNOWN }; -/* -static __FAR_DATA SvXMLTokenMapEntry aMetaStatAttrTokenMap[] = -{ - { XML_NAMESPACE_META, XML_TABLE_COUNT, XML_TOK_META_STAT_TABLE }, - { XML_NAMESPACE_META, XML_IMAGE_COUNT, XML_TOK_META_STAT_IMAGE }, - { XML_NAMESPACE_META, XML_OBJECT_COUNT, XML_TOK_META_STAT_OLE }, - { XML_NAMESPACE_META, XML_PARAGRAPH_COUNT, XML_TOK_META_STAT_PARA }, - { XML_NAMESPACE_META, XML_PAGE_COUNT, XML_TOK_META_STAT_PAGE }, - { XML_NAMESPACE_META, XML_WORD_COUNT, XML_TOK_META_STAT_WORD }, - { XML_NAMESPACE_META, XML_CHARACTER_COUNT, XML_TOK_META_STAT_CHAR }, - XML_TOKEN_MAP_END -}; -*/ - struct statistic { SvXMLTokenMapAttrs token; const char* name; diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx index fb166382080b..a5d3a04fe47f 100644 --- a/sw/source/filter/xml/xmltble.cxx +++ b/sw/source/filter/xml/xmltble.cxx @@ -180,11 +180,7 @@ SwXMLTableLines_Impl::SwXMLTableLines_Impl( const SwTableLines& rLines ) : } else { - /* - ASSERT( SwXMLTableColumn_impl(nCheckPos) == - SwXMLTableColumn_Impl(nEndCPos), - "rows have different total widths" ); - */ + } #endif nCPos = (sal_uInt16)nWidth; diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx index d98635056fe8..7fda5d34e709 100644 --- a/sw/source/filter/xml/xmltbli.cxx +++ b/sw/source/filter/xml/xmltbli.cxx @@ -352,7 +352,6 @@ inline SwXMLTableCell_Impl *SwXMLTableRow_Impl::GetCell( sal_uInt32 nCol ) const ASSERT( nCol < USHRT_MAX, "SwXMLTableRow_Impl::GetCell: column number is to big" ); // --> OD 2009-03-19 #i95726# - some fault tolerance -// return aCells[(sal_uInt16)nCol]; ASSERT( nCol < aCells.Count(), "SwXMLTableRow_Impl::GetCell: column number is out of bound" ); return nCol < aCells.Count() ? aCells[(sal_uInt16)nCol] : 0; @@ -1155,11 +1154,6 @@ String lcl_GenerateFldTypeName(OUString sPrefix, SwTableNode* pTableNode) { sPrefixStr = String('_'); } -// else if (sPrefixStr.Copy(0, 1).IsAlphaAscii()) -// { -// sPrefixStr.Insert('_', 0); -// } - // else: name is OK. // increase count until we find a name that is not yet taken String sName; diff --git a/sw/source/filter/xml/xmltexte.cxx b/sw/source/filter/xml/xmltexte.cxx index 5a9a2c832fca..f3bfc76588f5 100644 --- a/sw/source/filter/xml/xmltexte.cxx +++ b/sw/source/filter/xml/xmltexte.cxx @@ -236,13 +236,6 @@ void SwXMLTextParagraphExport::setTextEmbeddedGraphicURL( pGrfNd->SwapOut(); } } -/* -static void lcl_addParam ( SvXMLExport &rExport, const SvCommand &rCommand ) -{ - rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, rCommand.GetCommand() ); - rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, rCommand.GetArgument() ); - SvXMLElementExport aElem( rExport, XML_NAMESPACE_DRAW, XML_PARAM, sal_False, sal_True ); -}*/ static void lcl_addURL ( SvXMLExport &rExport, const String &rURL, sal_Bool bToRel = sal_True ) @@ -292,22 +285,18 @@ void lcl_addOutplaceProperties( if( aSize.Width() && aSize.Height() ) { Any aAny; - //aAny <<= (sal_Int32)rVisArea.Left(); aAny <<= 0L; *pStates = new XMLPropertyState( rMapper->FindEntryIndex( CTF_OLE_VIS_AREA_LEFT ), aAny ); pStates++; - //aAny <<= (sal_Int32)rVisArea.Top(); aAny <<= 0L; *pStates = new XMLPropertyState( rMapper->FindEntryIndex( CTF_OLE_VIS_AREA_TOP ), aAny ); pStates++; - //aAny <<= (sal_Int32)rVisArea.GetWidth(); aAny <<= (sal_Int32)aSize.Width(); *pStates = new XMLPropertyState( rMapper->FindEntryIndex( CTF_OLE_VIS_AREA_WIDTH ), aAny ); pStates++; - //aAny <<= (sal_Int32)rVisArea.GetHeight(); aAny <<= (sal_Int32)aSize.Height(); *pStates = new XMLPropertyState( rMapper->FindEntryIndex( CTF_OLE_VIS_AREA_HEIGHT ), aAny ); pStates++; |