LibreOffice Module sw (master)  1
Classes | Namespaces | Functions | Variables
ww8scan.cxx File Reference
#include <memory>
#include "ww8scan.hxx"
#include "ww8par.hxx"
#include <cassert>
#include <cstddef>
#include <cstring>
#include <algorithm>
#include <i18nlangtag/mslangid.hxx>
#include "sprmids.hxx"
#include <rtl/tencinfo.h>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <swerror.h>
#include <swtypes.hxx>
#include <comphelper/string.hxx>
#include <unotools/localedatawrapper.hxx>
#include <i18nlangtag/lang.h>
#include <editeng/unolingu.hxx>
#include <o3tl/safeint.hxx>
#include <tools/stream.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
Include dependency graph for ww8scan.cxx:

Go to the source code of this file.

Classes

class  SamePos
 
struct  WW8_FFN_Ver6
 
struct  WW8_FFN_Ver8
 

Namespaces

 MSOPBString
 

Functions

static sal_uInt8 Get_Byte (sal_uInt8 *&p)
 
static sal_uInt16 Get_UShort (sal_uInt8 *&p)
 
static sal_Int16 Get_Short (sal_uInt8 *&p)
 
static sal_uInt32 Get_ULong (sal_uInt8 *&p)
 
static sal_Int32 Get_Long (sal_uInt8 *&p)
 
static bool WW8SkipField (WW8PLCFspecial &rPLCF)
 
static bool WW8GetFieldPara (WW8PLCFspecial &rPLCF, WW8FieldDesc &rF)
 
OUString read_uInt8_BeltAndBracesString (SvStream &rStrm, rtl_TextEncoding eEnc)
 
OUString read_uInt16_BeltAndBracesString (SvStream &rStrm)
 
static bool IsReplaceAllSprm (sal_uInt16 nSpId)
 
static bool IsExpandableSprm (sal_uInt16 nSpId)
 
void WW8ReadSTTBF (bool bVer8, SvStream &rStrm, sal_uInt32 nStart, sal_Int32 nLen, sal_uInt16 nExtraLen, rtl_TextEncoding eCS, std::vector< OUString > &rArray, std::vector< ww::bytes > *pExtraArray, std::vector< OUString > *pValueArray)
 reads array of strings (see MS documentation: String Table stored in File) returns NOT the original pascal strings but an array of converted char* More...
 
static OUString MSOPBString::Read (SvStream &rStream)
 
static void MSOPBString::Write (const OUString &rString, SvStream &rStream)
 
static void lcl_checkFontname (OUString &sString)
 
bool checkRead (SvStream &rSt, void *pDest, sal_uInt32 nLength)
 

Variables

const int nSmallestPossibleFib = 326
 

Function Documentation

bool checkRead ( SvStream rSt,
void pDest,
sal_uInt32  nLength 
)
static sal_uInt8 Get_Byte ( sal_uInt8 *&  p)
static

Definition at line 840 of file ww8scan.cxx.

Referenced by WW8Dop::WW8Dop().

static sal_Int32 Get_Long ( sal_uInt8 *&  p)
static

Definition at line 866 of file ww8scan.cxx.

References Get_ULong().

Referenced by WW8Dop::WW8Dop(), and WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().

static sal_Int16 Get_Short ( sal_uInt8 *&  p)
static

Definition at line 854 of file ww8scan.cxx.

References Get_UShort().

Referenced by WW8DopTypography::ReadFromMem(), and WW8Dop::WW8Dop().

static sal_uInt32 Get_ULong ( sal_uInt8 *&  p)
static

Definition at line 859 of file ww8scan.cxx.

Referenced by Get_Long(), and WW8Dop::WW8Dop().

static sal_uInt16 Get_UShort ( sal_uInt8 *&  p)
static

Definition at line 847 of file ww8scan.cxx.

Referenced by Get_Short(), WW8DopTypography::ReadFromMem(), and WW8Dop::WW8Dop().

static bool IsExpandableSprm ( sal_uInt16  nSpId)
static

Definition at line 2603 of file ww8scan.cxx.

Referenced by WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().

static bool IsReplaceAllSprm ( sal_uInt16  nSpId)
static

Definition at line 2598 of file ww8scan.cxx.

References NS_sprm::LN_PHugePapx.

Referenced by WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().

static void lcl_checkFontname ( OUString &  sString)
static

Definition at line 7066 of file ww8scan.cxx.

References aBuf, and comphelper::string::strip().

Referenced by WW8Fonts::WW8Fonts().

OUString read_uInt16_BeltAndBracesString ( SvStream rStrm)
OUString read_uInt8_BeltAndBracesString ( SvStream rStrm,
rtl_TextEncoding  eEnc 
)

Definition at line 2068 of file ww8scan.cxx.

References read_uInt8_lenPrefixed_uInt8s_ToOUString(), and SvStream::SeekRel().

Referenced by WW8Style::Read1Style().

static bool WW8GetFieldPara ( WW8PLCFspecial rPLCF,
WW8FieldDesc rF 
)
static
void WW8ReadSTTBF ( bool  bVer8,
SvStream rStrm,
sal_uInt32  nStart,
sal_Int32  nLen,
sal_uInt16  nExtraLen,
rtl_TextEncoding  eCS,
std::vector< OUString > &  rArray,
std::vector< ww::bytes > *  pExtraArray = nullptr,
std::vector< OUString > *  pValueArray = nullptr 
)

reads array of strings (see MS documentation: String Table stored in File) returns NOT the original pascal strings but an array of converted char*

attention: the extra data of each string are SKIPPED and ignored

Definition at line 4120 of file ww8scan.cxx.

References checkSeek(), i, read_uInt16_PascalString(), read_uInt8_lenPrefixed_uInt8s_ToOString(), read_uInt8s_ToOString(), SvStream::ReadBytes(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::remainingSize(), SAL_MAX_UINT16, SAL_WARN, SvStream::Seek(), SvStream::SeekRel(), and SvStream::Tell().

Referenced by SwWW8ImplReader::CoreLoad(), WW8Glossary::Load(), SwWW8ImplReader::ReadDocVars(), SwWW8ImplReader::ReadRevMarkAuthorStrTabl(), and WW8PLCFx_Book::WW8PLCFx_Book().

static bool WW8SkipField ( WW8PLCFspecial rPLCF)
static

Definition at line 1914 of file ww8scan.cxx.

References WW8PLCFspecial::advance(), and WW8PLCFspecial::Get().

Referenced by WW8GetFieldPara().

Variable Documentation

const int nSmallestPossibleFib = 326

Definition at line 1556 of file ww8scan.cxx.