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_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 ()
 
const SvXMLTokenMapGetTextNumberedParagraphAttrTokenMap ()
 
const SvXMLTokenMapGetTextListBlockAttrTokenMap ()
 
const SvXMLTokenMapGetTextListBlockElemTokenMap ()
 
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, 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
 
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)
 
OUString getCurrentFieldType ()
 
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...
 
SvXMLImportGetXMLImport ()
 
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 voidoperator new (std::size_t nSize)
 
static voidoperator 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_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &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 354 of file txtimp.hxx.

Constructor & Destructor Documentation

XMLTextImportHelper::XMLTextImportHelper ( const XMLTextImportHelper )
privatedelete
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 ( )
overridevirtual

Definition at line 933 of file txtimp.cxx.

Member Function Documentation

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

Definition at line 2809 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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

Definition at line 2561 of file txtimp.cxx.

References assert(), and m_xImpl.

Referenced by XMLFieldParamImportContext::startFastElement().

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

Definition at line 1894 of file txtimp.cxx.

References m_xImpl.

Referenced by SetStyleAndAttrs().

void XMLTextImportHelper::ClearLastImportedTextFrameName ( )

Definition at line 1087 of file txtimp.cxx.

References m_xImpl.

Referenced by CreateTextChildContext().

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

Definition at line 2600 of file txtimp.cxx.

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

OUString XMLTextImportHelper::ConvertStarFonts ( const OUString &  rChars,
const OUString &  rStyleName,
sal_uInt8 rFlags,
bool  bPara,
SvXMLImport rImport 
) const
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 2702 of file txtimp.cxx.

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

Definition at line 2720 of file txtimp.cxx.

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 2680 of file txtimp.cxx.

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 2691 of file txtimp.cxx.

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

Definition at line 2712 of file txtimp.cxx.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateDrawingPageExtPropMapper ( SvXMLImport rImport)
static

Definition at line 998 of file txtimp.cxx.

References g_XMLPageMasterDrawingPageStyleMap.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateParaDefaultExtPropMapper ( SvXMLImport rImport)
static
SvXMLImportPropertyMapper * XMLTextImportHelper::CreateParaExtPropMapper ( SvXMLImport rImport)
static
SvXMLImportPropertyMapper * XMLTextImportHelper::CreateShapeExtPropMapper ( SvXMLImport rImport)
static

Definition at line 943 of file txtimp.cxx.

References FRAME.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableCellExtPropMapper ( SvXMLImport rImport)
static

Definition at line 989 of file txtimp.cxx.

References CELL.

Referenced by XMLTableImport::XMLTableImport().

SvXMLImportContext * XMLTextImportHelper::CreateTableChildContext ( SvXMLImport rImport,
sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
protectedvirtual

Definition at line 2333 of file txtimp.cxx.

Referenced by CreateTextChildContext().

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableDefaultExtPropMapper ( SvXMLImport rImport)
static

Definition at line 971 of file txtimp.cxx.

References TABLE_DEFAULTS.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableRowDefaultExtPropMapper ( SvXMLImport rImport)
static

Definition at line 980 of file txtimp.cxx.

References TABLE_ROW_DEFAULTS.

SvXMLImportContext * XMLTextImportHelper::CreateTextChildContext ( SvXMLImport rImport,
sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList,
XMLTextType  eType = XMLTextType::Shape 
)
void XMLTextImportHelper::DeleteParagraph ( )

Definition at line 1160 of file txtimp.cxx.

References assert(), m_xImpl, and SAL_WARN_IF.

Referenced by XMLFootnoteImportContext::endFastElement().

void XMLTextImportHelper::dispose ( void  )

Definition at line 937 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 2730 of file txtimp.cxx.

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 2512 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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

Definition at line 2392 of file txtimp.cxx.

References m_xImpl, and SD_GRAPHICS_ID.

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

Definition at line 2378 of file txtimp.cxx.

References m_xImpl, and TEXT_LIST.

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

Definition at line 2438 of file txtimp.cxx.

References assert(), m_xImpl, and SD_DRAWINGPAGE_ID.

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 1847 of file txtimp.cxx.

References aProperties, and m_xImpl.

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

Definition at line 2422 of file txtimp.cxx.

References m_xImpl, and PAGE_MASTER.

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

Definition at line 2406 of file txtimp.cxx.

References m_xImpl, and TEXT_SECTION.

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

Definition at line 2876 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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

Definition at line 2871 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

OUString const & XMLTextImportHelper::GetCellParaStyleDefault ( ) const

Definition at line 2804 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 614 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 620 of file txtimp.cxx.

References m_xImpl.

OUString XMLTextImportHelper::getCurrentFieldType ( )

Definition at line 2570 of file txtimp.cxx.

References assert(), and m_xImpl.

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

Definition at line 548 of file txtimp.cxx.

References m_xImpl.

Referenced by IsInFrame(), and XMLFootnoteImportContext::StartElement().

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

Definition at line 553 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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 2342 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().

XMLPropertyBackpatcher< sal_Int16 > & XMLTextImportHelper::GetFootnoteBP ( )
inlineprotected
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetFrameStyles ( ) const

Definition at line 602 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 596 of file txtimp.cxx.

References m_xImpl.

OUString const & XMLTextImportHelper::GetOpenRedlineId ( ) const

get the last open redline ID

Definition at line 2783 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 608 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 626 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 584 of file txtimp.cxx.

References m_xImpl.

SvI18NMap & XMLTextImportHelper::GetRenameMap ( )

Definition at line 2492 of file txtimp.cxx.

References m_xImpl.

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

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

Definition at line 644 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 638 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 166 of file XMLPropertyBackpatcher.cxx.

References m_xBackpatcherImpl.

Referenced by InsertSequenceID(), and ProcessSequenceReference().

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

Definition at line 709 of file txtimp.cxx.

References m_xImpl.

const SvXMLTokenMap & XMLTextImportHelper::GetTextElemTokenMap ( )

Definition at line 669 of file txtimp.cxx.

References m_xImpl.

Referenced by CreateTextChildContext().

const SvXMLTokenMap & XMLTextImportHelper::GetTextFrameAttrTokenMap ( )

Definition at line 699 of file txtimp.cxx.

References m_xImpl.

const SvXMLTokenMap & XMLTextImportHelper::GetTextHyperlinkAttrTokenMap ( )

Definition at line 719 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 632 of file txtimp.cxx.

References m_xImpl.

const SvXMLTokenMap & XMLTextImportHelper::GetTextListBlockAttrTokenMap ( )

Definition at line 2472 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextListBlockContext::XMLTextListBlockContext().

const SvXMLTokenMap & XMLTextImportHelper::GetTextListBlockElemTokenMap ( )

Definition at line 2482 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextListBlockContext::CreateChildContext().

XMLTextListsHelper & XMLTextImportHelper::GetTextListHelper ( )
const SvXMLTokenMap & XMLTextImportHelper::GetTextNumberedParagraphAttrTokenMap ( )

Definition at line 2462 of file txtimp.cxx.

References m_xImpl.

const SvXMLTokenMap & XMLTextImportHelper::GetTextPAttrTokenMap ( )

Definition at line 689 of file txtimp.cxx.

References m_xImpl.

const SvXMLTokenMap & XMLTextImportHelper::GetTextPElemTokenMap ( )

Definition at line 679 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 590 of file txtimp.cxx.

References m_xImpl.

SvXMLImport & XMLTextImportHelper::GetXMLImport ( )

Definition at line 659 of file txtimp.cxx.

References m_xImpl.

Referenced by SetOutlineStyles(), and SetStyleAndAttrs().

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

Definition at line 1021 of file txtimp.cxx.

References m_xImpl.

Referenced by IsDuplicateFrame().

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 2501 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

void XMLTextImportHelper::InsertControlCharacter ( sal_Int16  nControl)

Definition at line 1137 of file txtimp.cxx.

References assert(), and m_xImpl.

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 176 of file XMLPropertyBackpatcher.cxx.

References GetFootnoteBP().

Referenced by XMLFootnoteImportContext::StartElement().

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 190 of file XMLPropertyBackpatcher.cxx.

References GetSequenceIdBP(), and GetSequenceNameBP().

Referenced by XMLSequenceFieldImportContext::PrepareField().

void XMLTextImportHelper::InsertString ( const OUString &  rChars)
void XMLTextImportHelper::InsertString ( const OUString &  rChars,
bool &  rIgnoreLeadingSpace 
)

Definition at line 1103 of file txtimp.cxx.

References assert(), i, m_xImpl, and u.

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

Definition at line 568 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 1031 of file txtimp.cxx.

References HasFrameByName(), and m_xImpl.

bool XMLTextImportHelper::IsInFrame ( ) const

Definition at line 2649 of file txtimp.cxx.

References GetCursor(), and xFrame.

bool XMLTextImportHelper::IsInHeaderFooter ( ) const
virtual

Definition at line 2675 of file txtimp.cxx.

bool XMLTextImportHelper::IsInsertMode ( ) const

Definition at line 558 of file txtimp.cxx.

References m_xImpl.

Referenced by SetOutlineStyles().

bool XMLTextImportHelper::IsInsideDeleteContext ( ) const

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

Definition at line 654 of file txtimp.cxx.

References m_xImpl.

bool XMLTextImportHelper::IsOrganizerMode ( ) const

Definition at line 573 of file txtimp.cxx.

References m_xImpl.

bool XMLTextImportHelper::IsProgress ( ) const

Definition at line 578 of file txtimp.cxx.

References m_xImpl.

bool XMLTextImportHelper::IsStylesOnlyMode ( ) const

Definition at line 563 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 121 of file XMLPropertyBackpatcher.cxx.

void XMLTextImportHelper::MapCrossRefHeadingFieldsHorribly ( )

Definition at line 2821 of file txtimp.cxx.

References m_xImpl, name, and nType.

XMLTextImportHelper& XMLTextImportHelper::operator= ( const XMLTextImportHelper )
privatedelete
uno::Reference< text::XFormField > XMLTextImportHelper::popFieldCtx ( )

Definition at line 2546 of file txtimp.cxx.

References m_xImpl, and SAL_INFO.

Referenced by XMLTextMarkImportContext::endFastElement().

void XMLTextImportHelper::PopListContext ( )

pop the list context stack

Definition at line 2456 of file txtimp.cxx.

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

Referenced by XMLFootnoteImportContext::endFastElement().

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 183 of file XMLPropertyBackpatcher.cxx.

References GetFootnoteBP().

Referenced by XMLReferenceFieldImportContext::PrepareField().

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 199 of file XMLPropertyBackpatcher.cxx.

References GetSequenceIdBP(), and GetSequenceNameBP().

Referenced by XMLReferenceFieldImportContext::PrepareField().

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

Definition at line 2539 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::StartElement().

void XMLTextImportHelper::PushListContext ( )

push a list context on the list context stack

Definition at line 2451 of file txtimp.cxx.

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

Referenced by XMLFootnoteImportContext::StartElement().

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 2736 of file txtimp.cxx.

void XMLTextImportHelper::RedlineAdjustStartNodeCursor ( )
virtual

Definition at line 2763 of file txtimp.cxx.

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 2746 of file txtimp.cxx.

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 2755 of file txtimp.cxx.

void XMLTextImportHelper::ResetCursor ( )

Definition at line 1013 of file txtimp.cxx.

References m_xImpl.

void XMLTextImportHelper::ResetOpenRedlineId ( )

reset the last open redline ID

Definition at line 2793 of file txtimp.cxx.

References SetOpenRedlineId().

void XMLTextImportHelper::SetAutoStyles ( SvXMLStylesContext pStyles)

Definition at line 2130 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 2865 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::StartElement().

void XMLTextImportHelper::SetCellParaStyleDefault ( OUString const &  rNewValue)

Definition at line 2799 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 2777 of file txtimp.cxx.

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

Definition at line 2588 of file txtimp.cxx.

References assert(), Import, and m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

void XMLTextImportHelper::SetCursor ( const css::uno::Reference< css::text::XTextCursor > &  rCursor)
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 
)
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 649 of file txtimp.cxx.

References m_xImpl.

void XMLTextImportHelper::SetOpenRedlineId ( OUString const &  rId)

modify the last open redline ID

Definition at line 2788 of file txtimp.cxx.

References m_xImpl.

Referenced by ResetOpenRedlineId().

void XMLTextImportHelper::SetOutlineStyles ( bool  bSetEmpty)

Definition at line 1908 of file txtimp.cxx.

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

void XMLTextImportHelper::SetRecordChanges ( bool  bRecordChanges)
virtual

Definition at line 2773 of file txtimp.cxx.

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

Definition at line 2768 of file txtimp.cxx.

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 
)
void XMLTextImportHelper::StoreLastImportedFrameName ( const OUString &  rName)

Definition at line 1082 of file txtimp.cxx.

References m_xImpl.

Member Data Documentation

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

Definition at line 363 of file txtimp.hxx.

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

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

Definition at line 360 of file txtimp.hxx.

Referenced by AddCrossRefHeadingMapping(), addFieldParam(), AddOutlineStyleCandidate(), ClearLastImportedTextFrameName(), ConnectFrameChains(), ConvertStarFonts(), CreateTextChildContext(), DeleteParagraph(), dispose(), FindAndRemoveBookmarkStartRange(), FindAutoFrameStyle(), FindAutoListStyle(), FindDrawingPage(), FindOutlineStyleName(), FindPageMaster(), FindSectionStyle(), getBookmarkCondition(), getBookmarkHidden(), GetCellParaStyleDefault(), GetCellStyles(), GetChapterNumbering(), getCurrentFieldType(), GetCursor(), GetCursorAsRange(), GetDataStyleKey(), GetFrameStyles(), GetNumberingStyles(), GetOpenRedlineId(), GetPageStyles(), GetParaImportPropertySetMapper(), GetParaStyles(), GetRenameMap(), GetRubyImportPropertySetMapper(), GetSectionImportPropertySetMapper(), GetText(), GetTextContourAttrTokenMap(), GetTextElemTokenMap(), GetTextFrameAttrTokenMap(), GetTextHyperlinkAttrTokenMap(), GetTextImportPropertySetMapper(), GetTextListBlockAttrTokenMap(), GetTextListBlockElemTokenMap(), GetTextListHelper(), GetTextNumberedParagraphAttrTokenMap(), GetTextPAttrTokenMap(), GetTextPElemTokenMap(), GetTextStyles(), GetXMLImport(), hasCurrentFieldCtx(), 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: