summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-12 12:58:25 +0200
committerNoel Grandin <noel@peralex.com>2014-05-13 12:00:27 +0200
commit8acc97fb46dbb91fdf7e3ee64befed3a9a09a38f (patch)
tree79257fcdf30d027c3fb0b5ac1376d3ea97ea869d /sw
parent2f5e8b9767d42e5efb823bb28ef5778d8731f079 (diff)
remove dead code in SW
Change-Id: Ifda459ea8863d923b211ca3022355b5941a74bfe
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/accmap.hxx2
-rw-r--r--sw/inc/docary.hxx2
-rw-r--r--sw/source/core/access/accmap.cxx38
-rw-r--r--sw/source/core/doc/docredln.cxx26
4 files changed, 0 insertions, 68 deletions
diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx
index aacfcc0358df..6e349b439c41 100644
--- a/sw/inc/accmap.hxx
+++ b/sw/inc/accmap.hxx
@@ -207,8 +207,6 @@ public:
void InvalidateCursorPosition( const SwFrm *pFrm );
void InvalidateFocus();
- void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
- void FireColumnChangeEvent(sal_uInt16 nOldColumn, sal_uInt16 nNewColumn);
void SetCursorContext(
const ::rtl::Reference < SwAccessibleContext >& rCursorContext );
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index f3615a679c9d..f628fb21dae8 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -205,11 +205,9 @@ private:
public:
~SwExtraRedlineTbl();
- sal_uInt16 GetPos(const SwExtraRedline* p) const;
bool Insert( SwExtraRedline* p );
- void Remove( sal_uInt16 nPos );
void DeleteAndDestroy( sal_uInt16 nPos, sal_uInt16 nLen = 1 );
void DeleteAndDestroyAll();
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index dee4126302ff..60b1509f65f2 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -2751,44 +2751,6 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrm *pFrm )
}
}
-//Notify the page change event to bridge.
-void SwAccessibleMap::FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage)
-{
- uno::Reference<XAccessible> xAcc = GetDocumentView( );
- if ( xAcc.is() )
- {
- SwAccessibleDocumentBase *pAcc =
- static_cast< SwAccessibleDocumentBase * >( xAcc.get() );
- if (pAcc)
- {
- AccessibleEventObject aEvent;
- aEvent.EventId = AccessibleEventId::PAGE_CHANGED;
- aEvent.OldValue <<= nOldPage;
- aEvent.NewValue <<= nNewPage;
- pAcc->FireAccessibleEvent( aEvent );
- }
- }
-}
-
-void SwAccessibleMap::FireColumnChangeEvent(sal_uInt16 nOldColumn, sal_uInt16 nNewColumn)
-{
- uno::Reference<XAccessible> xAcc = GetDocumentView( );
- if ( xAcc.is() )
- {
- SwAccessibleDocumentBase *pAcc =
- static_cast< SwAccessibleDocumentBase * >( xAcc.get() );
- if (pAcc)
- {
- AccessibleEventObject aEvent;
- aEvent.EventId = AccessibleEventId::COLUMN_CHANGED;
- aEvent.OldValue <<= nOldColumn;
- aEvent.NewValue <<= nNewColumn;
- pAcc->FireAccessibleEvent( aEvent );
-
- }
- }
-}
-
void SwAccessibleMap::InvalidateFocus()
{
if(GetShell()->IsPreview())
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 680d8d1d2702..64887a11f1b5 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -4096,14 +4096,6 @@ bool SwDoc::IsInRedlines(const SwNode & rNode) const
return aPam.ContainsPosition(aPos);
}
-sal_uInt16 SwExtraRedlineTbl::GetPos(const SwExtraRedline* p) const
-{
- std::vector<SwExtraRedline*>::const_iterator it = std::find(m_aExtraRedlines.begin(), m_aExtraRedlines.end(), p);
- if( it == m_aExtraRedlines.end() )
- return USHRT_MAX;
- return it - m_aExtraRedlines.begin();
-}
-
bool SwExtraRedlineTbl::Insert( SwExtraRedline* p )
{
m_aExtraRedlines.push_back( p );
@@ -4111,24 +4103,6 @@ bool SwExtraRedlineTbl::Insert( SwExtraRedline* p )
return true;
}
-void SwExtraRedlineTbl::Remove( sal_uInt16 nPos )
-{
- /*
- SwDoc* pDoc = 0;
- if( !nP && 1 == size() )
- pDoc = front()->GetDoc();
- */
-
- m_aExtraRedlines.erase( m_aExtraRedlines.begin() + nPos );
-
- /*
- SwViewShell* pSh;
- if( pDoc && !pDoc->IsInDtor() &&
- 0 != ( pSh = pDoc->GetCurrentViewShell()) )
- pSh->InvalidateWindows( SwRect( 0, 0, LONG_MAX, LONG_MAX ) );
- */
-}
-
void SwExtraRedlineTbl::DeleteAndDestroy( sal_uInt16 nPos, sal_uInt16 nLen )
{
/*