LibreOffice Module xmloff (master) 1
|
#include <txtimp.hxx>
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) |
SvXMLImportContext * | CreateTextChildContext (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 SvxXMLListStyleContext * | FindAutoListStyle (const OUString &rName) const |
XMLPropStyleContext * | FindAutoFrameStyle (const OUString &rName) const |
XMLPropStyleContext * | FindSectionStyle (const OUString &rName) const |
XMLPropStyleContext * | FindPageMaster (const OUString &rName) const |
XMLPropStyleContext * | FindDrawingPage (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 |
SvI18NMap & | GetRenameMap () |
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::XPropertySet > | createAndInsertOLEObject (SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTblName, sal_Int32 nWidth, sal_Int32 nHeight) |
virtual css::uno::Reference< css::beans::XPropertySet > | createAndInsertOOoLink (SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTblName, sal_Int32 nWidth, sal_Int32 nHeight) |
virtual css::uno::Reference< css::beans::XPropertySet > | createAndInsertApplet (const OUString &rName, const OUString &rCode, bool bMayScript, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight) |
virtual css::uno::Reference< css::beans::XPropertySet > | createAndInsertPlugin (const OUString &rMimeType, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight) |
virtual css::uno::Reference< css::beans::XPropertySet > | createAndInsertFloatingFrame (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 () |
XMLTextListsHelper & | GetTextListHelper () |
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 |
![]() | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Static Public Member Functions | |
static SvXMLImportPropertyMapper * | CreateShapeExtPropMapper (SvXMLImport &) |
static SvXMLImportPropertyMapper * | CreateParaExtPropMapper (SvXMLImport &) |
static SvXMLImportPropertyMapper * | CreateParaDefaultExtPropMapper (SvXMLImport &) |
static SvXMLImportPropertyMapper * | CreateTableDefaultExtPropMapper (SvXMLImport &) |
static SvXMLImportPropertyMapper * | CreateTableRowDefaultExtPropMapper (SvXMLImport &) |
static SvXMLImportPropertyMapper * | CreateTableCellExtPropMapper (SvXMLImport &) |
static SvXMLImportPropertyMapper * | CreateDrawingPageExtPropMapper (SvXMLImport &) |
![]() | |
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 SvXMLImportContext * | CreateTableChildContext (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 () |
![]() | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
XMLTextImportHelper (const XMLTextImportHelper &)=delete | |
XMLTextImportHelper & | operator= (const XMLTextImportHelper &)=delete |
Static Private Member Functions | |
static std::shared_ptr< BackpatcherImpl > | MakeBackpatcherImpl () |
Private Attributes | |
std::unique_ptr< Impl > | m_xImpl |
std::shared_ptr< BackpatcherImpl > | m_xBackpatcherImpl |
Additional Inherited Members | |
![]() | |
oslInterlockedCount | m_nCount |
Definition at line 94 of file txtimp.hxx.
|
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 |
||
) |
References CreateTextChildContext(), dispose(), and GetParaStyles().
|
overridevirtual |
Definition at line 543 of file txtimp.cxx.
void XMLTextImportHelper::AddCrossRefHeadingMapping | ( | OUString const & | rFrom, |
OUString const & | rTo | ||
) |
Definition at line 2378 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement().
void XMLTextImportHelper::addFieldParam | ( | const OUString & | name, |
const OUString & | value | ||
) |
Definition at line 2127 of file txtimp.cxx.
References m_xImpl, name, and value.
Referenced by XMLFieldParamImportContext::startFastElement().
void XMLTextImportHelper::AddOutlineStyleCandidate | ( | const sal_Int8 | nOutlineLevel, |
const OUString & | rStyleName | ||
) |
void XMLTextImportHelper::ClearLastImportedTextFrameName | ( | ) |
Definition at line 697 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 2169 of file txtimp.cxx.
References Any, Get(), GetRenameMap(), i, m_xImpl, and XML_TEXT_RENAME_TYPE_FRAME.
OUString XMLTextImportHelper::ConvertStarFonts | ( | const OUString & | rChars, |
const OUString & | rStyleName, | ||
sal_uInt8 & | rFlags, | ||
bool | bPara, | ||
SvXMLImport & | rImport | ||
) | const |
Definition at line 805 of file txtimp.cxx.
References CONV_FROM_STAR_BATS, CONV_FROM_STAR_MATH, CONV_STAR_FONT_FLAGS_VALID, CTF_FONTFAMILYNAME, XMLTextStyleContext::GetProperties_(), i, m_xImpl, XMLPropertyState::maValue, XMLPropertyState::mnIndex, nCount, TEXT_PARAGRAPH, and TEXT_TEXT.
|
virtual |
Definition at line 2271 of file txtimp.cxx.
|
virtual |
Definition at line 2289 of file txtimp.cxx.
|
virtual |
Definition at line 2249 of file txtimp.cxx.
|
virtual |
Definition at line 2260 of file txtimp.cxx.
|
virtual |
Definition at line 2281 of file txtimp.cxx.
|
static |
Definition at line 608 of file txtimp.cxx.
References g_XMLPageMasterDrawingPageStyleMap.
|
static |
Definition at line 567 of file txtimp.cxx.
References SvXMLImportPropertyMapper::ChainImportMapper(), SHAPE_PARA, and TEXT_ADDITIONAL_DEFAULTS.
Referenced by XMLShapeImportHelper::XMLShapeImportHelper().
|
static |
Definition at line 560 of file txtimp.cxx.
References SHAPE_PARA.
Referenced by XMLShapeImportHelper::CreateShapePropMapper(), XMLShapeImportHelper::XMLShapeImportHelper(), and XMLTableImport::XMLTableImport().
|
static |
Definition at line 553 of file txtimp.cxx.
References FRAME.
|
static |
Definition at line 599 of file txtimp.cxx.
References CELL.
Referenced by XMLTableImport::XMLTableImport().
|
protectedvirtual |
Definition at line 1929 of file txtimp.cxx.
Referenced by CreateTextChildContext().
|
static |
Definition at line 581 of file txtimp.cxx.
References TABLE_DEFAULTS.
|
static |
Definition at line 590 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 |
||
) |
Definition at line 1746 of file txtimp.cxx.
References Body, Cell, ChangedRegion, ClearLastImportedTextFrameName(), XMLShapeImportHelper::CreateGroupChildContext(), xmloff::OFormLayerXMLImport::createOfficeFormsContext(), CreateTableChildContext(), DRAW, XMLChangeImportContext::END, eType, HeaderFooter, m_xImpl, OFFICE, XMLChangeImportContext::POINT, Section, Shape, XMLChangeImportContext::START, TABLE, TEXT, TextBox, VarTypeSequence, VarTypeSimple, VarTypeUserField, xmloff::token::XML_A, xmloff::token::XML_ALPHABETICAL_INDEX, xmloff::token::XML_ALPHABETICAL_INDEX_AUTO_MARK_FILE, xmloff::token::XML_BIBLIOGRAPHY, xmloff::token::XML_CALCULATION_SETTINGS, xmloff::token::XML_CHANGE, xmloff::token::XML_CHANGE_END, xmloff::token::XML_CHANGE_START, xmloff::token::XML_DDE_CONNECTION_DECLS, XML_ELEMENT, xmloff::token::XML_FORMS, xmloff::token::XML_FRAME, xmloff::token::XML_H, xmloff::token::XML_ILLUSTRATION_INDEX, xmloff::token::XML_INDEX_TITLE, xmloff::token::XML_LIST, xmloff::token::XML_NUMBERED_PARAGRAPH, xmloff::token::XML_OBJECT_INDEX, xmloff::token::XML_P, xmloff::token::XML_SECTION, xmloff::token::XML_SEQUENCE_DECLS, xmloff::token::XML_TABLE, xmloff::token::XML_TABLE_INDEX, xmloff::token::XML_TABLE_OF_CONTENT, xmloff::token::XML_TRACKED_CHANGES, xmloff::token::XML_USER_FIELD_DECLS, xmloff::token::XML_USER_INDEX, xmloff::token::XML_VARIABLE_DECLS, and XMLOFF_WARN_UNKNOWN_ELEMENT.
void XMLTextImportHelper::DeleteParagraph | ( | ) |
Definition at line 770 of file txtimp.cxx.
References m_xImpl, and SAL_WARN_IF.
Referenced by XMLFootnoteImportContext::endFastElement().
void XMLTextImportHelper::dispose | ( | void | ) |
Definition at line 547 of file txtimp.cxx.
References m_xImpl.
|
virtual |
Definition at line 2299 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 2078 of file txtimp.cxx.
References m_xImpl, and sName.
Referenced by XMLTextMarkImportContext::endFastElement().
XMLPropStyleContext * XMLTextImportHelper::FindAutoFrameStyle | ( | const OUString & | rName | ) | const |
Definition at line 1988 of file txtimp.cxx.
References m_xImpl, and SD_GRAPHICS_ID.
const SvxXMLListStyleContext * XMLTextImportHelper::FindAutoListStyle | ( | const OUString & | rName | ) | const |
Definition at line 1974 of file txtimp.cxx.
XMLPropStyleContext * XMLTextImportHelper::FindDrawingPage | ( | OUString const & | rName | ) | const |
Definition at line 2034 of file txtimp.cxx.
References 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 1458 of file txtimp.cxx.
References aProperties, and m_xImpl.
XMLPropStyleContext * XMLTextImportHelper::FindPageMaster | ( | const OUString & | rName | ) | const |
Definition at line 2018 of file txtimp.cxx.
References m_xImpl, and PAGE_MASTER.
XMLPropStyleContext * XMLTextImportHelper::FindSectionStyle | ( | const OUString & | rName | ) | const |
Definition at line 2002 of file txtimp.cxx.
References m_xImpl, and TEXT_SECTION.
const OUString & XMLTextImportHelper::getBookmarkCondition | ( | OUString const & | bookmark | ) | const |
Definition at line 2445 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement().
bool XMLTextImportHelper::getBookmarkHidden | ( | OUString const & | bookmark | ) | const |
Definition at line 2440 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement().
OUString const & XMLTextImportHelper::GetCellParaStyleDefault | ( | ) | const |
Definition at line 2373 of file txtimp.cxx.
References m_xImpl.
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetCellStyles | ( | ) | const |
Definition at line 283 of file txtimp.cxx.
References m_xImpl.
uno::Reference< container::XIndexReplace > const & XMLTextImportHelper::GetChapterNumbering | ( | ) | const |
Definition at line 289 of file txtimp.cxx.
References m_xImpl.
uno::Reference< text::XTextRange > XMLTextImportHelper::getCurrentFieldStart | ( | ) | const |
Definition at line 2140 of file txtimp.cxx.
References m_xImpl.
std::pair< OUString, OUString > XMLTextImportHelper::getCurrentFieldType | ( | ) | const |
Definition at line 2134 of file txtimp.cxx.
References m_xImpl.
uno::Reference< text::XTextCursor > & XMLTextImportHelper::GetCursor | ( | ) |
Definition at line 217 of file txtimp.cxx.
References m_xImpl.
Referenced by IsInFrame(), pushFieldCtx(), and XMLFootnoteImportContext::startFastElement().
uno::Reference< text::XTextRange > & XMLTextImportHelper::GetCursorAsRange | ( | ) |
Definition at line 222 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 1938 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().
|
inlineprotected |
Definition at line 147 of file XMLPropertyBackpatcher.cxx.
References GetSequenceNumber(), and m_xBackpatcherImpl.
Referenced by InsertFootnoteID(), and ProcessFootnoteReference().
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetFrameStyles | ( | ) | const |
Definition at line 271 of file txtimp.cxx.
References m_xImpl.
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetNumberingStyles | ( | ) | const |
Definition at line 265 of file txtimp.cxx.
References m_xImpl.
OUString const & XMLTextImportHelper::GetOpenRedlineId | ( | ) | const |
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetPageStyles | ( | ) | const |
Definition at line 277 of file txtimp.cxx.
References m_xImpl.
rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetParaImportPropertySetMapper | ( | ) | const |
Definition at line 295 of file txtimp.cxx.
References m_xImpl.
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetParaStyles | ( | ) | const |
Definition at line 253 of file txtimp.cxx.
References m_xImpl.
SvI18NMap & XMLTextImportHelper::GetRenameMap | ( | ) |
Definition at line 2058 of file txtimp.cxx.
References m_xImpl.
Referenced by ConnectFrameChains(), and XMLVariableDeclImportContext::FindFieldMaster().
rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetRubyImportPropertySetMapper | ( | ) | const |
Definition at line 313 of file txtimp.cxx.
References m_xImpl.
rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetSectionImportPropertySetMapper | ( | ) | const |
Definition at line 307 of file txtimp.cxx.
References m_xImpl.
|
inlineprotected |
Definition at line 157 of file XMLPropertyBackpatcher.cxx.
References GetSequenceNumber(), and m_xBackpatcherImpl.
Referenced by InsertSequenceID(), and ProcessSequenceReference().
|
inlineprotected |
Definition at line 167 of file XMLPropertyBackpatcher.cxx.
References m_xBackpatcherImpl.
Referenced by InsertSequenceID(), and ProcessSequenceReference().
uno::Reference< text::XText > & XMLTextImportHelper::GetText | ( | ) |
Definition at line 212 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLAnnotationImportContext::endFastElement(), and XMLTextMarkImportContext::endFastElement().
rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetTextImportPropertySetMapper | ( | ) | const |
Definition at line 301 of file txtimp.cxx.
References m_xImpl.
XMLTextListsHelper & XMLTextImportHelper::GetTextListHelper | ( | ) |
Definition at line 333 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextListBlockContext::endFastElement(), XMLTextListItemContext::endFastElement(), PopListContext(), PushListContext(), SetStyleAndAttrs(), and XMLTextListBlockContext::XMLTextListBlockContext().
uno::Reference< container::XNameContainer > const & XMLTextImportHelper::GetTextStyles | ( | ) | const |
Definition at line 259 of file txtimp.cxx.
References m_xImpl.
SvXMLImport & XMLTextImportHelper::GetXMLImport | ( | ) |
Definition at line 328 of file txtimp.cxx.
References m_xImpl.
Referenced by SetOutlineStyles(), and SetStyleAndAttrs().
bool XMLTextImportHelper::hasCurrentFieldCtx | ( | ) | const |
Definition at line 2152 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement(), and XMLFieldParamImportContext::startFastElement().
bool XMLTextImportHelper::hasCurrentFieldSeparator | ( | ) | const |
Definition at line 2146 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement().
bool XMLTextImportHelper::HasFrameByName | ( | const OUString & | rName | ) | const |
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 2067 of file txtimp.cxx.
References m_xImpl, and sName.
Referenced by XMLTextMarkImportContext::endFastElement().
void XMLTextImportHelper::InsertControlCharacter | ( | sal_Int16 | nControl | ) |
Definition at line 747 of file txtimp.cxx.
References 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 177 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 191 of file XMLPropertyBackpatcher.cxx.
References GetSequenceIdBP(), GetSequenceNameBP(), and sName.
Referenced by XMLSequenceFieldImportContext::PrepareField().
void XMLTextImportHelper::InsertString | ( | const OUString & | rChars | ) |
Definition at line 702 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextFieldImportContext::endFastElement(), XMLAnnotationImportContext::endFastElement(), XMLSetVarFieldImportContext::endFastElement(), and XMLDatabaseDisplayImportContext::endFastElement().
void XMLTextImportHelper::InsertString | ( | std::u16string_view | rChars, |
bool & | rIgnoreLeadingSpace | ||
) |
Definition at line 713 of file txtimp.cxx.
void XMLTextImportHelper::InsertTextContent | ( | css::uno::Reference< css::text::XTextContent > const & | xContent | ) |
Definition at line 758 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextFieldImportContext::endFastElement(), XMLDdeFieldImportContext::endFastElement(), XMLAnnotationImportContext::endFastElement(), XMLSetVarFieldImportContext::endFastElement(), XMLDatabaseDisplayImportContext::endFastElement(), XMLFootnoteImportContext::startFastElement(), and SvXMLLineBreakContext::startFastElement().
bool XMLTextImportHelper::IsBlockMode | ( | ) | const |
Definition at line 237 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 641 of file txtimp.cxx.
References HasFrameByName(), m_xImpl, and sName.
bool XMLTextImportHelper::IsInFrame | ( | ) | const |
Definition at line 2218 of file txtimp.cxx.
References GetCursor(), u, and xFrame.
|
virtual |
Definition at line 2244 of file txtimp.cxx.
bool XMLTextImportHelper::IsInsertMode | ( | ) | const |
bool XMLTextImportHelper::IsInsideDeleteContext | ( | ) | const |
redlining : Getter to know if we are inside a <text:deletion> element (deleted redline section)
Definition at line 323 of file txtimp.cxx.
References m_xImpl.
bool XMLTextImportHelper::IsOrganizerMode | ( | ) | const |
Definition at line 242 of file txtimp.cxx.
References m_xImpl.
bool XMLTextImportHelper::IsProgress | ( | ) | const |
Definition at line 247 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextListItemContext::createFastChildContext().
bool XMLTextImportHelper::IsStylesOnlyMode | ( | ) | const |
Definition at line 232 of file txtimp.cxx.
References m_xImpl.
|
staticprivate |
Definition at line 122 of file XMLPropertyBackpatcher.cxx.
void XMLTextImportHelper::MapCrossRefHeadingFieldsHorribly | ( | ) |
Definition at line 2390 of file txtimp.cxx.
|
privatedelete |
uno::Reference< text::XFormField > XMLTextImportHelper::popFieldCtx | ( | ) |
Definition at line 2112 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 2052 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 184 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 200 of file XMLPropertyBackpatcher.cxx.
References GetSequenceIdBP(), and GetSequenceNameBP().
Referenced by XMLReferenceFieldImportContext::PrepareField().
void XMLTextImportHelper::pushFieldCtx | ( | const OUString & | name, |
const OUString & | type | ||
) |
Definition at line 2105 of file txtimp.cxx.
References GetCursor(), m_xImpl, name, and type.
Referenced by XMLTextMarkImportContext::startFastElement().
void XMLTextImportHelper::PushListContext | ( | ) |
push a list context on the list context stack
Definition at line 2047 of file txtimp.cxx.
References GetTextListHelper(), and XMLTextListsHelper::PushListContext().
Referenced by XMLFootnoteImportContext::startFastElement().
|
virtual |
rType | redline type (insert, del,... ) |
rId | use to identify this redline |
rAuthor | name of the author |
rComment | redline comment |
rDateTime | date+time |
bMergeLastParagraph | merge last paras |
Definition at line 2305 of file txtimp.cxx.
|
virtual |
Definition at line 2332 of file txtimp.cxx.
|
virtual |
rOldCursor | needed to get the document |
rId | ID used to RedlineAdd() call |
Definition at line 2315 of file txtimp.cxx.
|
virtual |
rId | ID used to RedlineAdd() call |
bStart | start or end Cursor |
bIsOutsideOfParagraph | range is not within <text:p> |
Definition at line 2324 of file txtimp.cxx.
void XMLTextImportHelper::ResetCursor | ( | ) |
Definition at line 623 of file txtimp.cxx.
References m_xImpl.
void XMLTextImportHelper::ResetOpenRedlineId | ( | ) |
reset the last open redline ID
Definition at line 2362 of file txtimp.cxx.
References SetOpenRedlineId().
void XMLTextImportHelper::SetAutoStyles | ( | SvXMLStylesContext * | pStyles | ) |
Definition at line 1741 of file txtimp.cxx.
References m_xImpl.
void XMLTextImportHelper::setBookmarkAttributes | ( | OUString const & | bookmark, |
bool | hidden, | ||
OUString const & | condition | ||
) |
Definition at line 2434 of file txtimp.cxx.
References hidden, and m_xImpl.
Referenced by XMLTextMarkImportContext::startFastElement().
void XMLTextImportHelper::SetCellParaStyleDefault | ( | OUString const & | rNewValue | ) |
Definition at line 2368 of file txtimp.cxx.
References m_xImpl.
|
virtual |
Definition at line 2346 of file txtimp.cxx.
void XMLTextImportHelper::setCurrentFieldParamsTo | ( | css::uno::Reference< css::text::XFormField > const & | xFormField | ) |
Definition at line 2157 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement().
void XMLTextImportHelper::SetCursor | ( | const css::uno::Reference< css::text::XTextCursor > & | rCursor | ) |
Definition at line 616 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLFootnoteImportContext::endFastElement(), and XMLFootnoteImportContext::startFastElement().
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 1615 of file txtimp.cxx.
References Any, m_xImpl, sDisplayName, XMLEventsImportContext::SetEvents(), TEXT_TEXT, and u.
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 318 of file txtimp.cxx.
References m_xImpl.
void XMLTextImportHelper::SetOpenRedlineId | ( | OUString const & | rId | ) |
modify the last open redline ID
Definition at line 2357 of file txtimp.cxx.
References m_xImpl.
Referenced by ResetOpenRedlineId().
void XMLTextImportHelper::SetOutlineStyles | ( | bool | bSetEmpty | ) |
Definition at line 1519 of file txtimp.cxx.
References Any, GetXMLImport(), i, IsInsertMode(), lcl_HasListStyle(), m_xImpl, and nCount.
|
virtual |
Definition at line 2342 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 | ||
) |
Definition at line 1696 of file txtimp.cxx.
References Any, XMLPropStyleContext::FillPropertySet(), m_xImpl, sDisplayName, TEXT_RUBY, and TEXT_TEXT.
|
virtual |
Definition at line 2337 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 |
||
) |
Definition at line 1007 of file txtimp.cxx.
References AddOutlineStyleCandidate(), Any, Exception, XMLTextStyleContext::FillPropertySet(), XMLTextStyleContext::GetDropCapStyleName(), XMLNumberedParaContext::GetLevel(), XMLTextListBlockContext::GetLevel(), XMLNumberedParaContext::GetListId(), XMLTextStyleContext::GetListStyle(), XMLTextStyleContext::GetMasterPageName(), XMLNumberedParaContext::GetNumRules(), XMLTextListBlockContext::GetNumRules(), XMLTextListItemContext::GetNumRulesOverride(), SvXMLStyleContext::GetParentName(), XMLNumberedParaContext::GetStartValue(), XMLTextListItemContext::GetStartValue(), GetTextListHelper(), GetXMLImport(), XMLTextStyleContext::HasCombinedCharactersLetter(), XMLTextStyleContext::HasMasterPageName(), XMLTextListItemContext::HasNumRulesOverride(), XMLTextListItemContext::HasStartValue(), XMLTextStyleContext::IsListStyleSet(), XMLTextListBlockContext::IsRestartNumbering(), lcl_HasListStyle(), length, XMLTextListsHelper::ListContextTop(), m_xImpl, MASTER_PAGE, MAX_COMBINED_CHARACTERS, XMLTextListBlockContext::ResetRestartNumbering(), SAL_INFO_IF, sDisplayName, XMLTextListsHelper::SetListItem(), TEXT_PARAGRAPH, TEXT_TEXT, and u.
void XMLTextImportHelper::StoreLastImportedFrameName | ( | const OUString & | rName | ) |
Definition at line 692 of file txtimp.cxx.
References m_xImpl.
|
private |
Definition at line 104 of file txtimp.hxx.
Referenced by GetFootnoteBP(), GetSequenceIdBP(), and GetSequenceNameBP().
|
private |
Definition at line 101 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(), 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().