summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-10 09:35:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-10 10:09:29 +0000
commit629cd5caadc6dced0d0f6b48368c5b6e55ea757e (patch)
tree1a50fcad22766893fa74c56907444cc5f4815d4a /sc
parent84479bc5ab3a185abb57c39d0a0a7a8c763b5875 (diff)
callcatcher: update list
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/attarray.hxx2
-rw-r--r--sc/source/core/data/attarray.cxx71
2 files changed, 0 insertions, 73 deletions
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx
index b58472e4fb2a..706a1c0c28ff 100644
--- a/sc/inc/attarray.hxx
+++ b/sc/inc/attarray.hxx
@@ -156,8 +156,6 @@ public:
bool Search( SCROW nRow, SCSIZE& nIndex ) const;
- bool HasLines( SCROW nRow1, SCROW nRow2, Rectangle& rSizes,
- bool bLeft, bool bRight ) const;
bool HasAttrib( SCROW nRow1, SCROW nRow2, sal_uInt16 nMask ) const;
bool ExtendMerge( SCCOL nThisCol, SCROW nStartRow, SCROW nEndRow,
SCCOL& rPaintCol, SCROW& rPaintRow,
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index 2aa660aec239..3b0c9231ebf1 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -1161,77 +1161,6 @@ long lcl_LineSize( const SvxBorderLine& rLine )
return nTotal;
}
-bool ScAttrArray::HasLines( SCROW nRow1, SCROW nRow2, Rectangle& rSizes,
- bool bLeft, bool bRight ) const
-{
- SCSIZE nStartIndex;
- SCSIZE nEndIndex;
- Search( nRow1, nStartIndex );
- Search( nRow2, nEndIndex );
- bool bFound = false;
-
- const SvxBoxItem* pItem = 0;
- const SvxBorderLine* pLine = 0;
- long nCmp;
-
- // top
-
- pItem = (const SvxBoxItem*) &pData[nStartIndex].pPattern->GetItem(ATTR_BORDER);
- pLine = pItem->GetTop();
- if (pLine)
- {
- nCmp = lcl_LineSize(*pLine);
- if ( nCmp > rSizes.Top() )
- rSizes.Top() = nCmp;
- bFound = true;
- }
-
- // down
-
- if ( nEndIndex != nStartIndex )
- pItem = (const SvxBoxItem*) &pData[nEndIndex].pPattern->GetItem(ATTR_BORDER);
- pLine = pItem->GetBottom();
- if (pLine)
- {
- nCmp = lcl_LineSize(*pLine);
- if ( nCmp > rSizes.Bottom() )
- rSizes.Bottom() = nCmp;
- bFound = true;
- }
-
- if ( bLeft || bRight )
- for ( SCSIZE i=nStartIndex; i<=nEndIndex; i++)
- {
- pItem = (const SvxBoxItem*) &pData[i].pPattern->GetItem(ATTR_BORDER);
-
- if (bLeft)
- {
- pLine = pItem->GetLeft();
- if (pLine)
- {
- nCmp = lcl_LineSize(*pLine);
- if ( nCmp > rSizes.Left() )
- rSizes.Left() = nCmp;
- bFound = true;
- }
- }
-
- if (bRight)
- {
- pLine = pItem->GetRight();
- if (pLine)
- {
- nCmp = lcl_LineSize(*pLine);
- if ( nCmp > rSizes.Right() )
- rSizes.Right() = nCmp;
- bFound = true;
- }
- }
- }
-
- return bFound;
-}
-
// Test if field contains specific attribute
bool ScAttrArray::HasAttrib( SCROW nRow1, SCROW nRow2, sal_uInt16 nMask ) const