LibreOffice Module sw (master) 1
|
Classes | |
class | SwAnyMapHelper |
Functions | |
static SwPaM * | lcl_createPamCopy (const SwPaM &rPam) |
void | GetSelectableFromAny (uno::Reference< uno::XInterface > const &xIfc, SwDoc &rTargetDoc, SwPaM *&o_rpPaM, std::pair< OUString, FlyCntType > &o_rFrame, OUString &o_rTableName, SwUnoTableCursor const *&o_rpTableCursor, ::sw::mark::IMark const *&o_rpMark, std::vector< SdrObject * > &o_rSdrObjects) |
uno::Reference< text::XTextContent > | GetNestedTextContent (SwTextNode const &rTextNode, sal_Int32 const nIndex, bool const bParent) |
static uno::Any | GetParaListAutoFormat (SwTextNode const &rNode) |
bool | getCursorPropertyValue (const SfxItemPropertyMapEntry &rEntry, SwPaM &rPam, Any *pAny, PropertyState &eState, const SwTextNode *pNode) |
sal_Int16 | IsNodeNumStart (SwPaM const &rPam, PropertyState &eState) |
void | setNumberingProperty (const Any &rValue, SwPaM &rPam) |
void | getNumberingProperty (SwPaM &rPam, PropertyState &eState, Any *pAny) |
void | GetCurPageStyle (SwPaM const &rPaM, OUString &rString) |
void | resetCursorPropertyValue (const SfxItemPropertyMapEntry &rEntry, SwPaM &rPam) |
void | InsertFile (SwUnoCursor *pUnoCursor, const OUString &rURL, const uno::Sequence< beans::PropertyValue > &rOptions) |
bool | DocInsertStringSplitCR (SwDoc &rDoc, const SwPaM &rNewCursor, std::u16string_view rText, const bool bForceExpandHints) |
void | makeRedline (SwPaM const &rPaM, std::u16string_view rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties) |
void | makeTableRowRedline (SwTableLine &rTableLine, std::u16string_view rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties) |
void | makeTableCellRedline (SwTableBox &rTableBox, std::u16string_view rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties) |
uno::Reference< text::XFlatParagraphIterator > | CreateFlatParagraphIterator (SwDoc &rDoc, sal_Int32 const nTextMarkupType, bool const bAutomatic) |
bool | getCursorPropertyValue (const SfxItemPropertyMapEntry &rEntry, SwPaM &rPam, css::uno::Any *pAny, css::beans::PropertyState &eState, const SwTextNode *pNode=nullptr) |
bool | IsStartOfPara (SwPaM &rUnoCursor) |
bool | IsEndOfPara (SwPaM &rUnoCursor) |
void | InsertFile (SwUnoCursor *pUnoCursor, const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &rOptions) |
void | getNumberingProperty (SwPaM &rPam, css::beans::PropertyState &eState, css::uno::Any *pAny) |
void | setNumberingProperty (const css::uno::Any &rValue, SwPaM &rPam) |
sal_Int16 | IsNodeNumStart (SwPaM const &rPam, css::beans::PropertyState &eState) |
void | makeRedline (SwPaM const &rPaM, std::u16string_view RedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) |
void | makeTableRowRedline (SwTableLine &rTableLine, std::u16string_view RedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) |
SW_DLLPUBLIC void | makeTableCellRedline (SwTableBox &rTableBox, std::u16string_view RedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) |
void | SetCursorAttr (SwPaM &rPam, const SfxItemSet &rSet, const SetAttrMode nAttrMode, const bool bTableMode=false) |
void | GetCursorAttr (SwPaM &rPam, SfxItemSet &rSet, const bool bOnlyTextAttr=false, const bool bGetFromChrFormat=true) |
void | GetTextFromPam (SwPaM &rPam, OUString &rBuffer, SwRootFrame const *pLayout=nullptr) |
SwFormatColl * | GetCurTextFormatColl (SwPaM &rPam, const bool bConditional) |
void | SelectPam (SwPaM &rPam, const bool bExpand) |
void | SetString (SwCursor &rCursor, std::u16string_view aString) |
css::uno::Sequence< css::beans::PropertyValue > | CreateSortDescriptor (const bool bFromTable) |
bool | ConvertSortProperties (const css::uno::Sequence< css::beans::PropertyValue > &rDescriptor, SwSortOptions &rSortOpt) |
void | SetPropertyValue (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const OUString &rPropertyName, const css::uno::Any &rValue, const SetAttrMode nAttrMode=SetAttrMode::DEFAULT) |
void | SetPropertyValues (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const css::uno::Sequence< css::beans::PropertyValue > &rPropertyValues, const SetAttrMode nAttrMode=SetAttrMode::DEFAULT) |
void | SetPropertyValues (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, o3tl::span< const css::beans::PropertyValue > aPropertyValues, const SetAttrMode nAttrMode=SetAttrMode::DEFAULT) |
css::uno::Any | GetPropertyValue (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName) |
css::uno::Sequence< css::beans::PropertyState > | GetPropertyStates (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const css::uno::Sequence< OUString > &rPropertyNames, const SwGetPropertyStatesCaller eCaller=SW_PROPERTY_STATE_CALLER_DEFAULT) |
css::beans::PropertyState | GetPropertyState (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const OUString &rPropertyName) |
void | SetPropertyToDefault (SwPaM &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName) |
css::uno::Any | GetPropertyDefault (SwPaM const &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName) |
bool | SetPageDesc (const css::uno::Any &rValue, SwDoc &rDoc, SfxItemSet &rSet) |
void | SetTextFormatColl (const css::uno::Any &rAny, SwPaM &rPaM) |
bool | SetCursorPropertyValue (SfxItemPropertyMapEntry const &rEntry, css::uno::Any const &rValue, SwPaM &rPam, SfxItemSet &rItemSet) |
SW_DLLPUBLIC void | GetSelectableFromAny (css::uno::Reference< css::uno::XInterface > const &xIfc, SwDoc &rTargetDoc, SwPaM *&o_rpPaM, std::pair< OUString, FlyCntType > &o_rFrame, OUString &o_rTableName, SwUnoTableCursor const *&o_rpTableCursor, ::sw::mark::IMark const *&o_rpMark, std::vector< SdrObject * > &o_rSdrObjects) |
try to get something that can be selected out of the XInterface at most one of the out parameters gets assigned a non-null value o_rpPaM is newly allocated and must be deleted; other parameters not More... | |
bool SwUnoCursorHelper::ConvertSortProperties | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rDescriptor, |
SwSortOptions & | rSortOpt | ||
) |
Referenced by SwXTextTable::sort(), SwXCellRange::sort(), and SwXTextCursor::sort().
css::uno::Reference< css::text::XFlatParagraphIterator > SwUnoCursorHelper::CreateFlatParagraphIterator | ( | SwDoc & | rDoc, |
sal_Int32 const | nTextMarkupType, | ||
bool const | bAutomatic | ||
) |
Definition at line 60 of file unoflatpara.cxx.
Referenced by SwXTextDocument::getFlatParagraphIterator().
uno::Sequence< beans::PropertyValue > SwUnoCursorHelper::CreateSortDescriptor | ( | const bool | bFromTable | ) |
Definition at line 2722 of file unoobj.cxx.
References aSeq, GetAppCollator(), getLocale(), and u.
Referenced by SwXTextTable::createSortDescriptor(), SwXCellRange::createSortDescriptor(), and SwXTextCursor::createSortDescriptor().
bool SwUnoCursorHelper::DocInsertStringSplitCR | ( | SwDoc & | rDoc, |
const SwPaM & | rNewCursor, | ||
std::u16string_view | rText, | ||
const bool | bForceExpandHints | ||
) |
Definition at line 1171 of file unocrsrhelper.cxx.
References ch, COMPLETE_STRING, EMPTYEXPAND, FORCEHINTEXPAND, SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwPosition::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), i, IDocumentContentOperations::InsertString(), linguistic::IsControlChar(), SAL_INFO, SAL_WARN, and IDocumentContentOperations::SplitNode().
Referenced by SwXTextCursor::DeleteAndInsert(), SwXTextRange::DeleteAndInsert(), SwXText::insertString(), SwXText::insertTextPortion(), and SetString().
void SwUnoCursorHelper::GetCurPageStyle | ( | SwPaM const & | rPaM, |
OUString & | rString | ||
) |
Definition at line 968 of file unocrsrhelper.cxx.
References SwStyleNameMapper::FillProgName(), SwFrame::FindPageFrame(), IDocumentLayoutAccess::GetCurrentLayout(), SwPaM::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwPageDesc::GetName(), SwPageFrame::GetPageDesc(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), and PageDesc.
Referenced by SwView::ExecColl(), getCursorPropertyValue(), and lcl_SwXParagraph_getPropertyState().
void SwUnoCursorHelper::GetCursorAttr | ( | SwPaM & | rPam, |
SfxItemSet & | rSet, | ||
const bool | bOnlyTextAttr = false , |
||
const bool | bGetFromChrFormat = true |
||
) |
Definition at line 292 of file unoobj2.cxx.
References SfxItemSet::ClearItem(), SfxItemSet::Count(), SwPosition::GetContentIndex(), SwPaM::GetDoc(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwNode::GetNodeType(), SwTextNode::GetParaAttr(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), sw::Ring< value_type >::GetRingContainer(), SwTextNode::GetText(), SwNode::GetTextNode(), Grf, SfxItemSet::InvalidateAllItems(), SfxItemSet::MergeValues(), n, Ole, rSet, and Text.
Referenced by SwAccessibleParagraph::_getRunAttributesImpl(), SwXTextTableCursor::getPropertyValue(), SwXCellRange::getPropertyValue(), SwXTextPortion::GetPropertyValue(), GetPropertyValue(), SwXTextTableCursor::setPropertyValue(), SwXCellRange::setPropertyValue(), and SwXTextCursor::setPropertyValue().
bool SwUnoCursorHelper::getCursorPropertyValue | ( | const SfxItemPropertyMapEntry & | rEntry, |
SwPaM & | rPam, | ||
Any * | pAny, | ||
PropertyState & | eState, | ||
const SwTextNode * | pNode | ||
) |
Definition at line 326 of file unocrsrhelper.cxx.
References ChrFmt, SwpHints::Count(), SwXCell::CreateXCell(), SwXDocumentIndex::CreateXDocumentIndex(), SwXDocumentIndexMark::CreateXDocumentIndexMark(), SwXFootnote::CreateXFootnote(), SwXParagraph::CreateXParagraph(), SwXReferenceMark::CreateXReferenceMark(), SwXTextField::CreateXTextField(), SwXTextFrame::CreateXTextFrame(), sw::Default, SwPaM::End(), eType, SwStyleNameMapper::FillProgName(), SwNode::FindTableNode(), FN_NUMBER_NEWSTART, FN_UNO_CELL, FN_UNO_CHARFMT_SEQUENCE, FN_UNO_DOCUMENT_INDEX, FN_UNO_DOCUMENT_INDEX_MARK, FN_UNO_ENDNOTE, FN_UNO_FOOTNOTE, FN_UNO_IS_NUMBER, FN_UNO_LIST_ID, FN_UNO_NESTED_TEXT_CONTENT, FN_UNO_NUM_LEVEL, FN_UNO_NUM_RULES, FN_UNO_NUM_START_VALUE, FN_UNO_PAGE_STYLE, FN_UNO_PARA_CONDITIONAL_STYLE_NAME, FN_UNO_PARA_CONT_PREV_SUBTREE, FN_UNO_PARA_NUM_AUTO_FORMAT, FN_UNO_PARA_NUM_STRING, FN_UNO_PARA_STYLE, FN_UNO_REFERENCE_MARK, FN_UNO_SORTED_TEXT_ID, FN_UNO_TEXT_FIELD, FN_UNO_TEXT_FRAME, FN_UNO_TEXT_PARAGRAPH, FN_UNO_TEXT_SECTION, FN_UNO_TEXT_TABLE, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), SwpHints::Get(), SwTextNode::GetActualListLevel(), SwContentNode::GetAnyFormatColl(), SwTextNode::GetAttrOutlineLevel(), SwFormatCharFormat::GetCharFormat(), SwTextAttr::GetCharFormat(), SwPosition::GetContentIndex(), GetCurPageStyle(), SwDoc::GetCurrSection(), GetCurTextFormatColl(), SwDoc::GetCurTOX(), SwNode::GetDoc(), SwFormat::GetDoc(), SwPaM::GetDoc(), SwTextAttr::GetEnd(), SwTextNode::GetFieldTextAttrAt(), SwNode::GetFlyFormat(), SwTextAttr::GetFootnote(), SwSection::GetFormat(), SwContentNode::GetFormatColl(), SwTextAttr::GetFormatField(), SwTable::GetFrameFormat(), SwNode::GetIndex(), SwTextNode::GetListId(), SwPaM::GetMarkNode(), SwFormat::GetName(), GetNestedTextContent(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwTextNode::GetNum(), getNumberingProperty(), SwDoc::GetNumRuleAtPos(), SwTextNode::GetNumString(), SwXTextTables::GetObject(), SwXTextSections::GetObject(), GetParaListAutoFormat(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwStyleNameMapper::GetProgName(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), SwStartNode::GetStartNodeType(), SwTableNode::GetTable(), SwNode::GetTableBox(), SwTextNode::GetTextAttrForCharAt(), SwTextNode::GetTextAttrsAt(), SwNode::GetTextNode(), SwNumberTreeNode::IsContinueingPreviousSubTree(), SwTextNode::IsCountedInList(), SwFormatFootnote::IsEndNote(), SwTextNode::IsInList(), SwTextNode::IsListRestart(), IsNodeNumStart(), SwNode::IsNoTextNode(), SwNode::IsTextNode(), nIndex, nValue, SfxItemPropertyMapEntry::nWID, RES_PARATR_OUTLINELEVEL(), RES_TXTATR_CHARFMT(), RES_TXTATR_FTN(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SwPaM::Start(), SwNode::StartOfSectionNode(), SwFlyStartNode, SwTableBoxStartNode, TxtColl, SwTextAttr::Which(), and xFrame.
Referenced by SwXTextPortion::GetPropertyValue(), GetPropertyValue(), SwXParagraph::Impl::GetPropertyValues_Impl(), and SwXParagraph::Impl::GetPropertyValuesTolerant_Impl().
bool SwUnoCursorHelper::getCursorPropertyValue | ( | const SfxItemPropertyMapEntry & | rEntry, |
SwPaM & | rPam, | ||
css::uno::Any * | pAny, | ||
css::beans::PropertyState & | eState, | ||
const SwTextNode * | pNode = nullptr |
||
) |
SwFormatColl * SwUnoCursorHelper::GetCurTextFormatColl | ( | SwPaM & | rPam, |
const bool | bConditional | ||
) |
Definition at line 634 of file unoobj.cxx.
References SwPaM::End(), SwContentNode::GetAnyFormatColl(), SwPaM::GetDoc(), SwContentNode::GetFormatColl(), SwPaM::GetNext(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), n, and SwPaM::Start().
Referenced by SwDocShell::ExecStyleSheet(), getCursorPropertyValue(), SwXTextTableCursor::getPropertyValue(), SwXCellRange::getPropertyValue(), and lcl_SwXParagraph_getPropertyState().
css::uno::Reference< css::text::XTextContent > SwUnoCursorHelper::GetNestedTextContent | ( | SwTextNode const & | rTextNode, |
sal_Int32 const | nIndex, | ||
bool const | bParent | ||
) |
Definition at line 269 of file unocrsrhelper.cxx.
References eMode, sw::Expand, SwTextAttr::GetAttr(), SwFormatMeta::GetMeta(), SwTextAttr::GetStart(), SwTextNode::GetTextAttrAt(), sw::Meta::MakeUnoObject(), nIndex, sw::Parent, RES_TXTATR_META(), and RES_TXTATR_METAFIELD().
Referenced by getCursorPropertyValue(), SwXMeta::getParent(), and SwTextFormatter::WhichTextPor().
void SwUnoCursorHelper::getNumberingProperty | ( | SwPaM & | rPam, |
css::beans::PropertyState & | eState, | ||
css::uno::Any * | pAny | ||
) |
void SwUnoCursorHelper::getNumberingProperty | ( | SwPaM & | rPam, |
PropertyState & | eState, | ||
Any * | pAny | ||
) |
Definition at line 954 of file unocrsrhelper.cxx.
References SwDoc::GetNumRuleAtPos(), and SwPaM::GetPoint().
Referenced by getCursorPropertyValue(), and lcl_SwXParagraph_getPropertyState().
|
static |
Definition at line 298 of file unocrsrhelper.cxx.
References Any, aSwMapProvider, comphelper::containerToSequence(), SfxItemSet::GetItem(), SfxItemPropertyMap::getPropertyEntries(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertyState(), SfxItemPropertySet::getPropertyValue(), SwFormatAutoFormat::GetStyleHandle(), SwContentNode::GetSwAttrSet(), PROPERTY_MAP_CHAR_AUTO_STYLE, props, RES_PARATR_LIST_AUTOFMT(), and value.
Referenced by getCursorPropertyValue().
uno::Any SwUnoCursorHelper::GetPropertyDefault | ( | SwPaM const & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
std::u16string_view | rPropertyName | ||
) |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Definition at line 2186 of file unoobj.cxx.
References SwDoc::GetAttrPool(), SfxItemPropertyMap::getByName(), SfxItemPool::GetDefaultItem(), SwPaM::GetDoc(), SfxItemPropertySet::getPropertyMap(), SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, SfxPoolItem::QueryValue(), and RES_FRMATR_END().
Referenced by SwXTextPortion::getPropertyDefault(), SwXTextViewCursor::getPropertyDefault(), and SwXTextRange::getPropertyDefault().
beans::PropertyState SwUnoCursorHelper::GetPropertyState | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
const OUString & | rPropertyName | ||
) |
css::beans::UnknownPropertyException | |
css::uno::RuntimeException |
Definition at line 2114 of file unoobj.cxx.
References aSeq, GetPropertyStates(), and SW_PROPERTY_STATE_CALLER_SINGLE_VALUE_ONLY.
Referenced by SwXTextPortion::getPropertyState(), SwXTextViewCursor::getPropertyState(), SwXTextCursor::getPropertyState(), and SwXTextRange::getPropertyState().
css::uno::Sequence< css::beans::PropertyState > SwUnoCursorHelper::GetPropertyStates | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
const css::uno::Sequence< OUString > & | rPropertyNames, | ||
const SwGetPropertyStatesCaller | eCaller = SW_PROPERTY_STATE_CALLER_DEFAULT |
||
) |
css::beans::UnknownPropertyException | |
css::uno::RuntimeException |
Referenced by GetPropertyState(), SwXTextPortion::getPropertyStates(), SwXTextViewCursor::getPropertyStates(), SwXTextCursor::getPropertyStates(), SwXTextRange::getPropertyStates(), and SwXTextPortion::GetPropertyValuesTolerant_Impl().
uno::Any SwUnoCursorHelper::GetPropertyValue | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
std::u16string_view | rPropertyName | ||
) |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Definition at line 1853 of file unoobj.cxx.
References SwDoc::GetAttrPool(), SfxItemPropertyMap::getByName(), GetCursorAttr(), getCursorPropertyValue(), SwPaM::GetDoc(), SfxItemPropertySet::getPropertyMap(), SfxItemPropertySet::getPropertyValue(), RES_CHRATR_BEGIN(), RES_FRMATR_END(), and RES_UNKNOWNATR_CONTAINER().
Referenced by SwXTextViewCursor::getPropertyValue(), SwXTextCursor::getPropertyValue(), and SwXTextRange::getPropertyValue().
SW_DLLPUBLIC void SwUnoCursorHelper::GetSelectableFromAny | ( | css::uno::Reference< css::uno::XInterface > const & | xIfc, |
SwDoc & | rTargetDoc, | ||
SwPaM *& | o_rpPaM, | ||
std::pair< OUString, FlyCntType > & | o_rFrame, | ||
OUString & | o_rTableName, | ||
SwUnoTableCursor const *& | o_rpTableCursor, | ||
::sw::mark::IMark const *& | o_rpMark, | ||
std::vector< SdrObject * > & | o_rSdrObjects | ||
) |
try to get something that can be selected out of the XInterface at most one of the out parameters gets assigned a non-null value o_rpPaM is newly allocated and must be deleted; other parameters not
void SwUnoCursorHelper::GetSelectableFromAny | ( | uno::Reference< uno::XInterface > const & | xIfc, |
SwDoc & | rTargetDoc, | ||
SwPaM *& | o_rpPaM, | ||
std::pair< OUString, FlyCntType > & | o_rFrame, | ||
OUString & | o_rTableName, | ||
SwUnoTableCursor const *& | o_rpTableCursor, | ||
::sw::mark::IMark const *& | o_rpMark, | ||
std::vector< SdrObject * > & | o_rSdrObjects | ||
) |
Definition at line 114 of file unocrsrhelper.cxx.
References SwXCell::FindBox(), SwTable::FindTable(), fnMoveForward, SwXShape::GetAggregationInterface(), SwXBookmark::GetBookmarkInDoc(), SwXTextRanges::GetCursor(), SwFormat::GetDoc(), SwPaM::GetDoc(), SwXTextTable::GetFrameFormat(), SwXCell::GetFrameFormat(), SwFormat::GetName(), SvxShape::GetSdrObject(), SwTableBox::GetSttNd(), SwXCell::GetTableBox(), SwXCellRange::GetTableCursor(), GoInNode(), i, lcl_createPamCopy(), SwPaM::Move(), and sw::XTextRangeToSwPaM().
Referenced by SwXTextView::select().
void SwUnoCursorHelper::GetTextFromPam | ( | SwPaM & | rPam, |
OUString & | rBuffer, | ||
SwRootFrame const * | pLayout = nullptr |
||
) |
Definition at line 135 of file unoobj.cxx.
References FILTER_TEXT_DLG, g_bNoInterrupt, SvMemoryStream::GetSize(), SwReaderWriter::GetWriter(), SwPaM::HasMark(), tools::SvRef< typename T >::is(), ErrCode::IsError(), SwRootFrame::IsHideRedlines(), o3tl::make_unsigned(), SvStream::ReadBytes(), SvMemoryStream::ResetError(), SAL_MAX_INT32, SvStream::Seek(), SwAsciiOptions::SetCharSet(), SvStream::SetEndian(), SwWriter::Write(), and SvStream::WriteUInt16().
Referenced by SwEditShell::DeleteExtTextInput(), SwXParagraph::getString(), SwXTextCursor::getString(), SwXTextRange::getString(), and SwXTextViewCursor::getString().
void SwUnoCursorHelper::InsertFile | ( | SwUnoCursor * | pUnoCursor, |
const OUString & | rURL, | ||
const css::uno::Sequence< css::beans::PropertyValue > & | rOptions | ||
) |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::uno::RuntimeException |
void SwUnoCursorHelper::InsertFile | ( | SwUnoCursor * | pUnoCursor, |
const OUString & | rURL, | ||
const uno::Sequence< beans::PropertyValue > & | rOptions | ||
) |
Definition at line 1027 of file unocrsrhelper.cxx.
References SwPosition::Assign(), IDocumentContentOperations::DeleteAndJoin(), FN_API_CALL, SwPosition::GetContentIndex(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetFactory(), SfxFilterContainer::GetFilter4FilterName(), SfxObjectFactory::GetFilterContainer(), SwDoc::getIDocumentContentOperations(), SwPaM::GetMark(), SfxFilterContainer::GetName(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPaM::GetPoint(), comphelper::OStorageHelper::GetStorageFactory(), SwNode::GetTextNode(), SfxFilterMatcher::GuessFilter(), SwPaM::HasMark(), tools::SvRef< typename T >::is(), sw::Parent, utl::MediaDescriptor::PROP_DOCUMENTBASEURL, utl::MediaDescriptor::PROP_FILENAME, utl::MediaDescriptor::PROP_FILTERNAME, utl::MediaDescriptor::PROP_FILTEROPTIONS, utl::MediaDescriptor::PROP_INPUTSTREAM, utl::MediaDescriptor::PROP_PASSWORD, utl::MediaDescriptor::PROP_STREAM, utl::MediaDescriptor::PROP_URL, SfxItemSet::Put(), RES_TXTATR_CONTENTCONTROL(), RES_TXTATR_INPUTFIELD(), rSet, SwPosition::SetContent(), SwPaM::SetMark(), SwDocShell::StartConvertFrom(), and xStream.
Referenced by SwXTextCursor::insertDocumentFromURL().
|
inline |
Definition at line 90 of file unocrsrhelper.hxx.
References SwPosition::GetContentIndex(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), and SwContentNode::Len().
Referenced by SwXTextCursor::gotoEndOfParagraph(), SwXTextCursor::gotoEndOfSentence(), SwXTextCursor::isEndOfParagraph(), lcl_SelectParaAndReset(), and SwXParagraph::setPropertyToDefault().
sal_Int16 SwUnoCursorHelper::IsNodeNumStart | ( | SwPaM const & | rPam, |
css::beans::PropertyState & | eState | ||
) |
sal_Int16 SwUnoCursorHelper::IsNodeNumStart | ( | SwPaM const & | rPam, |
PropertyState & | eState | ||
) |
Definition at line 813 of file unocrsrhelper.cxx.
References SwTextNode::GetAttrListRestartValue(), SwTextNode::GetNumRule(), SwPaM::GetPointNode(), SwNode::GetTextNode(), SwTextNode::HasAttrListRestartValue(), and SwTextNode::IsListRestart().
Referenced by getCursorPropertyValue().
|
inline |
Definition at line 88 of file unocrsrhelper.hxx.
References SwPosition::GetContentIndex(), and SwPaM::GetPoint().
Referenced by SwXTextCursor::gotoStartOfParagraph(), SwXTextCursor::gotoStartOfSentence(), SwXTextCursor::isStartOfParagraph(), lcl_SelectParaAndReset(), SwXParagraph::setPropertyToDefault(), and SwXParagraph::setString().
Definition at line 107 of file unocrsrhelper.cxx.
References sw::DeepCopyPaM(), and SwPaM::GetPoint().
Referenced by GetSelectableFromAny().
void SwUnoCursorHelper::makeRedline | ( | SwPaM const & | rPaM, |
std::u16string_view | RedlineType, | ||
const css::uno::Sequence< css::beans::PropertyValue > & | RedlineProperties | ||
) |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
void SwUnoCursorHelper::makeRedline | ( | SwPaM const & | rPaM, |
std::u16string_view | rRedlineType, | ||
const uno::Sequence< beans::PropertyValue > & | rRedlineProperties | ||
) |
Definition at line 1243 of file unocrsrhelper.cxx.
References aEntries, IDocumentRedlineAccess::AppendRedline(), aSwMapProvider, WhichRangesContainer::empty(), eType, SwStyleNameMapper::FillUIName(), SwDoc::FindNumRulePtr(), SwDoc::GetAttrPool(), SfxItemPropertyMap::getByName(), SwPaM::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), IDocumentRedlineAccess::GetRedlineFlags(), i, IDocumentRedlineAccess::IGNORED, IDocumentRedlineAccess::InsertRedlineAuthor(), WhichRangesContainer::MergeRange(), SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nWID, On, PROPERTY_MAP_PARAGRAPH, PROPERTY_MAP_TEXTPORTION_EXTENSIONS, SfxItemSet::Put(), RES_PARATR_NUMRULE(), RES_POOLCOLL_STANDARD, result, SwRedlineData::SetComment(), SwRangeRedline::SetExtraData(), SwRangeRedline::SetMoved(), SfxItemPropertySet::setPropertyValue(), IDocumentRedlineAccess::SetRedlineFlags_intern(), SwRedlineData::SetTimeStamp(), SwNumRule::SetUsedByRedline(), TxtColl, and u.
Referenced by SwXTextCursor::makeRedline(), SwXTextRange::makeRedline(), makeTableCellRedline(), and makeTableRowRedline().
SW_DLLPUBLIC void SwUnoCursorHelper::makeTableCellRedline | ( | SwTableBox & | rTableBox, |
std::u16string_view | RedlineType, | ||
const css::uno::Sequence< css::beans::PropertyValue > & | RedlineProperties | ||
) |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
void SwUnoCursorHelper::makeTableCellRedline | ( | SwTableBox & | rTableBox, |
std::u16string_view | rRedlineType, | ||
const uno::Sequence< beans::PropertyValue > & | rRedlineProperties | ||
) |
Definition at line 1496 of file unocrsrhelper.cxx.
References IDocumentRedlineAccess::AppendTableCellRedline(), CH_TXT_TRACKED_DUMMY_CHAR, eType, SwFormat::GetAttrSet(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SfxItemSet::GetItem(), SwPaM::GetMark(), IDocumentRedlineAccess::GetRedlineFlags(), SwTableBox::GetSttNd(), comphelper::SequenceAsHashMap::getValue(), IDocumentRedlineAccess::InsertRedlineAuthor(), IDocumentContentOperations::InsertString(), SwTableBox::IsEmpty(), makeRedline(), On, RES_PRINT(), SwDoc::SetBoxAttr(), SwRedlineData::SetComment(), SwPosition::SetContent(), SwTableCellRedline::SetExtraData(), SwPaM::SetMark(), IDocumentRedlineAccess::SetRedlineFlags_intern(), SwRedlineData::SetTimeStamp(), and u.
Referenced by SwXCell::setPropertyValue().
void SwUnoCursorHelper::makeTableRowRedline | ( | SwTableLine & | rTableLine, |
std::u16string_view | RedlineType, | ||
const css::uno::Sequence< css::beans::PropertyValue > & | RedlineProperties | ||
) |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
void SwUnoCursorHelper::makeTableRowRedline | ( | SwTableLine & | rTableLine, |
std::u16string_view | rRedlineType, | ||
const uno::Sequence< beans::PropertyValue > & | rRedlineProperties | ||
) |
Definition at line 1421 of file unocrsrhelper.cxx.
References IDocumentRedlineAccess::AppendTableRowRedline(), CH_TXT_TRACKED_DUMMY_CHAR, eType, SwFormat::GetAttrSet(), SwFormat::GetDoc(), SwTableLine::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SfxItemSet::GetItem(), SwPaM::GetMark(), IDocumentRedlineAccess::GetRedlineFlags(), SwTableLine::GetTabBoxes(), comphelper::SequenceAsHashMap::getValue(), IDocumentRedlineAccess::InsertRedlineAuthor(), IDocumentContentOperations::InsertString(), SwTableLine::IsEmpty(), makeRedline(), On, RES_PRINT(), SwRedlineData::SetComment(), SwPosition::SetContent(), SwTableRowRedline::SetExtraData(), SwPaM::SetMark(), IDocumentRedlineAccess::SetRedlineFlags_intern(), SwDoc::SetRowNotTracked(), SwRedlineData::SetTimeStamp(), and u.
Referenced by SwXTextTableRow::setPropertyValue().
void SwUnoCursorHelper::resetCursorPropertyValue | ( | const SfxItemPropertyMapEntry & | rEntry, |
SwPaM & | rPam | ||
) |
Definition at line 988 of file unocrsrhelper.cxx.
References SwPamRanges::Count(), END, FN_UNO_CHARFMT_SEQUENCE, FN_UNO_NUM_LEVEL, FN_UNO_NUM_RULES, FN_UNO_NUM_START_VALUE, FN_UNO_PAGE_STYLE, FN_UNO_PARA_STYLE, SwPaM::GetDoc(), SwDoc::GetIDocumentUndoRedo(), SwPaM::GetNext(), SwPaM::GetPoint(), n, SfxItemPropertyMapEntry::nWID, RES_TXTATR_CHARFMT(), SwDoc::ResetAttrs(), SwDoc::SetNodeNumStart(), SwPamRanges::SetPam(), and START.
Referenced by SwXTextCursor::setPropertiesToDefault(), SwXParagraph::setPropertyToDefault(), and SetPropertyToDefault().
void SwUnoCursorHelper::SelectPam | ( | SwPaM & | rPam, |
const bool | bExpand | ||
) |
Definition at line 120 of file unoobj.cxx.
References SwPaM::DeleteMark(), SwPaM::HasMark(), and SwPaM::SetMark().
Referenced by SwXTextCursor::DeleteAndInsert(), SwXTextRange::DeleteAndInsert(), SwXTextCursor::goLeft(), SwXTextCursor::goRight(), SwXTextCursor::gotoEnd(), SwXTextCursor::gotoEndOfParagraph(), SwXTextCursor::gotoEndOfSentence(), SwXTextCursor::gotoEndOfWord(), SwXTextCursor::gotoNextParagraph(), SwXTextCursor::gotoNextSentence(), SwXTextCursor::gotoNextWord(), SwXTextCursor::gotoPreviousParagraph(), SwXTextCursor::gotoPreviousSentence(), SwXTextCursor::gotoPreviousWord(), SwXTextCursor::gotoStart(), SwXTextCursor::gotoStartOfParagraph(), SwXTextCursor::gotoStartOfSentence(), SwXTextCursor::gotoStartOfWord(), SwXText::insertControlCharacter(), SwXText::insertTextPortion(), lcl_CreatePortions(), lcl_SelectParaAndReset(), SwXParagraph::setPropertyToDefault(), SwXParagraph::setString(), and SetString().
void SwUnoCursorHelper::SetCursorAttr | ( | SwPaM & | rPam, |
const SfxItemSet & | rSet, | ||
const SetAttrMode | nAttrMode, | ||
const bool | bTableMode = false |
||
) |
bTableMode | attributes should be applied to a table selection |
Definition at line 250 of file unoobj2.cxx.
References APICALL, SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SfxItemSet::GetItemState(), SwPaM::GetNext(), SwDoc::GetNodes(), SwPaM::GetPointNode(), sw::Ring< value_type >::GetRingContainer(), SwNode::GetTextNode(), INSATTR, IDocumentContentOperations::InsertItemSet(), RES_PARATR_OUTLINELEVEL(), rSet, and SwNodes::UpdateOutlineNode().
Referenced by lcl_setCharFormatSequence(), SwXTextTableCursor::setPropertyValue(), SwXCellRange::setPropertyValue(), and SwXTextCursor::setPropertyValue().
bool SwUnoCursorHelper::SetCursorPropertyValue | ( | SfxItemPropertyMapEntry const & | rEntry, |
css::uno::Any const & | rValue, | ||
SwPaM & | rPam, | ||
SfxItemSet & | rItemSet | ||
) |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException | |
css::uno::DeploymentException |
Referenced by SwXTextTableCursor::setPropertyValue(), and SwXCellRange::setPropertyValue().
void SwUnoCursorHelper::setNumberingProperty | ( | const Any & | rValue, |
SwPaM & | rPam | ||
) |
Definition at line 829 of file unocrsrhelper.cxx.
References SwPamRanges::Count(), SwDoc::DelNumRules(), END, SfxStyleSheetBasePool::Find(), SwDoc::FindNumRulePtr(), FontList::Get(), SwNumRule::Get(), SvxNumberFormat::GetBulletFont(), SwNumFormat::GetCharFormat(), SwDoc::GetCharFormats(), SwPaM::GetDoc(), SwDoc::GetDocShell(), SvxFontListItem::GetFontList(), SwDoc::GetIDocumentUndoRedo(), SfxShell::GetItem(), SwFormat::GetName(), SwPaM::GetNext(), SwDoc::GetOutlineNumRule(), SwPaM::GetPoint(), SwDocShell::GetStyleSheetPool(), i, SwXNumberingRules::isInvalidStyle(), ITALIC_NONE, SfxStyleSheetBasePool::Make(), MAXLEVEL, n, SwNumRule::Set(), SvxNumberFormat::SetBulletFont(), SwNumFormat::SetCharFormat(), SwDoc::SetNumRule(), SwPamRanges::SetPam(), SwCharFormats::size(), START, and WEIGHT_NORMAL.
void SwUnoCursorHelper::setNumberingProperty | ( | const css::uno::Any & | rValue, |
SwPaM & | rPam | ||
) |
bool SwUnoCursorHelper::SetPageDesc | ( | const css::uno::Any & | rValue, |
SwDoc & | rDoc, | ||
SfxItemSet & | rSet | ||
) |
Referenced by SwXTextDefaults::setPropertyValue().
void SwUnoCursorHelper::SetPropertyToDefault | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
std::u16string_view | rPropertyName | ||
) |
css::beans::UnknownPropertyException | |
css::uno::RuntimeException |
Definition at line 2147 of file unoobj.cxx.
References SfxItemPropertyMap::getByName(), SwPaM::GetDoc(), SfxItemPropertySet::getPropertyMap(), lcl_SelectParaAndReset(), SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nWID, RES_FRMATR_END(), RES_PARATR_BEGIN(), SwDoc::ResetAttrs(), and resetCursorPropertyValue().
Referenced by SwXTextPortion::setPropertyToDefault(), SwXTextViewCursor::setPropertyToDefault(), and SwXTextRange::setPropertyToDefault().
void SwUnoCursorHelper::SetPropertyValue | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
const OUString & | rPropertyName, | ||
const css::uno::Any & | rValue, | ||
const SetAttrMode | nAttrMode = SetAttrMode::DEFAULT |
||
) |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Referenced by SwXText::Impl::finishOrAppendParagraph(), SwXTextPortion::setPropertyValue(), SwXTextViewCursor::setPropertyValue(), SwXTextCursor::setPropertyValue(), SwXTextRange::setPropertyValue(), SwXTextPortion::setPropertyValuesTolerant(), and SwXParagraph::setPropertyValuesTolerant().
void SwUnoCursorHelper::SetPropertyValues | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
const css::uno::Sequence< css::beans::PropertyValue > & | rPropertyValues, | ||
const SetAttrMode | nAttrMode = SetAttrMode::DEFAULT |
||
) |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Referenced by SwXText::Impl::finishOrAppendParagraph(), SwXText::insertTextPortion(), SwXTextCursor::setPropertyValues(), and SwXTextPortion::SetPropertyValues_Impl().
void SwUnoCursorHelper::SetPropertyValues | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
o3tl::span< const css::beans::PropertyValue > | aPropertyValues, | ||
const SetAttrMode | nAttrMode = SetAttrMode::DEFAULT |
||
) |
void SwUnoCursorHelper::SetString | ( | SwCursor & | rCursor, |
std::u16string_view | aString | ||
) |
Definition at line 1647 of file unoobj2.cxx.
References IDocumentContentOperations::DeleteAndJoin(), DocInsertStringSplitCR(), SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwPaM::HasMark(), INSERT, SwCursor::Left(), and SelectPam().
Referenced by SwXTextPortion::setString(), SwXTextViewCursor::setString(), and SwXParagraph::setString().
void SwUnoCursorHelper::SetTextFormatColl | ( | const css::uno::Any & | rAny, |
SwPaM & | rPaM | ||
) |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Referenced by SwXTextTableCursor::setPropertyValue().