LibreOffice Module vcl (master) 1
|
#include <xtextedt.hxx>
Public Member Functions | |
ExtTextEngine () | |
virtual | ~ExtTextEngine () override |
TextSelection | MatchGroup (const TextPaM &rCursor) const |
bool | Search (TextSelection &rSel, const i18nutil::SearchOptions2 &rSearchOptions, bool bForward=true) const |
Public Member Functions inherited from TextEngine | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from TextEngine | |
static bool | DoesKeyChangeText (const KeyEvent &rKeyEvent) |
static bool | IsSimpleCharInput (const KeyEvent &rKeyEvent) |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 27 of file xtextedt.hxx.
ExtTextEngine::ExtTextEngine | ( | ) |
Definition at line 33 of file xtextedt.cxx.
|
overridevirtual |
Definition at line 37 of file xtextedt.cxx.
TextSelection ExtTextEngine::MatchGroup | ( | const TextPaM & | rCursor | ) | const |
Definition at line 41 of file xtextedt.cxx.
References aStr, gaGroupChars, TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextEngine::GetParagraphCount(), TextSelection::GetStart(), TextEngine::GetText(), TextEngine::GetTextLen(), and nPos.
bool ExtTextEngine::Search | ( | TextSelection & | rSel, |
const i18nutil::SearchOptions2 & | rSearchOptions, | ||
bool | bForward = true |
||
) | const |
Definition at line 140 of file xtextedt.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), AllSettings::GetLanguageTag(), LanguageTag::getLocale(), TextPaM::GetPara(), TextEngine::GetParagraphCount(), Application::GetSettings(), TextSelection::GetStart(), TextEngine::GetText(), TextSelection::HasRange(), TextSelection::Justify(), i18nutil::SearchOptions2::Locale, utl::TextSearch::SearchBackward(), i18nutil::SearchOptions2::searchFlag, and utl::TextSearch::SearchForward().
Referenced by TextView::Replace().