summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/html/htmlpars.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/html/htmlpars.cxx')
-rw-r--r--sc/source/filter/html/htmlpars.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 40fb56e298e2..00ce6f1b7253 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <boost/shared_ptr.hpp>
#include <comphelper/string.hxx>
@@ -186,10 +185,8 @@ void ScHTMLStyles::insertProp(
pProps->insert(PropsType::value_type(aProp, aValue));
}
-
// BASE class for HTML parser classes
-
ScHTMLParser::ScHTMLParser( EditEngine* pEditEngine, ScDocument* pDoc ) :
ScEEParser( pEditEngine ),
mpDoc( pDoc )
@@ -203,8 +200,6 @@ ScHTMLParser::~ScHTMLParser()
{
}
-
-
ScHTMLLayoutParser::ScHTMLLayoutParser(
EditEngine* pEditP, const OUString& rBaseURL, const Size& aPageSizeP,
ScDocument* pDocP ) :
@@ -234,7 +229,6 @@ ScHTMLLayoutParser::ScHTMLLayoutParser(
MakeColNoRef( pColOffset, 0, 0, 0, 0 );
}
-
ScHTMLLayoutParser::~ScHTMLLayoutParser()
{
while ( !aTableStack.empty() )
@@ -267,7 +261,6 @@ ScHTMLLayoutParser::~ScHTMLLayoutParser()
}
}
-
sal_uLong ScHTMLLayoutParser::Read( SvStream& rStream, const OUString& rBaseURL )
{
Link aOldLink = pEdit->GetImportHdl();
@@ -315,13 +308,11 @@ sal_uLong ScHTMLLayoutParser::Read( SvStream& rStream, const OUString& rBaseURL
return nErr;
}
-
const ScHTMLTable* ScHTMLLayoutParser::GetGlobalTable() const
{
return 0;
}
-
void ScHTMLLayoutParser::NewActEntry( ScEEParseEntry* pE )
{
ScEEParser::NewActEntry( pE );
@@ -337,7 +328,6 @@ void ScHTMLLayoutParser::NewActEntry( ScEEParseEntry* pE )
pActEntry->aSel.nEndPos = pActEntry->aSel.nStartPos;
}
-
void ScHTMLLayoutParser::EntryEnd( ScEEParseEntry* pE, const ESelection& rSel )
{
if ( rSel.nEndPara >= pE->aSel.nStartPara )
@@ -354,7 +344,6 @@ void ScHTMLLayoutParser::EntryEnd( ScEEParseEntry* pE, const ESelection& rSel )
}
}
-
void ScHTMLLayoutParser::NextRow( ImportInfo* pInfo )
{
if ( bInCell )
@@ -366,7 +355,6 @@ void ScHTMLLayoutParser::NextRow( ImportInfo* pInfo )
bFirstRow = false;
}
-
bool ScHTMLLayoutParser::SeekOffset( ScHTMLColOffset* pOffset, sal_uInt16 nOffset,
SCCOL* pCol, sal_uInt16 nOffsetTol )
{
@@ -392,7 +380,6 @@ bool ScHTMLLayoutParser::SeekOffset( ScHTMLColOffset* pOffset, sal_uInt16 nOffse
return false;
}
-
void ScHTMLLayoutParser::MakeCol( ScHTMLColOffset* pOffset, sal_uInt16& nOffset,
sal_uInt16& nWidth, sal_uInt16 nOffsetTol, sal_uInt16 nWidthTol )
{
@@ -411,7 +398,6 @@ void ScHTMLLayoutParser::MakeCol( ScHTMLColOffset* pOffset, sal_uInt16& nOffset,
}
}
-
void ScHTMLLayoutParser::MakeColNoRef( ScHTMLColOffset* pOffset, sal_uInt16 nOffset,
sal_uInt16 nWidth, sal_uInt16 nOffsetTol, sal_uInt16 nWidthTol )
{
@@ -428,7 +414,6 @@ void ScHTMLLayoutParser::MakeColNoRef( ScHTMLColOffset* pOffset, sal_uInt16 nOff
}
}
-
void ScHTMLLayoutParser::ModifyOffset( ScHTMLColOffset* pOffset, sal_uInt16& nOldOffset,
sal_uInt16& nNewOffset, sal_uInt16 nOffsetTol )
{
@@ -466,7 +451,6 @@ void ScHTMLLayoutParser::ModifyOffset( ScHTMLColOffset* pOffset, sal_uInt16& nOl
}
}
-
void ScHTMLLayoutParser::SkipLocked( ScEEParseEntry* pE, bool bJoin )
{
if ( ValidCol(pE->nCol) )
@@ -502,7 +486,6 @@ void ScHTMLLayoutParser::SkipLocked( ScEEParseEntry* pE, bool bJoin )
}
}
-
void ScHTMLLayoutParser::Adjust()
{
xLockedList->RemoveAll();
@@ -654,7 +637,6 @@ void ScHTMLLayoutParser::Adjust()
}
}
-
sal_uInt16 ScHTMLLayoutParser::GetWidth( ScEEParseEntry* pE )
{
if ( pE->nWidth )
@@ -669,7 +651,6 @@ sal_uInt16 ScHTMLLayoutParser::GetWidth( ScEEParseEntry* pE )
return 0;
}
-
void ScHTMLLayoutParser::SetWidths()
{
ScEEParseEntry* pE;
@@ -820,7 +801,6 @@ void ScHTMLLayoutParser::SetWidths()
}
}
-
void ScHTMLLayoutParser::Colonize( ScEEParseEntry* pE )
{
if ( pE->nCol == SCCOL_MAX )
@@ -849,7 +829,6 @@ void ScHTMLLayoutParser::Colonize( ScEEParseEntry* pE )
nTableWidth = nColOffset - nColOffsetStart;
}
-
void ScHTMLLayoutParser::CloseEntry( ImportInfo* pInfo )
{
bInCell = false;
@@ -901,7 +880,6 @@ void ScHTMLLayoutParser::CloseEntry( ImportInfo* pInfo )
NewActEntry( pActEntry ); // New free flying pActEntry
}
-
IMPL_LINK( ScHTMLLayoutParser, HTMLImportHdl, ImportInfo*, pInfo )
{
switch ( pInfo->eState )
@@ -948,7 +926,6 @@ IMPL_LINK( ScHTMLLayoutParser, HTMLImportHdl, ImportInfo*, pInfo )
return 0;
}
-
// Greatest common divisor (Euclid)
// Special case: 0 and something gives 1
static SCROW lcl_GGT( SCROW a, SCROW b )
@@ -965,7 +942,6 @@ static SCROW lcl_GGT( SCROW a, SCROW b )
return ((a != 0) ? a : b);
}
-
// Lowest common multiple: a * b / GCD(a,b)
static SCROW lcl_KGV( SCROW a, SCROW b )
{
@@ -975,7 +951,6 @@ static SCROW lcl_KGV( SCROW a, SCROW b )
return (b / lcl_GGT(a,b)) * a;
}
-
void ScHTMLLayoutParser::TableDataOn( ImportInfo* pInfo )
{
if ( bInCell )
@@ -1069,7 +1044,6 @@ void ScHTMLLayoutParser::TableDataOn( ImportInfo* pInfo )
SvxHorJustifyItem( SVX_HOR_JUSTIFY_CENTER, ATTR_HOR_JUSTIFY) );
}
-
void ScHTMLLayoutParser::TableRowOn( ImportInfo* pInfo )
{
if ( nColCnt > nColCntStart )
@@ -1077,20 +1051,17 @@ void ScHTMLLayoutParser::TableRowOn( ImportInfo* pInfo )
nColOffset = nColOffsetStart;
}
-
void ScHTMLLayoutParser::TableRowOff( ImportInfo* pInfo )
{
NextRow( pInfo );
}
-
void ScHTMLLayoutParser::TableDataOff( ImportInfo* pInfo )
{
if ( bInCell )
CloseEntry( pInfo ); // Only if it really was one
}
-
void ScHTMLLayoutParser::TableOn( ImportInfo* pInfo )
{
OUString aTabName;
@@ -1202,7 +1173,6 @@ void ScHTMLLayoutParser::TableOn( ImportInfo* pInfo )
MakeColNoRef( pLocalColOffset, nColOffsetStart, 0, 0, 0 );
}
-
void ScHTMLLayoutParser::TableOff( ImportInfo* pInfo )
{
if ( bInCell )
@@ -1362,7 +1332,6 @@ void ScHTMLLayoutParser::TableOff( ImportInfo* pInfo )
}
}
-
void ScHTMLLayoutParser::Image( ImportInfo* pInfo )
{
ScHTMLImage* pImage = new ScHTMLImage;
@@ -1457,7 +1426,6 @@ void ScHTMLLayoutParser::Image( ImportInfo* pInfo )
}
}
-
void ScHTMLLayoutParser::ColOn( ImportInfo* pInfo )
{
const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
@@ -1477,7 +1445,6 @@ void ScHTMLLayoutParser::ColOn( ImportInfo* pInfo )
}
}
-
sal_uInt16 ScHTMLLayoutParser::GetWidthPixel( const HTMLOption& rOption )
{
const OUString& rOptVal = rOption.GetString();
@@ -1498,7 +1465,6 @@ sal_uInt16 ScHTMLLayoutParser::GetWidthPixel( const HTMLOption& rOption )
}
}
-
void ScHTMLLayoutParser::AnchorOn( ImportInfo* pInfo )
{
const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
@@ -1516,7 +1482,6 @@ void ScHTMLLayoutParser::AnchorOn( ImportInfo* pInfo )
}
}
-
bool ScHTMLLayoutParser::IsAtBeginningOfText( ImportInfo* pInfo )
{
ESelection& rSel = pActEntry->aSel;
@@ -1525,7 +1490,6 @@ bool ScHTMLLayoutParser::IsAtBeginningOfText( ImportInfo* pInfo )
pEdit->GetTextLen( rSel.nStartPara ) == 0;
}
-
void ScHTMLLayoutParser::FontOn( ImportInfo* pInfo )
{
if ( IsAtBeginningOfText( pInfo ) )
@@ -1580,7 +1544,6 @@ void ScHTMLLayoutParser::FontOn( ImportInfo* pInfo )
}
}
-
void ScHTMLLayoutParser::ProcToken( ImportInfo* pInfo )
{
bool bSetLastToken = true;
@@ -1751,10 +1714,8 @@ void ScHTMLLayoutParser::ProcToken( ImportInfo* pInfo )
nLastToken = pInfo->nToken;
}
-
// HTML DATA QUERY PARSER
-
template< typename Type >
inline Type getLimitedValue( const Type& rValue, const Type& rMin, const Type& rMax )
{ return ::std::max( ::std::min( rValue, rMax ), rMin ); }