LibreOffice Module sw (master) 1
|
#include <frminf.hxx>
Public Member Functions | |
SwTextFrameInfo (const SwTextFrame *pTextFrame) | |
bool | IsOneLine () const |
bool | IsFilled (const sal_uInt8 nPercent) const |
SwTwips | GetLineStart () const |
SwTwips | GetCharPos (TextFrameIndex nChar, bool bCenter=true) const |
void | GetSpaces (std::vector< std::pair< TextFrameIndex, TextFrameIndex > > &, bool bWithLineBreak) const |
bool | IsBullet (TextFrameIndex nTextPos) const |
SwTwips | GetFirstIndent () const |
const SwTextFrame * | GetFrame () const |
SwTextFrameInfo & | SetFrame (const SwTextFrame *pNew) |
sal_Int32 | GetBigIndent (TextFrameIndex &rFndPos, const SwTextFrame *pNextFrame) const |
Static Private Member Functions | |
static SwTwips | GetLineStart (const SwTextCursor &rLine) |
Private Attributes | |
const SwTextFrame * | m_pFrame |
Definition at line 32 of file frminf.hxx.
|
inline |
Definition at line 40 of file frminf.hxx.
sal_Int32 SwTextFrameInfo::GetBigIndent | ( | TextFrameIndex & | rFndPos, |
const SwTextFrame * | pNextFrame | ||
) | const |
Definition at line 237 of file frminf.cxx.
References CH_BREAK, CH_TAB, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, SwTextCursor::GetCharRect(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetLineStart(), SwTextCursor::GetModelPositionForViewPoint(), SwTextSizeInfo::GetText(), SwTextSizeInfo::HasHint(), SwRect::Left(), m_pFrame, SwTextIter::Next(), SwTextIter::Prev(), and SwTextIter::Y().
Referenced by SwAutoFormat::GetBigIndent().
SwTwips SwTextFrameInfo::GetCharPos | ( | TextFrameIndex | nChar, |
bool | bCenter = true |
||
) | const |
Definition at line 107 of file frminf.cxx.
References SwTextCursor::GetCharRect(), SwFrameAreaDefinition::getFrameArea(), SwRectFnSet::GetLeft(), SwRectFnSet::IsVert(), m_pFrame, and SwTextFrame::SwitchHorizontalToVertical().
Referenced by SwAutoFormat::BuildEnum(), SwAutoFormat::DoTable(), and SwNodes::TextToTable().
SwTwips SwTextFrameInfo::GetFirstIndent | ( | ) | const |
Definition at line 205 of file frminf.cxx.
References SwTextIter::GetCurr(), SwLinePortion::GetLen(), GetLineStart(), m_pFrame, and SwTextIter::Next().
Referenced by SwAutoFormat::SwAutoFormat().
|
inline |
Definition at line 64 of file frminf.hxx.
References m_pFrame.
Referenced by SwAutoFormat::AutoCorrect(), and SwNodes::TextToTable().
SwTwips SwTextFrameInfo::GetLineStart | ( | ) | const |
Definition at line 99 of file frminf.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetLineStart(), SwRect::Left(), and m_pFrame.
Referenced by GetBigIndent(), GetFirstIndent(), and GetLineStart().
|
staticprivate |
Definition at line 87 of file frminf.cxx.
References SwTextMargin::GetLineStart(), SwTextIter::GetStart(), SwTextMargin::GetTextStart(), and SwRect::Left().
Referenced by SwAutoFormat::SwAutoFormat().
void SwTextFrameInfo::GetSpaces | ( | std::vector< std::pair< TextFrameIndex, TextFrameIndex > > & | rRanges, |
bool | bWithLineBreak | ||
) | const |
Definition at line 154 of file frminf.cxx.
References AddRange(), CH_BREAK, SwTextSizeInfo::GetChar(), SwTextIter::GetCurr(), SwTextIter::GetEnd(), SwTextMargin::GetInfo(), SwLinePortion::GetLen(), SwTextIter::GetNext(), SwTextIter::GetStart(), SwTextMargin::GetTextEnd(), SwTextMargin::GetTextStart(), m_pFrame, SwTextIter::Next(), and nPos.
Referenced by SwAutoFormat::DelMoreLinesBlanks().
bool SwTextFrameInfo::IsBullet | ( | TextFrameIndex | nTextPos | ) | const |
Definition at line 193 of file frminf.cxx.
References SwAttrIter::IsSymbol(), m_pFrame, and SwTextSizeInfo::SetIdx().
Referenced by SwAutoFormat::AutoCorrect(), and SwAutoFormat::IsEnumericChar().
bool SwTextFrameInfo::IsFilled | ( | const sal_uInt8 | nPercent | ) | const |
Definition at line 74 of file frminf.cxx.
References SwFrameAreaDefinition::getFramePrintArea(), SwTextFrame::GetPara(), m_pFrame, SwPosSize::Width(), and SwRect::Width().
Referenced by SwAutoFormat::IsFastFullLine().
bool SwTextFrameInfo::IsOneLine | ( | ) | const |
Definition at line 53 of file frminf.cxx.
References SwTextFrame::GetFollow(), SwLinePortion::GetLen(), SwLineLayout::GetNext(), SwTextFrame::GetPara(), and m_pFrame.
Referenced by SwAutoFormat::IsOneLine(), and SwNodes::TextToTable().
|
inline |
Definition at line 65 of file frminf.hxx.
References m_pFrame.
Referenced by SwAutoFormat::AutoCorrect(), SwAutoFormat::BuildNegIndent(), and SwAutoFormat::SwAutoFormat().
|
private |
Definition at line 34 of file frminf.hxx.
Referenced by GetBigIndent(), GetCharPos(), GetFirstIndent(), GetFrame(), GetLineStart(), GetSpaces(), IsBullet(), IsFilled(), IsOneLine(), and SetFrame().