LibreOffice Module sw (master) 1
|
#include <config_features.h>
#include <config_fuzzers.h>
#include <sal/types.h>
#include <tools/solar.h>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <comphelper/simplefileaccessinteraction.hxx>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <svl/cintitem.hxx>
#include <svl/lngmisc.hxx>
#include <svl/urihelper.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <sfx2/linkmgr.hxx>
#include <rtl/character.hxx>
#include <unotools/charclass.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/commandenvironment.hxx>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <hintids.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/langitem.hxx>
#include <fmtfld.hxx>
#include <fmtanchr.hxx>
#include <pam.hxx>
#include <doc.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentMarkAccess.hxx>
#include <IDocumentState.hxx>
#include <flddat.hxx>
#include <docufld.hxx>
#include <reffld.hxx>
#include <IMark.hxx>
#include <expfld.hxx>
#include <dbfld.hxx>
#include <tox.hxx>
#include <section.hxx>
#include <ndtxt.hxx>
#include <fmtinfmt.hxx>
#include <chpfld.hxx>
#include <fmtruby.hxx>
#include <charfmt.hxx>
#include <breakit.hxx>
#include <fmtclds.hxx>
#include <poolfmt.hxx>
#include <SwStyleNameMapper.hxx>
#include "ww8scan.hxx"
#include "ww8par.hxx"
#include "writerhelper.hxx"
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <unotools/fltrcfg.hxx>
#include <xmloff/odffields.hxx>
#include <osl/diagnose.h>
#include <algorithm>
#include <string_view>
Go to the source code of this file.
Macros | |
#define | MAX_FIELDLEN 64000 |
#define | WW8_TOX_LEVEL_DELIM ':' |
Functions | |
static void | lcl_ConvertSequenceName (OUString &rSequenceName) |
static sal_Int32 | FindParaStart (std::u16string_view aStr, sal_Unicode cToken, sal_Unicode cToken2) |
static OUString | FindPara (std::u16string_view aStr, sal_Unicode cToken, sal_Unicode cToken2) |
static SvxNumType | GetNumTypeFromName (const OUString &rStr, bool bAllowPageDesc=false) |
static SvxNumType | GetNumberPara (std::u16string_view aStr, bool bAllowPageDesc=false) |
static OUString | GetWordDefaultDateStringAsUS (SvNumberFormatter *pFormatter, LanguageType nLang) |
static bool | SanityCheck (const SwPaM &rFieldPam) |
static bool | AcceptableNestedField (sal_uInt16 nFieldCode) |
static bool | ConvertMacroSymbol (std::u16string_view rName, OUString &rReference) |
bool | CanUseRemoteLink (const OUString &rGrfName) |
static void | lcl_toxMatchACSwitch (SwDoc const &rDoc, SwTOXBase &rBase, WW8ReadFieldParams &rParam, SwCaptionDisplay eCaptionType) |
static void | EnsureMaxLevelForTemplates (SwTOXBase &rBase) |
static void | lcl_toxMatchTSwitch (SwWW8ImplReader const &rReader, SwTOXBase &rBase, WW8ReadFieldParams &rParam) |
static sal_uInt16 | lcl_GetMaxValidWordTOCLevel (const SwForm &rForm) |
static void | lcl_ImportTox (SwDoc &rDoc, SwPaM const &rPaM, const OUString &rStr, bool bIdx) |
#define MAX_FIELDLEN 64000 |
Definition at line 89 of file ww8par5.cxx.
#define WW8_TOX_LEVEL_DELIM ':' |
Definition at line 91 of file ww8par5.cxx.
|
static |
Definition at line 742 of file ww8par5.cxx.
References ww::eAUTOTEXT, ww::eAUTOTEXTLIST, ww::eCONTROL, ww::eHYPERLINK, ww::eINCLUDETEXT, ww::eINDEX, ww::eMERGEINC, and ww::eTOC.
Referenced by SwWW8ImplReader::Read_Field().
bool CanUseRemoteLink | ( | const OUString & | rGrfName | ) |
Definition at line 2433 of file ww8par5.cxx.
References comphelper::getProcessComponentContext(), and ucbhelper::Content::getPropertyValue().
Referenced by SwWW8ImplReader::ImportReplaceableDrawables(), and SwWW8ImplReader::Read_F_IncludePicture().
|
static |
Definition at line 2331 of file ww8par5.cxx.
References u.
Referenced by SwWW8ImplReader::Read_F_Macro().
|
static |
Definition at line 2890 of file ww8par5.cxx.
References SwTOXBase::GetCreateType(), SwTOXBase::GetLevel(), SwTOXBase::GetStyleNames(), MAXLEVEL, SwTOXBase::SetLevel(), and Template.
Referenced by SwWW8ImplReader::Read_F_Tox().
|
static |
Definition at line 334 of file ww8par5.cxx.
References aStr, FindParaStart(), n, and n2.
Referenced by GetNumberPara(), and SwWW8ImplReader::GetTimeDatePara().
|
static |
|
static |
Definition at line 385 of file ww8par5.cxx.
References aStr, FindPara(), and GetNumTypeFromName().
Referenced by SwWW8ImplReader::Read_F_ANumber(), SwWW8ImplReader::Read_F_CurPage(), and SwWW8ImplReader::Read_F_Num().
|
static |
Definition at line 361 of file ww8par5.cxx.
References SVX_NUM_ARABIC, SVX_NUM_CHARS_LOWER_LETTER_N, SVX_NUM_CHARS_UPPER_LETTER_N, SVX_NUM_PAGEDESC, SVX_NUM_ROMAN_LOWER, and SVX_NUM_ROMAN_UPPER.
Referenced by GetNumberPara(), and SwWW8ImplReader::Read_F_Seq().
|
static |
Definition at line 411 of file ww8par5.cxx.
References SvNumberformat::ConvertLanguage(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatIndex(), SvNumberformat::GetFormatstring(), LANGUAGE_ENGLISH_US, NF_DATE_SYSTEM_SHORT, nIndex, nLang, and pos.
Referenced by SwWW8ImplReader::GetTimeDatePara().
|
static |
Definition at line 296 of file ww8par5.cxx.
Referenced by lcl_toxMatchACSwitch().
|
static |
Definition at line 3002 of file ww8par5.cxx.
References SwForm::GetFormMax(), and WW8ListManager::nMaxLevel.
Referenced by SwWW8ImplReader::Read_F_Tox().
|
static |
Definition at line 3632 of file ww8par5.cxx.
References SwDoc::getIDocumentContentOperations(), msfilter::util::WW8ReadFieldParams::GetResult(), SwDoc::GetTOXType(), SwDoc::GetTOXTypeCount(), msfilter::util::WW8ReadFieldParams::GoToTokenParam(), IDocumentContentOperations::InsertPoolItem(), SwTOXMark::SetAlternativeText(), SwTOXMark::SetLevel(), SwTOXMark::SetPrimaryKey(), SwTOXMark::SetSecondaryKey(), msfilter::util::WW8ReadFieldParams::SkipToNextToken(), TOX_CONTENT, TOX_INDEX, TOX_USER, and WW8_TOX_LEVEL_DELIM.
Referenced by SwWW8ImplReader::ImportTox().
|
static |
Definition at line 2873 of file ww8par5.cxx.
References msfilter::util::WW8ReadFieldParams::GetResult(), SwDoc::GetTOXType(), msfilter::util::WW8ReadFieldParams::GoToTokenParam(), lcl_ConvertSequenceName(), SwTOXBase::RegisterToTOXType(), SwTOXBase::SetCaptionDisplay(), SwTOXBase::SetSequenceName(), and TOX_ILLUSTRATIONS.
Referenced by SwWW8ImplReader::Read_F_Tox().
|
static |
Definition at line 2911 of file ww8par5.cxx.
References SwFormat::GetName(), msfilter::util::WW8ReadFieldParams::GetResult(), SwTOXBase::GetStyleNames(), SwWW8ImplReader::GetStyleWithOrgWWName(), o3tl::getToken(), msfilter::util::WW8ReadFieldParams::GoToTokenParam(), MAXLEVEL, nIndex, SwTOXBase::SetStyleNames(), o3tl::toInt32(), and TOX_STYLE_DELIMITER.
Referenced by SwWW8ImplReader::Read_F_Tox().
|
static |
Definition at line 507 of file ww8par5.cxx.
References SwPaM::End(), SwPosition::GetContentIndex(), SwPosition::GetNodeIndex(), SwPosition::GetNodes(), SwPaM::GetPoint(), SwNode::GetTextNode(), SwNode::IsTextNode(), and SwTextNode::Len().
Referenced by SwWW8ImplReader::End_Field().