diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 13:16:51 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 22:19:32 +0100 |
commit | f4fbdf7f9c8e657cccb679b341397daabee7079b (patch) | |
tree | da5535c167fff13a0f692ee10cc47a8748e67060 /sw | |
parent | remove cleanzip.pl (diff) | |
download | core-f4fbdf7f9c8e657cccb679b341397daabee7079b.tar.gz core-f4fbdf7f9c8e657cccb679b341397daabee7079b.zip |
unusedcode.easy: Remove SwProtocol::Snapshot()
And all implementations. Also unused and removed:
ImplCreateFromXImage()
ImplGetFrameBitmap()
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/dbg_lay.hxx | 3 | ||||
-rw-r--r-- | sw/source/core/layout/dbg_lay.cxx | 43 |
2 files changed, 0 insertions, 46 deletions
diff --git a/sw/source/core/inc/dbg_lay.hxx b/sw/source/core/inc/dbg_lay.hxx index 4106bbd19240..eaa104400c2a 100644 --- a/sw/source/core/inc/dbg_lay.hxx +++ b/sw/source/core/inc/dbg_lay.hxx @@ -84,7 +84,6 @@ public: static void Record( const SwFrm* pFrm, sal_uLong nFunction, sal_uLong nAction, void* pParam ); static void Init(); static void Stop(); - static void SnapShot( const SwFrm* pFrm, sal_uLong nFlags ); static void GetVar( const sal_uInt16 nNo, long& rVar ); }; @@ -104,7 +103,6 @@ public: #define PROTOCOL_INIT SwProtocol::Init(); #define PROTOCOL_STOP SwProtocol::Stop(); #define PROTOCOL_ENTER( pFrm, nFunc, nAct, pPar ) SwEnterLeave aEnter( pFrm, nFunc, nAct, pPar ); -#define PROTOCOL_SNAPSHOT( pFrm, nFlags ) SwProtocol::SnapShot( pFrm, nFlags ); #define GET_VARIABLE( nNo, nVar ) SwProtocol::GetVar( nNo, nVar ); #else @@ -113,7 +111,6 @@ public: #define PROTOCOL_INIT #define PROTOCOL_STOP #define PROTOCOL_ENTER( pFrm, nFunc, nAct, pPar ) -#define PROTOCOL_SNAPSHOT( pFrm, nFlags ) #define GET_VARIABLE( nNo, nVar ) #endif diff --git a/sw/source/core/layout/dbg_lay.cxx b/sw/source/core/layout/dbg_lay.cxx index fc166cb6eca2..f435a17da299 100644 --- a/sw/source/core/layout/dbg_lay.cxx +++ b/sw/source/core/layout/dbg_lay.cxx @@ -161,7 +161,6 @@ public: sal_Bool DeleteFrm( sal_uInt16 nFrmId ); // FrmId entfernen, diesen nicht mehr Aufzeichnen void FileInit(); // Auslesen der INI-Datei void ChkStream() { if( !pStream ) NewStream(); } - void SnapShot( const SwFrm* pFrm, sal_uLong nFlags ); void GetVar( const sal_uInt16 nNo, long& rVar ) { if( nNo < aVars.size() ) rVar = aVars[ nNo ]; } }; @@ -274,14 +273,6 @@ void SwProtocol::Stop() nRecord = 0; } -// Creates a more or less detailed snapshot of the layout structur - -void SwProtocol::SnapShot( const SwFrm* pFrm, sal_uLong nFlags ) -{ - if( pImpl ) - pImpl->SnapShot( pFrm, nFlags ); -} - void SwProtocol::GetVar( const sal_uInt16 nNo, long& rVar ) { if( pImpl ) @@ -768,40 +759,6 @@ sal_Bool SwImplProtocol::DeleteFrm( sal_uInt16 nId ) return sal_False; } -/*-------------------------------------------------- - * SwProtocol::SnapShot(..) - * creates a snapshot of the given frame and its content. - * --------------------------------------------------*/ -void SwImplProtocol::SnapShot( const SwFrm* pFrm, sal_uLong nFlags ) -{ - while( pFrm ) - { - _Record( pFrm, PROT_SNAPSHOT, 0, 0); - if( pFrm->GetDrawObjs() && nFlags & SNAP_FLYFRAMES ) - { - aLayer.append(RTL_CONSTASCII_STRINGPARAM("[ ")); - const SwSortedObjs &rObjs = *pFrm->GetDrawObjs(); - for ( sal_uInt16 i = 0; i < rObjs.Count(); ++i ) - { - SwAnchoredObject* pObj = rObjs[i]; - if ( pObj->ISA(SwFlyFrm) ) - SnapShot( static_cast<SwFlyFrm*>(pObj), nFlags ); - } - if (aLayer.getLength() > 1) - aLayer.remove(aLayer.getLength() - 2, aLayer.getLength()); - } - if( pFrm->IsLayoutFrm() && nFlags & SNAP_LOWER && - ( !pFrm->IsTabFrm() || nFlags & SNAP_TABLECONT ) ) - { - aLayer.append(RTL_CONSTASCII_STRINGPARAM(" ")); - SnapShot( ((SwLayoutFrm*)pFrm)->Lower(), nFlags ); - if (aLayer.getLength() > 1) - aLayer.remove(aLayer.getLength() - 2, aLayer.getLength()); - } - pFrm = pFrm->GetNext(); - } -} - /* -------------------------------------------------- * SwEnterLeave::Ctor(..) wird vom eigentlichen (inline-)Kontruktor gerufen, * wenn die Funktion aufgezeichnet werden soll. |