#include "ut_types.h"#include "ut_misc.h"#include "ut_assert.h"#include "ut_debugmsg.h"#include "ut_growbuf.h"#include "pt_PieceTable.h"#include "pf_Frag.h"#include "pf_Frag_FmtMark.h"#include "pf_Frag_Object.h"#include "pf_Frag_Strux.h"#include "pf_Frag_Strux_Block.h"#include "pf_Frag_Strux_Section.h"#include "pf_Frag_Text.h"#include "pf_Fragments.h"#include "px_ChangeRecord.h"#include "px_CR_Object.h"#include "px_CR_Span.h"#include "px_CR_SpanChange.h"#include "px_CR_Strux.h"#include "pl_ListenerCoupleCloser.h"#include <set>#include <boost/bind.hpp>#include <boost/function.hpp>Typedefs | |
| typedef boost::function< bool(PT_DocPosition, PT_DocPosition, PT_DocPosition, PL_Listener *) | f_WalkRangeFinished_t ) |
| typedef std::set< pf_Frag::PFType > | m_fragtypecol_t |
Functions | |
| static bool | finishedFunctorEndOfRage (PT_DocPosition, PT_DocPosition rangeEndPos, PT_DocPosition curPos, PL_Listener *) |
| static bool | finishedFunctorFinishingListener (PT_DocPosition, PT_DocPosition, PT_DocPosition, PL_Listener *, PL_FinishingListener *fl) |
| static m_fragtypecol_t & | _getTellListenerSubsetWalkRangeVisitAllFragments () |
| static PT_DocPosition | _tellListenerSubsetWalkRange (pt_PieceTable *pt, PL_Listener *pListener, PD_DocumentRange *, PT_DocPosition rangeStartPos, PT_DocPosition rangeEndPos, f_WalkRangeFinished_t finishedFunctor=finishedFunctorEndOfRage, m_fragtypecol_t &fragmentTypesToVisit=_getTellListenerSubsetWalkRangeVisitAllFragments(), bool walkForwards=true) |
| This is a static function instead of a member so that boost::functors can be passed in to this function but boost headers are not needed in pt_PieceTable.h. | |
| typedef boost::function< bool (PT_DocPosition, PT_DocPosition, PT_DocPosition, PL_Listener*) f_WalkRangeFinished_t) |
| typedef std::set< pf_Frag::PFType > m_fragtypecol_t |
| static m_fragtypecol_t& _getTellListenerSubsetWalkRangeVisitAllFragments | ( | ) | [static] |
References pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, and pf_Frag::PFT_Text.
| static PT_DocPosition _tellListenerSubsetWalkRange | ( | pt_PieceTable * | pt, | |
| PL_Listener * | pListener, | |||
| PD_DocumentRange * | , | |||
| PT_DocPosition | rangeStartPos, | |||
| PT_DocPosition | rangeEndPos, | |||
| f_WalkRangeFinished_t | finishedFunctor = finishedFunctorEndOfRage, |
|||
| m_fragtypecol_t & | fragmentTypesToVisit = _getTellListenerSubsetWalkRangeVisitAllFragments(), |
|||
| bool | walkForwards = true | |||
| ) | [static] |
This is a static function instead of a member so that boost::functors can be passed in to this function but boost headers are not needed in pt_PieceTable.h.
References pf_Frag_FmtMark::createSpecialChangeRecord(), pf_Frag_Object::createSpecialChangeRecord(), pf_Frag_Strux::createSpecialChangeRecord(), pf_Frag_Text::createSpecialChangeRecord(), DELETEP, pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PL_Listener::populate(), PL_Listener::populateStrux(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by pt_PieceTable::tellListenerSubset().
| static bool finishedFunctorEndOfRage | ( | PT_DocPosition | , | |
| PT_DocPosition | rangeEndPos, | |||
| PT_DocPosition | curPos, | |||
| PL_Listener * | ||||
| ) | [static] |
| static bool finishedFunctorFinishingListener | ( | PT_DocPosition | , | |
| PT_DocPosition | , | |||
| PT_DocPosition | , | |||
| PL_Listener * | , | |||
| PL_FinishingListener * | fl | |||
| ) | [static] |
References PL_FinishingListener::isFinished().
Referenced by pt_PieceTable::tellListenerSubset().
1.7.1