LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwXMLTextImportHelper Class Reference

#include <xmltexti.hxx>

Inheritance diagram for SwXMLTextImportHelper:
[legend]
Collaboration diagram for SwXMLTextImportHelper:
[legend]

Public Member Functions

 SwXMLTextImportHelper (const css::uno::Reference< css::frame::XModel > &rModel, SvXMLImport &rImport, const css::uno::Reference< css::beans::XPropertySet > &rInfoSet, bool bInsertM, bool bStylesOnlyM, bool bBlockM, bool bOrganizerM)
 
virtual ~SwXMLTextImportHelper () override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertOLEObject (SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTableName, sal_Int32 nWidth, sal_Int32 nHeight) override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertOOoLink (SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTableName, sal_Int32 nWidth, sal_Int32 nHeight) override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertApplet (const OUString &rName, const OUString &rCode, bool bMayScript, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight) override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertPlugin (const OUString &rMimeType, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight) override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertFloatingFrame (const OUString &rName, const OUString &rHRef, const OUString &rStyleName, sal_Int32 nWidth, sal_Int32 nHeight) override
 
virtual void endAppletOrPlugin (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, std::map< const OUString, OUString > &rParamMap) override
 
virtual bool IsInHeaderFooter () const override
 
virtual void RedlineAdd (const OUString &rType, const OUString &rId, const OUString &rAuthor, const OUString &rComment, const css::util::DateTime &rDateTime, bool bMergeLastPara) override
 
virtual css::uno::Reference< css::text::XTextCursor > RedlineCreateText (css::uno::Reference< css::text::XTextCursor > &rOldCursor, const OUString &rId) override
 merge last paragraph More...
 
virtual void RedlineSetCursor (const OUString &rId, bool bStart, bool bIsOutsideOfParagraph) override
 ID used to RedlineAdd() call. More...
 
virtual void RedlineAdjustStartNodeCursor () override
 
virtual void SetShowChanges (bool bShowChanges) override
 
virtual void SetRecordChanges (bool bRecordChanges) override
 
virtual void SetChangesProtectionKey (const css::uno::Sequence< sal_Int8 > &rKey) override
 
- Public Member Functions inherited from XMLTextImportHelper
 XMLTextImportHelper (css::uno::Reference< css::frame::XModel > const &rModel, SvXMLImport &rImport, bool const bInsertMode=false, bool const bStylesOnlyMode=false, bool const bProgress=false, bool const bBlockMode=false, bool const bOrganizerMode=false)
 
virtual ~XMLTextImportHelper () override
 
void SetCursor (const css::uno::Reference< css::text::XTextCursor > &rCursor)
 
void ResetCursor ()
 
void SetAutoStyles (SvXMLStylesContext *pStyles)
 
SvXMLImportContextCreateTextChildContext (SvXMLImport &rImport, sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, XMLTextType eType=XMLTextType::Shape)
 
SvXMLTokenMap const & GetTextElemTokenMap ()
 
SvXMLTokenMap const & GetTextPElemTokenMap ()
 
SvXMLTokenMap const & GetTextPAttrTokenMap ()
 
SvXMLTokenMap const & GetTextFrameAttrTokenMap ()
 
SvXMLTokenMap const & GetTextContourAttrTokenMap ()
 
SvXMLTokenMap const & GetTextHyperlinkAttrTokenMap ()
 
SvXMLTokenMap const & GetTextMasterPageElemTokenMap ()
 
const SvXMLTokenMapGetTextNumberedParagraphAttrTokenMap ()
 
const SvXMLTokenMapGetTextListBlockAttrTokenMap ()
 
const SvXMLTokenMapGetTextListBlockElemTokenMap ()
 
const SvXMLTokenMapGetTextFieldAttrTokenMap ()
 
css::uno::Reference< css::text::XText > & GetText ()
 
css::uno::Reference< css::text::XTextCursor > & GetCursor ()
 
css::uno::Reference< css::text::XTextRange > & GetCursorAsRange ()
 
bool IsInsertMode () const
 
bool IsStylesOnlyMode () const
 
bool IsBlockMode () const
 
bool IsOrganizerMode () const
 
bool IsProgress () const
 
OUString ConvertStarFonts (const OUString &rChars, const OUString &rStyleName, sal_uInt8 &rFlags, bool bPara, SvXMLImport &rImport) const
 
void InsertString (const OUString &rChars)
 
void InsertString (const OUString &rChars, bool &rIgnoreLeadingSpace)
 
void DeleteParagraph ()
 
void InsertControlCharacter (sal_Int16 nControl)
 
void InsertTextContent (css::uno::Reference< css::text::XTextContent > const &xContent)
 
OUString SetStyleAndAttrs (SvXMLImport const &rImport, const css::uno::Reference< css::text::XTextCursor > &rCursor, const OUString &rStyleName, bool bPara, bool bOutlineLevelAttrFound=false, sal_Int8 nOutlineLevel=-1, bool bSetListAttrs=true)
 
void FindOutlineStyleName (OUString &rStyleName, sal_Int8 nOutlineLevel)
 
void AddOutlineStyleCandidate (const sal_Int8 nOutlineLevel, const OUString &rStyleName)
 
void SetOutlineStyles (bool bSetEmpty)
 
void SetHyperlink (SvXMLImport const &rImport, const css::uno::Reference< css::text::XTextCursor > &rCursor, const OUString &rHRef, const OUString &rName, const OUString &rTargetFrameName, const OUString &rStyleName, const OUString &rVisitedStyleName, XMLEventsImportContext *pEvents)
 
void SetRuby (SvXMLImport const &rImport, const css::uno::Reference< css::text::XTextCursor > &rCursor, const OUString &rStyleName, const OUString &rTextStyleName, const OUString &rText)
 
sal_Int32 GetDataStyleKey (const OUString &sStyleName, bool *pIsSystemLanguage=nullptr)
 
const SvxXMLListStyleContextFindAutoListStyle (const OUString &rName) const
 
XMLPropStyleContextFindAutoFrameStyle (const OUString &rName) const
 
XMLPropStyleContextFindSectionStyle (const OUString &rName) const
 
XMLPropStyleContextFindPageMaster (const OUString &rName) const
 
const css::uno::Reference< css::container::XNameContainer > & GetParaStyles () const
 
const css::uno::Reference< css::container::XNameContainer > & GetTextStyles () const
 
const css::uno::Reference< css::container::XNameContainer > & GetNumberingStyles () const
 
const css::uno::Reference< css::container::XNameContainer > & GetFrameStyles () const
 
const css::uno::Reference< css::container::XNameContainer > & GetPageStyles () const
 
const css::uno::Reference< css::container::XNameContainer > & GetCellStyles () const
 
const css::uno::Reference< css::container::XIndexReplace > & GetChapterNumbering () const
 
bool HasFrameByName (const OUString &rName) const
 
bool IsDuplicateFrame (const OUString &sName, sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight) const
 
void StoreLastImportedFrameName (const OUString &rName)
 
void ClearLastImportedTextFrameName ()
 
void ConnectFrameChains (const OUString &rFrmName, const OUString &rNextFrmName, const css::uno::Reference< css::beans::XPropertySet > &rFrmPropSet)
 
rtl::Reference< SvXMLImportPropertyMapper > const & GetParaImportPropertySetMapper () const
 
rtl::Reference< SvXMLImportPropertyMapper > const & GetTextImportPropertySetMapper () const
 
rtl::Reference< SvXMLImportPropertyMapper > const & GetSectionImportPropertySetMapper () const
 
rtl::Reference< SvXMLImportPropertyMapper > const & GetRubyImportPropertySetMapper () const
 
SvI18NMapGetRenameMap ()
 
void InsertBookmarkStartRange (const OUString &sName, const css::uno::Reference< css::text::XTextRange > &rRange, OUString const &i_rXmlId, std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &i_rpRDFaAttributes)
 
bool FindAndRemoveBookmarkStartRange (const OUString &sName, css::uno::Reference< css::text::XTextRange > &o_rRange, OUString &o_rXmlId, std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &o_rpRDFaAttributes)
 
OUString FindActiveBookmarkName ()
 
void pushFieldCtx (const OUString &name, const OUString &type)
 
css::uno::Reference< css::text::XFormField > popFieldCtx ()
 
void addFieldParam (const OUString &name, const OUString &value)
 
void setCurrentFieldParamsTo (css::uno::Reference< css::text::XFormField > const &xFormField)
 
OUString getCurrentFieldType ()
 
bool hasCurrentFieldCtx () const
 
void InsertFootnoteID (const OUString &sXMLId, sal_Int16 nAPIId)
 
void ProcessFootnoteReference (const OUString &sXMLId, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 
void InsertSequenceID (const OUString &sXMLId, const OUString &sName, sal_Int16 nAPIId)
 
void ProcessSequenceReference (const OUString &sXMLId, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 
bool IsInFrame () const
 
virtual void endAppletOrPlugin (const css::uno::Reference< css::beans::XPropertySet > &rPropSet,::std::map< const OUString, OUString > &rParamMap)
 
OUString const & GetOpenRedlineId () const
 
void SetOpenRedlineId (OUString const &rId)
 
void ResetOpenRedlineId ()
 
void SetInsideDeleteContext (bool const bNew)
 
bool IsInsideDeleteContext () const
 
SvXMLImportGetXMLImport ()
 
XMLTextListsHelperGetTextListHelper ()
 
void PushListContext ()
 
void PopListContext ()
 
void SetCellParaStyleDefault (OUString const &rNewValue)
 
OUString const & GetCellParaStyleDefault () const
 
void AddCrossRefHeadingMapping (OUString const &rFrom, OUString const &rTo)
 
void MapCrossRefHeadingFieldsHorribly ()
 
void setBookmarkAttributes (OUString const &bookmark, bool hidden, OUString const &condition)
 
bool getBookmarkHidden (OUString const &bookmark) const
 
const OUString & getBookmarkCondition (OUString const &bookmark) const
 

Protected Member Functions

virtual SvXMLImportContextCreateTableChildContext (SvXMLImport &rImport, sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 
- Protected Member Functions inherited from XMLTextImportHelper
XMLPropertyBackpatcher< sal_Int16 > & GetFootnoteBP ()
 
XMLPropertyBackpatcher< sal_Int16 > & GetSequenceIdBP ()
 
XMLPropertyBackpatcher< OUString > & GetSequenceNameBP ()
 

Private Attributes

XMLRedlineImportHelperpRedlineHelper
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLTextImportHelper
static SvXMLImportPropertyMapperCreateShapeExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateParaExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateParaDefaultExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateTableDefaultExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateTableRowDefaultExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateTableCellExtPropMapper (SvXMLImport &)
 

Detailed Description

Definition at line 27 of file xmltexti.hxx.

Constructor & Destructor Documentation

SwXMLTextImportHelper::SwXMLTextImportHelper ( const css::uno::Reference< css::frame::XModel > &  rModel,
SvXMLImport rImport,
const css::uno::Reference< css::beans::XPropertySet > &  rInfoSet,
bool  bInsertM,
bool  bStylesOnlyM,
bool  bBlockM,
bool  bOrganizerM 
)

Definition at line 147 of file xmltexti.cxx.

References pRedlineHelper.

SwXMLTextImportHelper::~SwXMLTextImportHelper ( )
overridevirtual

Definition at line 162 of file xmltexti.cxx.

References pRedlineHelper.

Member Function Documentation

uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertApplet ( const OUString &  rName,
const OUString &  rCode,
bool  bMayScript,
const OUString &  rHRef,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
overridevirtual
uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertFloatingFrame ( const OUString &  rName,
const OUString &  rHRef,
const OUString &  rStyleName,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
overridevirtual
uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOLEObject ( SvXMLImport rImport,
const OUString &  rHRef,
const OUString &  rStyleName,
const OUString &  rTableName,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
overridevirtual

Reimplemented from XMLTextImportHelper.

Definition at line 211 of file xmltexti.cxx.

References aName, Any, aServiceMap, comphelper::EmbeddedObjectContainer::CreateUniqueObjectName(), SwXTextEmbeddedObject::CreateXTextEmbeddedObject(), CTF_OLE_DRAW_ASPECT, CTF_OLE_VIS_AREA_HEIGHT, CTF_OLE_VIS_AREA_LEFT, CTF_OLE_VIS_AREA_TOP, CTF_OLE_VIS_AREA_WIDTH, XMLTextImportHelper::FindAutoFrameStyle(), Get(), SwDoc::GetAttrPool(), SvGlobalName::GetByteSequence(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwOLEObj::GetCurrentPersistName(), XMLTextImportHelper::GetCursor(), SwDoc::GetDfltGrfFormatColl(), SwImport::GetDocFromXMLImport(), IDocumentDrawModelAccess::GetDrawModel(), comphelper::EmbeddedObjectContainer::GetEmbeddedObject(), SfxObjectShell::GetEmbeddedObjectContainer(), SvXMLStyleContext::GetFamily(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentDrawModelAccess(), SvXMLStylesContext::GetImportPropertyMapper(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNodes(), SwOLEObj::GetObject(), SwNode::GetOLENode(), SwOLENode::GetOLEObj(), SwXFrame::GetOrCreateSdrObject(), SwDoc::GetPersist(), comphelper::getProcessComponentContext(), XMLPropStyleContext::GetProperties(), XMLTextImportHelper::GetRenameMap(), tools::Rectangle::GetSize(), SfxObjectShell::GetStorage(), XMLPropStyleContext::GetStyles(), comphelper::OStorageHelper::GetTemporaryStorage(), OTextCursorHelper::getUnoTunnelId(), XMLTextImportHelper::GetXMLImport(), i, comphelper::InitPropertySequence(), IDocumentContentOperations::InsertEmbObject(), IDocumentContentOperations::InsertOLE(), XMLTextImportHelper::IsInsertMode(), lcl_GetOLENode(), lcl_putHeightAndWidth(), lcl_setObjectVisualArea(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, XMLServiceMapEntry_Impl::n1, XMLServiceMapEntry_Impl::n10, XMLServiceMapEntry_Impl::n11, XMLServiceMapEntry_Impl::n2, XMLServiceMapEntry_Impl::n3, XMLServiceMapEntry_Impl::n4, XMLServiceMapEntry_Impl::n5, XMLServiceMapEntry_Impl::n6, XMLServiceMapEntry_Impl::n7, XMLServiceMapEntry_Impl::n8, XMLServiceMapEntry_Impl::n9, XMLServiceMapEntry_Impl::nFilterServiceLen, nPos, RES_FRMATR_BEGIN, RES_FRMATR_END, SAL_WARN_IF, SwOLENode::SetChartTableName(), tools::Rectangle::setHeight(), SwOLENode::SetOLESizeInvalid(), svt::EmbeddedObjectRef::SetViewAspect(), tools::Rectangle::setWidth(), tools::Rectangle::setX(), tools::Rectangle::setY(), XMLServiceMapEntry_Impl::sFilterService, and XML_TEXT_RENAME_TYPE_TABLE.

uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOOoLink ( SvXMLImport rImport,
const OUString &  rHRef,
const OUString &  rStyleName,
const OUString &  rTableName,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
overridevirtual
uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertPlugin ( const OUString &  rMimeType,
const OUString &  rHRef,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
overridevirtual
SvXMLImportContext * SwXMLTextImportHelper::CreateTableChildContext ( SvXMLImport rImport,
sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overrideprotectedvirtual

Reimplemented from XMLTextImportHelper.

Definition at line 176 of file xmltexti.cxx.

void SwXMLTextImportHelper::endAppletOrPlugin ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
std::map< const OUString, OUString > &  rParamMap 
)
overridevirtual
bool SwXMLTextImportHelper::IsInHeaderFooter ( ) const
overridevirtual
void SwXMLTextImportHelper::RedlineAdd ( const OUString &  rType,
const OUString &  rId,
const OUString &  rAuthor,
const OUString &  rComment,
const css::util::DateTime &  rDateTime,
bool  bMergeLastPara 
)
overridevirtual
Parameters
rIdredline type (insert, del,... )
rAuthoruse to identify this redline
rCommentname of the author
rDateTimeredline comment
bMergeLastParadate+time

Reimplemented from XMLTextImportHelper.

Definition at line 966 of file xmltexti.cxx.

References XMLRedlineImportHelper::Add(), and pRedlineHelper.

void SwXMLTextImportHelper::RedlineAdjustStartNodeCursor ( )
overridevirtual
uno::Reference< XTextCursor > SwXMLTextImportHelper::RedlineCreateText ( css::uno::Reference< css::text::XTextCursor > &  rOldCursor,
const OUString &  rId 
)
overridevirtual

merge last paragraph

Parameters
rIdneeded to get the document

Reimplemented from XMLTextImportHelper.

Definition at line 981 of file xmltexti.cxx.

References XMLRedlineImportHelper::CreateRedlineTextSection(), and pRedlineHelper.

void SwXMLTextImportHelper::RedlineSetCursor ( const OUString &  rId,
bool  bStart,
bool  bIsOutsideOfParagraph 
)
overridevirtual

ID used to RedlineAdd() call.

Parameters
bStartID used to RedlineAdd() call
bIsOutsideOfParagraphstart or end Cursor

Reimplemented from XMLTextImportHelper.

Definition at line 995 of file xmltexti.cxx.

References XMLTextImportHelper::GetCursor(), pRedlineHelper, and XMLRedlineImportHelper::SetCursor().

void SwXMLTextImportHelper::SetChangesProtectionKey ( const css::uno::Sequence< sal_Int8 > &  rKey)
overridevirtual

Reimplemented from XMLTextImportHelper.

Definition at line 1031 of file xmltexti.cxx.

References pRedlineHelper, and XMLRedlineImportHelper::SetProtectionKey().

void SwXMLTextImportHelper::SetRecordChanges ( bool  bRecordChanges)
overridevirtual

Reimplemented from XMLTextImportHelper.

Definition at line 1025 of file xmltexti.cxx.

References pRedlineHelper, and XMLRedlineImportHelper::SetRecordChanges().

void SwXMLTextImportHelper::SetShowChanges ( bool  bShowChanges)
overridevirtual

Reimplemented from XMLTextImportHelper.

Definition at line 1019 of file xmltexti.cxx.

References pRedlineHelper, and XMLRedlineImportHelper::SetShowChanges().

Member Data Documentation

XMLRedlineImportHelper* SwXMLTextImportHelper::pRedlineHelper
private

The documentation for this class was generated from the following files: