remove dead code in SW
Change-Id: Ifda459ea8863d923b211ca3022355b5941a74bfe
This commit is contained in:
@@ -207,8 +207,6 @@ public:
|
|||||||
|
|
||||||
void InvalidateCursorPosition( const SwFrm *pFrm );
|
void InvalidateCursorPosition( const SwFrm *pFrm );
|
||||||
void InvalidateFocus();
|
void InvalidateFocus();
|
||||||
void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
|
|
||||||
void FireColumnChangeEvent(sal_uInt16 nOldColumn, sal_uInt16 nNewColumn);
|
|
||||||
void SetCursorContext(
|
void SetCursorContext(
|
||||||
const ::rtl::Reference < SwAccessibleContext >& rCursorContext );
|
const ::rtl::Reference < SwAccessibleContext >& rCursorContext );
|
||||||
|
|
||||||
|
@@ -205,11 +205,9 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
~SwExtraRedlineTbl();
|
~SwExtraRedlineTbl();
|
||||||
sal_uInt16 GetPos(const SwExtraRedline* p) const;
|
|
||||||
|
|
||||||
bool Insert( SwExtraRedline* p );
|
bool Insert( SwExtraRedline* p );
|
||||||
|
|
||||||
void Remove( sal_uInt16 nPos );
|
|
||||||
void DeleteAndDestroy( sal_uInt16 nPos, sal_uInt16 nLen = 1 );
|
void DeleteAndDestroy( sal_uInt16 nPos, sal_uInt16 nLen = 1 );
|
||||||
void DeleteAndDestroyAll();
|
void DeleteAndDestroyAll();
|
||||||
|
|
||||||
|
@@ -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()
|
void SwAccessibleMap::InvalidateFocus()
|
||||||
{
|
{
|
||||||
if(GetShell()->IsPreview())
|
if(GetShell()->IsPreview())
|
||||||
|
@@ -4096,14 +4096,6 @@ bool SwDoc::IsInRedlines(const SwNode & rNode) const
|
|||||||
return aPam.ContainsPosition(aPos);
|
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 )
|
bool SwExtraRedlineTbl::Insert( SwExtraRedline* p )
|
||||||
{
|
{
|
||||||
m_aExtraRedlines.push_back( p );
|
m_aExtraRedlines.push_back( p );
|
||||||
@@ -4111,24 +4103,6 @@ bool SwExtraRedlineTbl::Insert( SwExtraRedline* p )
|
|||||||
return true;
|
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 )
|
void SwExtraRedlineTbl::DeleteAndDestroy( sal_uInt16 nPos, sal_uInt16 nLen )
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@@ -72,10 +72,6 @@ SvtLanguageTable::AddLanguageTag(LanguageTag const&, rtl::OUString const&)
|
|||||||
SvtListener::IsListening(SvtBroadcaster&) const
|
SvtListener::IsListening(SvtBroadcaster&) const
|
||||||
SvxDummyShapeContainer::SvxDummyShapeContainer(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes>)
|
SvxDummyShapeContainer::SvxDummyShapeContainer(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes>)
|
||||||
SvxNumberFormatShell::IsAdded_Impl(unsigned long)
|
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&)
|
TextDoc::IsValidPaM(TextPaM const&)
|
||||||
Texture::greateEmptyTexture(int, int, unsigned int)
|
Texture::greateEmptyTexture(int, int, unsigned int)
|
||||||
UnoApiTest::closeDocument(com::sun::star::uno::Reference<com::sun::star::lang::XComponent>)
|
UnoApiTest::closeDocument(com::sun::star::uno::Reference<com::sun::star::lang::XComponent>)
|
||||||
|
Reference in New Issue
Block a user