remove dead code in SW

Change-Id: Ifda459ea8863d923b211ca3022355b5941a74bfe
This commit is contained in:
Noel Grandin 2014-05-12 12:58:25 +02:00
parent 2f5e8b9767
commit 8acc97fb46
5 changed files with 0 additions and 72 deletions

View File

@ -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 );

View File

@ -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();

View File

@ -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())

View File

@ -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 )
{
/*

View File

@ -72,10 +72,6 @@ SvtLanguageTable::AddLanguageTag(LanguageTag const&, rtl::OUString const&)
SvtListener::IsListening(SvtBroadcaster&) const
SvxDummyShapeContainer::SvxDummyShapeContainer(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes>)
SvxNumberFormatShell::IsAdded_Impl(unsigned long)
SwAccessibleMap::FireColumnChangeEvent(unsigned short, unsigned short)
SwAccessibleMap::FirePageChangeEvent(unsigned short, unsigned short)
SwExtraRedlineTbl::GetPos(SwExtraRedline const*) const
SwExtraRedlineTbl::Remove(unsigned short)
TextDoc::IsValidPaM(TextPaM const&)
Texture::greateEmptyTexture(int, int, unsigned int)
UnoApiTest::closeDocument(com::sun::star::uno::Reference<com::sun::star::lang::XComponent>)