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 (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 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) |
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::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 |
||
) |
|
overridevirtual |
Definition at line 542 of file txtimp.cxx.
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::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 |
Definition at line 804 of file txtimp.cxx.
References CONV_FROM_STAR_BATS, CONV_FROM_STAR_MATH, CONV_STAR_FONT_FLAGS_VALID, SvXMLImport::ConvStarBatsCharToStarSymbol(), SvXMLImport::ConvStarMathCharToStarSymbol(), CTF_FONTFAMILYNAME, XMLTextStyleContext::GetProperties_(), i, m_xImpl, XMLPropertyState::maValue, XMLPropertyState::mnIndex, nCount, TEXT_PARAGRAPH, and TEXT_TEXT.
|
virtual |
Definition at line 2266 of file txtimp.cxx.
|
virtual |
Definition at line 2284 of file txtimp.cxx.
|
virtual |
Definition at line 2244 of file txtimp.cxx.
|
virtual |
Definition at line 2255 of file txtimp.cxx.
|
virtual |
Definition at line 2276 of file txtimp.cxx.
|
static |
Definition at line 607 of file txtimp.cxx.
References g_XMLPageMasterDrawingPageStyleMap.
|
static |
Definition at line 566 of file txtimp.cxx.
References SvXMLImportPropertyMapper::ChainImportMapper(), SHAPE_PARA, and TEXT_ADDITIONAL_DEFAULTS.
Referenced by XMLShapeImportHelper::XMLShapeImportHelper().
|
static |
Definition at line 559 of file txtimp.cxx.
References SHAPE_PARA.
Referenced by XMLShapeImportHelper::CreateShapePropMapper(), XMLShapeImportHelper::XMLShapeImportHelper(), and XMLTableImport::XMLTableImport().
|
static |
Definition at line 552 of file txtimp.cxx.
References FRAME.
|
static |
Definition at line 598 of file txtimp.cxx.
References CELL.
Referenced by XMLTableImport::XMLTableImport().
|
protectedvirtual |
Definition at line 1927 of file txtimp.cxx.
Referenced by CreateTextChildContext().
|
static |
Definition at line 580 of file txtimp.cxx.
References TABLE_DEFAULTS.
|
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 |
||
) |
Definition at line 1744 of file txtimp.cxx.
References Body, Cell, ChangedRegion, ClearLastImportedTextFrameName(), XMLShapeImportHelper::CreateGroupChildContext(), xmloff::OFormLayerXMLImport::createOfficeFormsContext(), CreateTableChildContext(), DRAW, XMLChangeImportContext::END, SvXMLImport::GetProgressBarHelper(), HeaderFooter, ProgressBarHelper::Increment(), 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 769 of file txtimp.cxx.
References assert(), m_xImpl, and SAL_WARN_IF.
Referenced by XMLFootnoteImportContext::endFastElement().
Definition at line 546 of file txtimp.cxx.
References m_xImpl.
|
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.
XMLPropStyleContext * XMLTextImportHelper::FindDrawingPage | ( | OUString const & | rName | ) | const |
Definition at line 2032 of file txtimp.cxx.
References assert(), m_xImpl, and SD_DRAWINGPAGE_ID.
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.
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().
|
inlineprotected |
Definition at line 146 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 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 |
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.
|
inlineprotected |
Definition at line 156 of file XMLPropertyBackpatcher.cxx.
References GetSequenceNumber(), and m_xBackpatcherImpl.
Referenced by InsertSequenceID(), and ProcessSequenceReference().
|
inlineprotected |
Definition at line 166 of file XMLPropertyBackpatcher.cxx.
References m_xBackpatcherImpl.
Referenced by InsertSequenceID(), and ProcessSequenceReference().
uno::Reference< text::XText > & XMLTextImportHelper::GetText | ( | ) |
Definition at line 211 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement(), and XMLAnnotationImportContext::endFastElement().
rtl::Reference< SvXMLImportPropertyMapper > const & XMLTextImportHelper::GetTextImportPropertySetMapper | ( | ) | const |
Definition at line 300 of file txtimp.cxx.
References m_xImpl.
XMLTextListsHelper & XMLTextImportHelper::GetTextListHelper | ( | ) |
Definition at line 332 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextListItemContext::endFastElement(), XMLTextListBlockContext::endFastElement(), PopListContext(), PushListContext(), SetStyleAndAttrs(), and XMLTextListBlockContext::XMLTextListBlockContext().
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 |
Definition at line 2147 of file txtimp.cxx.
References m_xImpl.
Referenced by XMLTextMarkImportContext::endFastElement(), and XMLFieldParamImportContext::startFastElement().
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 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.
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 | ) |
Definition at line 701 of file txtimp.cxx.
References assert(), and m_xImpl.
Referenced by XMLTextFieldImportContext::endFastElement(), XMLSetVarFieldImportContext::endFastElement(), XMLDatabaseDisplayImportContext::endFastElement(), and XMLAnnotationImportContext::endFastElement().
void XMLTextImportHelper::InsertString | ( | const OUString & | rChars, |
bool & | rIgnoreLeadingSpace | ||
) |
void XMLTextImportHelper::InsertTextContent | ( | css::uno::Reference< css::text::XTextContent > const & | xContent | ) |
Definition at line 757 of file txtimp.cxx.
References assert(), and m_xImpl.
Referenced by XMLTextFieldImportContext::endFastElement(), XMLSetVarFieldImportContext::endFastElement(), XMLDatabaseDisplayImportContext::endFastElement(), XMLDdeFieldImportContext::endFastElement(), XMLAnnotationImportContext::endFastElement(), and XMLFootnoteImportContext::startFastElement().
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.
|
virtual |
Definition at line 2239 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 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.
|
staticprivate |
Definition at line 121 of file XMLPropertyBackpatcher.cxx.
void XMLTextImportHelper::MapCrossRefHeadingFieldsHorribly | ( | ) |
Definition at line 2385 of file txtimp.cxx.
|
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().
|
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 2300 of file txtimp.cxx.
|
virtual |
Definition at line 2327 of file txtimp.cxx.
|
virtual |
rOldCursor | needed to get the document |
rId | ID used to RedlineAdd() call |
Definition at line 2310 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 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.
|
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 | ) |
Definition at line 615 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 1613 of file txtimp.cxx.
References SvXMLImport::GetStyleDisplayName(), m_xImpl, makeAny(), 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 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.
|
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 | ||
) |
Definition at line 1694 of file txtimp.cxx.
References XMLPropStyleContext::FillPropertySet(), SvXMLImport::GetStyleDisplayName(), m_xImpl, makeAny(), sDisplayName, TEXT_RUBY, and TEXT_TEXT.
|
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 |
||
) |
Definition at line 1006 of file txtimp.cxx.
References AddOutlineStyleCandidate(), Any, assert(), Exception, XMLTextStyleContext::FillPropertySet(), SvXMLImport::getBuildIds(), XMLTextStyleContext::GetDropCapStyleName(), XMLNumberedParaContext::GetLevel(), XMLNumberedParaContext::GetListId(), XMLTextStyleContext::GetListStyle(), XMLTextStyleContext::GetMasterPageName(), XMLNumberedParaContext::GetNumRules(), XMLTextListItemContext::GetNumRulesOverride(), SvXMLStyleContext::GetParentName(), XMLTextListItemContext::GetStartValue(), XMLNumberedParaContext::GetStartValue(), SvXMLImport::GetStyleDisplayName(), GetTextListHelper(), GetXMLImport(), XMLTextStyleContext::HasCombinedCharactersLetter(), XMLTextStyleContext::HasMasterPageName(), XMLTextListItemContext::HasNumRulesOverride(), XMLTextListItemContext::HasStartValue(), XMLTextStyleContext::IsListStyleSet(), SvXMLImport::IsTextDocInOOoFileFormat(), lcl_HasListStyle(), length, XMLTextListsHelper::ListContextTop(), m_xImpl, makeAny(), MASTER_PAGE, MAX_COMBINED_CHARACTERS, SAL_INFO_IF, sDisplayName, XMLTextListsHelper::SetListItem(), TEXT_PARAGRAPH, TEXT_TEXT, and u.
void XMLTextImportHelper::StoreLastImportedFrameName | ( | const OUString & | rName | ) |
Definition at line 691 of file txtimp.cxx.
References m_xImpl.
|
private |
Definition at line 103 of file txtimp.hxx.
Referenced by GetFootnoteBP(), GetSequenceIdBP(), and GetSequenceNameBP().
|
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().