LibreOffice Module sw (master) 1
|
#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 <osl/diagnose.h>
#include <swerror.h>
#include <comphelper/string.hxx>
#include <unotools/localedatawrapper.hxx>
#include <i18nlangtag/lang.h>
#include <o3tl/safeint.hxx>
#include <tools/stream.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
Go to the source code of this file.
Namespaces | |
namespace | MSOPBString |
Functions | |
template<class Sprm > | |
static constexpr SprmInfoRow | InfoRow () |
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 (std::u16string_view aString, SvStream &rStream) |
static void | lcl_checkFontname (OUString &sString) |
bool | checkRead (SvStream &rSt, void *pDest, sal_uInt32 nLength) |
Variables | |
const int | nSmallestPossibleFib = 326 |
bool checkRead | ( | SvStream & | rSt, |
void * | pDest, | ||
sal_uInt32 | nLength | ||
) |
Definition at line 8544 of file ww8scan.cxx.
References nLength, and SvStream::ReadBytes().
Referenced by SwWW8ImplReader::LoadThroughDecryption(), WW8ScannerBase::OpenPieceTable(), SwWW8ImplReader::ReadCaptionBox(), WW8FlyPara::ReadFull(), SwWW8ImplReader::ReadGrafLayer1(), SwWW8ImplReader::ReadGrafPrimitive(), SwWW8ImplReader::ReadGrafStart(), WW8PLCF::ReadPLCF(), SwWW8ImplReader::ReadPolyLine(), WW8Export::RestoreMacroCmds(), and WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().
|
static |
Definition at line 870 of file ww8scan.cxx.
References Get_ULong(), and p.
Referenced by WW8Dop::WW8Dop(), and WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().
|
static |
Definition at line 858 of file ww8scan.cxx.
References Get_UShort(), and p.
Referenced by WW8DopTypography::ReadFromMem(), and WW8Dop::WW8Dop().
|
static |
Definition at line 863 of file ww8scan.cxx.
Referenced by Get_Long(), and WW8Dop::WW8Dop().
|
static |
Definition at line 851 of file ww8scan.cxx.
Referenced by Get_Short(), WW8DopTypography::ReadFromMem(), and WW8Dop::WW8Dop().
|
staticconstexpr |
Definition at line 437 of file ww8scan.cxx.
References wwSprmParser::L_FIX, and wwSprmParser::L_VAR.
|
static |
Definition at line 2632 of file ww8scan.cxx.
Referenced by WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().
|
static |
Definition at line 2627 of file ww8scan.cxx.
References NS_sprm::LN_PHugePapx.
Referenced by WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp().
|
static |
Definition at line 7136 of file ww8scan.cxx.
References aBuf, n, and comphelper::string::strip().
Referenced by WW8Fonts::WW8Fonts().
OUString read_uInt16_BeltAndBracesString | ( | SvStream & | rStrm | ) |
Definition at line 2082 of file ww8scan.cxx.
References read_uInt16_PascalString(), rStrm, and SvStream::SeekRel().
Referenced by WW8FormulaControl::FormulaRead(), and WW8Style::Read1Style().
OUString read_uInt8_BeltAndBracesString | ( | SvStream & | rStrm, |
rtl_TextEncoding | eEnc | ||
) |
Definition at line 2075 of file ww8scan.cxx.
References read_uInt8_lenPrefixed_uInt8s_ToOUString(), rStrm, and SvStream::SeekRel().
Referenced by WW8Style::Read1Style().
|
static |
Definition at line 1967 of file ww8scan.cxx.
References WW8PLCFspecial::advance(), WW8FieldDesc::bCodeNest, WW8FieldDesc::bResNest, WW8PLCFspecial::Get(), WW8PLCFspecial::GetIdx(), WW8FieldDesc::nId, WW8FieldDesc::nLCode, WW8FieldDesc::nLen, WW8FieldDesc::nLRes, WW8FieldDesc::nOpt, WW8FieldDesc::nSCode, WW8FieldDesc::nSRes, pData, WW8PLCFspecial::SetIdx(), and WW8SkipField().
Referenced by WW8PLCFx_FLD::GetPara().
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 4152 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(), rStrm, 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 |
Definition at line 1921 of file ww8scan.cxx.
References WW8PLCFspecial::advance(), WW8PLCFspecial::Get(), pData, and WW8SkipField().
Referenced by WW8GetFieldPara(), and WW8SkipField().
const int nSmallestPossibleFib = 326 |
Definition at line 1564 of file ww8scan.cxx.
Referenced by WW8ScannerBase::WW8Cp2Fc().