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 SfxItemPropertySimpleEntry &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 SfxItemPropertySimpleEntry &rEntry, SwPaM &rPam) |
void | InsertFile (SwUnoCursor *pUnoCursor, const OUString &rURL, const uno::Sequence< beans::PropertyValue > &rOptions) |
bool | DocInsertStringSplitCR (SwDoc &rDoc, const SwPaM &rNewCursor, const OUString &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 SfxItemPropertySimpleEntry &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, const OUString &rString) |
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) |
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 (SfxItemPropertySimpleEntry 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 SwXTextCursor::sort(), SwXTextTable::sort(), and SwXCellRange::sort().
css::uno::Reference< css::text::XFlatParagraphIterator > SwUnoCursorHelper::CreateFlatParagraphIterator | ( | SwDoc & | rDoc, |
sal_Int32 const | nTextMarkupType, | ||
bool const | bAutomatic | ||
) |
Definition at line 59 of file unoflatpara.cxx.
Referenced by SwXTextDocument::getFlatParagraphIterator().
uno::Sequence< beans::PropertyValue > SwUnoCursorHelper::CreateSortDescriptor | ( | const bool | bFromTable | ) |
Definition at line 2512 of file unoobj.cxx.
References aSeq, GetAppCollator(), getLocale(), and u.
Referenced by SwXTextCursor::createSortDescriptor(), SwXTextTable::createSortDescriptor(), and SwXCellRange::createSortDescriptor().
bool SwUnoCursorHelper::DocInsertStringSplitCR | ( | SwDoc & | rDoc, |
const SwPaM & | rNewCursor, | ||
const OUString & | rText, | ||
const bool | bForceExpandHints | ||
) |
Definition at line 1154 of file unocrsrhelper.cxx.
References ch, COMPLETE_STRING, EMPTYEXPAND, FORCEHINTEXPAND, SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwNode::GetTextNode(), i, IDocumentContentOperations::InsertString(), linguistic::IsControlChar(), SwPosition::nNode, SAL_INFO, SAL_WARN, and IDocumentContentOperations::SplitNode().
Referenced by SwXTextCursor::DeleteAndInsert(), SwXTextRange::DeleteAndInsert(), SwXText::insertString(), SwXText::insertTextPortion(), and SetString().
Definition at line 966 of file unocrsrhelper.cxx.
References SwStyleNameMapper::FillProgName(), SwFrame::FindPageFrame(), SwPaM::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwPaM::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwPageDesc::GetName(), SwPageFrame::GetPageDesc(), SwPaM::GetPoint(), and PageDesc.
Referenced by getCursorPropertyValue(), and lcl_SwXParagraph_getPropertyState().
void SwUnoCursorHelper::GetCursorAttr | ( | SwPaM & | rPam, |
SfxItemSet & | rSet, | ||
const bool | bOnlyTextAttr = false , |
||
const bool | bGetFromChrFormat = true |
||
) |
Definition at line 296 of file unoobj2.cxx.
References SfxItemSet::ClearItem(), SwPaM::GetDoc(), SwNodeIndex::GetIndex(), 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, SwPosition::nNode, Ole, and Text.
Referenced by SwAccessibleParagraph::_getRunAttributesImpl(), SwXTextPortion::GetPropertyValue(), GetPropertyValue(), SwXTextTableCursor::getPropertyValue(), SwXCellRange::getPropertyValue(), SwXTextTableCursor::setPropertyValue(), and SwXCellRange::setPropertyValue().
bool SwUnoCursorHelper::getCursorPropertyValue | ( | const SfxItemPropertySimpleEntry & | rEntry, |
SwPaM & | rPam, | ||
css::uno::Any * | pAny, | ||
css::beans::PropertyState & | eState, | ||
const SwTextNode * | pNode = nullptr |
||
) |
bool SwUnoCursorHelper::getCursorPropertyValue | ( | const SfxItemPropertySimpleEntry & | rEntry, |
SwPaM & | rPam, | ||
Any * | pAny, | ||
PropertyState & | eState, | ||
const SwTextNode * | pNode | ||
) |
Definition at line 333 of file unocrsrhelper.cxx.
References assert(), ChrFmt, SwpHints::Count(), SwXCell::CreateXCell(), SwXDocumentIndex::CreateXDocumentIndex(), SwXDocumentIndexMark::CreateXDocumentIndexMark(), SwXFootnote::CreateXFootnote(), SwXParagraph::CreateXParagraph(), SwXReferenceMark::CreateXReferenceMark(), SwXTextField::CreateXTextField(), SwXTextFrame::CreateXTextFrame(), 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_TEXT_FIELD, FN_UNO_TEXT_FRAME, FN_UNO_TEXT_PARAGRAPH, FN_UNO_TEXT_SECTION, FN_UNO_TEXT_TABLE, SwpHints::Get(), SwTextNode::GetActualListLevel(), SwContentNode::GetAnyFormatColl(), SwTextNode::GetAttrOutlineLevel(), SwFormatCharFormat::GetCharFormat(), SwTextAttr::GetCharFormat(), GetCurPageStyle(), SwDoc::GetCurrSection(), GetCurTextFormatColl(), SwDoc::GetCurTOX(), SwFormat::GetDoc(), SwNode::GetDoc(), SwPaM::GetDoc(), SwTextAttr::GetEnd(), SwTextNode::GetFieldTextAttrAt(), SwNode::GetFlyFormat(), SwTextAttr::GetFootnote(), SwSection::GetFormat(), SwContentNode::GetFormatColl(), SwTextAttr::GetFormatField(), SwTable::GetFrameFormat(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwTextNode::GetListId(), SwPaM::GetMark(), SwFormat::GetName(), GetNestedTextContent(), SwNodeIndex::GetNode(), SwPaM::GetNode(), SwDoc::GetNodes(), SwTextNode::GetNum(), getNumberingProperty(), SwDoc::GetNumRuleAtPos(), SwTextNode::GetNumString(), SwXTextTables::GetObject(), SwXTextSections::GetObject(), GetParaListAutoFormat(), SwPaM::GetPoint(), 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::IsTextNode(), SwPosition::nContent, SwPosition::nNode, nValue, SfxItemPropertySimpleEntry::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().
SwFormatColl * SwUnoCursorHelper::GetCurTextFormatColl | ( | SwPaM & | rPam, |
const bool | bConditional | ||
) |
Definition at line 616 of file unoobj.cxx.
References SwPaM::End(), SwContentNode::GetAnyFormatColl(), SwPaM::GetDoc(), SwContentNode::GetFormatColl(), SwNodeIndex::GetIndex(), SwPaM::GetNext(), SwDoc::GetNodes(), n, SwPosition::nNode, and SwPaM::Start().
Referenced by getCursorPropertyValue(), SwXTextTableCursor::getPropertyValue(), SwXCellRange::getPropertyValue(), lcl_SwXParagraph_getPropertyState(), SwWrtShell::NumOrBulletOn(), and SwWrtShell::QuickUpdateStyle().
css::uno::Reference< css::text::XTextContent > SwUnoCursorHelper::GetNestedTextContent | ( | SwTextNode const & | rTextNode, |
sal_Int32 const | nIndex, | ||
bool const | bParent | ||
) |
Definition at line 278 of file unocrsrhelper.cxx.
References assert(), eMode, SwTextNode::EXPAND, SwTextAttr::GetAttr(), SwTextAttr::GetStart(), SwTextNode::GetTextAttrAt(), SwTextNode::PARENT, RES_TXTATR_META(), and RES_TXTATR_METAFIELD().
Referenced by getCursorPropertyValue(), and SwXMeta::getParent().
void SwUnoCursorHelper::getNumberingProperty | ( | SwPaM & | rPam, |
css::beans::PropertyState & | eState, | ||
css::uno::Any * | pAny | ||
) |
Definition at line 952 of file unocrsrhelper.cxx.
References SwDoc::GetNumRuleAtPos(), and SwPaM::GetPoint().
Referenced by getCursorPropertyValue(), and lcl_SwXParagraph_getPropertyState().
|
static |
Definition at line 307 of file unocrsrhelper.cxx.
References Any, aSwMapProvider, comphelper::containerToSequence(), SfxItemSet::GetItem(), SwUnoPropertyMapProvider::GetPropertySet(), 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 2044 of file unoobj.cxx.
References SwDoc::GetAttrPool(), SfxItemPropertyMap::getByName(), SfxItemPool::GetDefaultItem(), SwPaM::GetDoc(), SfxItemPropertySet::getPropertyMap(), SfxItemPropertySimpleEntry::nMemberId, SfxItemPropertySimpleEntry::nWID, SfxPoolItem::QueryValue(), and RES_FRMATR_END().
Referenced by SwXTextRange::getPropertyDefault(), SwXTextPortion::getPropertyDefault(), and SwXTextViewCursor::getPropertyDefault().
beans::PropertyState SwUnoCursorHelper::GetPropertyState | ( | SwPaM & | rPaM, |
const SfxItemPropertySet & | rPropSet, | ||
const OUString & | rPropertyName | ||
) |
css::beans::UnknownPropertyException | |
css::uno::RuntimeException |
Definition at line 1972 of file unoobj.cxx.
References aSeq, GetPropertyStates(), and SW_PROPERTY_STATE_CALLER_SINGLE_VALUE_ONLY.
Referenced by SwXTextCursor::getPropertyState(), SwXTextRange::getPropertyState(), SwXTextPortion::getPropertyState(), and SwXTextViewCursor::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(), SwXTextCursor::getPropertyStates(), SwXTextRange::getPropertyStates(), SwXTextPortion::getPropertyStates(), SwXTextViewCursor::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 1724 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 SwXTextCursor::getPropertyValue(), SwXTextRange::getPropertyValue(), and SwXTextViewCursor::getPropertyValue().
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 113 of file unocrsrhelper.cxx.
References SwXCell::FindBox(), SwTable::FindTable(), fnMoveForward, SwXShape::GetAggregationInterface(), SwXBookmark::GetBookmarkInDoc(), SwXTextRanges::GetCursor(), OTextCursorHelper::GetDoc(), SwPaM::GetDoc(), SwXFrame::GetFlyCntType(), SwXCell::GetFrameFormat(), SwXFrame::GetFrameFormat(), SwXTextTable::GetFrameFormat(), SwFormat::GetName(), OTextCursorHelper::GetPaM(), SvxShape::GetSdrObject(), SwTableBox::GetSttNd(), SwXCell::GetTableBox(), SwXCellRange::GetTableCursor(), GoInNode(), i, lcl_createPamCopy(), and sw::XTextRangeToSwPaM().
Referenced by SwXTextView::select().
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::GetTextFromPam | ( | SwPaM & | rPam, |
OUString & | rBuffer, | ||
SwRootFrame const * | pLayout = nullptr |
||
) |
Definition at line 126 of file unoobj.cxx.
References FILTER_TEXT_DLG, SvMemoryStream::GetSize(), SwReaderWriter::GetWriter(), SwPaM::HasMark(), tools::SvRef< 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(), SwXTextViewCursor::getString(), SwXTextRange::getString(), SwXParagraph::getString(), and SwXTextCursor::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 1025 of file unocrsrhelper.cxx.
References SwIndex::Assign(), IDocumentContentOperations::DeleteAndJoin(), FN_API_CALL, SwNode::GetContentNode(), SwPaM::GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetFactory(), SfxFilterContainer::GetFilter4FilterName(), SfxObjectFactory::GetFilterContainer(), SwDoc::getIDocumentContentOperations(), SwIndex::GetIndex(), SwPaM::GetMark(), SfxFilterContainer::GetName(), SwPaM::GetPoint(), comphelper::OStorageHelper::GetStorageFactory(), SwPaM::HasMark(), tools::SvRef< T >::is(), SwPosition::nContent, SwPosition::nNode, 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(), SwPaM::SetMark(), SwDocShell::StartConvertFrom(), and xStream.
Referenced by SwXTextCursor::insertDocumentFromURL().
|
inline |
Definition at line 90 of file unocrsrhelper.hxx.
References SwPaM::GetContentNode(), SwPaM::GetPoint(), SwContentNode::Len(), and SwPosition::nContent.
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 811 of file unocrsrhelper.cxx.
References SwTextNode::GetAttrListRestartValue(), SwPaM::GetNode(), SwTextNode::GetNumRule(), SwNode::GetTextNode(), SwTextNode::HasAttrListRestartValue(), and SwTextNode::IsListRestart().
Referenced by getCursorPropertyValue().
|
inline |
Definition at line 88 of file unocrsrhelper.hxx.
References SwPaM::GetPoint(), and SwPosition::nContent.
Referenced by SwXTextCursor::gotoStartOfParagraph(), SwXTextCursor::gotoStartOfSentence(), SwXTextCursor::isStartOfParagraph(), lcl_SelectParaAndReset(), SwXParagraph::setPropertyToDefault(), and SwXParagraph::setString().
Definition at line 106 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 1226 of file unocrsrhelper.cxx.
References aEntries, IDocumentRedlineAccess::AppendRedline(), aSwMapProvider, eType, SwDoc::FindNumRulePtr(), SwDoc::GetAttrPool(), SfxItemPropertyMap::getByName(), SwPaM::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), IDocumentRedlineAccess::GetRedlineFlags(), comphelper::SequenceAsHashMap::getValue(), i, IDocumentRedlineAccess::IGNORED, IDocumentRedlineAccess::InsertRedlineAuthor(), SfxItemPropertySimpleEntry::nFlags, SfxItemPropertySimpleEntry::nWID, On, PROPERTY_MAP_PARAGRAPH, PROPERTY_MAP_TEXTPORTION_EXTENSIONS, RES_PARATR_NUMRULE(), RES_POOLCOLL_STANDARD, result, rValue, SwRedlineData::SetComment(), SwRangeRedline::SetExtraData(), SfxItemPropertySet::setPropertyValue(), IDocumentRedlineAccess::SetRedlineFlags_intern(), SwRedlineData::SetTimeStamp(), SwNumRule::SetUsedByRedline(), u, and USHRT_MAX.
Referenced by SwXTextRange::makeRedline(), and SwXTextCursor::makeRedline().
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 1434 of file unocrsrhelper.cxx.
References IDocumentRedlineAccess::AppendTableCellRedline(), eType, SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineFlags(), comphelper::SequenceAsHashMap::getValue(), IDocumentRedlineAccess::InsertRedlineAuthor(), On, SwRedlineData::SetComment(), SwTableCellRedline::SetExtraData(), 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 1385 of file unocrsrhelper.cxx.
References IDocumentRedlineAccess::AppendTableRowRedline(), eType, SwFormat::GetDoc(), SwTableLine::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineFlags(), comphelper::SequenceAsHashMap::getValue(), IDocumentRedlineAccess::InsertRedlineAuthor(), On, SwRedlineData::SetComment(), SwTableRowRedline::SetExtraData(), IDocumentRedlineAccess::SetRedlineFlags_intern(), SwRedlineData::SetTimeStamp(), and u.
Referenced by SwXTextTableRow::setPropertyValue().
void SwUnoCursorHelper::resetCursorPropertyValue | ( | const SfxItemPropertySimpleEntry & | rEntry, |
SwPaM & | rPam | ||
) |
Definition at line 986 of file unocrsrhelper.cxx.
References SwPamRanges::Count(), END, IDocumentUndoRedo::EndUndo(), 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, SfxItemPropertySimpleEntry::nWID, RES_TXTATR_CHARFMT(), SwDoc::ResetAttrs(), SwDoc::SetNodeNumStart(), SwPamRanges::SetPam(), START, and IDocumentUndoRedo::StartUndo().
Referenced by SwXTextCursor::setPropertiesToDefault(), SwXParagraph::setPropertyToDefault(), and SetPropertyToDefault().
Definition at line 111 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(), SetString(), and SwXParagraph::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 254 of file unoobj2.cxx.
References APICALL, IDocumentUndoRedo::EndUndo(), SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SfxItemSet::GetItemState(), SwPaM::GetNext(), SwPaM::GetNode(), SwDoc::GetNodes(), sw::Ring< value_type >::GetRingContainer(), SwNode::GetTextNode(), INSATTR, IDocumentContentOperations::InsertItemSet(), RES_PARATR_OUTLINELEVEL(), IDocumentUndoRedo::StartUndo(), and SwNodes::UpdateOutlineNode().
Referenced by lcl_setCharFormatSequence(), SwXTextTableCursor::setPropertyValue(), and SwXCellRange::setPropertyValue().
bool SwUnoCursorHelper::SetCursorPropertyValue | ( | SfxItemPropertySimpleEntry 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().
Definition at line 827 of file unocrsrhelper.cxx.
References SwPamRanges::Count(), SwDoc::DelNumRules(), END, IDocumentUndoRedo::EndUndo(), SfxStyleSheetBasePool::Find(), SwDoc::FindNumRulePtr(), FontList::Get(), cppu::UnoType< class >::get(), 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, SwNumFormat::SetCharFormat(), SwDoc::SetNumRule(), SwPamRanges::SetPam(), SwVectorModifyBase< Value >::size(), START, IDocumentUndoRedo::StartUndo(), and WEIGHT_NORMAL.
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 2005 of file unoobj.cxx.
References SfxItemPropertyMap::getByName(), SwPaM::GetDoc(), SfxItemPropertySet::getPropertyMap(), lcl_SelectParaAndReset(), SfxItemPropertySimpleEntry::nFlags, SfxItemPropertySimpleEntry::nWID, RES_FRMATR_END(), RES_PARATR_BEGIN(), SwDoc::ResetAttrs(), and resetCursorPropertyValue().
Referenced by SwXTextRange::setPropertyToDefault(), SwXTextPortion::setPropertyToDefault(), and SwXTextViewCursor::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(), SwXTextCursor::setPropertyValue(), SwXTextRange::setPropertyValue(), SwXTextPortion::setPropertyValue(), SwXTextViewCursor::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(), SwXTextPortion::SetPropertyValues_Impl(), and SwXParagraph::Impl::SetPropertyValues_Impl().
Definition at line 1648 of file unoobj2.cxx.
References IDocumentContentOperations::DeleteAndJoin(), DocInsertStringSplitCR(), IDocumentUndoRedo::EndUndo(), SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwPaM::HasMark(), INSERT, SwCursor::Left(), SelectPam(), and IDocumentUndoRedo::StartUndo().
Referenced by SwXTextPortion::setString(), SwXTextViewCursor::setString(), and SwXParagraph::setString().
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Referenced by SwWrtShell::QuickUpdateStyle(), and SwXTextTableCursor::setPropertyValue().