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 (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_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::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 542 of file txtimp.cxx.

Member Function Documentation

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

Definition at line 2373 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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

Definition at line 2125 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 1503 of file txtimp.cxx.

References m_xImpl.

Referenced by SetStyleAndAttrs().

void XMLTextImportHelper::ClearLastImportedTextFrameName ( )

Definition at line 696 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 2164 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 2266 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 2284 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 2244 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 2255 of file txtimp.cxx.

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

Definition at line 2276 of file txtimp.cxx.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateDrawingPageExtPropMapper ( SvXMLImport rImport)
static

Definition at line 607 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 552 of file txtimp.cxx.

References FRAME.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableCellExtPropMapper ( SvXMLImport rImport)
static

Definition at line 598 of file txtimp.cxx.

References CELL.

Referenced by XMLTableImport::XMLTableImport().

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

Definition at line 1927 of file txtimp.cxx.

Referenced by CreateTextChildContext().

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableDefaultExtPropMapper ( SvXMLImport rImport)
static

Definition at line 580 of file txtimp.cxx.

References TABLE_DEFAULTS.

SvXMLImportPropertyMapper * XMLTextImportHelper::CreateTableRowDefaultExtPropMapper ( SvXMLImport rImport)
static

Definition at line 589 of file txtimp.cxx.

References TABLE_ROW_DEFAULTS.

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

Definition at line 769 of file txtimp.cxx.

References assert(), m_xImpl, and SAL_WARN_IF.

Referenced by XMLFootnoteImportContext::endFastElement().

void XMLTextImportHelper::dispose ( void  )

Definition at line 546 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 2294 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 2076 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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

Definition at line 1986 of file txtimp.cxx.

References m_xImpl, and SD_GRAPHICS_ID.

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

Definition at line 1972 of file txtimp.cxx.

References m_xImpl, and TEXT_LIST.

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

Definition at line 2032 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 1456 of file txtimp.cxx.

References aProperties, and m_xImpl.

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

Definition at line 2016 of file txtimp.cxx.

References m_xImpl, and PAGE_MASTER.

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

Definition at line 2000 of file txtimp.cxx.

References m_xImpl, and TEXT_SECTION.

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

Definition at line 2440 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

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

Definition at line 2435 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

OUString const & XMLTextImportHelper::GetCellParaStyleDefault ( ) const

Definition at line 2368 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 282 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 288 of file txtimp.cxx.

References m_xImpl.

OUString XMLTextImportHelper::getCurrentFieldType ( )

Definition at line 2134 of file txtimp.cxx.

References assert(), and m_xImpl.

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

Definition at line 216 of file txtimp.cxx.

References m_xImpl.

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

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

Definition at line 221 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 1936 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 270 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 264 of file txtimp.cxx.

References m_xImpl.

OUString const & XMLTextImportHelper::GetOpenRedlineId ( ) const

get the last open redline ID

Definition at line 2347 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 276 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 294 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 252 of file txtimp.cxx.

References m_xImpl.

SvI18NMap & XMLTextImportHelper::GetRenameMap ( )

Definition at line 2056 of file txtimp.cxx.

References m_xImpl.

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

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

Definition at line 312 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 306 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 ( )
rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetTextImportPropertySetMapper ( ) const

Definition at line 300 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 258 of file txtimp.cxx.

References m_xImpl.

SvXMLImport & XMLTextImportHelper::GetXMLImport ( )

Definition at line 327 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 630 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 2065 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::endFastElement().

void XMLTextImportHelper::InsertControlCharacter ( sal_Int16  nControl)

Definition at line 746 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::startFastElement().

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 712 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 236 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 640 of file txtimp.cxx.

References HasFrameByName(), and m_xImpl.

bool XMLTextImportHelper::IsInFrame ( ) const

Definition at line 2213 of file txtimp.cxx.

References GetCursor(), u, and xFrame.

bool XMLTextImportHelper::IsInHeaderFooter ( ) const
virtual

Definition at line 2239 of file txtimp.cxx.

bool XMLTextImportHelper::IsInsertMode ( ) const

Definition at line 226 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 322 of file txtimp.cxx.

References m_xImpl.

bool XMLTextImportHelper::IsOrganizerMode ( ) const

Definition at line 241 of file txtimp.cxx.

References m_xImpl.

bool XMLTextImportHelper::IsProgress ( ) const

Definition at line 246 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextListItemContext::createFastChildContext().

bool XMLTextImportHelper::IsStylesOnlyMode ( ) const

Definition at line 231 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 2385 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 2110 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 2050 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 2103 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::startFastElement().

void XMLTextImportHelper::PushListContext ( )

push a list context on the list context stack

Definition at line 2045 of file txtimp.cxx.

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

Referenced by XMLFootnoteImportContext::startFastElement().

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

void XMLTextImportHelper::RedlineAdjustStartNodeCursor ( )
virtual

Definition at line 2327 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 2310 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 2319 of file txtimp.cxx.

void XMLTextImportHelper::ResetCursor ( )

Definition at line 622 of file txtimp.cxx.

References m_xImpl.

void XMLTextImportHelper::ResetOpenRedlineId ( )

reset the last open redline ID

Definition at line 2357 of file txtimp.cxx.

References SetOpenRedlineId().

void XMLTextImportHelper::SetAutoStyles ( SvXMLStylesContext pStyles)

Definition at line 1739 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 2429 of file txtimp.cxx.

References m_xImpl.

Referenced by XMLTextMarkImportContext::startFastElement().

void XMLTextImportHelper::SetCellParaStyleDefault ( OUString const &  rNewValue)

Definition at line 2363 of file txtimp.cxx.

References m_xImpl.

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

Definition at line 2341 of file txtimp.cxx.

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

Definition at line 2152 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 317 of file txtimp.cxx.

References m_xImpl.

void XMLTextImportHelper::SetOpenRedlineId ( OUString const &  rId)

modify the last open redline ID

Definition at line 2352 of file txtimp.cxx.

References m_xImpl.

Referenced by ResetOpenRedlineId().

void XMLTextImportHelper::SetOutlineStyles ( bool  bSetEmpty)

Definition at line 1517 of file txtimp.cxx.

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

void XMLTextImportHelper::SetRecordChanges ( bool  bRecordChanges)
virtual

Definition at line 2337 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 2332 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 691 of file txtimp.cxx.

References m_xImpl.

Member Data Documentation

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

Definition at line 103 of file txtimp.hxx.

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

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

Definition at line 100 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(), GetTextImportPropertySetMapper(), GetTextListHelper(), 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: