LibreOffice Module sw (master)  1
Classes | Functions
SwUnoCursorHelper Namespace Reference

Classes

class  SwAnyMapHelper
 

Functions

static SwPaMlcl_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)
 
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, const OUString &rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties)
 
void makeTableRowRedline (SwTableLine &rTableLine, const OUString &rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties)
 
void makeTableCellRedline (SwTableBox &rTableBox, const OUString &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, const OUString &RedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties)
 
void makeTableRowRedline (SwTableLine &rTableLine, const OUString &RedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties)
 
SW_DLLPUBLIC void makeTableCellRedline (SwTableBox &rTableBox, const OUString &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)
 
SwFormatCollGetCurTextFormatColl (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, const OUString &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, const OUString &rPropertyName)
 
css::uno::Any GetPropertyDefault (SwPaM const &rPaM, const SfxItemPropertySet &rPropSet, const OUString &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...
 

Function Documentation

bool SwUnoCursorHelper::ConvertSortProperties ( const css::uno::Sequence< css::beans::PropertyValue > &  rDescriptor,
SwSortOptions rSortOpt 
)
css::uno::Reference< css::text::XFlatParagraphIterator > SwUnoCursorHelper::CreateFlatParagraphIterator ( SwDoc rDoc,
sal_Int32 const  nTextMarkupType,
bool const  bAutomatic 
)

Definition at line 61 of file unoflatpara.cxx.

Referenced by SwXTextDocument::getFlatParagraphIterator().

uno::Sequence< beans::PropertyValue > SwUnoCursorHelper::CreateSortDescriptor ( const bool  bFromTable)
bool SwUnoCursorHelper::DocInsertStringSplitCR ( SwDoc rDoc,
const SwPaM rNewCursor,
const OUString &  rText,
const bool  bForceExpandHints 
)
void SwUnoCursorHelper::GetCurPageStyle ( SwPaM const &  rPaM,
OUString &  rString 
)
void SwUnoCursorHelper::GetCursorAttr ( SwPaM rPam,
SfxItemSet rSet,
const bool  bOnlyTextAttr = false,
const bool  bGetFromChrFormat = true 
)
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 310 of file unocrsrhelper.cxx.

References 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_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(), 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, 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 
)
css::uno::Reference< css::text::XTextContent > SwUnoCursorHelper::GetNestedTextContent ( SwTextNode const &  rTextNode,
sal_Int32 const  nIndex,
bool const  bParent 
)
void SwUnoCursorHelper::getNumberingProperty ( SwPaM rPam,
css::beans::PropertyState &  eState,
css::uno::Any *  pAny 
)
void SwUnoCursorHelper::getNumberingProperty ( SwPaM rPam,
PropertyState &  eState,
Any *  pAny 
)
uno::Any SwUnoCursorHelper::GetPropertyDefault ( SwPaM const &  rPaM,
const SfxItemPropertySet rPropSet,
const OUString &  rPropertyName 
)
beans::PropertyState SwUnoCursorHelper::GetPropertyState ( SwPaM rPaM,
const SfxItemPropertySet rPropSet,
const OUString &  rPropertyName 
)
Exceptions
css::beans::UnknownPropertyException
css::uno::RuntimeException

Definition at line 1969 of file unoobj.cxx.

References 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 
)
uno::Any SwUnoCursorHelper::GetPropertyValue ( SwPaM rPaM,
const SfxItemPropertySet rPropSet,
const OUString &  rPropertyName 
)
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 
)
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 
)
void SwUnoCursorHelper::InsertFile ( SwUnoCursor pUnoCursor,
const OUString &  rURL,
const css::uno::Sequence< css::beans::PropertyValue > &  rOptions 
)
Exceptions
css::lang::IllegalArgumentException
css::io::IOException
css::uno::RuntimeException
void SwUnoCursorHelper::InsertFile ( SwUnoCursor pUnoCursor,
const OUString &  rURL,
const uno::Sequence< beans::PropertyValue > &  rOptions 
)
bool SwUnoCursorHelper::IsEndOfPara ( SwPaM rUnoCursor)
inline
sal_Int16 SwUnoCursorHelper::IsNodeNumStart ( SwPaM const &  rPam,
css::beans::PropertyState &  eState 
)
sal_Int16 SwUnoCursorHelper::IsNodeNumStart ( SwPaM const &  rPam,
PropertyState &  eState 
)
bool SwUnoCursorHelper::IsStartOfPara ( SwPaM rUnoCursor)
inline
static SwPaM* SwUnoCursorHelper::lcl_createPamCopy ( const SwPaM rPam)
static

Definition at line 108 of file unocrsrhelper.cxx.

References sw::DeepCopyPaM(), and SwPaM::GetPoint().

Referenced by GetSelectableFromAny().

void SwUnoCursorHelper::makeRedline ( SwPaM const &  rPaM,
const OUString &  RedlineType,
const css::uno::Sequence< css::beans::PropertyValue > &  RedlineProperties 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException
void SwUnoCursorHelper::makeRedline ( SwPaM const &  rPaM,
const OUString &  rRedlineType,
const uno::Sequence< beans::PropertyValue > &  rRedlineProperties 
)
SW_DLLPUBLIC void SwUnoCursorHelper::makeTableCellRedline ( SwTableBox rTableBox,
const OUString &  RedlineType,
const css::uno::Sequence< css::beans::PropertyValue > &  RedlineProperties 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException
void SwUnoCursorHelper::makeTableCellRedline ( SwTableBox rTableBox,
const OUString &  rRedlineType,
const uno::Sequence< beans::PropertyValue > &  rRedlineProperties 
)
void SwUnoCursorHelper::makeTableRowRedline ( SwTableLine rTableLine,
const OUString &  RedlineType,
const css::uno::Sequence< css::beans::PropertyValue > &  RedlineProperties 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException
void SwUnoCursorHelper::makeTableRowRedline ( SwTableLine rTableLine,
const OUString &  rRedlineType,
const uno::Sequence< beans::PropertyValue > &  rRedlineProperties 
)
void SwUnoCursorHelper::resetCursorPropertyValue ( const SfxItemPropertySimpleEntry rEntry,
SwPaM rPam 
)
void SwUnoCursorHelper::SelectPam ( SwPaM rPam,
const bool  bExpand 
)
void SwUnoCursorHelper::SetCursorAttr ( SwPaM rPam,
const SfxItemSet rSet,
const SetAttrMode  nAttrMode,
const bool  bTableMode = false 
)
bool SwUnoCursorHelper::SetCursorPropertyValue ( SfxItemPropertySimpleEntry const &  rEntry,
css::uno::Any const &  rValue,
SwPaM rPam,
SfxItemSet rItemSet 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException
css::uno::DeploymentException

Referenced by SwXTextTableCursor::setPropertyValue(), and SwXCellRange::setPropertyValue().

void SwUnoCursorHelper::setNumberingProperty ( const css::uno::Any &  rValue,
SwPaM rPam 
)
void SwUnoCursorHelper::setNumberingProperty ( const Any &  rValue,
SwPaM rPam 
)
bool SwUnoCursorHelper::SetPageDesc ( const css::uno::Any &  rValue,
SwDoc rDoc,
SfxItemSet rSet 
)
void SwUnoCursorHelper::SetPropertyToDefault ( SwPaM rPaM,
const SfxItemPropertySet rPropSet,
const OUString &  rPropertyName 
)
void SwUnoCursorHelper::SetPropertyValue ( SwPaM rPaM,
const SfxItemPropertySet rPropSet,
const OUString &  rPropertyName,
const css::uno::Any &  rValue,
const SetAttrMode  nAttrMode = SetAttrMode::DEFAULT 
)
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException
css::uno::RuntimeException

Referenced by SwXTextCursor::setPropertyValue(), SwXCell::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 
)
Exceptions
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().

void SwUnoCursorHelper::SetString ( SwCursor rCursor,
const OUString &  rString 
)
void SwUnoCursorHelper::SetTextFormatColl ( const css::uno::Any &  rAny,
SwPaM rPaM 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Referenced by SwWrtShell::QuickUpdateStyle(), and SwXTextTableCursor::setPropertyValue().