LibreOffice Module xmloff (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XMLTextImportHelper Class Reference

#include <txtimp.hxx>

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

Classes

struct  BackpatcherImpl
 
struct  Impl
 

Public Member Functions

 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 dispose ()
 
void SetCursor (const css::uno::Reference< css::text::XTextCursor > &rCursor)
 
void ResetCursor ()
 
void SetAutoStyles (SvXMLStylesContext *pStyles)
 
SvXMLImportContextCreateTextChildContext (SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, XMLTextType eType=XMLTextType::Shape)
 
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 (std::u16string_view 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, bool bOutlineContentVisible=true)
 
void FindOutlineStyleName (OUString &rStyleName, sal_Int8 nOutlineLevel)
 Find a suitable name for the given outline level. More...
 
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)
 return key appropriate for use with NumberFormat property return -1 if style is not found (may return whether data style uses the system language) More...
 
const SvxXMLListStyleContextFindAutoListStyle (const OUString &rName) const
 
XMLPropStyleContextFindAutoFrameStyle (const OUString &rName) const
 
XMLPropStyleContextFindSectionStyle (const OUString &rName) const
 
XMLPropStyleContextFindPageMaster (const OUString &rName) const
 
XMLPropStyleContextFindAutoCharStyle (const OUString &rName) const
 
XMLPropStyleContextFindDrawingPage (OUString const &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)
 save the start of a range reference More...
 
bool FindAndRemoveBookmarkStartRange (const OUString &sName, css::uno::Reference< css::text::XTextRange > &o_rRange, OUString &o_rXmlId, std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &o_rpRDFaAttributes)
 process the start of a range reference More...
 
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)
 
::std::pair< OUString, OUString > getCurrentFieldType () const
 
css::uno::Reference< css::text::XTextRange > getCurrentFieldStart () const
 
bool hasCurrentFieldSeparator () const
 
bool hasCurrentFieldCtx () const
 
void InsertFootnoteID (const OUString &sXMLId, sal_Int16 nAPIId)
 insert new footnote ID. More...
 
void ProcessFootnoteReference (const OUString &sXMLId, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 set the proper footnote reference ID, or put into backpatch list if ID is unknown More...
 
void InsertSequenceID (const OUString &sXMLId, const OUString &sName, sal_Int16 nAPIId)
 insert new sequence ID Also fixup open references from backpatch list to this ID. More...
 
void ProcessSequenceReference (const OUString &sXMLId, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 set sequence ID or insert into backpatch list More...
 
bool IsInFrame () const
 
virtual bool IsInHeaderFooter () const
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertOLEObject (SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTblName, sal_Int32 nWidth, sal_Int32 nHeight)
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertOOoLink (SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTblName, sal_Int32 nWidth, sal_Int32 nHeight)
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertApplet (const OUString &rName, const OUString &rCode, bool bMayScript, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight)
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertPlugin (const OUString &rMimeType, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight)
 
virtual css::uno::Reference< css::beans::XPropertySetcreateAndInsertFloatingFrame (const OUString &rName, const OUString &rHRef, const OUString &rStyleName, sal_Int32 nWidth, sal_Int32 nHeight)
 
virtual void endAppletOrPlugin (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, ::std::map< const OUString, OUString > &rParamMap)
 
virtual void RedlineAdd (const OUString &rType, const OUString &rId, const OUString &rAuthor, const OUString &rComment, const css::util::DateTime &rDateTime, bool bMergeLastParagraph)
 
virtual css::uno::Reference< css::text::XTextCursor > RedlineCreateText (css::uno::Reference< css::text::XTextCursor > &rOldCursor, const OUString &rId)
 
virtual void RedlineSetCursor (const OUString &rId, bool bStart, bool bIsOutsideOfParagraph)
 
virtual void RedlineAdjustStartNodeCursor ()
 
virtual void SetShowChanges (bool bShowChanges)
 
virtual void SetRecordChanges (bool bRecordChanges)
 
virtual void SetChangesProtectionKey (const css::uno::Sequence< sal_Int8 > &rProtectionKey)
 
OUString const & GetOpenRedlineId () const
 get the last open redline ID More...
 
void SetOpenRedlineId (OUString const &rId)
 modify the last open redline ID More...
 
void ResetOpenRedlineId ()
 reset the last open redline ID More...
 
void SetInsideDeleteContext (bool const bNew)
 redlining : Setter to remember the fact we are inside/outside a <text:deletion> element (deleted redline section) More...
 
bool IsInsideDeleteContext () const
 redlining : Getter to know if we are inside a <text:deletion> element (deleted redline section) More...
 
SvXMLImport & GetXMLImport ()
 
XMLTextListsHelperGetTextListHelper ()
 
void PushListContext ()
 push a list context on the list context stack More...
 
void PopListContext ()
 pop the list context stack More...
 
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
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static SvXMLImportPropertyMapperCreateShapeExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateParaExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateParaDefaultExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateTableDefaultExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateTableRowDefaultExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateTableCellExtPropMapper (SvXMLImport &)
 
static SvXMLImportPropertyMapperCreateDrawingPageExtPropMapper (SvXMLImport &)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Protected Member Functions

virtual SvXMLImportContextCreateTableChildContext (SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
XMLPropertyBackpatcher< sal_Int16 > & GetFootnoteBP ()
 
XMLPropertyBackpatcher< sal_Int16 > & GetSequenceIdBP ()
 
XMLPropertyBackpatcher< OUString > & GetSequenceNameBP ()
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 XMLTextImportHelper (const XMLTextImportHelper &)=delete
 
XMLTextImportHelperoperator= (const XMLTextImportHelper &)=delete
 

Static Private Member Functions

static std::shared_ptr< BackpatcherImplMakeBackpatcherImpl ()
 

Private Attributes

std::unique_ptr< Implm_xImpl
 
std::shared_ptr< BackpatcherImplm_xBackpatcherImpl
 

Additional Inherited Members

- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 94 of file txtimp.hxx.

Constructor & Destructor Documentation

◆ XMLTextImportHelper() [1/2]

XMLTextImportHelper::XMLTextImportHelper ( const XMLTextImportHelper )
privatedelete

◆ XMLTextImportHelper() [2/2]

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 
)

◆ ~XMLTextImportHelper()

XMLTextImportHelper::~XMLTextImportHelper ( )
overridevirtual

Definition at line 542 of file txtimp.cxx.

Member Function Documentation

◆ AddCrossRefHeadingMapping()

void XMLTextImportHelper::AddCrossRefHeadingMapping ( OUString const &  rFrom,
OUString const &  rTo 
)

Definition at line 2393 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ addFieldParam()

void XMLTextImportHelper::addFieldParam ( const OUString &  name,
const OUString &  value 
)

Definition at line 2142 of file txtimp.cxx.

References m_xImpl, name, and value.

Referenced by XMLFieldParamImportContext::startFastElement().

◆ AddOutlineStyleCandidate()

void XMLTextImportHelper::AddOutlineStyleCandidate ( const sal_Int8  nOutlineLevel,
const OUString &  rStyleName 
)

Definition at line 1511 of file txtimp.cxx.

References m_xImpl.

Referenced by SetStyleAndAttrs().

◆ ClearLastImportedTextFrameName()

void XMLTextImportHelper::ClearLastImportedTextFrameName ( )

Definition at line 696 of file txtimp.cxx.

References m_xImpl.

Referenced by CreateTextChildContext().

◆ ConnectFrameChains()

void XMLTextImportHelper::ConnectFrameChains ( const OUString &  rFrmName,
const OUString &  rNextFrmName,
const css::uno::Reference< css::beans::XPropertySet > &  rFrmPropSet 
)

Definition at line 2184 of file txtimp.cxx.

References Any, Get(), GetRenameMap(), i, m_xImpl, and XML_TEXT_RENAME_TYPE_FRAME.

◆ ConvertStarFonts()

OUString XMLTextImportHelper::ConvertStarFonts ( const OUString &  rChars,
const OUString &  rStyleName,
sal_uInt8 rFlags,
bool  bPara,
SvXMLImport &  rImport 
) const

◆ createAndInsertApplet()

Reference< XPropertySet > XMLTextImportHelper::createAndInsertApplet ( const OUString &  rName,
const OUString &  rCode,
bool  bMayScript,
const OUString &  rHRef,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
virtual

Definition at line 2286 of file txtimp.cxx.

◆ createAndInsertFloatingFrame()

Reference< XPropertySet > XMLTextImportHelper::createAndInsertFloatingFrame ( const OUString &  rName,
const OUString &  rHRef,
const OUString &  rStyleName,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
virtual

Definition at line 2304 of file txtimp.cxx.

◆ createAndInsertOLEObject()

Reference< XPropertySet > XMLTextImportHelper::createAndInsertOLEObject ( SvXMLImport &  rImport,
const OUString &  rHRef,
const OUString &  rStyleName,
const OUString &  rTblName,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
virtual

Definition at line 2264 of file txtimp.cxx.

◆ createAndInsertOOoLink()

Reference< XPropertySet > XMLTextImportHelper::createAndInsertOOoLink ( SvXMLImport &  rImport,
const OUString &  rHRef,
const OUString &  rStyleName,
const OUString &  rTblName,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
virtual

Definition at line 2275 of file txtimp.cxx.

◆ createAndInsertPlugin()

Reference< XPropertySet > XMLTextImportHelper::createAndInsertPlugin ( const OUString &  rMimeType,
const OUString &  rHRef,
sal_Int32  nWidth,
sal_Int32  nHeight 
)
virtual

Definition at line 2296 of file txtimp.cxx.

◆ CreateDrawingPageExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateDrawingPageExtPropMapper ( SvXMLImport &  rImport)
static

Definition at line 607 of file txtimp.cxx.

References g_XMLPageMasterDrawingPageStyleMap.

◆ CreateParaDefaultExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateParaDefaultExtPropMapper ( SvXMLImport &  rImport)
static

◆ CreateParaExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateParaExtPropMapper ( SvXMLImport &  rImport)
static

◆ CreateShapeExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateShapeExtPropMapper ( SvXMLImport &  rImport)
static

Definition at line 552 of file txtimp.cxx.

References FRAME.

◆ CreateTableCellExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableCellExtPropMapper ( SvXMLImport &  rImport)
static

Definition at line 598 of file txtimp.cxx.

References CELL.

Referenced by XMLTableImport::XMLTableImport().

◆ CreateTableChildContext()

SvXMLImportContext * XMLTextImportHelper::CreateTableChildContext ( SvXMLImport &  rImport,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
protectedvirtual

Definition at line 1935 of file txtimp.cxx.

Referenced by CreateTextChildContext().

◆ CreateTableDefaultExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableDefaultExtPropMapper ( SvXMLImport &  rImport)
static

Definition at line 580 of file txtimp.cxx.

References TABLE_DEFAULTS.

◆ CreateTableRowDefaultExtPropMapper()

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableRowDefaultExtPropMapper ( SvXMLImport &  rImport)
static

Definition at line 589 of file txtimp.cxx.

References TABLE_ROW_DEFAULTS.

◆ CreateTextChildContext()

SvXMLImportContext * XMLTextImportHelper::CreateTextChildContext ( SvXMLImport &  rImport,
sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList,
XMLTextType  eType = XMLTextType::Shape 
)

◆ DeleteParagraph()

void XMLTextImportHelper::DeleteParagraph ( )

Definition at line 769 of file txtimp.cxx.

References m_xImpl, and SAL_WARN_IF.

Referenced by XMLFootnoteImportContext::endFastElement().

◆ dispose()

void XMLTextImportHelper::dispose ( void  )

Definition at line 546 of file txtimp.cxx.

References m_xImpl.

◆ endAppletOrPlugin()

void XMLTextImportHelper::endAppletOrPlugin ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
::std::map< const OUString, OUString > &  rParamMap 
)
virtual

Definition at line 2314 of file txtimp.cxx.

◆ FindAndRemoveBookmarkStartRange()

bool XMLTextImportHelper::FindAndRemoveBookmarkStartRange ( const OUString &  sName,
css::uno::Reference< css::text::XTextRange > &  o_rRange,
OUString &  o_rXmlId,
std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &  o_rpRDFaAttributes 
)

process the start of a range reference

Definition at line 2093 of file txtimp.cxx.

References m_xImpl, and sName.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ FindAutoCharStyle()

XMLPropStyleContext * XMLTextImportHelper::FindAutoCharStyle ( const OUString &  rName) const

Definition at line 2040 of file txtimp.cxx.

References m_xImpl, and TEXT_TEXT.

◆ FindAutoFrameStyle()

XMLPropStyleContext * XMLTextImportHelper::FindAutoFrameStyle ( const OUString &  rName) const

Definition at line 1994 of file txtimp.cxx.

References m_xImpl, and SD_GRAPHICS_ID.

◆ FindAutoListStyle()

const SvxXMLListStyleContext * XMLTextImportHelper::FindAutoListStyle ( const OUString &  rName) const

Definition at line 1980 of file txtimp.cxx.

References m_xImpl, and TEXT_LIST.

◆ FindDrawingPage()

XMLPropStyleContext * XMLTextImportHelper::FindDrawingPage ( OUString const &  rName) const

Definition at line 2049 of file txtimp.cxx.

References m_xImpl, and SD_DRAWINGPAGE_ID.

◆ FindOutlineStyleName()

void XMLTextImportHelper::FindOutlineStyleName ( OUString &  rStyleName,
sal_Int8  nOutlineLevel 
)

Find a suitable name for the given outline level.

If rStyleName is empty, change it to a previously used or default style name for that level. Otherwise, leave rStyleName unmodified.

Definition at line 1464 of file txtimp.cxx.

References aProperties, and m_xImpl.

◆ FindPageMaster()

XMLPropStyleContext * XMLTextImportHelper::FindPageMaster ( const OUString &  rName) const

Definition at line 2024 of file txtimp.cxx.

References m_xImpl, and PAGE_MASTER.

◆ FindSectionStyle()

XMLPropStyleContext * XMLTextImportHelper::FindSectionStyle ( const OUString &  rName) const

Definition at line 2008 of file txtimp.cxx.

References m_xImpl, and TEXT_SECTION.

◆ getBookmarkCondition()

const OUString & XMLTextImportHelper::getBookmarkCondition ( OUString const &  bookmark) const

Definition at line 2460 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ getBookmarkHidden()

bool XMLTextImportHelper::getBookmarkHidden ( OUString const &  bookmark) const

Definition at line 2455 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ GetCellParaStyleDefault()

OUString const & XMLTextImportHelper::GetCellParaStyleDefault ( ) const

Definition at line 2388 of file txtimp.cxx.

References m_xImpl.

◆ GetCellStyles()

uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetCellStyles ( ) const

Definition at line 282 of file txtimp.cxx.

References m_xImpl.

◆ GetChapterNumbering()

uno::Reference< container::XIndexReplace > const & XMLTextImportHelper::GetChapterNumbering ( ) const

Definition at line 288 of file txtimp.cxx.

References m_xImpl.

◆ getCurrentFieldStart()

uno::Reference< text::XTextRange > XMLTextImportHelper::getCurrentFieldStart ( ) const

Definition at line 2155 of file txtimp.cxx.

References m_xImpl.

◆ getCurrentFieldType()

std::pair< OUString, OUString > XMLTextImportHelper::getCurrentFieldType ( ) const

Definition at line 2149 of file txtimp.cxx.

References m_xImpl.

◆ GetCursor()

uno::Reference< text::XTextCursor > & XMLTextImportHelper::GetCursor ( )

Definition at line 216 of file txtimp.cxx.

References m_xImpl.

Referenced by IsInFrame(), pushFieldCtx(), and XMLFootnoteImportContext::startFastElement().

◆ GetCursorAsRange()

uno::Reference< text::XTextRange > & XMLTextImportHelper::GetCursorAsRange ( )

Definition at line 221 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ GetDataStyleKey()

sal_Int32 XMLTextImportHelper::GetDataStyleKey ( const OUString &  sStyleName,
bool *  pIsSystemLanguage = nullptr 
)

return key appropriate for use with NumberFormat property return -1 if style is not found (may return whether data style uses the system language)

get data style key for use with NumberFormat property

Definition at line 1944 of file txtimp.cxx.

References DATA_STYLE, SdXMLNumberFormatImportContext::GetDrawKey(), SvXMLNumFormatContext::GetKey(), SvXMLNumFormatContext::IsSystemLanguage(), and m_xImpl.

Referenced by XMLValueImportHelper::ProcessAttribute(), XMLTimeFieldImportContext::ProcessAttribute(), XMLDateTimeDocInfoImportContext::ProcessAttribute(), and XMLUserDocInfoImportContext::ProcessAttribute().

◆ GetFootnoteBP()

XMLPropertyBackpatcher< sal_Int16 > & XMLTextImportHelper::GetFootnoteBP ( )
inlineprotected

◆ GetFrameStyles()

uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetFrameStyles ( ) const

Definition at line 270 of file txtimp.cxx.

References m_xImpl.

◆ GetNumberingStyles()

uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetNumberingStyles ( ) const

Definition at line 264 of file txtimp.cxx.

References m_xImpl.

◆ GetOpenRedlineId()

OUString const & XMLTextImportHelper::GetOpenRedlineId ( ) const

get the last open redline ID

Definition at line 2367 of file txtimp.cxx.

References m_xImpl.

◆ GetPageStyles()

uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetPageStyles ( ) const

Definition at line 276 of file txtimp.cxx.

References m_xImpl.

◆ GetParaImportPropertySetMapper()

rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetParaImportPropertySetMapper ( ) const

Definition at line 294 of file txtimp.cxx.

References m_xImpl.

◆ GetParaStyles()

uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetParaStyles ( ) const

Definition at line 252 of file txtimp.cxx.

References m_xImpl.

◆ GetRenameMap()

SvI18NMap & XMLTextImportHelper::GetRenameMap ( )

Definition at line 2073 of file txtimp.cxx.

References m_xImpl.

Referenced by ConnectFrameChains(), and XMLVariableDeclImportContext::FindFieldMaster().

◆ GetRubyImportPropertySetMapper()

rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetRubyImportPropertySetMapper ( ) const

Definition at line 312 of file txtimp.cxx.

References m_xImpl.

◆ GetSectionImportPropertySetMapper()

rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetSectionImportPropertySetMapper ( ) const

Definition at line 306 of file txtimp.cxx.

References m_xImpl.

◆ GetSequenceIdBP()

XMLPropertyBackpatcher< sal_Int16 > & XMLTextImportHelper::GetSequenceIdBP ( )
inlineprotected

◆ GetSequenceNameBP()

XMLPropertyBackpatcher< OUString > & XMLTextImportHelper::GetSequenceNameBP ( )
inlineprotected

Definition at line 167 of file XMLPropertyBackpatcher.cxx.

References m_xBackpatcherImpl.

Referenced by InsertSequenceID(), and ProcessSequenceReference().

◆ GetText()

uno::Reference< text::XText > & XMLTextImportHelper::GetText ( )

◆ GetTextImportPropertySetMapper()

rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetTextImportPropertySetMapper ( ) const

Definition at line 300 of file txtimp.cxx.

References m_xImpl.

◆ GetTextListHelper()

XMLTextListsHelper & XMLTextImportHelper::GetTextListHelper ( )

◆ GetTextStyles()

uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetTextStyles ( ) const

Definition at line 258 of file txtimp.cxx.

References m_xImpl.

◆ GetXMLImport()

SvXMLImport & XMLTextImportHelper::GetXMLImport ( )

Definition at line 327 of file txtimp.cxx.

References m_xImpl.

Referenced by SetOutlineStyles(), and SetStyleAndAttrs().

◆ hasCurrentFieldCtx()

bool XMLTextImportHelper::hasCurrentFieldCtx ( ) const

◆ hasCurrentFieldSeparator()

bool XMLTextImportHelper::hasCurrentFieldSeparator ( ) const

Definition at line 2161 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ HasFrameByName()

bool XMLTextImportHelper::HasFrameByName ( const OUString &  rName) const

Definition at line 630 of file txtimp.cxx.

References m_xImpl.

Referenced by IsDuplicateFrame().

◆ InsertBookmarkStartRange()

void XMLTextImportHelper::InsertBookmarkStartRange ( const OUString &  sName,
const css::uno::Reference< css::text::XTextRange > &  rRange,
OUString const &  i_rXmlId,
std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &  i_rpRDFaAttributes 
)

save the start of a range reference

Definition at line 2082 of file txtimp.cxx.

References m_xImpl, and sName.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ InsertControlCharacter()

void XMLTextImportHelper::InsertControlCharacter ( sal_Int16  nControl)

Definition at line 746 of file txtimp.cxx.

References m_xImpl.

◆ InsertFootnoteID()

void XMLTextImportHelper::InsertFootnoteID ( const OUString &  sXMLId,
sal_Int16  nAPIId 
)

insert new footnote ID.

Also fixup open references from the backpatch list to this ID.

Definition at line 177 of file XMLPropertyBackpatcher.cxx.

References GetFootnoteBP().

Referenced by XMLFootnoteImportContext::startFastElement().

◆ InsertSequenceID()

void XMLTextImportHelper::InsertSequenceID ( const OUString &  sXMLId,
const OUString &  sName,
sal_Int16  nAPIId 
)

insert new sequence ID Also fixup open references from backpatch list to this ID.

Definition at line 191 of file XMLPropertyBackpatcher.cxx.

References GetSequenceIdBP(), GetSequenceNameBP(), and sName.

Referenced by XMLSequenceFieldImportContext::PrepareField().

◆ InsertString() [1/2]

void XMLTextImportHelper::InsertString ( const OUString &  rChars)

◆ InsertString() [2/2]

void XMLTextImportHelper::InsertString ( std::u16string_view  rChars,
bool &  rIgnoreLeadingSpace 
)

Definition at line 712 of file txtimp.cxx.

References i, m_xImpl, and u.

◆ InsertTextContent()

void XMLTextImportHelper::InsertTextContent ( css::uno::Reference< css::text::XTextContent > const &  xContent)

◆ IsBlockMode()

bool XMLTextImportHelper::IsBlockMode ( ) const

Definition at line 236 of file txtimp.cxx.

References m_xImpl.

◆ IsDuplicateFrame()

bool XMLTextImportHelper::IsDuplicateFrame ( const OUString &  sName,
sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nWidth,
sal_Int32  nHeight 
) const

Definition at line 640 of file txtimp.cxx.

References HasFrameByName(), m_xImpl, and sName.

◆ IsInFrame()

bool XMLTextImportHelper::IsInFrame ( ) const

Definition at line 2233 of file txtimp.cxx.

References GetCursor(), u, and xFrame.

◆ IsInHeaderFooter()

bool XMLTextImportHelper::IsInHeaderFooter ( ) const
virtual

Definition at line 2259 of file txtimp.cxx.

◆ IsInsertMode()

bool XMLTextImportHelper::IsInsertMode ( ) const

Definition at line 226 of file txtimp.cxx.

References m_xImpl.

Referenced by SetOutlineStyles().

◆ IsInsideDeleteContext()

bool XMLTextImportHelper::IsInsideDeleteContext ( ) const

redlining : Getter to know if we are inside a <text:deletion> element (deleted redline section)

Definition at line 322 of file txtimp.cxx.

References m_xImpl.

◆ IsOrganizerMode()

bool XMLTextImportHelper::IsOrganizerMode ( ) const

Definition at line 241 of file txtimp.cxx.

References m_xImpl.

◆ IsProgress()

bool XMLTextImportHelper::IsProgress ( ) const

Definition at line 246 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextListItemContext::createFastChildContext().

◆ IsStylesOnlyMode()

bool XMLTextImportHelper::IsStylesOnlyMode ( ) const

Definition at line 231 of file txtimp.cxx.

References m_xImpl.

◆ MakeBackpatcherImpl()

std::shared_ptr< XMLTextImportHelper::BackpatcherImpl > XMLTextImportHelper::MakeBackpatcherImpl ( )
staticprivate

Definition at line 122 of file XMLPropertyBackpatcher.cxx.

◆ MapCrossRefHeadingFieldsHorribly()

void XMLTextImportHelper::MapCrossRefHeadingFieldsHorribly ( )

Definition at line 2405 of file txtimp.cxx.

References m_xImpl, name, and nType.

◆ operator=()

XMLTextImportHelper & XMLTextImportHelper::operator= ( const XMLTextImportHelper )
privatedelete

◆ popFieldCtx()

uno::Reference< text::XFormField > XMLTextImportHelper::popFieldCtx ( )

Definition at line 2127 of file txtimp.cxx.

References m_xImpl, and SAL_INFO.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ PopListContext()

void XMLTextImportHelper::PopListContext ( )

pop the list context stack

Definition at line 2067 of file txtimp.cxx.

References GetTextListHelper(), and XMLTextListsHelper::PopListContext().

Referenced by XMLFootnoteImportContext::endFastElement().

◆ ProcessFootnoteReference()

void XMLTextImportHelper::ProcessFootnoteReference ( const OUString &  sXMLId,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)

set the proper footnote reference ID, or put into backpatch list if ID is unknown

Definition at line 184 of file XMLPropertyBackpatcher.cxx.

References GetFootnoteBP().

Referenced by XMLReferenceFieldImportContext::PrepareField().

◆ ProcessSequenceReference()

void XMLTextImportHelper::ProcessSequenceReference ( const OUString &  sXMLId,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)

set sequence ID or insert into backpatch list

Definition at line 200 of file XMLPropertyBackpatcher.cxx.

References GetSequenceIdBP(), and GetSequenceNameBP().

Referenced by XMLReferenceFieldImportContext::PrepareField().

◆ pushFieldCtx()

void XMLTextImportHelper::pushFieldCtx ( const OUString &  name,
const OUString &  type 
)

Definition at line 2120 of file txtimp.cxx.

References GetCursor(), m_xImpl, name, and type.

Referenced by XMLTextMarkImportContext::startFastElement().

◆ PushListContext()

void XMLTextImportHelper::PushListContext ( )

push a list context on the list context stack

Definition at line 2062 of file txtimp.cxx.

References GetTextListHelper(), and XMLTextListsHelper::PushListContext().

Referenced by XMLFootnoteImportContext::startFastElement().

◆ RedlineAdd()

void XMLTextImportHelper::RedlineAdd ( const OUString &  rType,
const OUString &  rId,
const OUString &  rAuthor,
const OUString &  rComment,
const css::util::DateTime &  rDateTime,
bool  bMergeLastParagraph 
)
virtual
Parameters
rTyperedline type (insert, del,... )
rIduse to identify this redline
rAuthorname of the author
rCommentredline comment
rDateTimedate+time
bMergeLastParagraphmerge last paras

Definition at line 2320 of file txtimp.cxx.

◆ RedlineAdjustStartNodeCursor()

void XMLTextImportHelper::RedlineAdjustStartNodeCursor ( )
virtual

Definition at line 2347 of file txtimp.cxx.

◆ RedlineCreateText()

Reference< XTextCursor > XMLTextImportHelper::RedlineCreateText ( css::uno::Reference< css::text::XTextCursor > &  rOldCursor,
const OUString &  rId 
)
virtual
Parameters
rOldCursorneeded to get the document
rIdID used to RedlineAdd() call

Definition at line 2330 of file txtimp.cxx.

◆ RedlineSetCursor()

void XMLTextImportHelper::RedlineSetCursor ( const OUString &  rId,
bool  bStart,
bool  bIsOutsideOfParagraph 
)
virtual
Parameters
rIdID used to RedlineAdd() call
bStartstart or end Cursor
bIsOutsideOfParagraphrange is not within <text:p>

Definition at line 2339 of file txtimp.cxx.

◆ ResetCursor()

void XMLTextImportHelper::ResetCursor ( )

Definition at line 622 of file txtimp.cxx.

References m_xImpl.

◆ ResetOpenRedlineId()

void XMLTextImportHelper::ResetOpenRedlineId ( )

reset the last open redline ID

Definition at line 2377 of file txtimp.cxx.

References SetOpenRedlineId().

◆ SetAutoStyles()

void XMLTextImportHelper::SetAutoStyles ( SvXMLStylesContext pStyles)

Definition at line 1747 of file txtimp.cxx.

References m_xImpl.

◆ setBookmarkAttributes()

void XMLTextImportHelper::setBookmarkAttributes ( OUString const &  bookmark,
bool  hidden,
OUString const &  condition 
)

Definition at line 2449 of file txtimp.cxx.

References hidden, and m_xImpl.

Referenced by XMLTextMarkImportContext::startFastElement().

◆ SetCellParaStyleDefault()

void XMLTextImportHelper::SetCellParaStyleDefault ( OUString const &  rNewValue)

Definition at line 2383 of file txtimp.cxx.

References m_xImpl.

◆ SetChangesProtectionKey()

void XMLTextImportHelper::SetChangesProtectionKey ( const css::uno::Sequence< sal_Int8 > &  rProtectionKey)
virtual

Definition at line 2361 of file txtimp.cxx.

◆ setCurrentFieldParamsTo()

void XMLTextImportHelper::setCurrentFieldParamsTo ( css::uno::Reference< css::text::XFormField > const &  xFormField)

Definition at line 2172 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

◆ SetCursor()

void XMLTextImportHelper::SetCursor ( const css::uno::Reference< css::text::XTextCursor > &  rCursor)

◆ SetHyperlink()

void XMLTextImportHelper::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 
)

Definition at line 1621 of file txtimp.cxx.

References Any, m_xImpl, sDisplayName, XMLEventsImportContext::SetEvents(), TEXT_TEXT, and u.

◆ SetInsideDeleteContext()

void XMLTextImportHelper::SetInsideDeleteContext ( bool const  bNew)

redlining : Setter to remember the fact we are inside/outside a <text:deletion> element (deleted redline section)

Definition at line 317 of file txtimp.cxx.

References m_xImpl.

◆ SetOpenRedlineId()

void XMLTextImportHelper::SetOpenRedlineId ( OUString const &  rId)

modify the last open redline ID

Definition at line 2372 of file txtimp.cxx.

References m_xImpl.

Referenced by ResetOpenRedlineId().

◆ SetOutlineStyles()

void XMLTextImportHelper::SetOutlineStyles ( bool  bSetEmpty)

Definition at line 1525 of file txtimp.cxx.

References Any, GetXMLImport(), i, IsInsertMode(), lcl_HasListStyle(), m_xImpl, and nCount.

◆ SetRecordChanges()

void XMLTextImportHelper::SetRecordChanges ( bool  bRecordChanges)
virtual

Definition at line 2357 of file txtimp.cxx.

◆ SetRuby()

void XMLTextImportHelper::SetRuby ( SvXMLImport const &  rImport,
const css::uno::Reference< css::text::XTextCursor > &  rCursor,
const OUString &  rStyleName,
const OUString &  rTextStyleName,
const OUString &  rText 
)

◆ SetShowChanges()

void XMLTextImportHelper::SetShowChanges ( bool  bShowChanges)
virtual

Definition at line 2352 of file txtimp.cxx.

◆ SetStyleAndAttrs()

OUString XMLTextImportHelper::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,
bool  bOutlineContentVisible = true 
)

◆ StoreLastImportedFrameName()

void XMLTextImportHelper::StoreLastImportedFrameName ( const OUString &  rName)

Definition at line 691 of file txtimp.cxx.

References m_xImpl.

Member Data Documentation

◆ m_xBackpatcherImpl

std::shared_ptr<BackpatcherImpl> XMLTextImportHelper::m_xBackpatcherImpl
private

Definition at line 104 of file txtimp.hxx.

Referenced by GetFootnoteBP(), GetSequenceIdBP(), and GetSequenceNameBP().

◆ m_xImpl

std::unique_ptr<Impl> XMLTextImportHelper::m_xImpl
private

Definition at line 101 of file txtimp.hxx.

Referenced by AddCrossRefHeadingMapping(), addFieldParam(), AddOutlineStyleCandidate(), ClearLastImportedTextFrameName(), ConnectFrameChains(), ConvertStarFonts(), CreateTextChildContext(), DeleteParagraph(), dispose(), FindAndRemoveBookmarkStartRange(), FindAutoCharStyle(), FindAutoFrameStyle(), FindAutoListStyle(), FindDrawingPage(), FindOutlineStyleName(), FindPageMaster(), FindSectionStyle(), getBookmarkCondition(), getBookmarkHidden(), GetCellParaStyleDefault(), GetCellStyles(), GetChapterNumbering(), getCurrentFieldStart(), getCurrentFieldType(), GetCursor(), GetCursorAsRange(), GetDataStyleKey(), GetFrameStyles(), GetNumberingStyles(), GetOpenRedlineId(), GetPageStyles(), GetParaImportPropertySetMapper(), GetParaStyles(), GetRenameMap(), GetRubyImportPropertySetMapper(), GetSectionImportPropertySetMapper(), GetText(), GetTextImportPropertySetMapper(), GetTextListHelper(), GetTextStyles(), GetXMLImport(), hasCurrentFieldCtx(), hasCurrentFieldSeparator(), HasFrameByName(), InsertBookmarkStartRange(), InsertControlCharacter(), InsertString(), InsertTextContent(), IsBlockMode(), IsDuplicateFrame(), IsInsertMode(), IsInsideDeleteContext(), IsOrganizerMode(), IsProgress(), IsStylesOnlyMode(), MapCrossRefHeadingFieldsHorribly(), popFieldCtx(), pushFieldCtx(), ResetCursor(), SetAutoStyles(), setBookmarkAttributes(), SetCellParaStyleDefault(), setCurrentFieldParamsTo(), SetCursor(), SetHyperlink(), SetInsideDeleteContext(), SetOpenRedlineId(), SetOutlineStyles(), SetRuby(), SetStyleAndAttrs(), and StoreLastImportedFrameName().


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