diff options
Diffstat (limited to 'sw/source/filter/html/swhtml.cxx')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index ab79860ac6ce..8948542bd503 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -19,7 +19,6 @@ #include <config_features.h> - #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> #include <com/sun/star/document/XDocumentProperties.hpp> #include <com/sun/star/i18n/ScriptType.hpp> @@ -63,7 +62,6 @@ #include <editeng/protitem.hxx> #include <editeng/flstitem.hxx> - #include <frmatr.hxx> #include <charatr.hxx> #include <fmtfld.hxx> @@ -223,12 +221,9 @@ sal_uLong HTMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPam, ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ); } - return nRet; } - - SwHTMLParser::SwHTMLParser( SwDoc* pD, SwPaM& rCrsr, SvStream& rIn, const OUString& rPath, const OUString& rBaseURL, @@ -889,7 +884,6 @@ if( pSttNdIdx->GetIndex()+1 == pPam->GetBound( false ).nNode.GetIndex() ) } } - // Wenn die Dokuemnt-SwViewShell noch existiert und eine Action // offen ist (muss bei Abbruch nicht sein), die Action beenden, // uns von der Shell abmelden und schliesslich die alte Shell @@ -1758,7 +1752,6 @@ void SwHTMLParser::NextToken( int nToken ) } break; - case HTML_STRIKE_ON: case HTML_STRIKETHROUGH_ON: { @@ -1799,7 +1792,6 @@ void SwHTMLParser::NextToken( int nToken ) NewStdAttr( HTML_SPAN_ON ); break; - case HTML_ITALIC_OFF: case HTML_BOLD_OFF: case HTML_STRIKE_OFF: @@ -2040,7 +2032,6 @@ void SwHTMLParser::NextToken( int nToken ) aParaAttrs.clear(); } - extern bool swhtml_css1atr_equalFontItems( const SfxPoolItem& r1, const SfxPoolItem& r2 ); static void lcl_swhtml_getItemInfo( const _HTMLAttr& rAttr, @@ -2380,7 +2371,6 @@ sal_Bool SwHTMLParser::AppendTxtNode( SwHTMLAppendMode eMode, sal_Bool bUpdateNu } } - if( !pTable && !--nParaCnt ) Show(); @@ -2468,7 +2458,6 @@ void SwHTMLParser::AddParSpace() } } - void SwHTMLParser::Show() { // Hier wird @@ -2648,7 +2637,6 @@ SwViewShell *SwHTMLParser::CheckActionViewShell() return pActionViewShell; } - void SwHTMLParser::_SetAttr( sal_Bool bChkEnd, sal_Bool bBeforeTable, _HTMLAttrs *pPostIts ) { @@ -2710,7 +2698,6 @@ void SwHTMLParser::_SetAttr( sal_Bool bChkEnd, sal_Bool bBeforeTable, aParaAttrs.pop_back(); } - // dann also setzen aSetAttrTab.erase( aSetAttrTab.begin() + n ); @@ -2725,7 +2712,6 @@ void SwHTMLParser::_SetAttr( sal_Bool bChkEnd, sal_Bool bBeforeTable, continue; //break; } - pCNd = pAttr->nSttPara.GetNode().GetCntntNode(); if( !pCNd ) { @@ -2754,8 +2740,6 @@ void SwHTMLParser::_SetAttr( sal_Bool bChkEnd, sal_Bool bBeforeTable, } pAttrPam->GetPoint()->nNode = pAttr->nSttPara; - - // durch das Loeschen von BRs kann der Start-Index // auch mal hinter das Ende des Textes zeigen if( pAttr->nSttCntnt > pCNd->Len() ) @@ -3002,7 +2986,6 @@ void SwHTMLParser::NewAttr( _HTMLAttr **ppAttr, const SfxPoolItem& rItem ) (*ppAttr) = new _HTMLAttr( *pPam->GetPoint(), rItem, ppAttr ); } - void SwHTMLParser::EndAttr( _HTMLAttr* pAttr, _HTMLAttr **ppDepAttr, sal_Bool bChkEmpty ) { @@ -3046,7 +3029,6 @@ void SwHTMLParser::EndAttr( _HTMLAttr* pAttr, _HTMLAttr **ppDepAttr, // nun das Attrubut beenden _HTMLAttr *pNext = pAttr->GetNext(); - sal_Bool bInsert; sal_uInt16 nScriptItem = 0; sal_Bool bScript = sal_False, bFont = sal_False; @@ -3564,7 +3546,6 @@ void SwHTMLParser::EndTag( int nToken ) } } - void SwHTMLParser::NewBasefontAttr() { OUString aId, aStyle, aClass, aLang, aDir; @@ -3806,7 +3787,6 @@ void SwHTMLParser::NewFontAttr( int nToken ) } } - // einen neuen Kontext anlegen _HTMLAttrContext *pCntxt = new _HTMLAttrContext( static_cast< sal_uInt16 >(nToken) ); @@ -3837,7 +3817,6 @@ void SwHTMLParser::NewFontAttr( int nToken ) aItemSet.Put( aFontCTL ); } - if( ParseStyleOptions( aStyle, aId, aClass, aItemSet, aPropInfo, &aLang, &aDir ) ) DoPositioning( aItemSet, aPropInfo, pCntxt ); @@ -3882,7 +3861,6 @@ void SwHTMLParser::EndFontAttr( int nToken ) aFontStack.erase( aFontStack.begin() + aFontStack.size() - 1 ); } - void SwHTMLParser::NewPara() { if( pPam->GetPoint()->nContent.GetIndex() ) @@ -4006,7 +3984,6 @@ void SwHTMLParser::EndPara( sal_Bool bReal ) nOpenParaToken = 0; } - void SwHTMLParser::NewHeading( int nToken ) { eParaAdjust = SVX_ADJUST_END; @@ -4133,7 +4110,6 @@ void SwHTMLParser::EndHeading() nFontStHeadStart = nFontStMin; } - void SwHTMLParser::NewTxtFmtColl( int nToken, sal_uInt16 nColl ) { OUString aId, aStyle, aClass, aLang, aDir; @@ -4261,7 +4237,6 @@ void SwHTMLParser::EndTxtFmtColl( int nToken ) SetTxtCollAttrs(); } - void SwHTMLParser::NewDefList() { OUString aId, aStyle, aClass, aLang, aDir; @@ -4300,7 +4275,6 @@ void SwHTMLParser::NewDefList() // ein Level mehr nDefListDeep++; - sal_Bool bInDD = sal_False, bNotInDD = sal_False; sal_uInt16 nPos = aContexts.size(); while( !bInDD && !bNotInDD && nPos>nContextStMin ) @@ -4321,7 +4295,6 @@ void SwHTMLParser::NewDefList() } } - // ... und in einem Kontext merken _HTMLAttrContext *pCntxt = new _HTMLAttrContext( HTML_DEFLIST_ON ); @@ -4477,7 +4450,6 @@ void SwHTMLParser::EndDefListItem( int nToken, sal_Bool bSetColl, SetTxtCollAttrs(); } - sal_Bool SwHTMLParser::HasCurrentParaFlys( sal_Bool bNoSurroundOnly, sal_Bool bSurroundOnly ) const { @@ -4548,7 +4520,6 @@ sal_Bool SwHTMLParser::HasCurrentParaFlys( sal_Bool bNoSurroundOnly, return bFound; } - // die speziellen Methoden zum Einfuegen von Objecten const SwFmtColl *SwHTMLParser::GetCurrFmtColl() const @@ -4557,7 +4528,6 @@ const SwFmtColl *SwHTMLParser::GetCurrFmtColl() const return &pCNd->GetAnyFmtColl(); } - void SwHTMLParser::SetTxtCollAttrs( _HTMLAttrContext *pContext ) { SwTxtFmtColl *pCollToSet = 0; // die zu setzende Vorlage @@ -4781,7 +4751,6 @@ void SwHTMLParser::SetTxtCollAttrs( _HTMLAttrContext *pContext ) } } - void SwHTMLParser::NewCharFmt( int nToken ) { OUString aId, aStyle, aLang, aDir; @@ -4818,7 +4787,6 @@ void SwHTMLParser::NewCharFmt( int nToken ) SwCharFmt* pCFmt = pCSS1Parser->GetChrFmt( static_cast< sal_uInt16 >(nToken), aClass ); OSL_ENSURE( pCFmt, "keine Zeichenvorlage zu Token gefunden" ); - // Styles parsen (zu Class siehe auch NewPara) if( HasStyleOptions( aStyle, aId, aEmptyOUStr, &aLang, &aDir ) ) { @@ -4844,8 +4812,6 @@ void SwHTMLParser::NewCharFmt( int nToken ) PushContext( pCntxt ); } - - void SwHTMLParser::InsertSpacer() { // und es ggf. durch die Optionen veraendern @@ -5057,8 +5023,6 @@ SwTwips SwHTMLParser::GetCurrentBrowseWidth() return aHTMLPageSize.Width(); } - - void SwHTMLParser::InsertIDOption() { OUString aId; @@ -5077,9 +5041,6 @@ void SwHTMLParser::InsertIDOption() InsertBookmark( aId ); } - - - void SwHTMLParser::InsertLineBreak() { // <BR CLEAR=xxx> wird wie folgt behandelt: @@ -5471,7 +5432,6 @@ void SwHTMLParser::ParseMoreMetaOptions() InsertAttr( aFmtFld ); } - _HTMLAttr::_HTMLAttr( const SwPosition& rPos, const SfxPoolItem& rItem, _HTMLAttr **ppHd ) : nSttPara( rPos.nNode ), |