Home
last modified time | relevance | path

Searched refs:fragmentSelection (Results 1 – 8 of 8) sorted by relevance

/dports/graphics/krita/krita-4.4.8/plugins/flake/textshape/kotext/commands/
H A DParagraphFormattingCommand.cpp41 QTextCursor fragmentSelection(caret); in visitBlock() local
42 fragmentSelection.setPosition(it.fragment().position()); in visitBlock()
43fragmentSelection.setPosition(it.fragment().position() + it.fragment().length(), QTextCursor::Keep… in visitBlock()
45 if (fragmentSelection.anchor() >= fragmentSelection.position()) { in visitBlock()
49 visitFragmentSelection(fragmentSelection); in visitBlock()
64 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
66 QTextCharFormat format = fragmentSelection.charFormat(); in visitFragmentSelection()
70 m_cursors.append(fragmentSelection); in visitFragmentSelection()
H A DDeleteCommand.cpp153 QTextCursor fragmentSelection(caret); in visitBlock() local
155 fragmentSelection.setPosition( in visitBlock()
160 if (fragmentSelection.anchor() >= fragmentSelection.position()) { in visitBlock()
164 visitFragmentSelection(fragmentSelection); in visitBlock()
209 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
212 m_firstFormat = fragmentSelection.charFormat(); in visitFragmentSelection()
221 KoTextDocument textDocument(fragmentSelection.document()); in visitFragmentSelection()
224 QString selected = fragmentSelection.selectedText(); in visitFragmentSelection()
225 fragmentSelection.setPosition(fragmentSelection.selectionStart() + 1); in visitFragmentSelection()
226 int position = fragmentSelection.position(); in visitFragmentSelection()
[all …]
/dports/editors/calligra/calligra-3.2.1/libs/text/commands/
H A DParagraphFormattingCommand.cpp44 QTextCursor fragmentSelection(caret); in visitBlock() local
45 fragmentSelection.setPosition(it.fragment().position()); in visitBlock()
46fragmentSelection.setPosition(it.fragment().position() + it.fragment().length(), QTextCursor::Keep… in visitBlock()
48 if (fragmentSelection.anchor() >= fragmentSelection.position()) { in visitBlock()
52 visitFragmentSelection(fragmentSelection); in visitBlock()
66 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
68 QTextCharFormat format = fragmentSelection.charFormat(); in visitFragmentSelection()
72 m_cursors.append(fragmentSelection); in visitFragmentSelection()
H A DDeleteCommand.cpp155 QTextCursor fragmentSelection(caret); in visitBlock() local
157 fragmentSelection.setPosition( in visitBlock()
162 if (fragmentSelection.anchor() >= fragmentSelection.position()) { in visitBlock()
166 visitFragmentSelection(fragmentSelection); in visitBlock()
211 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
214 m_firstFormat = fragmentSelection.charFormat(); in visitFragmentSelection()
223 KoTextDocument textDocument(fragmentSelection.document()); in visitFragmentSelection()
226 QString selected = fragmentSelection.selectedText(); in visitFragmentSelection()
227 fragmentSelection.setPosition(fragmentSelection.selectionStart() + 1); in visitFragmentSelection()
228 int position = fragmentSelection.position(); in visitFragmentSelection()
[all …]
/dports/graphics/krita/krita-4.4.8/plugins/flake/textshape/kotext/
H A DKoTextEditor_p.h130 QTextCursor fragmentSelection(caret); in visitBlock()
131 fragmentSelection.setPosition(qMax(caret.selectionStart(), it.fragment().position())); in visitBlock()
132fragmentSelection.setPosition(qMin(caret.selectionEnd(), it.fragment().position() + it.fragment().… in visitBlock()
134 if (fragmentSelection.anchor() >= fragmentSelection.position()) { in visitBlock()
138 visitFragmentSelection(fragmentSelection); in visitBlock()
H A DKoTextEditor_format.cpp367 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
372 v = fragmentSelection.charFormat().property(KoCharacterStyle::InlineInstanceId); in visitFragmentSelection()
377 v = fragmentSelection.charFormat().property(KoCharacterStyle::ChangeTrackerId); in visitFragmentSelection()
382 if (fragmentSelection.charFormat().isAnchor()) { in visitFragmentSelection()
384 …format.setProperty(KoCharacterStyle::AnchorType, fragmentSelection.charFormat().intProperty(KoChar… in visitFragmentSelection()
385 format.setAnchorHref(fragmentSelection.charFormat().anchorHref()); in visitFragmentSelection()
389 m_cursors.append(fragmentSelection); in visitFragmentSelection()
515 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
517 QTextCharFormat format = fragmentSelection.charFormat(); in visitFragmentSelection()
521 m_cursors.append(fragmentSelection); in visitFragmentSelection()
/dports/editors/calligra/calligra-3.2.1/libs/text/
H A DKoTextEditor_p.h130 QTextCursor fragmentSelection(caret); in visitBlock()
131 fragmentSelection.setPosition(qMax(caret.selectionStart(), it.fragment().position())); in visitBlock()
132fragmentSelection.setPosition(qMin(caret.selectionEnd(), it.fragment().position() + it.fragment().… in visitBlock()
134 if (fragmentSelection.anchor() >= fragmentSelection.position()) { in visitBlock()
138 visitFragmentSelection(fragmentSelection); in visitBlock()
H A DKoTextEditor_format.cpp367 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
372 v = fragmentSelection.charFormat().property(KoCharacterStyle::InlineInstanceId); in visitFragmentSelection()
377 v = fragmentSelection.charFormat().property(KoCharacterStyle::ChangeTrackerId); in visitFragmentSelection()
382 if (fragmentSelection.charFormat().isAnchor()) { in visitFragmentSelection()
384 …format.setProperty(KoCharacterStyle::AnchorType, fragmentSelection.charFormat().intProperty(KoChar… in visitFragmentSelection()
385 format.setAnchorHref(fragmentSelection.charFormat().anchorHref()); in visitFragmentSelection()
389 m_cursors.append(fragmentSelection); in visitFragmentSelection()
514 void visitFragmentSelection(QTextCursor &fragmentSelection) override in visitFragmentSelection() argument
516 QTextCharFormat format = fragmentSelection.charFormat(); in visitFragmentSelection()
520 m_cursors.append(fragmentSelection); in visitFragmentSelection()