summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Andre Laverdiere <marc-andre@atc.tcs.com>2011-07-29 12:04:02 +0530
committerMarc-Andre Laverdiere <marc-andre@atc.tcs.com>2011-07-29 12:04:02 +0530
commit1e2c9be36ba9f94a27b3aa73c87ceb3d52e100dc (patch)
tree63b01df3e447070d4af04035f3d7a429b843922f
parent560b004d9812a76783c701724043f6cee70c0928 (diff)
Removed dead code
-rw-r--r--sw/source/filter/ww8/WW8Sttbf.cxx35
-rw-r--r--sw/source/filter/ww8/WW8TableInfo.cxx114
2 files changed, 0 insertions, 149 deletions
diff --git a/sw/source/filter/ww8/WW8Sttbf.cxx b/sw/source/filter/ww8/WW8Sttbf.cxx
index 5325ddaf21..3b38330ded 100644
--- a/sw/source/filter/ww8/WW8Sttbf.cxx
+++ b/sw/source/filter/ww8/WW8Sttbf.cxx
@@ -110,40 +110,5 @@ namespace ww8
return aResult;
}
-
- ::rtl::OUString WW8Struct::getString(sal_uInt32 nOffset,
- sal_uInt32 nCount)
- {
- ::rtl::OUString aResult;
-
- if (nCount > 0)
- {
- //clip to available
- sal_uInt32 nStartOff = mn_offset + nOffset;
- if (nStartOff >= mn_size)
- return aResult;
- sal_uInt32 nAvailable = (mn_size - nStartOff);
- if (nCount > nAvailable)
- nCount = nAvailable;
-
- rtl::OString aOStr(reinterpret_cast<const sal_Char *>(
- mp_data.get() + nStartOff), nCount);
-
- ::rtl::OUString aOUStr(rtl::OStringToOUString(aOStr, RTL_TEXTENCODING_ASCII_US));
- aResult = rtl::OUString(aOUStr);
- }
-
-#if OSL_DEBUG_LEVEL > 1
- char sBuffer[256];
- snprintf(sBuffer, sizeof(sBuffer), "offset=\"%" SAL_PRIuUINT32 "\" count=\"%" SAL_PRIuUINT32 "\"",
- nOffset, nCount);
- ::std::clog << "<WW8Struct-getString " << sBuffer << ">"
- << dbg_out(aResult) << "</WW8Struct-getUString>"
- << ::std::endl;
-#endif
-
- return aResult;
- }
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx
index 8455c796bc..4e449e6d17 100644
--- a/sw/source/filter/ww8/WW8TableInfo.cxx
+++ b/sw/source/filter/ww8/WW8TableInfo.cxx
@@ -523,21 +523,6 @@ const SwNode * WW8TableNodeInfo::getNextNode() const
return mpNextNode;
}
-const SwRect & WW8TableNodeInfo::getRect() const
-{
- return getInnerForDepth(mnDepth)->getRect();
-}
-
-bool WW8TableNodeInfo::isEndOfLine() const
-{
- return getInnerForDepth(mnDepth)->isEndOfLine();
-}
-
-bool WW8TableNodeInfo::isEndOfCell() const
-{
- return getInnerForDepth(mnDepth)->isEndOfCell();
-}
-
sal_uInt32 WW8TableNodeInfo::getCell() const
{
return getInnerForDepth(mnDepth)->getCell();
@@ -1029,25 +1014,6 @@ bool CellInfo::operator < (const CellInfo & aCellInfo) const
return aRet;
}
-::std::string CellInfo::toString() const
-{
- static char sBuffer[256];
-
- snprintf(sBuffer, sizeof(sBuffer),
- "<cellinfo left=\"%ld\""
- " right=\"%ld\""
- " top=\"%ld\""
- " bottom=\"%ld\""
- " node=\"%p\"/>",
- left(),
- right(),
- top(),
- bottom(),
- m_pNodeInfo);
-
- return sBuffer;
-}
-
WW8TableNodeInfo * WW8TableInfo::reorderByLayout(const SwTable * pTable)
{
WW8TableNodeInfo * pPrev = NULL;
@@ -1314,86 +1280,6 @@ WW8TableNodeInfo * WW8TableCellGrid::connectCells()
return pLastNodeInfo;
}
-string WW8TableCellGrid::toString()
-{
- string sResult = "<WW8TableCellGrid>";
-
- RowTops_t::const_iterator aTopsIt = getRowTopsBegin();
- static char sBuffer[1024];
- while (aTopsIt != getRowTopsEnd())
- {
- sprintf(sBuffer, "<row y=\"%ld\">", *aTopsIt);
- sResult += sBuffer;
-
- CellInfoMultiSet::const_iterator aCellIt = getCellsBegin(*aTopsIt);
- CellInfoMultiSet::const_iterator aCellsEnd = getCellsEnd(*aTopsIt);
-
- while (aCellIt != aCellsEnd)
- {
- snprintf(sBuffer, sizeof(sBuffer), "<cellInfo top=\"%ld\" bottom=\"%ld\" left=\"%ld\" right=\"%ld\">",
- aCellIt->top(), aCellIt->bottom(), aCellIt->left(), aCellIt->right());
- sResult += sBuffer;
-
- WW8TableNodeInfo * pInfo = aCellIt->getTableNodeInfo();
- if (pInfo != NULL)
- sResult += pInfo->toString();
- else
- sResult += "<shadow/>\n";
-
- sResult += "</cellInfo>\n";
- ++aCellIt;
- }
-
- WW8TableCellGridRow::Pointer_t pRow = getRow(*aTopsIt);
- WidthsPtr pWidths = pRow->getWidths();
- if (pWidths != NULL)
- {
- sResult += "<widths>";
-
- Widths::const_iterator aItEnd = pWidths->end();
- for (Widths::const_iterator aIt = pWidths->begin();
- aIt != aItEnd;
- ++aIt)
- {
- if (aIt != pWidths->begin())
- sResult += ", ";
-
- snprintf(sBuffer, sizeof(sBuffer), "%" SAL_PRIxUINT32 "", *aIt);
- sResult += sBuffer;
- }
-
- sResult += "</widths>";
- }
-
- RowSpansPtr pRowSpans = pRow->getRowSpans();
- if (pRowSpans.get() != NULL)
- {
- sResult += "<rowspans>";
-
- RowSpans::const_iterator aItEnd = pRowSpans->end();
- for (RowSpans::const_iterator aIt = pRowSpans->begin();
- aIt != aItEnd;
- ++aIt)
- {
- if (aIt != pRowSpans->begin())
- sResult += ", ";
-
- snprintf(sBuffer, sizeof(sBuffer), "%" SAL_PRIxUINT32 "", *aIt);
- sResult += sBuffer;
- }
-
- sResult += "</rowspans>";
- }
-
- sResult += "</row>\n";
- ++aTopsIt;
- }
-
- sResult += "</WW8TableCellGrid>\n";
-
- return sResult;
-}
-
TableBoxVectorPtr WW8TableCellGrid::getTableBoxesOfRow
(WW8TableNodeInfoInner * pNodeInfoInner)
{