LibreOffice Module sw (master)
1
|
#include <extinput.hxx>
Public Member Functions | |
SwExtTextInput (const SwPaM &rPam, Ring *pRing) | |
virtual | ~SwExtTextInput () override |
void | SetInputData (const CommandExtTextInputData &rData) |
const std::vector< ExtTextInputAttr > & | GetAttrs () const |
void | SetInsText (bool bFlag) |
bool | IsOverwriteCursor () const |
void | SetOverwriteCursor (bool bFlag) |
void | SetLanguage (LanguageType eSet) |
SwExtTextInput * | GetNext () |
const SwExtTextInput * | GetNext () const |
SwExtTextInput * | GetPrev () |
const SwExtTextInput * | GetPrev () const |
![]() | |
SwPaM (const SwPosition &rPos, SwPaM *pRing=nullptr) | |
SwPaM (const SwPosition &rMk, const SwPosition &rPt, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, const SwNodeIndex &rPt, tools::Long nMkOffset=0, tools::Long nPtOffset=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, const SwNode &rPt, tools::Long nMkOffset=0, tools::Long nPtOffset=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, sal_Int32 nMkContent, const SwNodeIndex &rPt, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, sal_Int32 nMkContent, const SwNode &rPt, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rNd, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rNd, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
virtual | ~SwPaM () override |
SwPaM (SwPaM const &rPaM, SwPaM *pRing) | |
this takes a second parameter, which indicates the Ring that the new PaM should be part of (may be null) More... | |
SwPaM & | operator= (const SwPaM &) |
@@ semantic: no copy assignment for super class Ring. More... | |
bool | Move (SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent) |
Movement of cursor. More... | |
bool | IsInFrontOfLabel () const |
void | SetInFrontOfLabel_ (bool bNew) |
virtual void | SetMark () |
Unless this is called, the getter method of Mark will return Point. More... | |
void | DeleteMark () |
void | Exchange () |
bool | HasMark () const |
A PaM marks a selection if Point and Mark are distinct positions. More... | |
const SwPosition * | GetPoint () const |
SwPosition * | GetPoint () |
const SwPosition * | GetMark () const |
SwPosition * | GetMark () |
const SwPosition * | Start () const |
SwPosition * | Start () |
const SwPosition * | End () const |
SwPosition * | End () |
SwNode & | GetNode (bool bPoint=true) const |
SwContentNode * | GetContentNode (bool bPoint=true) const |
void | Normalize (bool bPointFirst=true) |
Normalizes PaM, i.e. More... | |
SwDoc & | GetDoc () const |
SwPosition & | GetBound (bool bOne=true) |
const SwPosition & | GetBound (bool bOne=true) const |
sal_uInt16 | GetPageNum (bool bAtPoint=true, const Point *pLayPos=nullptr) |
Get number of page which contains cursor. More... | |
bool | HasReadonlySel (bool bFormView) const |
Is in something protected (readonly) or selection contains something protected. More... | |
bool | ContainsPosition (const SwPosition &rPos) const |
OUString | GetText () const |
void | InvalidatePaM () |
SwPaM * | GetNext () |
const SwPaM * | GetNext () const |
SwPaM * | GetPrev () |
const SwPaM * | GetPrev () const |
bool | IsMultiSelection () const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
![]() | |
virtual | ~Ring () COVERITY_NOEXCEPT_FALSE |
void | unlink () |
algo::unlink is buggy! don't call it directly! More... | |
void | MoveTo (SwPaM *pDestRing) |
Removes this item from its current ring container and adds it to another ring container. More... | |
ring_container | GetRingContainer () |
const_ring_container | GetRingContainer () const |
Private Attributes | |
std::vector< ExtTextInputAttr > | m_aAttrs |
OUString | m_sOverwriteText |
bool | m_bInsText: 1 |
bool | m_bIsOverwriteCursor: 1 |
LanguageType | m_eInputLanguage |
Additional Inherited Members | |
![]() | |
typedef std::add_const< SwPaM >::type | const_value_type |
typedef RingContainer< SwPaM > | ring_container |
typedef RingContainer< const_value_type > | const_ring_container |
![]() | |
Ring () | |
Creates a new item in a ring container all by itself. More... | |
Ring (SwPaM *pRing) | |
Creates a new item and add it to an existing ring container. More... | |
SwPaM * | GetNextInRing () |
const_value_type * | GetNextInRing () const |
SwPaM * | GetPrevInRing () |
const_value_type * | GetPrevInRing () const |
bool | unique () const |
Definition at line 27 of file extinput.hxx.
Definition at line 39 of file extinput.cxx.
References LANGUAGE_DONTKNOW, m_bInsText, and m_bIsOverwriteCursor.
|
overridevirtual |
Definition at line 47 of file extinput.cxx.
References IDocumentUndoRedo::DoesGroupUndo(), IDocumentUndoRedo::DoGroupUndo(), IDocumentUndoRedo::EndUndo(), SwTextNode::EraseText(), SwPaM::GetDoc(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwTextNode::GetLang(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), IDocumentContentOperations::InsertPoolItem(), IDocumentContentOperations::InsertString(), SwDoc::IsInDtor(), LANGUAGE_DONTKNOW, m_bInsText, m_bIsOverwriteCursor, m_eInputLanguage, m_sOverwriteText, SwPosition::nContent, SwPosition::nNode, OVERWRITE, IDocumentContentOperations::Overwrite(), SwTextNode::ReplaceText(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_LANGUAGE(), and IDocumentUndoRedo::StartUndo().
|
inline |
Definition at line 39 of file extinput.hxx.
References m_aAttrs.
Referenced by SwAttrIter::CtorInitAttrIter().
|
inline |
Definition at line 45 of file extinput.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
Referenced by SwDoc::DeleteExtTextInput(), and SwDoc::GetExtTextInput().
|
inline |
Definition at line 46 of file extinput.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
|
inline |
Definition at line 47 of file extinput.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
inline |
Definition at line 48 of file extinput.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
inline |
Definition at line 41 of file extinput.hxx.
References m_bIsOverwriteCursor.
Referenced by SwEditShell::DeleteExtTextInput().
void SwExtTextInput::SetInputData | ( | const CommandExtTextInputData & | rData | ) |
Definition at line 135 of file extinput.cxx.
References EMPTYEXPAND, SwTextNode::EraseText(), SwIndex::GetIndex(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), CommandExtTextInputData::GetText(), CommandExtTextInputData::GetTextAttr(), SwNode::GetTextNode(), SwPaM::HasMark(), SwTextNode::InsertText(), m_aAttrs, m_bIsOverwriteCursor, m_sOverwriteText, SwPosition::nContent, SwPosition::nNode, SwTextNode::ReplaceText(), and SwPaM::SetMark().
Referenced by SwEditShell::SetExtTextInputData().
|
inline |
Definition at line 40 of file extinput.hxx.
References m_bInsText.
Referenced by SwEditShell::DeleteExtTextInput().
|
inline |
Definition at line 43 of file extinput.hxx.
Referenced by SwEditShell::CreateExtTextInput().
void SwExtTextInput::SetOverwriteCursor | ( | bool | bFlag | ) |
Definition at line 209 of file extinput.cxx.
References CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, SwIndex::GetIndex(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), m_bIsOverwriteCursor, m_sOverwriteText, SwPosition::nContent, SwPosition::nNode, and nPos.
Referenced by SwEditShell::CreateExtTextInput().
|
private |
Definition at line 29 of file extinput.hxx.
Referenced by GetAttrs(), and SetInputData().
|
private |
Definition at line 31 of file extinput.hxx.
Referenced by SetInsText(), SwExtTextInput(), and ~SwExtTextInput().
|
private |
Definition at line 32 of file extinput.hxx.
Referenced by IsOverwriteCursor(), SetInputData(), SetOverwriteCursor(), SwExtTextInput(), and ~SwExtTextInput().
|
private |
Definition at line 33 of file extinput.hxx.
Referenced by ~SwExtTextInput().
|
private |
Definition at line 30 of file extinput.hxx.
Referenced by SetInputData(), SetOverwriteCursor(), and ~SwExtTextInput().