LibreOffice Module sw (master) 1
Macros | Functions
ww8par5.cxx File Reference
#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>
Include dependency graph for ww8par5.cxx:

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)
 

Macro Definition Documentation

◆ MAX_FIELDLEN

#define MAX_FIELDLEN   64000

Definition at line 89 of file ww8par5.cxx.

◆ WW8_TOX_LEVEL_DELIM

#define WW8_TOX_LEVEL_DELIM   ':'

Definition at line 91 of file ww8par5.cxx.

Function Documentation

◆ AcceptableNestedField()

static bool AcceptableNestedField ( sal_uInt16  nFieldCode)
static

◆ CanUseRemoteLink()

bool CanUseRemoteLink ( const OUString &  rGrfName)

◆ ConvertMacroSymbol()

static bool ConvertMacroSymbol ( std::u16string_view  rName,
OUString &  rReference 
)
static

Definition at line 2331 of file ww8par5.cxx.

References u.

Referenced by SwWW8ImplReader::Read_F_Macro().

◆ EnsureMaxLevelForTemplates()

static void EnsureMaxLevelForTemplates ( SwTOXBase rBase)
static

◆ FindPara()

static OUString FindPara ( std::u16string_view  aStr,
sal_Unicode  cToken,
sal_Unicode  cToken2 
)
static

Definition at line 334 of file ww8par5.cxx.

References aStr, FindParaStart(), n, and n2.

Referenced by GetNumberPara(), and SwWW8ImplReader::GetTimeDatePara().

◆ FindParaStart()

static sal_Int32 FindParaStart ( std::u16string_view  aStr,
sal_Unicode  cToken,
sal_Unicode  cToken2 
)
static

Definition at line 305 of file ww8par5.cxx.

References aStr.

Referenced by FindPara().

◆ GetNumberPara()

static SvxNumType GetNumberPara ( std::u16string_view  aStr,
bool  bAllowPageDesc = false 
)
static

◆ GetNumTypeFromName()

static SvxNumType GetNumTypeFromName ( const OUString &  rStr,
bool  bAllowPageDesc = false 
)
static

◆ GetWordDefaultDateStringAsUS()

static OUString GetWordDefaultDateStringAsUS ( SvNumberFormatter pFormatter,
LanguageType  nLang 
)
static

◆ lcl_ConvertSequenceName()

static void lcl_ConvertSequenceName ( OUString &  rSequenceName)
static

Definition at line 296 of file ww8par5.cxx.

Referenced by lcl_toxMatchACSwitch().

◆ lcl_GetMaxValidWordTOCLevel()

static sal_uInt16 lcl_GetMaxValidWordTOCLevel ( const SwForm rForm)
static

Definition at line 3002 of file ww8par5.cxx.

References SwForm::GetFormMax(), and WW8ListManager::nMaxLevel.

Referenced by SwWW8ImplReader::Read_F_Tox().

◆ lcl_ImportTox()

static void lcl_ImportTox ( SwDoc rDoc,
SwPaM const &  rPaM,
const OUString &  rStr,
bool  bIdx 
)
static

◆ lcl_toxMatchACSwitch()

static void lcl_toxMatchACSwitch ( SwDoc const &  rDoc,
SwTOXBase rBase,
WW8ReadFieldParams rParam,
SwCaptionDisplay  eCaptionType 
)
static

◆ lcl_toxMatchTSwitch()

static void lcl_toxMatchTSwitch ( SwWW8ImplReader const &  rReader,
SwTOXBase rBase,
WW8ReadFieldParams rParam 
)
static

◆ SanityCheck()

static bool SanityCheck ( const SwPaM rFieldPam)
static