LibreOffice Module sw (master) 1
|
#include <ww8scan.hxx>
Public Types | |
enum | WW8PLCFManLimits { MAN_PLCF_COUNT = 12 } |
Private Member Functions | |
sal_uInt16 | WhereIdx (bool *pbStart, WW8_CP *pPos=nullptr) const |
void | AdjustEnds (WW8PLCFxDesc &rDesc) |
void | GetNewSprms (WW8PLCFxDesc &rDesc) |
void | GetSprmStart (short nIdx, WW8PLCFManResult *pRes) const |
void | GetSprmEnd (short nIdx, WW8PLCFManResult *pRes) const |
void | GetNoSprmStart (short nIdx, WW8PLCFManResult *pRes) const |
void | GetNoSprmEnd (short nIdx, WW8PLCFManResult *pRes) const |
void | AdvSprm (short nIdx, bool bStart) |
void | AdvNoSprm (short nIdx, bool bStart) |
sal_uInt16 | GetId (const WW8PLCFxDesc *p) const |
bool | IsSprmLegalForCategory (sal_uInt16 nSprmId, short nIdx) const |
Static Private Member Functions | |
static void | GetNewNoSprms (WW8PLCFxDesc &rDesc) |
Private Attributes | |
wwSprmParser | maSprmParser |
WW8_CP | m_nCpO |
WW8_CP | m_nLineEnd |
sal_uInt16 | m_nPLCF |
ManTypes | m_nManType |
bool | mbDoingDrawTextBox |
WW8PLCFxDesc | m_aD [MAN_PLCF_COUNT] |
WW8PLCFxDesc * | m_pChp |
WW8PLCFxDesc * | m_pPap |
WW8PLCFxDesc * | m_pSep |
WW8PLCFxDesc * | m_pField |
WW8PLCFxDesc * | m_pFootnote |
WW8PLCFxDesc * | m_pEdn |
WW8PLCFxDesc * | m_pBkm |
WW8PLCFxDesc * | m_pPcd |
WW8PLCFxDesc * | m_pPcdA |
WW8PLCFxDesc * | m_pAnd |
WW8PLCFxDesc * | m_pAtnBkm |
WW8PLCFxDesc * | m_pFactoidBkm |
WW8PLCFspecial * | m_pFdoa |
WW8PLCFspecial * | m_pTxbx |
WW8PLCFspecial * | m_pTxbxBkd |
WW8PLCFspecial * | m_pMagicTables |
WW8PLCFspecial * | m_pSubdocs |
sal_uInt8 * | m_pExtendedAtrds |
const WW8Fib * | m_pWwFib |
Definition at line 932 of file ww8scan.hxx.
Enumerator | |
---|---|
MAN_PLCF_COUNT |
Definition at line 935 of file ww8scan.hxx.
WW8PLCFMan::WW8PLCFMan | ( | const WW8ScannerBase * | pBase, |
ManTypes | nType, | ||
tools::Long | nStartCp, | ||
bool | bDoingDrawTextBox = false |
||
) |
Definition at line 4926 of file ww8scan.cxx.
References WW8Fib::GetBaseCp(), GetChpPLCF(), GetNewNoSprms(), GetNewSprms(), GetPapPLCF(), i, m_aD, m_nCpO, m_nManType, m_nPLCF, m_pAnd, WW8ScannerBase::m_pAndPLCF, m_pAtnBkm, WW8ScannerBase::m_pAtnBook, m_pBkm, WW8ScannerBase::m_pBook, m_pChp, WW8ScannerBase::m_pChpPLCF, m_pEdn, WW8ScannerBase::m_pEdnPLCF, m_pExtendedAtrds, WW8ScannerBase::m_pExtendedAtrds, m_pFactoidBkm, WW8ScannerBase::m_pFactoidBook, m_pFdoa, m_pField, WW8ScannerBase::m_pFieldAndPLCF, WW8ScannerBase::m_pFieldEdnPLCF, WW8ScannerBase::m_pFieldFootnotePLCF, WW8ScannerBase::m_pFieldHdFtPLCF, WW8ScannerBase::m_pFieldPLCF, WW8ScannerBase::m_pFieldTxbxHdFtPLCF, WW8ScannerBase::m_pFieldTxbxPLCF, m_pFootnote, WW8ScannerBase::m_pFootnotePLCF, WW8ScannerBase::m_pHdFtFdoa, WW8ScannerBase::m_pHdFtTxbx, WW8ScannerBase::m_pHdFtTxbxBkd, m_pMagicTables, WW8ScannerBase::m_pMagicTables, WW8ScannerBase::m_pMainFdoa, WW8ScannerBase::m_pMainTxbx, WW8ScannerBase::m_pMainTxbxBkd, m_pPap, WW8ScannerBase::m_pPapPLCF, m_pPcd, m_pPcdA, WW8ScannerBase::m_pPLCFx_PCD, WW8ScannerBase::m_pPLCFx_PCDAttrs, m_pSep, WW8ScannerBase::m_pSepPLCF, m_pSubdocs, WW8ScannerBase::m_pSubdocs, m_pTxbx, m_pTxbxBkd, WW8ScannerBase::m_pWw8Fib, m_pWwFib, MAN_AND, MAN_EDN, MAN_FTN, MAN_HDFT, MAN_MAINTEXT, MAN_PLCF_COUNT, MAN_TXBX, MAN_TXBX_HDFT, nType, p, WW8PLCFxDesc::pPLCFx, WW8PLCFx_Cp_FKP::ResetAttrStartEnd(), SeekPos(), and WW8_CP_MAX.
WW8PLCFMan::~WW8PLCFMan | ( | ) |
Definition at line 5103 of file ww8scan.cxx.
|
private |
Definition at line 4803 of file ww8scan.cxx.
References WW8PLCFxDesc::bRealLineEnd, GetDoingDrawTextBox(), m_nLineEnd, m_pPap, m_pSep, WW8PLCFxDesc::nEndPos, WW8PLCFxDesc::nOrigEndPos, WW8PLCFxDesc::nOrigStartPos, WW8PLCFxDesc::nStartPos, SAL_WARN, and WW8_CP_MAX.
Referenced by GetNewSprms().
void WW8PLCFMan::advance | ( | ) |
Definition at line 5526 of file ww8scan.cxx.
References AdvNoSprm(), AdvSprm(), m_aD, m_nPLCF, p, and WhereIdx().
|
private |
Definition at line 5470 of file ww8scan.cxx.
References AdvSprm(), WW8PLCFx_PCD::GetClipStart(), GetNewNoSprms(), GetNewSprms(), m_aD, m_pPcd, WW8PLCFxDesc::nStartPos, p, WW8PLCFxDesc::pPLCFx, and WW8PLCFx_PCD::SetClipStart().
Referenced by advance().
|
private |
Definition at line 5356 of file ww8scan.cxx.
References GetId(), GetNewSprms(), wwSprmParser::GetSprmSize(), IsSprmLegalForCategory(), m_aD, m_pChp, m_pPap, m_pPcd, maSprmParser, wwSprmParser::MinSprmLen(), WW8PLCFxDesc::nEndPos, WW8PLCFxDesc::nStartPos, p, WW8PLCFxDesc::pPLCFx, SAL_WARN_IF, and WW8_CP_MAX.
Referenced by advance(), and AdvNoSprm().
bool WW8PLCFMan::Get | ( | WW8PLCFManResult * | pResult | ) | const |
Definition at line 5546 of file ww8scan.cxx.
References GetNoSprmEnd(), GetNoSprmStart(), GetSprmEnd(), GetSprmStart(), m_aD, m_nPLCF, and WhereIdx().
|
inline |
Definition at line 987 of file ww8scan.hxx.
References m_pAnd, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 989 of file ww8scan.hxx.
References m_pAtnBkm, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 988 of file ww8scan.hxx.
References m_pBkm, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 1000 of file ww8scan.hxx.
References m_pChp, and WW8PLCFxDesc::pPLCFx.
Referenced by WW8PLCFMan().
sal_uInt16 WW8PLCFMan::GetColl | ( | ) | const |
Definition at line 5586 of file ww8scan.cxx.
References WW8PLCFx::GetIstd(), m_pPap, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 991 of file ww8scan.hxx.
References m_pChp, and WW8PLCFxDesc::nCpOfs.
|
inline |
Definition at line 1018 of file ww8scan.hxx.
References mbDoingDrawTextBox.
Referenced by AdjustEnds().
|
inline |
Definition at line 985 of file ww8scan.hxx.
References m_pEdn, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 1016 of file ww8scan.hxx.
References m_pExtendedAtrds.
|
inline |
Definition at line 990 of file ww8scan.hxx.
References m_pFactoidBkm, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 1011 of file ww8scan.hxx.
References m_pFdoa.
WW8PLCFx_FLD * WW8PLCFMan::GetField | ( | ) | const |
Definition at line 5597 of file ww8scan.cxx.
References m_pField, and WW8PLCFxDesc::pPLCFx.
|
inline |
Definition at line 986 of file ww8scan.hxx.
References m_pFootnote, and WW8PLCFxDesc::pPLCFx.
|
private |
Definition at line 4908 of file ww8scan.cxx.
References eAND, eEDN, eFLD, eFTN, wwSprmParser::GetSprmId(), m_pAnd, m_pEdn, m_pField, m_pFootnote, maSprmParser, wwSprmParser::MinSprmLen(), nId, and p.
Referenced by AdvSprm(), and GetSprmStart().
|
inline |
Definition at line 1014 of file ww8scan.hxx.
References m_pMagicTables.
|
inline |
Definition at line 1017 of file ww8scan.hxx.
References m_nManType.
|
staticprivate |
Definition at line 4894 of file ww8scan.cxx.
References WW8PLCFxDesc::bFirstSprm, WW8PLCFx::GetNoSprms(), WW8PLCFxDesc::nCp2OrIdx, WW8PLCFxDesc::nEndPos, WW8PLCFxDesc::nOrigSprmsLen, WW8PLCFxDesc::nSprmsLen, WW8PLCFxDesc::nStartPos, WW8PLCFxDesc::pPLCFx, WW8PLCFxDesc::ReduceByOffset(), SAL_WARN_IF, and WW8_CP_MAX.
Referenced by AdvNoSprm(), and WW8PLCFMan().
|
private |
Definition at line 4884 of file ww8scan.cxx.
References AdjustEnds(), WW8PLCFxDesc::bFirstSprm, WW8PLCFx::GetSprms(), WW8PLCFxDesc::nOrigSprmsLen, WW8PLCFxDesc::nSprmsLen, WW8PLCFxDesc::pPLCFx, and WW8PLCFxDesc::ReduceByOffset().
Referenced by AdvNoSprm(), AdvSprm(), and WW8PLCFMan().
|
private |
Definition at line 5321 of file ww8scan.cxx.
References eATNBKN, eBKN, eFACTOIDBKN, GetSprmEnd(), m_aD, m_pAtnBkm, m_pBkm, m_pFactoidBkm, m_pPcd, WW8PLCFManResult::nMemLen, and WW8PLCFManResult::nSprmId.
Referenced by Get().
|
private |
Definition at line 5289 of file ww8scan.cxx.
References eAND, eATNBKN, eBKN, eEDN, eFACTOIDBKN, eFLD, eFTN, GetSprmStart(), m_aD, m_pAnd, m_pAtnBkm, m_pBkm, m_pEdn, m_pFactoidBkm, m_pField, m_pFootnote, m_pPcd, WW8PLCFManResult::nCp2OrIdx, WW8PLCFManResult::nCpPos, WW8PLCFManResult::nMemLen, WW8PLCFManResult::nSprmId, and p.
Referenced by Get().
|
inline |
Definition at line 1006 of file ww8scan.hxx.
References m_pPap.
|
inline |
Definition at line 1002 of file ww8scan.hxx.
References m_pPap, and WW8PLCFxDesc::pPLCFx.
Referenced by lcl_HasExplicitLeft(), and WW8PLCFMan().
|
inline |
Definition at line 1004 of file ww8scan.hxx.
References m_pSep, and WW8PLCFxDesc::pPLCFx.
|
private |
Definition at line 5274 of file ww8scan.cxx.
References m_aD, WW8PLCFManResult::nSprmId, and p.
Referenced by Get(), and GetNoSprmEnd().
|
private |
Definition at line 5240 of file ww8scan.cxx.
References GetId(), wwSprmParser::GetSprmSize(), IsSprmLegalForCategory(), m_aD, m_pAnd, m_pEdn, m_pFootnote, m_pPap, m_pSep, MAN_MASK_NEW_PAP, MAN_MASK_NEW_SEP, maSprmParser, wwSprmParser::MinSprmLen(), WW8PLCFManResult::nCp2OrIdx, WW8PLCFManResult::nFlags, WW8PLCFManResult::nMemLen, WW8PLCFManResult::nSprmId, p, and WW8PLCFManResult::pMemPos.
Referenced by Get(), and GetNoSprmStart().
|
inline |
Definition at line 1012 of file ww8scan.hxx.
References m_pTxbx.
|
inline |
Definition at line 1013 of file ww8scan.hxx.
References m_pTxbxBkd.
|
inline |
Definition at line 1015 of file ww8scan.hxx.
References m_pSubdocs.
SprmResult WW8PLCFMan::HasCharSprm | ( | sal_uInt16 | nId | ) | const |
Definition at line 5607 of file ww8scan.cxx.
References m_pChp, nId, and WW8PLCFxDesc::pPLCFx.
void WW8PLCFMan::HasCharSprm | ( | sal_uInt16 | nId, |
std::vector< SprmResult > & | rResult | ||
) | const |
Definition at line 5612 of file ww8scan.cxx.
References m_pChp, nId, and WW8PLCFxDesc::pPLCFx.
SprmResult WW8PLCFMan::HasParaSprm | ( | sal_uInt16 | nId | ) | const |
Definition at line 5602 of file ww8scan.cxx.
References m_pPap, nId, and WW8PLCFxDesc::pPLCFx.
|
private |
Definition at line 5208 of file ww8scan.cxx.
References ww::eWW2, ww::eWW8, wwSprmParser::GetFIBVersion(), m_aD, m_pSep, maSprmParser, p, SAL_INFO, NS_sprm::v6::sprmSDMPaperReq, and NS_sprm::v6::sprmSScnsPgn.
Referenced by AdvSprm(), and GetSprmStart().
void WW8PLCFMan::RestoreAllPLCFx | ( | const WW8PLCFxSaveAll & | rSave | ) |
Definition at line 5182 of file ww8scan.cxx.
References WW8PLCFxSaveAll::aS, i, m_aD, m_nPLCF, m_pPcd, m_pPcdA, n, and WW8PLCFxDesc::Restore().
void WW8PLCFMan::SaveAllPLCFx | ( | WW8PLCFxSaveAll & | rSave | ) | const |
Definition at line 5169 of file ww8scan.cxx.
References WW8PLCFxSaveAll::aS, i, m_aD, m_nPLCF, m_pPcd, m_pPcdA, n, and WW8PLCFxDesc::Save().
void WW8PLCFMan::SeekPos | ( | tools::Long | nNewCp | ) |
Definition at line 5158 of file ww8scan.cxx.
References m_nCpO, m_pBkm, m_pChp, m_pField, m_pPap, m_pPcd, WW8PLCFxDesc::pPLCFx, and WW8PLCFx::SeekPos().
Referenced by WW8PLCFMan().
void WW8PLCFMan::TransferOpenSprms | ( | std::stack< sal_uInt16 > & | rStack | ) |
WW8_CP WW8PLCFMan::Where | ( | ) | const |
Definition at line 5151 of file ww8scan.cxx.
References WhereIdx().
|
private |
Definition at line 5112 of file ww8scan.cxx.
References i, m_aD, m_nPLCF, m_pPcdA, WW8PLCFxDesc::nEndPos, WW8PLCFxDesc::nStartPos, and WW8_CP_MAX.
|
private |
Definition at line 949 of file ww8scan.hxx.
Referenced by advance(), AdvNoSprm(), AdvSprm(), Get(), GetNoSprmEnd(), GetNoSprmStart(), GetSprmEnd(), GetSprmStart(), IsSprmLegalForCategory(), RestoreAllPLCFx(), SaveAllPLCFx(), TransferOpenSprms(), WhereIdx(), WW8PLCFMan(), and ~WW8PLCFMan().
|
private |
Definition at line 939 of file ww8scan.hxx.
Referenced by SeekPos(), and WW8PLCFMan().
|
private |
Definition at line 941 of file ww8scan.hxx.
Referenced by AdjustEnds().
|
private |
Definition at line 943 of file ww8scan.hxx.
Referenced by GetManType(), and WW8PLCFMan().
|
private |
Definition at line 942 of file ww8scan.hxx.
Referenced by advance(), Get(), RestoreAllPLCFx(), SaveAllPLCFx(), TransferOpenSprms(), WhereIdx(), WW8PLCFMan(), and ~WW8PLCFMan().
|
private |
Definition at line 951 of file ww8scan.hxx.
Referenced by GetAtn(), GetId(), GetNoSprmStart(), GetSprmStart(), and WW8PLCFMan().
|
private |
Definition at line 951 of file ww8scan.hxx.
Referenced by GetAtnBook(), GetNoSprmEnd(), GetNoSprmStart(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by GetBook(), GetNoSprmEnd(), GetNoSprmStart(), SeekPos(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by AdvSprm(), GetChpPLCF(), GetCpOfs(), HasCharSprm(), SeekPos(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by GetEdn(), GetId(), GetNoSprmStart(), GetSprmStart(), and WW8PLCFMan().
|
private |
Definition at line 953 of file ww8scan.hxx.
Referenced by GetExtendedAtrds(), and WW8PLCFMan().
|
private |
Definition at line 951 of file ww8scan.hxx.
Referenced by GetFactoidBook(), GetNoSprmEnd(), GetNoSprmStart(), and WW8PLCFMan().
|
private |
Definition at line 952 of file ww8scan.hxx.
Referenced by GetFdoa(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by GetField(), GetId(), GetNoSprmStart(), SeekPos(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by GetFootnote(), GetId(), GetNoSprmStart(), GetSprmStart(), and WW8PLCFMan().
|
private |
Definition at line 952 of file ww8scan.hxx.
Referenced by GetMagicTables(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by AdjustEnds(), AdvSprm(), GetColl(), GetPap(), GetPapPLCF(), GetSprmStart(), HasParaSprm(), SeekPos(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by AdvNoSprm(), AdvSprm(), GetNoSprmEnd(), GetNoSprmStart(), RestoreAllPLCFx(), SaveAllPLCFx(), SeekPos(), and WW8PLCFMan().
|
private |
Definition at line 951 of file ww8scan.hxx.
Referenced by RestoreAllPLCFx(), SaveAllPLCFx(), WhereIdx(), and WW8PLCFMan().
|
private |
Definition at line 950 of file ww8scan.hxx.
Referenced by AdjustEnds(), GetSepPLCF(), GetSprmStart(), IsSprmLegalForCategory(), and WW8PLCFMan().
|
private |
Definition at line 952 of file ww8scan.hxx.
Referenced by GetWkbPLCF(), and WW8PLCFMan().
|
private |
Definition at line 952 of file ww8scan.hxx.
Referenced by GetTxbx(), and WW8PLCFMan().
|
private |
Definition at line 952 of file ww8scan.hxx.
Referenced by GetTxbxBkd(), and WW8PLCFMan().
|
private |
Definition at line 955 of file ww8scan.hxx.
Referenced by WW8PLCFMan().
|
private |
Definition at line 938 of file ww8scan.hxx.
Referenced by AdvSprm(), GetId(), GetSprmStart(), and IsSprmLegalForCategory().
|
private |
Definition at line 944 of file ww8scan.hxx.
Referenced by GetDoingDrawTextBox().