LibreOffice Module editeng (master) 1
|
#include <txtrange.hxx>
Classes | |
struct | RangeCacheItem |
The RangeCache class is used to cache the result of a single range calculation. More... | |
Public Member Functions | |
TextRanger (const basegfx::B2DPolyPolygon &rPolyPolygon, const basegfx::B2DPolyPolygon *pLinePolyPolygon, sal_uInt16 nCacheSize, sal_uInt16 nLeft, sal_uInt16 nRight, bool bSimple, bool bInner, bool bVert=false) | |
~TextRanger () | |
std::deque< tools::Long > * | GetTextRanges (const Range &rRange) |
sal_uInt16 | GetRight () const |
sal_uInt16 | GetLeft () const |
sal_uInt16 | GetUpper () const |
sal_uInt16 | GetLower () const |
sal_uInt32 | GetPointCount () const |
bool | IsSimple () const |
bool | IsInner () const |
bool | IsVertical () const |
const tools::Rectangle & | GetBoundRect () const |
void | SetUpper (sal_uInt16 nNew) |
void | SetLower (sal_uInt16 nNew) |
void | SetVertical (bool bNew) |
Private Member Functions | |
TextRanger (const TextRanger &)=delete | |
const tools::Rectangle & | GetBoundRect_ () const |
Private Attributes | |
std::deque< RangeCacheItem > | mRangeCache |
Cached range calculations. More... | |
tools::PolyPolygon | maPolyPolygon |
std::optional< tools::PolyPolygon > | mpLinePolyPolygon |
std::optional< tools::Rectangle > | mxBound |
sal_uInt16 | nCacheSize |
sal_uInt16 | nRight |
sal_uInt16 | nLeft |
sal_uInt16 | nUpper |
sal_uInt16 | nLower |
sal_uInt32 | nPointCount |
bool | bSimple: 1 |
bool | bInner: 1 |
bool | bVertical:1 |
Definition at line 33 of file txtrange.hxx.
|
privatedelete |
TextRanger::TextRanger | ( | const basegfx::B2DPolyPolygon & | rPolyPolygon, |
const basegfx::B2DPolyPolygon * | pLinePolyPolygon, | ||
sal_uInt16 | nCacheSize, | ||
sal_uInt16 | nLeft, | ||
sal_uInt16 | nRight, | ||
bool | bSimple, | ||
bool | bInner, | ||
bool | bVert = false |
||
) |
Definition at line 30 of file txtrange.cxx.
References basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), count, basegfx::B2DPolyPolygon::getB2DPolygon(), basegfx::B2DPolygon::getDefaultAdaptiveSubdivision(), i, tools::PolyPolygon::Insert(), maPolyPolygon, maPolyPolygon, mpLinePolyPolygon, nCacheSize, nCount, and nPointCount.
TextRanger::~TextRanger | ( | ) |
Definition at line 71 of file txtrange.cxx.
References mRangeCache.
|
inline |
Definition at line 74 of file txtrange.hxx.
Referenced by ImpEditEngine::CreateLines(), and EditEngine::SetPolygon().
|
private |
Definition at line 659 of file txtrange.cxx.
References DBG_ASSERT, tools::PolyPolygon::GetBoundRect(), maPolyPolygon, and mxBound.
|
inline |
Definition at line 67 of file txtrange.hxx.
|
inline |
Definition at line 69 of file txtrange.hxx.
|
inline |
Definition at line 70 of file txtrange.hxx.
|
inline |
Definition at line 66 of file txtrange.hxx.
std::deque< tools::Long > * TextRanger::GetTextRanges | ( | const Range & | rRange | ) |
Definition at line 637 of file txtrange.cxx.
References DBG_ASSERT, maPolyPolygon, Range::Max(), Range::Min(), mpLinePolyPolygon, mRangeCache, nCacheSize, and TextRanger::RangeCacheItem::results.
Referenced by ImpEditEngine::CreateLines().
|
inline |
Definition at line 68 of file txtrange.hxx.
|
inline |
Definition at line 72 of file txtrange.hxx.
|
inline |
Definition at line 71 of file txtrange.hxx.
|
inline |
Definition at line 73 of file txtrange.hxx.
Referenced by SetVertical().
|
inline |
Definition at line 77 of file txtrange.hxx.
|
inline |
Definition at line 76 of file txtrange.hxx.
void TextRanger::SetVertical | ( | bool | bNew | ) |
Definition at line 80 of file txtrange.cxx.
References bVertical, IsVertical(), and mRangeCache.
Referenced by ImpEditEngine::CreateLines().
|
private |
Definition at line 53 of file txtrange.hxx.
|
private |
Definition at line 52 of file txtrange.hxx.
|
private |
Definition at line 55 of file txtrange.hxx.
Referenced by SetVertical().
|
private |
Definition at line 43 of file txtrange.hxx.
Referenced by GetBoundRect_(), GetTextRanges(), and TextRanger().
|
private |
Definition at line 44 of file txtrange.hxx.
Referenced by GetTextRanges(), and TextRanger().
|
private |
Cached range calculations.
Definition at line 42 of file txtrange.hxx.
Referenced by GetTextRanges(), SetVertical(), and ~TextRanger().
|
mutableprivate |
Definition at line 45 of file txtrange.hxx.
Referenced by GetBoundRect_().
|
private |
Definition at line 46 of file txtrange.hxx.
Referenced by GetTextRanges().
|
private |
Definition at line 48 of file txtrange.hxx.
|
private |
Definition at line 50 of file txtrange.hxx.
|
private |
Definition at line 51 of file txtrange.hxx.
Referenced by TextRanger().
|
private |
Definition at line 47 of file txtrange.hxx.
|
private |
Definition at line 49 of file txtrange.hxx.