|
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 |
Public Member Functions inherited from SwPaM | |
| SwPaM (const SwPosition &rPos, SwPaM *pRing=nullptr) | |
| SwPaM (const SwPosition &rMk, const SwPosition &rPt, SwPaM *pRing=nullptr) | |
| SwPaM (const SwNodeIndex &rMk, const SwNodeIndex &rPt, SwNodeOffset nMkOffset=SwNodeOffset(0), SwNodeOffset nPtOffset=SwNodeOffset(0), SwPaM *pRing=nullptr) | |
| SwPaM (const SwNode &rMk, const SwNode &rPt, SwNodeOffset nMkOffset=SwNodeOffset(0), SwNodeOffset nPtOffset=SwNodeOffset(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 &rMk, SwNodeOffset nMkOffset, sal_Int32 nMkContent, const SwNode &rPt, SwNodeOffset nPtOffset, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
| SwPaM (const SwNode &rNd, SwNodeOffset nNdOffset, sal_Int32 nContent=0, 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) | |
| SwPaM (SwNodes &rNds, SwNodeOffset nMkOffset=SwNodeOffset(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 () |
| std::pair< const SwPosition *, const SwPosition * > | StartEnd () const |
| Because sometimes the cost of the operator<= can add up. More... | |
| std::pair< SwPosition *, SwPosition * > | StartEnd () |
| SwNode & | GetPointNode () const |
| SwNode & | GetMarkNode () const |
| SwContentNode * | GetPointContentNode () const |
| SwContentNode * | GetMarkContentNode () 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, bool isReplace) const |
| Is in something protected (readonly) or selection contains something protected. More... | |
| bool | HasHiddenSections () const |
| Is there hidden sections in the selected area. 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 |
Public Member Functions inherited from sw::Ring< SwPaM > | |
| 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 | |
Public Types inherited from sw::Ring< SwPaM > | |
| typedef std::add_const< SwPaM >::type | const_value_type |
| typedef RingContainer< SwPaM > | ring_container |
| typedef RingContainer< const_value_type > | const_ring_container |
Protected Member Functions inherited from sw::Ring< SwPaM > | |
| 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 SwPosition::AdjustContent(), EMPTYEXPAND, SwTextNode::EraseText(), SwPosition::GetContentIndex(), SwPaM::GetDoc(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), IDocumentContentOperations::GetIME(), SwTextNode::GetLang(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), IDocumentContentOperations::InsertPoolItem(), IDocumentContentOperations::InsertString(), SwDoc::IsInDtor(), LANGUAGE_DONTKNOW, m_bInsText, m_bIsOverwriteCursor, m_eInputLanguage, m_sOverwriteText, IDocumentContentOperations::Overwrite(), OVERWRITE, SwTextNode::ReplaceText(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_LANGUAGE(), SwPosition::SetContent(), and IDocumentContentOperations::SetIME().
|
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 151 of file extinput.cxx.
References SwPosition::Assign(), SwPaM::End(), SwTextNode::EraseText(), SwPosition::GetContentIndex(), SwContentIndex::GetContentNode(), SwContentIndex::GetIndex(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), CommandExtTextInputData::GetText(), CommandExtTextInputData::GetTextAttr(), SwNode::GetTextNode(), SwPaM::HasMark(), SwTextNode::InsertText(), m_aAttrs, m_bIsOverwriteCursor, m_sOverwriteText, min(), NOHINTEXPAND, SwTextNode::ReplaceText(), SwPosition::SetContent(), SwPaM::SetMark(), and SwPaM::Start().
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.
References m_eInputLanguage.
Referenced by SwEditShell::CreateExtTextInput().
| void SwExtTextInput::SetOverwriteCursor | ( | bool | bFlag | ) |
Definition at line 221 of file extinput.cxx.
References CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, SwPosition::GetContentIndex(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), m_bIsOverwriteCursor, m_sOverwriteText, min(), 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 SetLanguage(), and ~SwExtTextInput().
|
private |
Definition at line 30 of file extinput.hxx.
Referenced by SetInputData(), SetOverwriteCursor(), and ~SwExtTextInput().