Kaydet (Commit) e094ac0f authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: remaining unused methods

Change-Id: Ie150d2e497053966c5f75cea50c87888fda98659
üst 9e207520
......@@ -103,7 +103,6 @@ private:
public:
SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW );
SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW, std::vector<sal_uInt16> aW );
sal_Int32 getStart() const
{
......
......@@ -49,11 +49,6 @@ SwUpdateAttr::SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW )
{
}
SwUpdateAttr::SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW, std::vector<sal_uInt16> aW )
: SwMsgPoolItem( RES_UPDATE_ATTR ), nStart( nS ), nEnd( nE ), nWhichAttr( nW ), aWhichFmtAttr( aW )
{
}
/** Is sent if reference marks should be updated.
To get the page/chapter number, the frame has to be asked. For that we need
......
......@@ -992,69 +992,6 @@ void SwLayHelper::_CheckFlyCache( SwPageFrm* pPage )
}
}
/**
* looks for the given text frame in the fly cache and sets
* the position and size, if possible.
* The fly cache is sorted by pages and we start searching with the given page.
* If we found the page number in the fly cache, we set
* the rpPage parameter to the right page, if possible.
*/
bool SwLayHelper::CheckPageFlyCache( SwPageFrm* &rpPage, SwFlyFrm* pFly )
{
if( !pFly->GetAnchorFrm() || !pFly->GetVirtDrawObj() ||
pFly->GetAnchorFrm()->FindFooterOrHeader() )
return false;
bool bRet = false;
SwDoc* pDoc = rpPage->GetFmt()->GetDoc();
SwLayCacheImpl *pCache = pDoc->GetLayoutCache() ?
pDoc->GetLayoutCache()->LockImpl() : NULL;
if( pCache )
{
sal_uInt16 nPgNum = rpPage->GetPhyPageNum();
sal_uInt16 nIdx = 0;
sal_uInt16 nCnt = pCache->GetFlyCount();
sal_uLong nOrdNum = pFly->GetVirtDrawObj()->GetOrdNum();
SwFlyCache* pFlyC = 0;
// skip fly frames from pages before the current page
while( nIdx < nCnt &&
nPgNum > (pFlyC = &pCache->GetFlyCache( nIdx ))->nPageNum )
++nIdx;
while( nIdx < nCnt &&
nOrdNum != (pFlyC = &pCache->GetFlyCache( nIdx ))->nOrdNum )
++nIdx;
if( nIdx < nCnt )
{
SwPageFrm *pPage = rpPage;
while( pPage && pPage->GetPhyPageNum() < pFlyC->nPageNum )
pPage = (SwPageFrm*)pPage->GetNext();
// #i43266# - if the found page is an empty page,
// take the previous one (take next one, if previous one doesn't exists)
if ( pPage && pPage->IsEmptyPage() )
{
pPage = static_cast<SwPageFrm*>( pPage->GetPrev()
? pPage->GetPrev()
: pPage->GetNext() );
}
if( pPage )
{
rpPage = pPage;
pFly->Frm().Pos().X() = pFlyC->Left() + pPage->Frm().Left();
pFly->Frm().Pos().Y() = pFlyC->Top() + pPage->Frm().Top();
if ( pCache->IsUseFlyCache() )
{
pFly->Frm().Width( pFlyC->Width() );
pFly->Frm().Height( pFlyC->Height() );
}
bRet = true;
}
}
pDoc->GetLayoutCache()->UnlockImpl();
}
return bRet;
}
SwLayCacheIoImpl::SwLayCacheIoImpl( SvStream& rStrm, bool bWrtMd ) :
pStream( &rStrm ),
nFlagRecEnd ( 0 ),
......
......@@ -126,10 +126,6 @@ public:
/// position, if they are in the fly cache.
void CheckFlyCache( SwPageFrm* pPage )
{ if( pImpl && nFlyIdx < pImpl->GetFlyCount() ) _CheckFlyCache( pPage ); }
/// Look for this text frame and set it to the right position,
/// if it's in the fly cache.
static bool CheckPageFlyCache( SwPageFrm* &rpPage, SwFlyFrm* pFly );
};
// Contains the data structures that are required to read and write a layout cache.
......
......@@ -915,29 +915,6 @@ void SwTxtPaintInfo::DrawRect( const SwRect &rRect, bool bNoGraphic,
}
}
void SwTxtPaintInfo::DrawSpecial(const SwLinePortion &rPor, sal_Unicode cChar, const Color& rColor) const
{
if( OnWin() )
{
sal_uInt16 nOldWidth = rPor.Width();
OUString sChar( cChar );
SwPosSize aSize( GetTxtSize( sChar ) );
((SwLinePortion&)rPor).Width( aSize.Width() );
SwRect aRect;
CalcRect( rPor, &aRect );
if( aRect.HasArea() )
{
const sal_uInt8 nOptions = 0;
lcl_DrawSpecial( *this, rPor, aRect, rColor, cChar, nOptions );
}
((SwLinePortion&)rPor).Width( nOldWidth );
}
}
void SwTxtPaintInfo::DrawTab( const SwLinePortion &rPor ) const
{
if( OnWin() )
......
......@@ -449,7 +449,6 @@ public:
void DrawRect( const SwRect &rRect, bool bNoGraphic = false,
bool bRetouche = true ) const;
void DrawSpecial(const SwLinePortion &rPor, sal_Unicode cChar, const Color& rColor) const;
void DrawTab( const SwLinePortion &rPor ) const;
void DrawLineBreak( const SwLinePortion &rPor ) const;
void DrawRedArrow( const SwLinePortion &rPor ) const;
......
......@@ -48,9 +48,6 @@ SvtListener::IsListening(SvtBroadcaster&) const
SvxFontListBox::GetSelectEntry() const
SvxOpenGLObject::getRenderer()
SvxOpenGLObject::setRenderer(IOpenGLRenderer*)
SwLayHelper::CheckPageFlyCache(SwPageFrm*&, SwFlyFrm*)
SwTxtPaintInfo::DrawSpecial(SwLinePortion const&, unsigned short, Color const&) const
SwUpdateAttr::SwUpdateAttr(int, int, unsigned short, std::__debug::vector<unsigned short, std::allocator<unsigned short> >)
Test::testCopyPasteSkipEmptyConditionalFormatting()
Test::testPerf()
Test::testSharedFormulaMoveBlock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment