LibreOffice Module vcl (master) 1
|
#include <texteng.hxx>
Public Member Functions | |
TextEngine () | |
virtual | ~TextEngine () override |
TextEngine (const TextEngine &)=delete | |
TextEngine & | operator= (const TextEngine &)=delete |
void | SetText (const OUString &rStr) |
OUString | GetText (LineEnd aSeparator=LINEEND_LF) const |
OUString | GetText (const TextSelection &rSel, LineEnd aSeparator=LINEEND_LF) const |
OUString | GetTextLines (LineEnd aSeparator=LINEEND_LF) const |
void | ReplaceText (const TextSelection &rSel, const OUString &rText) |
sal_Int32 | GetTextLen () const |
sal_Int32 | GetTextLen (const TextSelection &rSel) const |
void | SetFont (const vcl::Font &rFont) |
const vcl::Font & | GetFont () const |
void | SetLeftMargin (sal_uInt16 n) |
void | SetUpdateMode (bool bUpdate) |
bool | GetUpdateMode () const |
sal_uInt16 | GetViewCount () const |
TextView * | GetView (sal_uInt16 nView) const |
void | InsertView (TextView *pTextView) |
void | RemoveView (TextView *pTextView) |
TextView * | GetActiveView () const |
void | SetActiveView (TextView *pView) |
void | SetMaxTextLen (sal_Int32 nLen) |
sal_Int32 | GetMaxTextLen () const |
void | SetMaxTextWidth (tools::Long nWidth) |
tools::Long | GetMaxTextWidth () const |
tools::Long | GetTextHeight () const |
tools::Long | CalcTextWidth () |
tools::Long | GetCharHeight () const |
sal_uInt32 | GetParagraphCount () const |
OUString | GetText (sal_uInt32 nParagraph) const |
sal_Int32 | GetTextLen (sal_uInt32 nParagraph) const |
tools::Long | GetTextHeight (sal_uInt32 nParagraph) const |
void | GetTextPortionRange (const TextPaM &rPaM, sal_Int32 &nStart, sal_Int32 &nEnd) |
sal_uInt16 | GetLineCount (sal_uInt32 nParagraph) const |
sal_Int32 | GetLineLen (sal_uInt32 nParagraph, sal_uInt16 nLine) const |
void | SetRightToLeft (bool bR2L) |
bool | IsRightToLeft () const |
bool | HasUndoManager () const |
SfxUndoManager & | GetUndoManager () |
void | UndoActionStart (sal_uInt16 nId=0) |
void | UndoActionEnd () |
void | InsertUndo (std::unique_ptr< TextUndo > pUndo, bool bTryMerge=false) |
bool | IsInUndo () const |
void | SetIsInUndo (bool bInUndo) |
void | ResetUndo () |
void | EnableUndo (bool bEnable) |
bool | IsUndoEnabled () const |
void | SetModified (bool bModified) |
bool | IsModified () const |
bool | Read (SvStream &rInput, const TextSelection *pSel=nullptr) |
void | Write (SvStream &rOutput) |
TextPaM | GetPaM (const Point &rDocPos) |
tools::Rectangle | PaMtoEditCursor (const TextPaM &rPaM, bool bSpecial=false) |
OUString | GetWord (const TextPaM &rCursorPos, TextPaM *pStartOfWord=nullptr, TextPaM *pEndOfWord=nullptr) |
const TextAttrib * | FindAttrib (const TextPaM &rPaM, sal_uInt16 nWhich) const |
const TextCharAttrib * | FindCharAttrib (const TextPaM &rPaM, sal_uInt16 nWhich) const |
void | RemoveAttribs (sal_uInt32 nPara) |
void | SetAttrib (const TextAttrib &rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd) |
TxtAlign | GetTextAlign () const |
void | SetTextAlign (TxtAlign eAlign) |
void | Draw (OutputDevice *pDev, const Point &rPos) |
void | SetLocale (const css::lang::Locale &rLocale) |
css::lang::Locale const & | GetLocale () |
css::uno::Reference< css::i18n::XBreakIterator > const & | GetBreakIterator () |
const Color & | GetTextColor () const |
Public Member Functions inherited from SfxBroadcaster | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Static Public Member Functions | |
static bool | DoesKeyChangeText (const KeyEvent &rKeyEvent) |
static bool | IsSimpleCharInput (const KeyEvent &rKeyEvent) |
Private Member Functions | |
void | CursorMoved (sal_uInt32 nNode) |
void | TextModified () |
void | ImpInitDoc () |
void | ImpRemoveText () |
TextPaM | ImpDeleteText (const TextSelection &rSel) |
TextPaM | ImpInsertText (const TextSelection &rSel, sal_Unicode c, bool bOverwrite=false) |
TextPaM | ImpInsertText (const TextSelection &rSel, const OUString &rText) |
TextPaM | ImpInsertParaBreak (const TextSelection &rTextSelection) |
TextPaM | ImpInsertParaBreak (const TextPaM &rPaM) |
void | ImpRemoveChars (const TextPaM &rPaM, sal_Int32 nChars) |
TextPaM | ImpConnectParagraphs (sal_uInt32 nLeft, sal_uInt32 nRight) |
void | ImpRemoveParagraph (sal_uInt32 nPara) |
void | ImpInitWritingDirections (sal_uInt32 nPara) |
LocaleDataWrapper * | ImpGetLocaleDataWrapper () |
SAL_DLLPRIVATE TextPaM | ImpInsertText (sal_Unicode c, const TextSelection &rSel, bool bOverwrite, bool bIsUserInput=false) |
SAL_DLLPRIVATE css::uno::Reference< css::i18n::XExtendedInputSequenceChecker > const & | GetInputSequenceChecker () |
SAL_DLLPRIVATE bool | IsInputSequenceCheckingRequired (sal_Unicode c, const TextSelection &rCurSel) const |
void | ImpParagraphInserted (sal_uInt32 nPara) |
void | ImpParagraphRemoved (sal_uInt32 nPara) |
void | ImpCharsRemoved (sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 nChars) |
void | ImpCharsInserted (sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 nChars) |
DECL_DLLPRIVATE_LINK (IdleFormatHdl, Timer *, void) | |
void | CheckIdleFormatter () |
void | IdleFormatAndUpdate (TextView *pCurView, sal_uInt16 nMaxTimerRestarts=5) |
bool | CreateLines (sal_uInt32 nPara) |
void | CreateAndInsertEmptyLine (sal_uInt32 nPara) |
void | ImpBreakLine (sal_uInt32 nPara, TextLine *pLine, sal_Int32 nPortionStart, tools::Long nRemainingWidth) |
std::size_t | SplitTextPortion (sal_uInt32 nPara, sal_Int32 nPos) |
void | CreateTextPortions (sal_uInt32 nPara, sal_Int32 nStartPos) |
void | RecalcTextPortion (sal_uInt32 nPara, sal_Int32 nStartPos, sal_Int32 nNewChars) |
void | SeekCursor (sal_uInt32 nNode, sal_Int32 nPos, vcl::Font &rFont, OutputDevice *pOutDev) |
void | FormatDoc () |
void | FormatFullDoc () |
void | FormatAndUpdate (TextView *pCurView=nullptr) |
bool | IsFormatting () const |
void | UpdateViews (TextView *pCurView=nullptr) |
void | ImpPaint (OutputDevice *pOut, const Point &rStartPos, tools::Rectangle const *pPaintArea, TextSelection const *pSelection=nullptr) |
bool | IsFormatted () const |
sal_Int32 | GetCharPos (sal_uInt32 nPara, std::vector< TextLine >::size_type nLine, tools::Long nDocPosX) |
tools::Rectangle | GetEditCursor (const TextPaM &rPaM, bool bSpecial, bool bPreferPortionStart=false) |
sal_Int32 | ImpFindIndex (sal_uInt32 nPortion, const Point &rPosInPara) |
tools::Long | ImpGetPortionXOffset (sal_uInt32 nPara, TextLine const *pLine, std::size_t nTextPortion) |
tools::Long | ImpGetXPos (sal_uInt32 nPara, TextLine *pLine, sal_Int32 nIndex, bool bPreferPortionStart=false) |
tools::Long | ImpGetOutputOffset (sal_uInt32 nPara, TextLine *pLine, sal_Int32 nIndex, sal_Int32 nIndex2) |
bool | ImpGetRightToLeft (sal_uInt32 nPara, sal_Int32 nPos) |
TxtAlign | ImpGetAlign () const |
tools::Long | CalcTextHeight () const |
tools::Long | CalcParaHeight (sal_uInt32 nParagraph) const |
tools::Long | CalcTextWidth (sal_uInt32 nPara) |
tools::Long | CalcTextWidth (sal_uInt32 nPara, sal_Int32 nPortionStart, sal_Int32 nPortionLen) |
Range | GetInvalidYOffsets (sal_uInt32 nPortion) |
void | InsertContent (std::unique_ptr< TextNode > pNode, sal_uInt32 nPara) |
TextPaM | SplitContent (sal_uInt32 nNode, sal_Int32 nSepPos) |
TextPaM | ConnectContents (sal_uInt32 nLeftNode) |
void | ValidateSelection (TextSelection &rSel) const |
void | ValidatePaM (TextPaM &rPaM) const |
Static Private Member Functions | |
static void | ImpInitLayoutMode (OutputDevice *pOutDev) |
Private Attributes | |
std::unique_ptr< TextDoc > | mpDoc |
std::unique_ptr< TEParaPortions > | mpTEParaPortions |
VclPtr< OutputDevice > | mpRefDev |
std::unique_ptr< TextViews > | mpViews |
TextView * | mpActiveView |
std::unique_ptr< TextUndoManager > | mpUndoManager |
std::unique_ptr< IdleFormatter > | mpIdleFormatter |
std::unique_ptr< TEIMEInfos > | mpIMEInfos |
css::lang::Locale | maLocale |
css::uno::Reference< css::i18n::XBreakIterator > | mxBreakIterator |
css::uno::Reference< css::i18n::XExtendedInputSequenceChecker > | mxISC |
tools::Rectangle | maInvalidRect |
std::unique_ptr< LocaleDataWrapper > | mpLocaleDataWrapper |
vcl::Font | maFont |
Color | maTextColor |
sal_Int32 | mnMaxTextLen |
tools::Long | mnMaxTextWidth |
tools::Long | mnCharHeight |
tools::Long | mnCurTextWidth |
tools::Long | mnCurTextHeight |
tools::Long | mnDefTab |
TxtAlign | meAlign |
bool | mbIsFormatting: 1 |
bool | mbFormatted: 1 |
bool | mbUpdate: 1 |
bool | mbModified: 1 |
bool | mbUndoEnabled: 1 |
bool | mbIsInUndo: 1 |
bool | mbDowning: 1 |
bool | mbRightToLeft: 1 |
bool | mbHasMultiLineParas: 1 |
Friends | |
class | TextView |
class | TextSelFunctionSet |
class | ExtTextEngine |
class | TextUndo |
class | TextUndoManager |
class | TextUndoDelPara |
class | TextUndoConnectParas |
class | TextUndoSplitPara |
class | TextUndoInsertChars |
class | TextUndoRemoveChars |
Additional Inherited Members | |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 69 of file texteng.hxx.
TextEngine::TextEngine | ( | ) |
Definition at line 68 of file texteng.cxx.
References COL_BLACK(), VclPtr< reference_type >::Create(), vcl::Font::GetFamilyName(), vcl::Font::GetFillColor(), OutputDevice::GetFont(), ImpInitDoc(), ImpInitLayoutMode(), Left, LINK, mbModified, mbUpdate, mpIdleFormatter, mpRefDev, mpViews, Color::SetAlpha(), vcl::Font::SetFillColor(), SetFont(), and vcl::Font::SetTransparent().
|
overridevirtual |
Definition at line 107 of file texteng.cxx.
References VclPtr< reference_type >::disposeAndClear(), mbDowning, mpDoc, mpIdleFormatter, mpIMEInfos, mpLocaleDataWrapper, mpRefDev, mpTEParaPortions, mpUndoManager, and mpViews.
|
delete |
|
private |
Definition at line 1226 of file texteng.cxx.
References TEParaPortion::GetLines(), mnCharHeight, mpTEParaPortions, and SAL_WARN_IF.
Referenced by CalcTextHeight(), FormatDoc(), GetTextHeight(), and ImpPaint().
|
private |
Definition at line 1156 of file texteng.cxx.
References CalcParaHeight(), GetUpdateMode(), mpTEParaPortions, and SAL_WARN_IF.
Referenced by FormatDoc().
tools::Long TextEngine::CalcTextWidth | ( | ) |
Definition at line 1138 of file texteng.cxx.
References CalcTextWidth(), FormatAndUpdate(), IsFormatted(), IsFormatting(), mnCurTextWidth, and mpTEParaPortions.
Referenced by CalcTextWidth(), CreateLines(), FormatDoc(), ImpBreakLine(), ImpGetXPos(), and SplitTextPortion().
|
private |
Definition at line 1119 of file texteng.cxx.
References TextLine::GetEndPortion(), TEParaPortion::GetLines(), TextLine::GetStartPortion(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), mpTEParaPortions, and nLineWidth.
Referenced by ImpVclMEdit::CalcBlockSize(), ImpVclMEdit::CalcMinimumSize(), and ImpVclMEdit::Notify().
|
private |
Definition at line 1166 of file texteng.cxx.
References TextNode::GetText(), OutputDevice::GetTextWidth(), mpDoc, mpRefDev, SAL_WARN_IF, SeekCursor(), and OutputDevice::SetFont().
|
private |
Definition at line 1474 of file texteng.cxx.
References mpIdleFormatter.
|
private |
Definition at line 1336 of file texteng.cxx.
References ImpConnectParagraphs(), IsInUndo(), and SAL_WARN_IF.
Referenced by TextUndoConnectParas::Redo(), and TextUndoSplitPara::Undo().
|
private |
Definition at line 1578 of file texteng.cxx.
References Center, TEParaPortion::GetLines(), TextLine::GetStart(), TextNode::GetText(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), ImpGetAlign(), mnMaxTextWidth, mpDoc, mpTEParaPortions, nPos, TETextPortionList::push_back(), Right, TextLine::SetEnd(), TextLine::SetEndPortion(), TextLine::SetStart(), TextLine::SetStartPortion(), TextLine::SetStartX(), and TETextPortionList::size().
Referenced by CreateLines().
|
private |
Definition at line 2047 of file texteng.cxx.
References CalcTextWidth(), Center, TEParaPortion::CorrectValuesBehindLastFormattedLine(), CreateAndInsertEmptyLine(), CreateTextPortions(), TETextPortionList::empty(), TextLine::GetEnd(), TextLine::GetEndPortion(), TEParaPortion::GetInvalidDiff(), TEParaPortion::GetInvalidPosStart(), TETextPortion::GetKind(), TETextPortion::GetLen(), getLength(), TEParaPortion::GetLines(), TEParaPortion::GetNode(), TextLine::GetStart(), TextLine::GetStartPortion(), TextNode::GetText(), GetText(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), TEParaPortion::GetWritingDirectionInfos(), ImpBreakLine(), ImpGetAlign(), ImpGetRightToLeft(), ImpInitWritingDirections(), TEParaPortion::IsInvalid(), TEParaPortion::IsSimpleInvalid(), mnDefTab, mnMaxTextWidth, mpDoc, mpTEParaPortions, nIndex, nPos, TETextPortionList::npos, PORTIONKIND_TAB, PORTIONKIND_TEXT, RecalcTextPortion(), TETextPortionList::Reset(), Right, SAL_WARN_IF, TextLine::SetEnd(), TextLine::SetEndPortion(), TextLine::SetInvalid(), TETextPortion::SetRightToLeft(), TextLine::SetStart(), TextLine::SetStartPortion(), TextLine::SetStartX(), TextLine::SetValid(), TEParaPortion::SetValid(), size, and TETextPortionList::size().
Referenced by FormatDoc().
|
private |
Definition at line 1695 of file texteng.cxx.
References TextCharAttribList::Count(), TETextPortionList::DeleteFromPortion(), TETextPortionList::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), TextCharAttribList::GetAttrib(), TextNode::GetCharAttribs(), TextCharAttrib::GetEnd(), TETextPortion::GetLen(), TEParaPortion::GetNode(), TextCharAttrib::GetStart(), TextNode::GetText(), TEParaPortion::GetTextPortions(), TEParaPortion::GetWritingDirectionInfos(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), mpIMEInfos, mpTEParaPortions, n, TETextPortionList::push_back(), SAL_WARN_IF, size, and TETextPortionList::size().
Referenced by CreateLines().
|
private |
Definition at line 459 of file texteng.cxx.
References TextCharAttribList::DeleteEmptyAttribs(), TextNode::GetCharAttribs(), TextNode::GetText(), TextCharAttribList::HasEmptyAttribs(), and mpDoc.
Referenced by ImpDeleteText(), and ImpInsertParaBreak().
|
private |
|
static |
Definition at line 316 of file texteng.cxx.
References CUT, DONTKNOW, vcl::KeyCode::GetCode(), vcl::KeyCode::GetFunction(), KeyEvent::GetKeyCode(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), IsSimpleCharInput(), KEY_BACKSPACE, KEY_DELETE, KEY_RETURN, KEY_TAB, PASTE, REDO, and UNDO.
void TextEngine::Draw | ( | OutputDevice * | pDev, |
const Point & | rPos | ||
) |
Definition at line 2641 of file texteng.cxx.
References ImpPaint().
Referenced by VclMultiLineEdit::Draw().
void TextEngine::EnableUndo | ( | bool | bEnable | ) |
Definition at line 1272 of file texteng.cxx.
References IsUndoEnabled(), mbUndoEnabled, and ResetUndo().
Referenced by SetText().
const TextAttrib * TextEngine::FindAttrib | ( | const TextPaM & | rPaM, |
sal_uInt16 | nWhich | ||
) | const |
Definition at line 979 of file texteng.cxx.
References FindCharAttrib(), and TextCharAttrib::GetAttr().
const TextCharAttrib * TextEngine::FindCharAttrib | ( | const TextPaM & | rPaM, |
sal_uInt16 | nWhich | ||
) | const |
Definition at line 988 of file texteng.cxx.
References TextCharAttribList::FindAttrib(), TextNode::GetCharAttribs(), TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and mpDoc.
Referenced by FindAttrib().
|
private |
Definition at line 1409 of file texteng.cxx.
References FormatDoc(), IdleFormatAndUpdate(), IsInUndo(), mbDowning, and UpdateViews().
Referenced by CalcTextWidth(), GetEditCursor(), GetTextHeight(), TextView::ImpIndentBlock(), Read(), TextView::Replace(), SetText(), SetUpdateMode(), and TextUndoManager::UndoRedoEnd().
|
private |
Definition at line 1490 of file texteng.cxx.
References SfxBroadcaster::Broadcast(), CalcParaHeight(), CalcTextHeight(), CalcTextWidth(), CreateLines(), GetInvalidYOffsets(), TEParaPortion::GetLines(), GetUpdateMode(), tools::Rectangle::IsEmpty(), IsFormatted(), IsFormatting(), TEParaPortion::IsInvalid(), Range::Len(), maInvalidRect, mbFormatted, mbHasMultiLineParas, mbIsFormatting, Range::Min(), mnCurTextHeight, mnCurTextWidth, mnMaxTextWidth, mpTEParaPortions, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), and tools::Rectangle::SetTop().
Referenced by FormatAndUpdate(), FormatFullDoc(), and ImpPaint().
|
private |
Definition at line 1479 of file texteng.cxx.
References FormatDoc(), TEParaPortion::MarkSelectionInvalid(), mbFormatted, and mpTEParaPortions.
Referenced by SetFont(), SetMaxTextWidth(), SetRightToLeft(), and SetTextAlign().
|
inline |
Definition at line 230 of file texteng.hxx.
Referenced by TextUndoManager::GetView(), TextUndo::GetView(), ImpCharsInserted(), ImpCharsRemoved(), ImpParagraphInserted(), ImpParagraphRemoved(), InsertView(), Read(), RemoveView(), and SetUpdateMode().
uno::Reference< i18n::XBreakIterator > const & TextEngine::GetBreakIterator | ( | ) |
Definition at line 2651 of file texteng.cxx.
References vcl::unohelper::CreateBreakIterator(), mxBreakIterator, and SAL_WARN_IF.
Referenced by GetWord(), ImpBreakLine(), ImpFindIndex(), and IsInputSequenceCheckingRequired().
|
inline |
Definition at line 241 of file texteng.hxx.
|
private |
Definition at line 1060 of file texteng.cxx.
References TextLine::GetEndPortion(), TETextPortion::GetLen(), TEParaPortion::GetLines(), TEParaPortion::GetNode(), TextLine::GetStart(), TextLine::GetStartPortion(), TextLine::GetStartX(), TextNode::GetText(), OutputDevice::GetTextBreak(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), i, IsRightToLeft(), TETextPortion::IsRightToLeft(), mpRefDev, mpTEParaPortions, SeekCursor(), and OutputDevice::SetFont().
Referenced by ImpFindIndex().
|
private |
Definition at line 852 of file texteng.cxx.
References FormatAndUpdate(), TextPaM::GetIndex(), TextLine::GetLen(), TEParaPortion::GetLines(), TextPaM::GetPara(), ImpGetXPos(), IsFormatted(), IsFormatting(), mnCharHeight, mpTEParaPortions, SAL_WARN_IF, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), and tools::Rectangle::SetTop().
Referenced by PaMtoEditCursor().
|
inline |
Definition at line 219 of file texteng.hxx.
Referenced by SetFont(), and TextView::TextView().
|
private |
|
private |
Definition at line 1238 of file texteng.cxx.
References TEParaPortion::GetLines(), TextLine::IsInvalid(), TextLine::IsValid(), mnCharHeight, and mpTEParaPortions.
Referenced by FormatDoc().
sal_uInt16 TextEngine::GetLineCount | ( | sal_uInt32 | nParagraph | ) | const |
Definition at line 1202 of file texteng.cxx.
References TEParaPortion::GetLines(), mpTEParaPortions, and SAL_WARN_IF.
sal_Int32 TextEngine::GetLineLen | ( | sal_uInt32 | nParagraph, |
sal_uInt16 | nLine | ||
) | const |
Definition at line 1213 of file texteng.cxx.
References TEParaPortion::GetLines(), mpTEParaPortions, SAL_WARN_IF, and size.
css::lang::Locale const & TextEngine::GetLocale | ( | ) |
Definition at line 2665 of file texteng.cxx.
References LanguageTag::getLocale(), Application::GetSettings(), AllSettings::GetUILanguageTag(), and maLocale.
Referenced by GetWord(), ImpFindIndex(), and ImpGetLocaleDataWrapper().
|
inline |
Definition at line 234 of file texteng.hxx.
Referenced by ImpVclMEdit::GetMaxTextLen().
|
inline |
Definition at line 237 of file texteng.hxx.
Definition at line 997 of file texteng.cxx.
References Point::AdjustY(), TextPaM::GetIndex(), TEParaPortion::GetLines(), TextNode::GetText(), GetUpdateMode(), ImpFindIndex(), mnCharHeight, mpDoc, mpTEParaPortions, SAL_WARN_IF, and Point::Y().
sal_uInt32 TextEngine::GetParagraphCount | ( | ) | const |
Definition at line 1267 of file texteng.cxx.
References mpDoc.
Referenced by ImpVclMEdit::ImpUpdateScrollBarVis(), ExtTextEngine::MatchGroup(), and ExtTextEngine::Search().
OUString TextEngine::GetText | ( | const TextSelection & | rSel, |
LineEnd | aSeparator = LINEEND_LF |
||
) | const |
Definition at line 385 of file texteng.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::GetStart(), TextNode::GetText(), TextSelection::HasRange(), TextSelection::Justify(), mpDoc, and static_getLineEndText().
OUString TextEngine::GetText | ( | LineEnd | aSeparator = LINEEND_LF | ) | const |
Definition at line 253 of file texteng.cxx.
References mpDoc, and static_getLineEndText().
Referenced by CreateLines(), ImpVclMEdit::GetText(), ImpBreakLine(), TextView::ImpIndentBlock(), ExtTextEngine::MatchGroup(), RecalcTextPortion(), ExtTextEngine::Search(), and ImpVclMEdit::SetSelection().
OUString TextEngine::GetText | ( | sal_uInt32 | nParagraph | ) | const |
Definition at line 279 of file texteng.cxx.
References mpDoc.
|
inline |
Definition at line 285 of file texteng.hxx.
|
inline |
Definition at line 297 of file texteng.hxx.
tools::Long TextEngine::GetTextHeight | ( | ) | const |
Definition at line 1099 of file texteng.cxx.
References FormatAndUpdate(), GetUpdateMode(), IsFormatted(), IsFormatting(), mnCurTextHeight, and SAL_WARN_IF.
Referenced by ImpVclMEdit::CalcBlockSize(), ImpVclMEdit::CalcMinimumSize(), ImpVclMEdit::ImpSetScrollBarRanges(), ImpVclMEdit::ImpUpdateScrollBarVis(), and ImpVclMEdit::Notify().
tools::Long TextEngine::GetTextHeight | ( | sal_uInt32 | nParagraph | ) | const |
Definition at line 1109 of file texteng.cxx.
References CalcParaHeight(), FormatAndUpdate(), GetUpdateMode(), IsFormatted(), IsFormatting(), and SAL_WARN_IF.
sal_Int32 TextEngine::GetTextLen | ( | ) | const |
Definition at line 284 of file texteng.cxx.
References LINEEND_LF, mpDoc, and static_getLineEndText().
Referenced by ImpVclMEdit::GetSelection(), ExtTextEngine::MatchGroup(), and ValidatePaM().
sal_Int32 TextEngine::GetTextLen | ( | const TextSelection & | rSel | ) | const |
Definition at line 289 of file texteng.cxx.
References TextSelection::Justify(), LINEEND_LF, mpDoc, static_getLineEndText(), and ValidateSelection().
sal_Int32 TextEngine::GetTextLen | ( | sal_uInt32 | nParagraph | ) | const |
Definition at line 297 of file texteng.cxx.
References mpDoc.
OUString TextEngine::GetTextLines | ( | LineEnd | aSeparator = LINEEND_LF | ) | const |
Definition at line 258 of file texteng.cxx.
References TextLine::GetEnd(), TEParaPortion::GetLines(), TEParaPortion::GetNode(), TextLine::GetStart(), TextNode::GetText(), mpTEParaPortions, and static_getLineEndText().
Referenced by ImpVclMEdit::GetTextLines().
void TextEngine::GetTextPortionRange | ( | const TextPaM & | rPaM, |
sal_Int32 & | nStart, | ||
sal_Int32 & | nEnd | ||
) |
Definition at line 1182 of file texteng.cxx.
References TextPaM::GetIndex(), TETextPortion::GetLen(), TextPaM::GetPara(), TEParaPortion::GetTextPortions(), i, mpTEParaPortions, and size.
SfxUndoManager & TextEngine::GetUndoManager | ( | ) |
Definition at line 1281 of file texteng.cxx.
References mpUndoManager, and TextUndoManager.
Referenced by InsertUndo(), SetText(), UndoActionEnd(), and UndoActionStart().
|
inline |
Definition at line 224 of file texteng.hxx.
References mbUpdate.
Referenced by CalcTextHeight(), FormatDoc(), GetPaM(), GetTextHeight(), ImpPaint(), PaMtoEditCursor(), Read(), SetText(), and UpdateViews().
TextView * TextEngine::GetView | ( | sal_uInt16 | nView | ) | const |
Definition at line 147 of file texteng.cxx.
References mpViews.
sal_uInt16 TextEngine::GetViewCount | ( | ) | const |
Definition at line 142 of file texteng.cxx.
References mpViews.
OUString TextEngine::GetWord | ( | const TextPaM & | rCursorPos, |
TextPaM * | pStartOfWord = nullptr , |
||
TextPaM * | pEndOfWord = nullptr |
||
) |
Definition at line 2351 of file texteng.cxx.
References GetBreakIterator(), TextSelection::GetEnd(), TextPaM::GetIndex(), GetLocale(), TextPaM::GetPara(), TextSelection::GetStart(), TextNode::GetText(), and mpDoc.
|
inline |
Definition at line 256 of file texteng.hxx.
Referenced by SetText().
|
private |
Definition at line 1423 of file texteng.cxx.
References mpIdleFormatter.
Referenced by FormatAndUpdate(), RemoveAttribs(), and SetAttrib().
|
private |
Definition at line 1610 of file texteng.cxx.
References CalcTextWidth(), GetBreakIterator(), LocaleDataWrapper::getForbiddenCharacters(), TETextPortion::GetLen(), getLength(), TextLine::GetStart(), TextNode::GetText(), GetText(), OutputDevice::GetTextBreak(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), ImpGetLocaleDataWrapper(), mpDoc, mpRefDev, mpTEParaPortions, SAL_WARN_IF, TextLine::SetEnd(), TextLine::SetEndPortion(), and SplitTextPortion().
Referenced by CreateLines().
|
private |
Definition at line 2617 of file texteng.cxx.
References SfxBroadcaster::Broadcast(), GetActiveView(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextView::GetSelection(), TextSelection::GetStart(), mpViews, n, and nPos.
Referenced by ImpInsertText().
|
private |
Definition at line 2590 of file texteng.cxx.
References SfxBroadcaster::Broadcast(), GetActiveView(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextView::GetSelection(), TextSelection::GetStart(), mpViews, n, and nPos.
Referenced by ImpRemoveChars().
|
private |
Definition at line 494 of file texteng.cxx.
References TextPaM::GetIndex(), TextNode::GetText(), ImpParagraphRemoved(), InsertUndo(), IsInUndo(), IsUndoEnabled(), TEParaPortion::MarkSelectionInvalid(), mpDoc, mpTEParaPortions, and SAL_WARN_IF.
Referenced by ConnectContents(), and ImpDeleteText().
|
private |
Definition at line 521 of file texteng.cxx.
References CursorMoved(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::GetStart(), TextNode::GetText(), TextSelection::HasRange(), ImpConnectParagraphs(), ImpRemoveChars(), ImpRemoveParagraph(), TextSelection::Justify(), TEParaPortion::MarkInvalid(), TEParaPortion::MarkSelectionInvalid(), mpDoc, mpTEParaPortions, SAL_WARN_IF, TextModified(), and z.
Referenced by TextView::ImpIndentBlock(), ImpInsertParaBreak(), ImpInsertText(), Read(), TextUndoRemoveChars::Redo(), and TextUndoInsertChars::Undo().
|
private |
Definition at line 1025 of file texteng.cxx.
References GetBreakIterator(), GetCharPos(), TextLine::GetEnd(), TEParaPortion::GetLines(), GetLocale(), TEParaPortion::GetNode(), TextNode::GetText(), IsFormatted(), mnCharHeight, mpTEParaPortions, nCount, SAL_WARN_IF, size, Point::X(), and Point::Y().
Referenced by GetPaM().
|
private |
Definition at line 2839 of file texteng.cxx.
References IsRightToLeft(), Left, meAlign, and Right.
Referenced by CreateAndInsertEmptyLine(), and CreateLines().
|
private |
Definition at line 2674 of file texteng.cxx.
References GetLocale(), and mpLocaleDataWrapper.
Referenced by ImpBreakLine().
|
private |
Definition at line 2852 of file texteng.cxx.
References TETextPortionList::FindPortion(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), ImpGetPortionXOffset(), ImpGetXPos(), IsRightToLeft(), mpTEParaPortions, and nIndex.
Referenced by ImpPaint().
|
private |
Definition at line 2760 of file texteng.cxx.
References TETextPortion::GetKind(), TextLine::GetStartPortion(), TextLine::GetStartX(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), i, IsRightToLeft(), TETextPortion::IsRightToLeft(), mpTEParaPortions, and PORTIONKIND_TAB.
Referenced by ImpGetOutputOffset(), and ImpGetXPos().
|
private |
Definition at line 2736 of file texteng.cxx.
References TextNode::GetText(), TEParaPortion::GetWritingDirectionInfos(), ImpInitWritingDirections(), mpDoc, mpTEParaPortions, and nPos.
Referenced by CreateLines().
|
private |
Definition at line 904 of file texteng.cxx.
References CalcTextWidth(), TETextPortionList::FindPortion(), TextLine::GetEnd(), TextLine::GetEndPortion(), TETextPortion::GetKind(), TETextPortion::GetLen(), TextLine::GetStart(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), ImpGetPortionXOffset(), ImpGetXPos(), IsRightToLeft(), TETextPortion::IsRightToLeft(), mpTEParaPortions, nIndex, PORTIONKIND_TAB, PORTIONKIND_TEXT, SAL_WARN_IF, and TETextPortionList::size().
Referenced by GetEditCursor(), ImpGetOutputOffset(), and ImpGetXPos().
|
private |
Definition at line 364 of file texteng.cxx.
References ImpParagraphInserted(), ImpParagraphRemoved(), mbFormatted, mpDoc, mpTEParaPortions, and TEXT_PARA_ALL.
Referenced by ImpRemoveText(), and TextEngine().
|
staticprivate |
Definition at line 2830 of file texteng.cxx.
References vcl::text::BiDiRtl, vcl::text::BiDiStrong, OutputDevice::GetLayoutMode(), and OutputDevice::SetLayoutMode().
Referenced by ImpPaint(), and TextEngine().
|
private |
Definition at line 2693 of file texteng.cxx.
References TEParaPortion::GetNode(), TextNode::GetText(), TEParaPortion::GetWritingDirectionInfos(), IsRightToLeft(), mpTEParaPortions, and nCount.
Referenced by CreateLines(), and ImpGetRightToLeft().
Definition at line 798 of file texteng.cxx.
References SfxBroadcaster::Broadcast(), CursorMoved(), TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), ImpParagraphInserted(), InsertUndo(), IsInUndo(), IsUndoEnabled(), TEParaPortion::MarkInvalid(), mpDoc, mpTEParaPortions, SAL_WARN_IF, and TextModified().
|
private |
Definition at line 787 of file texteng.cxx.
References TextSelection::GetEnd(), TextSelection::HasRange(), ImpDeleteText(), and ImpInsertParaBreak().
Referenced by ImpInsertParaBreak(), ImpInsertText(), Read(), and SplitContent().
|
private |
Definition at line 736 of file texteng.cxx.
References convertLineEnd(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::HasRange(), ImpCharsInserted(), ImpDeleteText(), ImpInsertParaBreak(), InsertUndo(), IsInUndo(), IsUndoEnabled(), LINE_SEP, LINEEND_LF, TEParaPortion::MarkInvalid(), mpDoc, mpTEParaPortions, TEParaPortion::SetNotSimpleInvalid(), TextModified(), UndoActionEnd(), and UndoActionStart().
|
private |
Definition at line 632 of file texteng.cxx.
References ImpInsertText().
Referenced by TextView::ImpIndentBlock(), ImpInsertText(), Read(), TextUndoInsertChars::Redo(), TextView::Replace(), ReplaceText(), SetText(), and TextUndoRemoveChars::Undo().
|
private |
Definition at line 637 of file texteng.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), GetInputSequenceChecker(), TextPaM::GetPara(), TextSelection::GetStart(), TextNode::GetText(), TextSelection::HasRange(), ImpCharsInserted(), ImpDeleteText(), ImpInsertText(), InsertUndo(), SvtCTLOptions::IsCTLSequenceCheckingRestricted(), SvtCTLOptions::IsCTLSequenceCheckingTypeAndReplace(), IsInputSequenceCheckingRequired(), IsInUndo(), IsUndoEnabled(), TEParaPortion::MarkInvalid(), mpDoc, mpTEParaPortions, SAL_WARN_IF, TEParaPortion::SetNotSimpleInvalid(), TextModified(), TextUndoInsertChars, UndoActionEnd(), and UndoActionStart().
|
private |
Definition at line 1871 of file texteng.cxx.
References tools::Rectangle::Bottom(), CalcParaHeight(), OutputDevice::DrawRect(), OutputDevice::DrawText(), OutputDevice::Erase(), FormatDoc(), TextSelection::GetEnd(), OutputDevice::GetFillColor(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), TextPaM::GetIndex(), TETextPortion::GetKind(), TETextPortion::GetLen(), TEParaPortion::GetLines(), TEParaPortion::GetNode(), OutputDevice::GetOwnerWindow(), OutputDevice::GetSettings(), TextSelection::GetStart(), AllSettings::GetStyleSettings(), TextNode::GetText(), OutputDevice::GetTextColor(), TEParaPortion::GetTextPortions(), GetUpdateMode(), TETextPortion::GetWidth(), TextSelection::HasRange(), ImpGetOutputOffset(), ImpInitLayoutMode(), IsFormatted(), TEParaPortion::IsInvalid(), vcl::Window::IsPaintTransparent(), mnCharHeight, mpTEParaPortions, nIndex, PORTIONKIND_TAB, PORTIONKIND_TEXT, SeekCursor(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), vcl::Font::SetTransparent(), Point::setX(), TETextPortionList::size(), tools::Rectangle::Top(), Point::X(), y, and Point::Y().
Referenced by Draw().
|
private |
Definition at line 2539 of file texteng.cxx.
References SfxBroadcaster::Broadcast(), GetActiveView(), TextSelection::GetEnd(), TextPaM::GetPara(), TextView::GetSelection(), TextSelection::GetStart(), mpViews, and n.
Referenced by ImpInitDoc(), ImpInsertParaBreak(), and InsertContent().
|
private |
Definition at line 2562 of file texteng.cxx.
References SfxBroadcaster::Broadcast(), GetActiveView(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextView::GetSelection(), TextSelection::GetStart(), mpDoc, mpViews, and n.
Referenced by ImpConnectParagraphs(), ImpInitDoc(), ImpRemoveParagraph(), and TextUndoDelPara::Redo().
|
private |
Definition at line 467 of file texteng.cxx.
References aStr, TextCharAttribList::Count(), TextCharAttribList::GetAttrib(), TextNode::GetCharAttribs(), TextCharAttrib::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextCharAttrib::GetStart(), TextNode::GetText(), ImpCharsRemoved(), InsertUndo(), IsInUndo(), IsUndoEnabled(), mpDoc, and SAL_WARN_IF.
Referenced by ImpDeleteText().
|
private |
Definition at line 590 of file texteng.cxx.
References ImpParagraphRemoved(), InsertUndo(), IsInUndo(), IsUndoEnabled(), mpDoc, and mpTEParaPortions.
Referenced by ImpDeleteText().
|
private |
Definition at line 415 of file texteng.cxx.
References ImpInitDoc(), mpViews, and ResetUndo().
Referenced by SetText().
|
private |
Definition at line 1314 of file texteng.cxx.
References ImpParagraphInserted(), IsInUndo(), mpDoc, mpTEParaPortions, and SAL_WARN_IF.
Referenced by TextUndoDelPara::Undo().
void TextEngine::InsertUndo | ( | std::unique_ptr< TextUndo > | pUndo, |
bool | bTryMerge = false |
||
) |
Definition at line 1302 of file texteng.cxx.
References SfxUndoManager::AddUndoAction(), GetUndoManager(), IsInUndo(), and SAL_WARN_IF.
Referenced by ImpConnectParagraphs(), ImpInsertParaBreak(), ImpInsertText(), ImpRemoveChars(), and ImpRemoveParagraph().
void TextEngine::InsertView | ( | TextView * | pTextView | ) |
Definition at line 121 of file texteng.cxx.
References GetActiveView(), mpViews, SetActiveView(), and TextView::SetSelection().
|
inlineprivate |
Definition at line 176 of file texteng.hxx.
Referenced by CalcTextWidth(), FormatDoc(), GetEditCursor(), GetTextHeight(), ImpFindIndex(), ImpPaint(), and UpdateViews().
|
inlineprivate |
Definition at line 171 of file texteng.hxx.
Referenced by CalcTextWidth(), FormatDoc(), GetEditCursor(), GetTextHeight(), and UpdateViews().
|
private |
Definition at line 613 of file texteng.cxx.
References GetBreakIterator(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextSelection::GetStart(), SvtCTLOptions::IsCTLFontEnabled(), and SvtCTLOptions::IsCTLSequenceChecking().
Referenced by ImpInsertText().
|
inline |
Definition at line 261 of file texteng.hxx.
Referenced by ConnectContents(), FormatAndUpdate(), ImpConnectParagraphs(), ImpInsertParaBreak(), ImpInsertText(), ImpRemoveChars(), ImpRemoveParagraph(), InsertContent(), InsertUndo(), SplitContent(), UndoActionEnd(), and UndoActionStart().
|
inline |
Definition at line 269 of file texteng.hxx.
References mbModified.
Referenced by ImpVclMEdit::SetText().
|
inline |
Definition at line 254 of file texteng.hxx.
Referenced by GetCharPos(), ImpGetAlign(), ImpGetOutputOffset(), ImpGetPortionXOffset(), ImpGetXPos(), ImpInitWritingDirections(), ImpVclMEdit::ImpSetHScrollBarThumbPos(), and UpdateViews().
|
static |
Definition at line 357 of file texteng.cxx.
References KeyEvent::GetCharCode(), KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), KEY_MOD1, and KEY_MOD2.
Referenced by DoesKeyChangeText(), and TextView::KeyInput().
|
inline |
Definition at line 266 of file texteng.hxx.
Referenced by EnableUndo(), ImpConnectParagraphs(), ImpInsertParaBreak(), ImpInsertText(), ImpRemoveChars(), ImpRemoveParagraph(), SetText(), UndoActionEnd(), and UndoActionStart().
|
delete |
References SetText().
tools::Rectangle TextEngine::PaMtoEditCursor | ( | const TextPaM & | rPaM, |
bool | bSpecial = false |
||
) |
Definition at line 826 of file texteng.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustTop(), GetEditCursor(), TEParaPortion::GetLines(), TextPaM::GetPara(), GetUpdateMode(), mbHasMultiLineParas, mnCharHeight, mpTEParaPortions, and SAL_WARN_IF.
bool TextEngine::Read | ( | SvStream & | rInput, |
const TextSelection * | pSel = nullptr |
||
) |
Definition at line 2394 of file texteng.cxx.
References ERRCODE_NONE, FormatAndUpdate(), GetActiveView(), TextSelection::GetEnd(), SvStream::GetError(), SvStream::GetStreamCharSet(), TextNode::GetText(), GetUpdateMode(), TextSelection::HasRange(), ImpDeleteText(), ImpInsertParaBreak(), ImpInsertText(), TextView::ImpSetSelection(), mpDoc, SvStream::ReadLine(), SetUpdateMode(), UndoActionEnd(), and UndoActionStart().
|
private |
Definition at line 1788 of file texteng.cxx.
References TETextPortionList::begin(), TETextPortionList::erase(), TETextPortionList::FindPortion(), TextNode::GetCharAttribs(), TETextPortion::GetLen(), getLength(), TEParaPortion::GetNode(), TextNode::GetText(), GetText(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), TextCharAttribList::HasBoundingAttrib(), TETextPortionList::insert(), mpTEParaPortions, nPos, SAL_WARN_IF, size, TETextPortionList::size(), and SplitTextPortion().
Referenced by CreateLines().
void TextEngine::RemoveAttribs | ( | sal_uInt32 | nPara | ) |
Definition at line 2461 of file texteng.cxx.
References TextCharAttribList::Clear(), TextCharAttribList::Count(), TextNode::GetCharAttribs(), IdleFormatAndUpdate(), TEParaPortion::MarkSelectionInvalid(), mbFormatted, mpDoc, and mpTEParaPortions.
void TextEngine::RemoveView | ( | TextView * | pTextView | ) |
Definition at line 130 of file texteng.cxx.
References GetActiveView(), TextView::HideCursor(), mpViews, and SetActiveView().
void TextEngine::ReplaceText | ( | const TextSelection & | rSel, |
const OUString & | rText | ||
) |
Definition at line 248 of file texteng.cxx.
References ImpInsertText().
void TextEngine::ResetUndo | ( | ) |
Definition at line 1308 of file texteng.cxx.
References mpUndoManager.
Referenced by EnableUndo(), and ImpRemoveText().
|
private |
Definition at line 1342 of file texteng.cxx.
References BoldUnderline, COL_LIGHTGRAY(), COL_RED(), TextCharAttribList::Count(), DashDotUnderline, DottedUnderline, DoubleUnderline, TextCharAttrib::GetAttr(), TextCharAttribList::GetAttrib(), TextNode::GetCharAttribs(), TextAttribFontColor::GetColor(), TextCharAttrib::GetEnd(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), Application::GetSettings(), TextCharAttrib::GetStart(), AllSettings::GetStyleSettings(), TextNode::GetText(), GrayWaveline, HalfToneText, Highlight, LINESTYLE_BOLD, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_SINGLE, LINESTYLE_WAVE, maFont, maTextColor, mpDoc, mpIMEInfos, nPos, RedText, vcl::Font::SetColor(), vcl::Font::SetFillColor(), TextAttrib::SetFont(), OutputDevice::SetTextColor(), vcl::Font::SetTransparent(), vcl::Font::SetUnderline(), TEXTATTR_FONTCOLOR, Underline, and TextCharAttrib::Which().
Referenced by CalcTextWidth(), GetCharPos(), and ImpPaint().
void TextEngine::SetActiveView | ( | TextView * | pView | ) |
Definition at line 153 of file texteng.cxx.
References TextView::HideSelection(), mpActiveView, and TextView::ShowSelection().
Referenced by InsertView(), and RemoveView().
void TextEngine::SetAttrib | ( | const TextAttrib & | rAttr, |
sal_uInt32 | nPara, | ||
sal_Int32 | nStart, | ||
sal_Int32 | nEnd | ||
) |
Definition at line 2480 of file texteng.cxx.
References TextNode::GetCharAttribs(), TextNode::GetText(), IdleFormatAndUpdate(), TextCharAttribList::InsertAttrib(), TEParaPortion::MarkSelectionInvalid(), mbFormatted, mpDoc, and mpTEParaPortions.
void TextEngine::SetFont | ( | const vcl::Font & | rFont | ) |
Definition at line 167 of file texteng.cxx.
References ALIGN_TOP, COL_BLACK(), COL_TRANSPARENT(), ExtText, FormatFullDoc(), vcl::Font::GetColor(), vcl::Font::GetFillColor(), GetFont(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), TextView::GetWindow(), TextView::IsReadOnly(), maFont, maTextColor, mnCharHeight, mnDefTab, mpRefDev, mpViews, NONE, vcl::Font::SetAlignment(), Color::SetAlpha(), vcl::Font::SetColor(), vcl::Font::SetFillColor(), OutputDevice::SetFont(), vcl::Window::SetInputContext(), vcl::Font::SetTransparent(), Text, and UpdateViews().
Referenced by VclMultiLineEdit::Draw(), and TextEngine().
|
inline |
Definition at line 262 of file texteng.hxx.
Referenced by TextUndoManager::Redo(), and TextUndoManager::Undo().
void TextEngine::SetLeftMargin | ( | sal_uInt16 | n | ) |
Definition at line 2646 of file texteng.cxx.
void TextEngine::SetLocale | ( | const css::lang::Locale & | rLocale | ) |
Definition at line 2659 of file texteng.cxx.
References maLocale, and mpLocaleDataWrapper.
void TextEngine::SetMaxTextLen | ( | sal_Int32 | nLen | ) |
Definition at line 210 of file texteng.cxx.
References EDIT_NOLIMIT, and mnMaxTextLen.
Referenced by ImpVclMEdit::SetMaxTextLen().
void TextEngine::SetMaxTextWidth | ( | tools::Long | nWidth | ) |
Definition at line 215 of file texteng.cxx.
References FormatFullDoc(), mnMaxTextWidth, and UpdateViews().
Referenced by VclMultiLineEdit::Draw(), ImpVclMEdit::Resize(), and ImpVclMEdit::SetMaxTextWidth().
|
inline |
Definition at line 268 of file texteng.hxx.
References mbModified.
Referenced by ImpVclMEdit::SetModified(), and ImpVclMEdit::SetText().
void TextEngine::SetRightToLeft | ( | bool | bR2L | ) |
Definition at line 2682 of file texteng.cxx.
References FormatFullDoc(), Left, mbRightToLeft, meAlign, Right, and UpdateViews().
Referenced by ImpVclMEdit::SetAlign().
void TextEngine::SetText | ( | const OUString & | rStr | ) |
Definition at line 427 of file texteng.cxx.
References EnableUndo(), FormatAndUpdate(), GetUndoManager(), GetUpdateMode(), HasUndoManager(), ImpInsertText(), ImpRemoveText(), IsUndoEnabled(), mnCurTextHeight, mpViews, and SAL_WARN_IF.
Referenced by VclMultiLineEdit::Draw(), and ImpVclMEdit::SetText().
void TextEngine::SetTextAlign | ( | TxtAlign | eAlign | ) |
Definition at line 2507 of file texteng.cxx.
References FormatFullDoc(), meAlign, and UpdateViews().
Referenced by VclMultiLineEdit::Draw(), and ImpVclMEdit::SetAlign().
void TextEngine::SetUpdateMode | ( | bool | bUpdate | ) |
Definition at line 302 of file texteng.cxx.
References FormatAndUpdate(), GetActiveView(), mbUpdate, and TextView::ShowCursor().
Referenced by Read().
|
private |
Definition at line 1324 of file texteng.cxx.
References TextNode::GetText(), ImpInsertParaBreak(), IsInUndo(), mpDoc, and SAL_WARN_IF.
Referenced by TextUndoSplitPara::Redo(), and TextUndoConnectParas::Undo().
|
private |
Definition at line 1659 of file texteng.cxx.
References TETextPortionList::begin(), CalcTextWidth(), TETextPortion::GetLen(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), TETextPortionList::insert(), mpTEParaPortions, nPos, and TETextPortionList::size().
Referenced by ImpBreakLine(), and RecalcTextPortion().
|
private |
Definition at line 1428 of file texteng.cxx.
References mbFormatted, and mbModified.
Referenced by ImpDeleteText(), ImpInsertParaBreak(), and ImpInsertText().
void TextEngine::UndoActionEnd | ( | ) |
Definition at line 1296 of file texteng.cxx.
References GetUndoManager(), IsInUndo(), IsUndoEnabled(), and SfxUndoManager::LeaveListAction().
Referenced by TextView::ImpIndentBlock(), ImpInsertText(), Read(), and TextView::Replace().
void TextEngine::UndoActionStart | ( | sal_uInt16 | nId = 0 | ) |
Definition at line 1288 of file texteng.cxx.
References SfxUndoManager::EnterListAction(), GetUndoManager(), IsInUndo(), IsUndoEnabled(), and nId.
Referenced by TextView::ImpIndentBlock(), ImpInsertText(), Read(), and TextView::Replace().
|
private |
Definition at line 1434 of file texteng.cxx.
References Point::AdjustX(), GetUpdateMode(), tools::Rectangle::Intersection(), TextView::IsAutoScroll(), tools::Rectangle::IsEmpty(), IsFormatted(), IsFormatting(), IsRightToLeft(), maInvalidRect, mpViews, SAL_WARN_IF, tools::Rectangle::SetPos(), TextView::ShowCursor(), tools::Rectangle::TopLeft(), and Size::Width().
Referenced by FormatAndUpdate(), SetFont(), SetMaxTextWidth(), SetRightToLeft(), and SetTextAlign().
|
private |
Definition at line 2523 of file texteng.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), GetTextLen(), mpDoc, and TEXT_INDEX_ALL.
Referenced by ValidateSelection().
|
private |
Definition at line 2517 of file texteng.cxx.
References TextSelection::GetEnd(), TextSelection::GetStart(), and ValidatePaM().
Referenced by GetTextLen().
void TextEngine::Write | ( | SvStream & | rOutput | ) |
Definition at line 2439 of file texteng.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::GetStart(), SvStream::GetStreamCharSet(), TextNode::GetText(), mpDoc, OUStringToOString(), and SvStream::WriteLine().
|
friend |
Definition at line 73 of file texteng.hxx.
|
friend |
Definition at line 72 of file texteng.hxx.
|
friend |
Definition at line 75 of file texteng.hxx.
|
friend |
Definition at line 78 of file texteng.hxx.
|
friend |
Definition at line 77 of file texteng.hxx.
|
friend |
Definition at line 80 of file texteng.hxx.
Referenced by ImpInsertText().
|
friend |
Definition at line 76 of file texteng.hxx.
Referenced by GetUndoManager().
|
friend |
Definition at line 81 of file texteng.hxx.
|
friend |
Definition at line 79 of file texteng.hxx.
|
friend |
Definition at line 71 of file texteng.hxx.
|
private |
Definition at line 104 of file texteng.hxx.
Referenced by SeekCursor(), and SetFont().
|
private |
Definition at line 100 of file texteng.hxx.
Referenced by FormatDoc(), and UpdateViews().
|
private |
Definition at line 96 of file texteng.hxx.
Referenced by GetLocale(), and SetLocale().
|
private |
Definition at line 105 of file texteng.hxx.
Referenced by SeekCursor(), and SetFont().
|
private |
Definition at line 122 of file texteng.hxx.
Referenced by FormatAndUpdate(), and ~TextEngine().
|
private |
Definition at line 117 of file texteng.hxx.
Referenced by FormatDoc(), FormatFullDoc(), ImpInitDoc(), RemoveAttribs(), SetAttrib(), and TextModified().
|
private |
Definition at line 124 of file texteng.hxx.
Referenced by FormatDoc(), and PaMtoEditCursor().
|
private |
Definition at line 116 of file texteng.hxx.
Referenced by FormatDoc().
|
private |
Definition at line 121 of file texteng.hxx.
|
private |
Definition at line 119 of file texteng.hxx.
Referenced by TextModified().
|
private |
Definition at line 123 of file texteng.hxx.
Referenced by SetRightToLeft().
|
private |
Definition at line 120 of file texteng.hxx.
Referenced by EnableUndo().
|
private |
Definition at line 118 of file texteng.hxx.
Referenced by SetUpdateMode().
|
private |
Definition at line 114 of file texteng.hxx.
Referenced by ImpGetAlign(), SetRightToLeft(), and SetTextAlign().
|
private |
Definition at line 109 of file texteng.hxx.
Referenced by CalcParaHeight(), GetEditCursor(), GetInvalidYOffsets(), GetPaM(), ImpFindIndex(), ImpPaint(), PaMtoEditCursor(), and SetFont().
|
private |
Definition at line 111 of file texteng.hxx.
Referenced by FormatDoc(), GetTextHeight(), and SetText().
|
private |
Definition at line 110 of file texteng.hxx.
Referenced by CalcTextWidth(), and FormatDoc().
|
private |
Definition at line 112 of file texteng.hxx.
Referenced by CreateLines(), and SetFont().
|
private |
Definition at line 107 of file texteng.hxx.
Referenced by SetMaxTextLen().
|
private |
Definition at line 108 of file texteng.hxx.
Referenced by CreateAndInsertEmptyLine(), CreateLines(), FormatDoc(), and SetMaxTextWidth().
|
private |
Definition at line 88 of file texteng.hxx.
Referenced by SetActiveView().
|
private |
Definition at line 83 of file texteng.hxx.
Referenced by CalcTextWidth(), CreateAndInsertEmptyLine(), CreateLines(), CursorMoved(), FindCharAttrib(), TextUndo::GetDoc(), GetPaM(), GetParagraphCount(), GetText(), GetTextLen(), GetWord(), ImpBreakLine(), ImpConnectParagraphs(), ImpDeleteText(), ImpGetRightToLeft(), ImpInitDoc(), ImpInsertParaBreak(), ImpInsertText(), ImpParagraphRemoved(), ImpRemoveChars(), ImpRemoveParagraph(), InsertContent(), Read(), RemoveAttribs(), SeekCursor(), SetAttrib(), SetLeftMargin(), SplitContent(), ValidatePaM(), Write(), and ~TextEngine().
|
private |
Definition at line 92 of file texteng.hxx.
Referenced by CheckIdleFormatter(), IdleFormatAndUpdate(), TextEngine(), and ~TextEngine().
|
private |
Definition at line 94 of file texteng.hxx.
Referenced by CreateTextPortions(), SeekCursor(), and ~TextEngine().
|
private |
Definition at line 102 of file texteng.hxx.
Referenced by ImpGetLocaleDataWrapper(), SetLocale(), and ~TextEngine().
|
private |
Definition at line 85 of file texteng.hxx.
Referenced by CalcTextWidth(), GetCharPos(), ImpBreakLine(), SetFont(), TextEngine(), and ~TextEngine().
|
private |
Definition at line 84 of file texteng.hxx.
Referenced by CalcParaHeight(), CalcTextHeight(), CalcTextWidth(), CreateAndInsertEmptyLine(), CreateLines(), CreateTextPortions(), FormatDoc(), FormatFullDoc(), GetCharPos(), GetEditCursor(), GetInvalidYOffsets(), GetLineCount(), GetLineLen(), GetPaM(), TextUndo::GetTEParaPortions(), GetTextLines(), GetTextPortionRange(), ImpBreakLine(), ImpConnectParagraphs(), ImpDeleteText(), ImpFindIndex(), ImpGetOutputOffset(), ImpGetPortionXOffset(), ImpGetRightToLeft(), ImpGetXPos(), ImpInitDoc(), ImpInitWritingDirections(), ImpInsertParaBreak(), ImpInsertText(), ImpPaint(), ImpRemoveParagraph(), InsertContent(), PaMtoEditCursor(), RecalcTextPortion(), RemoveAttribs(), SetAttrib(), SplitTextPortion(), and ~TextEngine().
|
private |
Definition at line 90 of file texteng.hxx.
Referenced by GetUndoManager(), ResetUndo(), and ~TextEngine().
|
private |
Definition at line 87 of file texteng.hxx.
Referenced by GetView(), GetViewCount(), ImpCharsInserted(), ImpCharsRemoved(), ImpParagraphInserted(), ImpParagraphRemoved(), ImpRemoveText(), InsertView(), RemoveView(), SetFont(), SetText(), TextEngine(), UpdateViews(), and ~TextEngine().
|
private |
Definition at line 97 of file texteng.hxx.
Referenced by GetBreakIterator().
|
private |
Definition at line 98 of file texteng.hxx.
Referenced by GetInputSequenceChecker().