20#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8PAR_HXX
21#define INCLUDED_SW_SOURCE_FILTER_WW8_WW8PAR_HXX
23#include <rtl/ustring.hxx>
50#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
60#define SW_UD_IMAPDATA 2
116 namespace form {
class XFormComponent;}
117 namespace drawing{
class XShape;}
118 namespace lang{
class XMultiServiceFactory;}
122#define WW8FL_NO_STYLES 2
123#define WW8FL_NO_GRAF 0x80
125#define WW8FL_NO_OUTLINE 0x1000
126#define WW8FL_NO_IMPLPASP 0x4000
127#define WW8FL_NO_GRAFLAYER 0x8000
130#define WW8FL_NO_FLY_FOR_TXBX 1
161 std::vector<sal_uInt8> &rParaSprms,
SwTextNode *pNode=
nullptr);
181 bool ReadLVL(
SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet>& rpItemSet, sal_uInt16 nLevelStyle,
182 bool bSetStartNo, sal_uInt16 nLevel,
ww::bytes &rParaSprms);
190 WW8aCFormat& aCharFormat,
bool& bNewCharFormatCreated,
191 const OUString& aPrefix = OUString());
356 if (nWW8OutlineLevel == 9)
362 return nWW8OutlineLevel + 1;
422 return static_cast<const T*
>(
GetFormatAttr(rPos, sal_uInt16(nWhich)));
447 bool operator()(std::u16string_view r1, std::u16string_view r2)
const
491template<
typename Type >
493{
return (nBitField & nMask) != 0; }
495template<
typename ReturnType,
typename Type >
497{
return static_cast< ReturnType
>( std::min< Type >(
nValue, nMax ) ); }
499template<
typename ReturnType,
typename Type >
514 virtual std::unique_ptr<SdrObjUserData>
Clone(
SdrObject* pObj )
const override;
686 virtual bool Import(
const css::uno::Reference< css::lang::XMultiServiceFactory> &rServiceFactory,
687 css::uno::Reference< css::form::XFormComponent> &rFComp,
688 css::awt::Size &rSz) = 0;
701 virtual bool Import(
const css::uno::Reference< css::lang::XMultiServiceFactory> &rServiceFactory,
702 css::uno::Reference< css::form::XFormComponent> &rFComp,
703 css::awt::Size &rSz)
override;
715 virtual bool Import(
const css::uno::Reference< css::lang::XMultiServiceFactory> &rServiceFactory,
716 css::uno::Reference< css::form::XFormComponent> &rFComp,
717 css::awt::Size &rSz)
override;
728 virtual bool Import(
const css::uno::Reference< css::lang::XMultiServiceFactory> & ,
729 css::uno::Reference< css::form::XFormComponent> & ,
730 css::awt::Size & )
override {
return false; }
738 virtual bool InsertControl(
const css::uno::Reference< css::form::XFormComponent >& rFComp,
739 const css::awt::Size& rSize,
740 css::uno::Reference< css::drawing::XShape > *pShape,
bool bFloatingCtrl)
override;
743 css::uno::Reference< css::drawing::XShape > *pShapeRef,
744 bool bFloatingCtrl=
false );
766 const int _nCalledByGroup )
const override;
852 wwULSpaceData& rData)
const;
857 const wwSection &rSection,
bool bIgnoreCols);
866 sal_uInt32 nNetWidth);
1441 void DeleteStack(std::unique_ptr<SwFltControlStack> prStck);
1467 bool bCallProcessSpecial);
1474 sal_Int32 nTableSiz,
SwDoc& rDoc );
1479 void ImportTox(
int nFieldId,
const OUString& aStr );
1481 void EndSprm( sal_uInt16 nId );
1485 const bool bFirstLineOfStSet =
false,
1486 const bool bLeftIndentSet =
false );
1490 bool SetNewFontAttr(sal_uInt16 nFCode,
bool bSetEnums, sal_uInt16 nWhich);
1508 short *pSizeArray=
nullptr,
sal_uInt8 nSetBorders=0xFF);
1549 bool ReadGrafFile(OUString& rFileName, std::optional<Graphic>& rpGraphic,
1556 const Graphic* pGraph,
const OUString& rFileName,
1560 const Graphic* pGraph,
const OUString& rFileName,
1607 size_t nStart,
size_t nElements,
bool bOutline);
1630 sal_uInt16 nSequence);
1635 bool bMakeSdrGrafObj,
bool& rbEraseTextObj,
1636 bool* pbTestTxbxContainsText =
nullptr,
tools::Long* pnStartCp =
nullptr,
1637 tools::Long* pnEndCp =
nullptr,
bool* pbContainsGraphics =
nullptr,
1650 sal_Int16 eHoriOri, sal_Int16 eHoriRel);
1670 void InsertTagField(
const sal_uInt16 nId,
const OUString& rTagText );
1678 const bool bSetAttr =
true);
1681 void SetStylesList(sal_uInt16 nStyle, sal_uInt16 nCurrentLFO,
1694 void ChkToggleAttr_( sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask );
1698 if( nOldStyle81Mask != nNewStyle81Mask &&
1707 if( nOldStyle81Mask != nNewStyle81Mask &&
1715 bool bTableJoin =
true);
1731 void ReadGlobalTemplateSettings( std::u16string_view sCreatedFrom,
const css::uno::Reference< css::container::XNameContainer >& xPrjNameMap );
1765 void openFont(sal_uInt16 nFCode, sal_uInt16 nId);
1867 const OUString &rData);
1878 int nWhichDefault,
bool bHijri =
false);
1897 css::uno::Reference<css::beans::XPropertySet>
const & rPropSet);
1924 std::unique_ptr<SfxItemSet>
SetCurrentItemSet(std::unique_ptr<SfxItemSet> pItemSet);
1935 SwDoc& rD, OUString aBaseURL,
bool bNewDoc,
bool bSkipImages,
SwPosition const &rPos );
1958 const bool bFirstLineOfStSet,
1959 const bool bLeftIndentSet );
1963 sal_Int16 eHoriOri, sal_Int16 eHoriRel,
SwTwips nPageLeft,
static sal_uInt8 nTablePos
Instances of SwFields and those derived from it occur 0 to n times.
Base class of all fields.
Stores RDF statements on a paragraph (key-value pairs where the subject is the paragraph).
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
virtual bool InsertControl(const css::uno::Reference< css::form::XFormComponent > &rFComp, const css::awt::Size &rSize, css::uno::Reference< css::drawing::XShape > *pShape, bool bFloatingCtrl) override
bool ReadOCXStream(tools::SvRef< SotStorage > const &rSrc1, css::uno::Reference< css::drawing::XShape > *pShapeRef, bool bFloatingCtrl=false)
SwMSConvertControls(SfxObjectShell const *pDSh, SwPaM *pP)
void ExportControl(WW8Export &rWrt, const SdrUnoObj &rFormObj)
void InsertFormula(WW8FormulaControl &rFormula)
virtual bool GetOLEStorageName(sal_uInt32 nOLEId, OUString &rStorageName, tools::SvRef< SotStorage > &rSrcStorage, css::uno::Reference< css::embed::XStorage > &rDestStorage) const override
SwMSDffManager & operator=(const SwMSDffManager &)=delete
virtual rtl::Reference< SdrObject > ProcessObj(SvStream &rSt, DffObjData &rObjData, SvxMSDffClientData &rData, tools::Rectangle &rTextRect, SdrObject *pObj) override
virtual rtl::Reference< SdrObject > ImportOLE(sal_uInt32 nOLEId, const Graphic &rGrf, const tools::Rectangle &rBoundRect, const tools::Rectangle &rVisArea, const int _nCalledByGroup) const override
static sal_uInt32 GetFilterFlags()
void DisableFallbackStream()
static sal_Int32 GetEscherLineMatch(MSO_LineStyle eStyle, MSO_SPT eShapeType, sal_Int32 &rThick)
virtual bool ShapeHasText(sal_uLong nShapeId, sal_uLong nFilePos) const override
When reading a single Box (which possibly is part of a group), we do not yet have enough information ...
SvStream * m_pFallbackStream
void EnableFallbackStream()
std::unordered_map< sal_uInt32, Graphic > m_aOldEscherBlipCache
SwMSDffManager(const SwMSDffManager &)=delete
SwWW8ImplReader & m_rReader
void SetName(const OUString &rName)
const OUString & GetHlink() const
SwMacroInfo(SwMacroInfo &&)=default
void SetHlink(const OUString &rHlink)
const OUString & GetTarFrame() const
void SetShapeId(sal_Int32 rShapeId)
SwMacroInfo(SwMacroInfo const &)=default
virtual ~SwMacroInfo() override
SwMacroInfo & operator=(SwMacroInfo const &)=delete
void SetTarFrame(const OUString &rTarFrame)
const OUString & GetName() const
const sal_Int32 & GetShapeId() const
virtual std::unique_ptr< SdrObjUserData > Clone(SdrObject *pObj) const override
Marks a node in the document model.
Base class of the Writer document model elements.
SwNodeOffset GetIndex() const
PaM is Point and Mark: a selection of the document model.
Represents the style of a paragraph.
SwTextNode is a paragraph in the document model.
void AddAnchor(const SwPosition &rPos, SwFrameFormat *pFormat)
SwWW8FltAnchorStack(const SwWW8FltAnchorStack &)=delete
SwWW8FltAnchorStack(SwDoc &rDo, sal_uLong nFieldFl)
SwWW8FltAnchorStack & operator=(const SwWW8FltAnchorStack &)=delete
void SetToggleBiDiAttrFlags(sal_uInt16 nFlags)
const T * GetFormatAttr(const SwPosition &rPos, TypedWhichId< T > nWhich)
sal_uInt16 GetToggleAttrFlags() const
SwWW8FltControlStack(SwDoc &rDo, sal_uLong nFieldFl, SwWW8ImplReader &rReader_)
virtual void SetAttrInDoc(const SwPosition &rTmpPos, SwFltStackEntry &rEntry) override
const SwNumFormat * GetNumFormatFromStack(const SwPosition &rPos, const SwTextNode &rTextNode)
void SetToggleAttrFlags(sal_uInt16 nFlags)
const SfxPoolItem * GetFormatAttr(const SwPosition &rPos, sal_uInt16 nWhich)
std::unique_ptr< SfxItemSet > m_xScratchSet
sal_uInt16 GetToggleBiDiAttrFlags() const
void SetToggleBiDiAttr(sal_uInt8 nId, bool bOn)
void SetToggleAttr(sal_uInt8 nId, bool bOn)
const SfxPoolItem * GetStackAttr(const SwPosition &rPos, sal_uInt16 nWhich)
SwWW8ImplReader & m_rReader
void NewAttr(const SwPosition &rPos, const SfxPoolItem &rAttr)
Stack.
virtual SwFltStackEntry * SetAttr(const SwPosition &rPos, sal_uInt16 nAttrId, bool bTstEnd=true, tools::Long nHand=LONG_MAX, bool consumedByField=false) override
sal_uInt16 m_nToggleBiDiAttrFlags
sal_uInt16 m_nToggleAttrFlags
SwWW8FltControlStack & operator=(const SwWW8FltControlStack &)=delete
SwWW8FltControlStack(const SwWW8FltControlStack &)=delete
bool IsFootnoteEdnBkmField(const SwFormatField &rFormatField, sal_uInt16 &rBkmNo)
SwWW8FltRefStack & operator=(const SwWW8FltRefStack &)=delete
virtual void SetAttrInDoc(const SwPosition &rTmpPos, SwFltStackEntry &rEntry) override
SwWW8FltRefStack(SwDoc &rDo, sal_uLong nFieldFl)
SwWW8FltRefStack(const SwWW8FltRefStack &)=delete
SwFltStackEntry * RefToVar(const SwField *pField, SwFltStackEntry &rEntry)
std::map< OUString, OUString, SwWW8::ltstr > m_aFieldVarNames
eF_ResT Read_F_Num(WW8FieldDesc *pF, OUString &)
void Read_Justify(sal_uInt16, const sal_uInt8 *, short nLen)
void Read_DoubleLine_Rotate(sal_uInt16, const sal_uInt8 *pDATA, short nLen)
bool InEqualOrHigherApo(int nLvl) const
void Read_POutLvl(sal_uInt16, const sal_uInt8 *pData, short nLen)
void ReadGlobalTemplateSettings(std::u16string_view sCreatedFrom, const css::uno::Reference< css::container::XNameContainer > &xPrjNameMap)
bool ReadChar(tools::Long nPosCp, tools::Long nCpOfs)
void CloseAttrEnds()
CloseAttrEnds to only read the attribute ends at the end of a text or a text area (Header,...
std::optional< SwPosition > m_oLastAnchorPos
bool ReadText(WW8_CP nStartCp, WW8_CP nTextLen, ManTypes nType)
std::stack< rtl_TextEncoding > m_aFontSrcCJKCharSets
sal_uInt16 m_nLFOPosition
void SetToggleBiDiAttr(sal_uInt8 nAttrId, bool bOn)
void Read_FontSize(sal_uInt16, const sal_uInt8 *, short nLen)
eF_ResT Read_F_FormTextBox(WW8FieldDesc *pF, OUString &rStr)
SwFieldType * m_pNumFieldType
void Read_Symbol(sal_uInt16, const sal_uInt8 *pData, short nLen)
css::awt::Size MiserableDropDownFormHack(const OUString &rString, css::uno::Reference< css::beans::XPropertySet > const &rPropSet)
RndStdIds ProcessEscherAlign(SvxMSDffImportRec &rRecord, WW8_FSPA &rFSPA, SfxItemSet &rFlySet)
rtl::Reference< SdrObject > ReadGroup(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
sal_uInt16 End_Footnote()
bool m_bCareFirstParaEndInToc
SvStream * m_pTableStream
void Read_AlignFont(sal_uInt16, const sal_uInt8 *pData, short nLen)
void Read_LR(sal_uInt16 nId, const sal_uInt8 *, short nLen)
rtl::Reference< SdrObject > ReadPolyLine(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
o3tl::sorted_vector< const SwNode * > m_aTextNodesHavingFirstLineOfstSet
std::unique_ptr< WW8PostProcessAttrsInfo > m_pPostProcessAttrsInfo
const WW8Fib & GetFib() const
void Read_Underline(sal_uInt16, const sal_uInt8 *, short nLen)
static void StripNegativeAfterIndent(SwFrameFormat const *pFlyFormat)
std::vector< SwWW8StyInf > m_vColl
void ChkToggleAttr(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
void Read_ScaleWidth(sal_uInt16, const sal_uInt8 *pData, short nLen)
static sal_Unicode TranslateToHindiNumbers(sal_Unicode)
bool IsObjectLayoutInTableCell(const sal_uInt32 nGroupShapeBooleanProperties) const
void emulateMSWordAddTextToParagraph(const OUString &rAddString)
eF_ResT Read_F_DocInfo(WW8FieldDesc *pF, OUString &rStr)
void Read_AmbiguousSPRM(sal_uInt16 nId, const sal_uInt8 *, short nLen)
const SwNumRule * m_pPrevNumRule
bool m_bCurrentAND_fNumberAcross
SvNumFormatType GetTimeDatePara(std::u16string_view aStr, sal_uInt32 &rFormat, LanguageType &rLang, int nWhichDefault, bool bHijri=false)
eF_ResT Read_F_Author(WW8FieldDesc *, OUString &)
void SetDocumentGrid(SwFrameFormat &rFormat, const wwSection &rSection)
std::optional< std::vector< OUString > > m_xAtnNames
rtl_TextEncoding m_eHardCharSet
void Read_WidowControl(sal_uInt16, const sal_uInt8 *pData, short nLen)
std::deque< FootnoteDescriptor > m_aFootnoteStack
std::unique_ptr< WW8SmartTagData > m_pSmartTagData
const SwTextFormatColl * m_pDfltTextFormatColl
void Read_TabRowEnd(sal_uInt16, const sal_uInt8 *pData, short nLen)
void Read_FontKern(sal_uInt16, const sal_uInt8 *pData, short nLen)
void closeFont(sal_uInt16 nId)
void Read_ANLevelNo(sal_uInt16, const sal_uInt8 *pData, short nLen)
std::unique_ptr< WW8_OLST > m_xNumOlst
void Read_Border(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
void Read_TextColor(sal_uInt16, const sal_uInt8 *, short nLen)
bool ReadGrafFile(OUString &rFileName, std::optional< Graphic > &rpGraphic, const WW8_PIC &rPic, SvStream *pSt, sal_uLong nFilePos, bool *pDelIt)
static Color ExtractColour(const sal_uInt8 *&rpData, bool bVer67)
SwFrameFormat * ImportGraf1(WW8_PIC const &rPic, SvStream *pSt, sal_uLong nFilePos)
static bool ImportOleWMF(const tools::SvRef< SotStorage > &xSrc1, GDIMetaFile &rWMF, tools::Long &rX, tools::Long &rY)
std::unique_ptr< ImportProgress > m_xProgress
void HandleLineNumbering(const wwSection &rSection)
void Read_SubSuper(sal_uInt16, const sal_uInt8 *, short nLen)
std::unique_ptr< SwMSConvertControls > m_xFormImpl
static void AdjustULWrapForWordMargins(const SvxMSDffImportRec &rRecord, SvxULSpaceItem &rUL)
bool isValid_HdFt_CP(WW8_CP nHeaderCP) const
void Read_BoolItem(sal_uInt16 nId, const sal_uInt8 *, short nLen)
SwFrameFormat * ImportOle(const Graphic *=nullptr, const SfxItemSet *pFlySet=nullptr, const SfxItemSet *pGrfSet=nullptr, const tools::Rectangle &aVisArea=tools::Rectangle())
static void ReplaceObj(const SdrObject &rReplaceTextObj, SdrObject &rSubObj)
sal_Int32 GetRangeAsDrawingString(OUString &rString, tools::Long StartCp, tools::Long nEndCp, ManTypes eType)
bool SetUpperSpacing(SwPaM &pMyPam, int nSpace)
void Read_UL(sal_uInt16 nId, const sal_uInt8 *, short nLen)
eF_ResT Read_F_PgRef(WW8FieldDesc *, OUString &rStr)
SwFlyFrameFormat * ImportReplaceableDrawables(rtl::Reference< SdrObject > &rpObject, rtl::Reference< SdrObject > &rpOurNewObject, SvxMSDffImportRec &rRecord, WW8_FSPA &rF, SfxItemSet &rFlySet)
void InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp, ManTypes eType, bool bONLYnPicLocFc=false)
eF_ResT Read_F_OCX(WW8FieldDesc *, OUString &)
void SetAttributesAtGrfNode(const SvxMSDffImportRec &rRecord, const SwFrameFormat &rFlyFormat, WW8_FSPA const *pF)
void ImportTox(int nFieldId, const OUString &aStr)
eF_ResT Read_F_FormCheckBox(WW8FieldDesc *pF, OUString &rStr)
void Read_CharHighlight(sal_uInt16, const sal_uInt8 *pData, short nLen)
void Read_Bidi(sal_uInt16 nId, const sal_uInt8 *, short nLen)
eF_ResT Read_F_TemplName(WW8FieldDesc *, OUString &)
std::unique_ptr< SwWW8FltControlStack > m_xCtrlStck
void Read_CharSet(sal_uInt16, const sal_uInt8 *pData, short nLen)
eF_ResT Read_F_ANumber(WW8FieldDesc *, OUString &)
eF_ResT Read_F_HTMLControl(WW8FieldDesc *pF, OUString &rStr)
std::optional< SwPaM > m_oPosAfterTOC
void Read_FontCode(sal_uInt16, const sal_uInt8 *, short nLen)
eF_ResT Read_F_Shape(WW8FieldDesc *pF, OUString &rStr)
SwFlyFrameFormat * ConvertDrawTextToFly(rtl::Reference< SdrObject > &rpObject, rtl::Reference< SdrObject > &rpOurNewObject, const SvxMSDffImportRec &rRecord, RndStdIds eAnchor, const WW8_FSPA &rF, SfxItemSet &rFlySet)
static void SetPageBorder(SwFrameFormat &rFormat, const wwSection &rSection)
eF_ResT Read_F_FileName(WW8FieldDesc *, OUString &rStr)
bool ReadGrafStart(void *pData, short nDataSiz, WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
tools::Long Read_Field(WW8PLCFManResult *pRes)
bool m_bCareLastParaEndInToc
void Read_Emphasis(sal_uInt16, const sal_uInt8 *pData, short nLen)
bool ImportFormulaControl(WW8FormulaControl &rBox, WW8_CP nStart, SwWw8ControlType nWhich)
std::unique_ptr< WW8SwFlyPara > m_xSFlyPara
std::unique_ptr< WW8FlyPara > m_xWFlyPara
void DeleteStack(std::unique_ptr< SwFltControlStack > prStck)
rtl_TextEncoding m_eTextCharSet
void Read_TabCellEnd(sal_uInt16, const sal_uInt8 *pData, short nLen)
std::unique_ptr< WW8PLCF_HdFt > m_xHdFt
tools::Long Read_And(WW8PLCFManResult *pRes)
Use authornames, if not available fall back to initials.
static void MapWrapIntoFlyFormat(const SvxMSDffImportRec &rRecord, SwFrameFormat &rFlyFormat)
eF_ResT Read_F_Equation(WW8FieldDesc *, OUString &)
std::optional< SwLineBreakClear > m_oLineBreakClear
eF_ResT Read_F_Input(WW8FieldDesc *, OUString &rStr)
void openFont(sal_uInt16 nFCode, sal_uInt16 nId)
sal_uInt32 m_nFieldTagBad[3]
ErrCode CoreLoad(WW8Glossary const *pGloss)
SwFlyFrameFormat * InsertOle(SdrOle2Obj &rObject, const SfxItemSet &rFlySet, const SfxItemSet *rGrfSet)
static sal_uInt16 GetParagraphAutoSpace(bool fDontUseHTMLAutoSpacing)
rtl_TextEncoding GetCurrentCJKCharSet()
void Read_UsePgsuSettings(sal_uInt16, const sal_uInt8 *pData, short nLen)
rtl_TextEncoding GetCharSetFromLanguage()
static bool ParseTabPos(WW8_TablePos *aTabPos, WW8PLCFx_Cp_FKP *pPap)
SwTwips MoveOutsideFly(SwFrameFormat *pFlyFormat, const SwPosition &rPos, bool bTableJoin=true)
eF_ResT Read_F_Seq(WW8FieldDesc *, OUString &rStr)
void Read_LFOPosition(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
read and interpret the sprmPIlfo used to determine which list contains the paragraph.
sal_uInt16 GetToggleAttrFlags() const
void Read_TextVerticalAdjustment(sal_uInt16, const sal_uInt8 *pData, short nLen)
tools::Long ReadTextAttr(WW8_CP &rTextPos, tools::Long nTextEnd, bool &rbStartLine, int nDepthGuard=0)
bool ProcessSpecial(bool &rbReSync, WW8_CP nStartCp)
void ResetCJKCharSetVars()
bool TestSameApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos)
std::shared_ptr< WW8Fib > m_xWwFib
rtl::Reference< SdrObject > ReadRect(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
void Read_KeepParas(sal_uInt16, const sal_uInt8 *pData, short nLen)
void Read_ParaContextualSpacing(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
wwSectionManager m_aSectionManager
void Read_CharBorder(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
SwFrameFormat * ImportGraf(SdrTextObj const *pTextObj=nullptr, SwFrameFormat const *pFlyFormat=nullptr)
void EndExtSprm(sal_uInt16 nSprmId)
void Read_RTLJustify(sal_uInt16, const sal_uInt8 *, short nLen)
bool m_bLoadingTOXHyperlink
bool ForceFieldLanguage(SwField &rField, LanguageType nLang)
bool JoinNode(SwPaM &rPam, bool bStealAttr=false)
void Read_Special(sal_uInt16, const sal_uInt8 *, short nLen)
void StopAnlToRestart(sal_uInt8 nType, bool bGoBack=true)
void ReadGrafLayer1(WW8PLCFspecial &rPF, tools::Long nGrafAnchorCp)
static bool LangUsesHindiNumbers(LanguageType nLang)
std::optional< OutlinerParaObject > ImportAsOutliner(OUString &rString, WW8_CP nStartCp, WW8_CP nEndCp, ManTypes eType)
bool SetNewFontAttr(sal_uInt16 nFCode, bool bSetEnums, sal_uInt16 nWhich)
void Read_SubSuperProp(sal_uInt16, const sal_uInt8 *, short nLen)
eF_ResT Read_F_IncludeText(WW8FieldDesc *, OUString &rStr)
void SetToggleAttr(sal_uInt8 nAttrId, bool bOn)
sal_uInt16 m_nCurrentColl
rtl::Reference< SdrObject > ReadEllipse(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
OUString ConvertFFileName(const OUString &rRaw)
translate FieldParameter names into the system character set and at the same time,...
sw::util::InsertedTablesManager m_aInsertedTables
void SetNCurrentColl(sal_uInt16 nColl)
std::unique_ptr< EditEngine > m_pDrawEditEngine
SwFlyFrameFormat * MakeGrafNotInContent(const WW8PicDesc &rPD, const Graphic *pGraph, const OUString &rFileName, const SfxItemSet &rGrfSet)
wwExtraneousParas m_aExtraneousParas
sw::util::CharStyleMapper m_aCharStyleMapper
void Read_BoldUsw(sal_uInt16 nId, const sal_uInt8 *, short nLen)
std::unique_ptr< WW8Dop > m_xWDop
eF_ResT Read_F_DBNext(WW8FieldDesc *, OUString &)
bool IsListOrDropcap() const
std::unique_ptr< SfxItemSet > m_xCurrentItemSet
std::unique_ptr< WW8FlyPara > ConstructApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos)
std::unique_ptr< TextNodeListener > m_xPreviousNode
void Read_CColl(sal_uInt16, const sal_uInt8 *, short nLen)
void simpleAddTextToParagraph(std::u16string_view aAddString)
void Read_ParaAutoBefore(sal_uInt16, const sal_uInt8 *pData, short nLen)
bool ConvertSubToGraphicPlacement()
void Read_CharShadow(sal_uInt16, const sal_uInt8 *pData, short nLen)
const OUString & GetBaseURL() const
void ChkToggleBiDiAttr_(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
eF_ResT Read_F_Macro(WW8FieldDesc *, OUString &rStr)
void Read_TextBackColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
bool GetFontParams(sal_uInt16, FontFamily &, OUString &, FontPitch &, rtl_TextEncoding &)
eF_ResT Read_F_NoteReference(WW8FieldDesc *pF, OUString &rStr)
SwFlyFrameFormat * m_pFlyFormatOfJustInsertedGraphic
bool StartTable(WW8_CP nStartCp)
void ChkToggleAttr_(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
static sal_Int32 MatchSdrBoxIntoFlyBoxItem(const Color &rLineColor, MSO_LineStyle eLineStyle, MSO_LineDashing eDashing, MSO_SPT eShapeType, sal_Int32 &rLineWidth, SvxBoxItem &rBox)
bool SetSpacing(SwPaM &rMyPam, int nSpace, bool bIsUpper)
sal_uInt32 m_nFieldTagAlways[3]
void Read_Tab(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
void Read_HdFt(int nSect, const SwPageDesc *pPrev, const wwSection &rSection)
bool GetTxbxTextSttEndCp(WW8_CP &rStartCp, WW8_CP &rEndCp, sal_uInt16 nTxBxS, sal_uInt16 nSequence)
rtl_TextEncoding GetCurrentCharSet()
void ReadRevMarkAuthorStrTabl(SvStream &rStrm, sal_Int32 nTablePos, sal_Int32 nTableSiz, SwDoc &rDoc)
void Read_LineBreakClear(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
std::unique_ptr< FrameDeleteWatch > m_xFormatOfJustInsertedApo
void SetAnld(SwNumRule *pNumR, WW8_ANLD const *pAD, sal_uInt8 nSwLevel, bool bOutLine)
void Read_ListLevel(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
rtl::Reference< SdrObject > ReadGrafPrimitive(short &rLeft, SfxAllItemSet &rSet)
rtl::Reference< SdrObject > ImportOleBase(Graphic &rGraph, const Graphic *pGrf=nullptr, const SfxItemSet *pFlySet=nullptr, const tools::Rectangle &aVisArea=tools::Rectangle())
sal_uInt16 StyleUsingLFO(sal_uInt16 nLFOIndex) const
std::shared_ptr< WW8PLCFMan > m_xPlcxMan
sal_uInt16 GetToggleBiDiAttrFlags() const
WW8_CP Read_F_Tag(WW8FieldDesc *pF)
tools::Long MapBookmarkVariables(const WW8FieldDesc *pF, OUString &rOrigName, const OUString &rData)
rtl::Reference< SdrObject > ReadTextBox(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
SwPaM * m_pPreviousNumPaM
void EndSprm(sal_uInt16 nId)
std::stack< std::unique_ptr< WW8TabDesc > > m_aTableStack
std::unique_ptr< SwMSDffManager > m_xMSDffManager
void Read_KeepLines(sal_uInt16, const sal_uInt8 *pData, short nLen)
bool SetLowerSpacing(SwPaM &rMyPam, int nSpace)
SwWW8ImplReader & operator=(const SwWW8ImplReader &)=delete
static Color GetCol(sal_uInt8 nIco)
void SetRelativeJustify(bool bRel)
rtl_TextEncoding GetCJKCharSetFromLanguage()
void Read_ParaBackColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
void RegisterNumFormat(sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel)
void SetToggleAttrFlags(sal_uInt16 nFlags)
void Read_ApoPPC(sal_uInt16, const sal_uInt8 *pData, short)
void Read_StyleCode(sal_uInt16, const sal_uInt8 *pData, short nLen)
Special FastSave - Attributes.
void Read_HdFtTextAsHackedFrame(WW8_CP nStart, WW8_CP nLen, SwFrameFormat const &rHdFtFormat, sal_uInt16 nPageWidth)
bool HandlePageBreakChar()
void Read_Hyphenation(sal_uInt16, const sal_uInt8 *pData, short nLen)
bool StyleExists(unsigned int nColl) const
bool IsInlineEscherHack() const
OUString GetMappedBookmark(std::u16string_view rOrigName)
eF_ResT Read_F_CurPage(WW8FieldDesc *, OUString &)
std::deque< WW8FieldEntry > m_aFieldStack
void Read_CPropRMark(sal_uInt16, const sal_uInt8 *pData, short nLen)
static bool IsBorder(const WW8_BRCVer9 *pbrc, bool bChkBtwn=false)
std::map< sal_uInt16, std::size_t > m_aAuthorInfos
Redlining Authors, map word author key to writer author value.
SwFrameFormat * MungeTextIntoDrawBox(SvxMSDffImportRec &rRecord, tools::Long nGrafAnchorCp, SwFrameFormat *pRetFrameFormat)
ErrCode LoadDoc(WW8Glossary *pGloss=nullptr)
void NextAnlLine(const sal_uInt8 *pSprm13)
void ChkToggleBiDiAttr(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
tools::Long Read_Footnote(WW8PLCFManResult *pRes)
ErrCode LoadThroughDecryption(WW8Glossary *pGloss)
tools::Long Read_AtnBook(WW8PLCFManResult *)
void Read_BoldBiDiUsw(sal_uInt16 nId, const sal_uInt8 *, short nLen)
eF_ResT Read_F_Tox(WW8FieldDesc *pF, OUString &rStr)
void MoveInsideFly(const SwFrameFormat *pFlyFormat)
sal_uInt8 m_nWantedVersion
void Read_Obj(sal_uInt16, const sal_uInt8 *, short nLen)
bool StartApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos)
std::stack< rtl_TextEncoding > m_aFontSrcCharSets
ErrCode SetSubStreams(tools::SvRef< SotStorageStream > &rTableStream, tools::SvRef< SotStorageStream > &rDataStream)
void Read_CFRMarkDel(sal_uInt16, const sal_uInt8 *pData, short nLen)
wwFrameNamer m_aGrfNameGenerator
eF_ResT Read_F_IncludePicture(WW8FieldDesc *, OUString &rStr)
std::unique_ptr< wwZOrderer > m_xWWZOrder
bool SearchRowEnd(WW8PLCFx_Cp_FKP *pPap, WW8_CP &rStartCp, int nLevel) const
void Read_TextAnim(sal_uInt16, const sal_uInt8 *pData, short nLen)
std::unique_ptr< WW8TabDesc > m_xTableDesc
bool InEqualApo(int nLvl) const
const SwNumRule * m_pChosenWW8OutlineStyle
std::shared_ptr< SwUnoCursor > mpCursor
void GetSmartTagInfo(SwFltRDFMark &rMark)
tools::Long Read_FactoidBook(WW8PLCFManResult *)
void Read_BreakBefore(sal_uInt16, const sal_uInt8 *pData, short nLen)
eF_ResT Read_F_DBField(WW8FieldDesc *, OUString &rStr)
const SwFormat * GetStyleWithOrgWWName(std::u16string_view rName) const
o3tl::sorted_vector< const SwNode * > m_aTextNodesHavingLeftIndentSet
void Read_FieldVanish(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
bool IsInvalidOrToBeMergedTabCell() const
void Read_PicLoc(sal_uInt16, const sal_uInt8 *pData, short nLen)
void Read_CFRMark(sal_uInt16, const sal_uInt8 *pData, short nLen)
void AppendTextNode(SwPosition &rPos)
void Read_SubF_Ruby(msfilter::util::WW8ReadFieldParams &rReadParam)
bool m_bRegardHindiDigits
eF_ResT Read_F_Ref(WW8FieldDesc *pF, OUString &)
std::unique_ptr< WW8ListManager > m_xLstManager
void SetAnlvStrings(SwNumFormat &rNum, int nLevel, WW8_ANLV const &rAV, const sal_uInt8 *pText, size_t nStart, size_t nElements, bool bOutline)
eF_ResT Read_F_Embedd(WW8FieldDesc *, OUString &rStr)
void Read_Relief(sal_uInt16, const sal_uInt8 *pData, short nLen)
void StopAllAnl(bool bGoBack=true)
rtl::Reference< SdrObject > ReadArc(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
std::unique_ptr< SwWW8ReferencedFltEndStack > m_xReffedStck
std::unique_ptr< WW8Fonts > m_xFonts
std::set< sal_uLong > m_aGrafPosSet
eF_ResT Read_F_Hyperlink(WW8FieldDesc *, OUString &rStr)
SdrObject * CreateContactObject(SwFrameFormat *pFlyFormat)
rtl_TextEncoding m_eStructCharSet
void Read_OLST(sal_uInt16, const sal_uInt8 *pData, short nLen)
std::unique_ptr< SwWW8FltRefStack > m_xReffingStck
void InsertTxbxStyAttrs(SfxItemSet &rS, sal_uInt16 nColl)
std::unique_ptr< WW8ScannerBase > m_xSBase
void NewAttr(const SfxPoolItem &rAttr, const bool bFirstLineOfStSet=false, const bool bLeftIndentSet=false)
void Read_ANLevelDesc(sal_uInt16, const sal_uInt8 *pData, short nLen)
OUString GetFieldResult(WW8FieldDesc const *pF)
bool m_bNotifyMacroEventRead
void Read_ParaAutoAfter(sal_uInt16, const sal_uInt8 *pData, short nLen)
void ProcessCurrentCollChange(WW8PLCFManResult &rRes, bool *pStartAttr, bool bCallProcessSpecial)
std::unique_ptr< sw::util::RedlineStack > m_xRedlineStack
void NotifyMacroEventRead()
eF_ResT Read_F_Set(WW8FieldDesc *, OUString &rStr)
std::unique_ptr< SwWW8FltAnchorStack > m_xAnchorStck
std::vector< const SwCharFormat * > m_aRubyCharFormats
void SetNumOlst(SwNumRule *pNumR, WW8_OLST *pO, sal_uInt8 nSwLevel)
bool HasOwnHeaderFooter(sal_uInt8 nWhichItems, sal_uInt8 grpfIhdt, int nSect)
ApoTestResults TestApo(int nCellLevel, bool bTableRowEnd, const WW8_TablePos *pTabPos)
eF_ResT Read_F_Styleref(WW8FieldDesc *, OUString &rStr)
Reads a STYLEREF field.
eF_ResT Read_F_FormListBox(WW8FieldDesc *pF, OUString &rStr)
void SetStylesList(sal_uInt16 nStyle, sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel)
SwFrameFormat * AddAutoAnchor(SwFrameFormat *pFormat)
static bool SetShadow(SvxShadowItem &rShadow, const short *pSizeArray, const WW8_BRCVer9 &aRightBrc)
std::deque< bool > m_aApos
void Read_Majority(sal_uInt16, const sal_uInt8 *, short)
Read_Majority is for Majority (103) and Majority50 (108)
static bool GetPictGrafFromStream(Graphic &rGraphic, SvStream &rSrc)
static void AdjustLRWrapForWordMargins(const SvxMSDffImportRec &rRecord, SvxLRSpaceItem &rLR)
void CopyPageDescHdFt(const SwPageDesc *pOrgPageDesc, SwPageDesc *pNewPageDesc, sal_uInt8 nCode)
void Read_Kern(sal_uInt16, const sal_uInt8 *pData, short nLen)
bool ReadPlainChars(WW8_CP &rPos, sal_Int32 nEnd, sal_Int32 nCpOfs)
Return value: true for non special chars.
tools::Long Read_Book(WW8PLCFManResult *)
rtl::Reference< SdrObject > ReadLine(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
void RegisterNumFormatOnTextNode(sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel, const bool bSetAttr=true)
void Read_IdctHint(sal_uInt16, const sal_uInt8 *, short nLen)
void StartAnl(const sal_uInt8 *pSprm13)
eF_ResT Read_F_Symbol(WW8FieldDesc *, OUString &rStr)
std::map< short, OUString > m_aLinkStringMap
static void GetBorderDistance(const WW8_BRCVer9 *pbrc, tools::Rectangle &rInnerDist)
SwFormat * m_pCurrentColl
std::unique_ptr< WW8RStyle > m_xStyles
bool MiserableRTLGraphicsHack(SwTwips &rLeft, SwTwips nWidth, sal_Int16 eHoriOri, sal_Int16 eHoriRel)
void Read_HdFtText(WW8_CP nStartCp, WW8_CP nLen, SwFrameFormat const *pHdFtFormat)
SwWW8StyInf * GetStyle(sal_uInt16 nColl) const
eF_ResT Read_F_InputVar(WW8FieldDesc *, OUString &rStr)
sal_uInt16 GetCurrentColl() const
wwSectionNamer m_aSectionNameGenerator
void ImportDopTypography(const WW8DopTypography &rTypo)
SwFrameFormat * MakeGrafInContent(const WW8_PIC &rPic, const WW8PicDesc &rPD, const Graphic *pGraph, const OUString &rFileName, const SfxItemSet &rGrfSet)
sw::util::ParaStyleMapper m_aParaStyleMapper
void Read_Shade(sal_uInt16, const sal_uInt8 *pData, short nLen)
eF_ResT Read_F_DateTime(WW8FieldDesc *, OUString &rStr)
void MakeTagString(OUString &rStr, const OUString &rOrg)
const OUString * GetAnnotationAuthor(sal_uInt16 nIdx)
void SetToggleBiDiAttrFlags(sal_uInt16 nFlags)
void Read_ParaBiDi(sal_uInt16, const sal_uInt8 *pData, short nLen)
static SAL_WARN_UNUSED_RESULT bool PicRead(SvStream *pDataStream, WW8_PIC *pPic, bool bVer67)
SwWW8ImplReader(const SwWW8ImplReader &)=delete
void Read_LineSpace(sal_uInt16, const sal_uInt8 *, short nLen)
eF_ResT Read_F_DBNum(WW8FieldDesc *, OUString &)
std::optional< wwSprmParser > m_oSprmParser
sal_uInt16 TabRowSprm(int nLevel) const
std::unique_ptr< SfxItemSet > SetCurrentItemSet(std::unique_ptr< SfxItemSet > pItemSet)
void MatchSdrItemsIntoFlySet(SdrObject const *pSdrObj, SfxItemSet &aFlySet, MSO_LineStyle eLineStyle, MSO_LineDashing eDashing, MSO_SPT eShapeType, tools::Rectangle &rInnerDist)
void InsertTagField(const sal_uInt16 nId, const OUString &rTagText)
bool SetTextFormatCollAndListLevel(const SwPaM &rRg, SwWW8StyInf &rStyleInfo)
rtl::Reference< SdrObject > ReadCaptionBox(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
tools::Long ImportExtSprm(WW8PLCFManResult *pRes)
void RegisterNumFormatOnStyle(sal_uInt16 nStyle)
void Read_NoLineNumb(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
SwFrameFormat * Read_GrafLayer(tools::Long nGrafAnchorCp)
const SfxPoolItem * GetFormatAttr(sal_uInt16 nWhich)
static bool SetBorder(SvxBoxItem &rBox, const WW8_BRCVer9 *pbrc, short *pSizeArray=nullptr, sal_uInt8 nSetBorders=0xFF)
void Read_TextForeColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
short ImportSprm(const sal_uInt8 *pPos, sal_Int32 nMemLen, sal_uInt16 nId=0)
SwFormat * m_pStandardFormatColl
void ReadAttrs(WW8_CP &rTextPos, WW8_CP &rNext, tools::Long nTextEnd, bool &rbStartLine)
bool ReadChars(WW8_CP &rPos, WW8_CP nNextAttr, tools::Long nTextEnd, tools::Long nCpOfs)
Return value: true for para end.
void InsertTxbxText(SdrTextObj *pTextObj, Size const *pObjSiz, sal_uInt16 nTxBxS, sal_uInt16 nSequence, tools::Long nPosCp, SwFrameFormat const *pFlyFormat, bool bMakeSdrGrafObj, bool &rbEraseTextObj, bool *pbTestTxbxContainsText=nullptr, tools::Long *pnStartCp=nullptr, tools::Long *pnEndCp=nullptr, bool *pbContainsGraphics=nullptr, SvxMSDffImportRec const *pRecord=nullptr)
static SwFrameFormat * ContainsSingleInlineGraphic(const SwPaM &rRegion)
void Read_HdFtFootnoteText(const SwNodeIndex *pSttIdx, WW8_CP nStartCp, WW8_CP nLen, ManTypes nType)
static bool SetFlyBordersShadow(SfxItemSet &rFlySet, const WW8_BRCVer9 *pbrc, short *SizeArray)
void Read_UnderlineColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
const SprmReadInfo & GetSprmReadInfo(sal_uInt16 nId) const
void Read_CRevisionMark(RedlineType eType, const sal_uInt8 *pData, short nLen)
bool TxbxChainContainsRealText(sal_uInt16 nTxBxS, tools::Long &rStartCp, tools::Long &rEndCp)
void Read_Language(sal_uInt16, const sal_uInt8 *, short nLen)
void ReadDocInfo()
Document Info.
void ReadEmbeddedData(SvStream &rStrm, SwDocShell const *pDocShell, struct HyperLinksTable &hlStr)
virtual void SetAttrInDoc(const SwPosition &rTmpPos, SwFltStackEntry &rEntry) override
SwWW8ReferencedFltEndStack(SwDoc &rDo, sal_uLong nFieldFl)
std::set< OUString, SwWW8::ltstr > m_aReferencedTOCBookmarks
SwWW8Shade(Color nFore, Color nBack, sal_uInt16 nIndex)
SwWW8Shade(bool bVer67, const WW8_SHD &rSHD)
void SetShade(Color nFore, Color nBack, sal_uInt16 nIndex)
bool m_bListRelevantIndentSet
rtl_TextEncoding GetCJKCharSet() const
SwNumRule * m_pOutlineNumrule
std::shared_ptr< SvxRightMarginItem > m_pWordRightMargin
std::shared_ptr< WW8FlyPara > m_xWWFly
sal_uInt8 mnWW8OutlineLevel
bool IsWW8BuiltInDefaultStyle() const
rtl_TextEncoding m_eRTLFontSrcCharSet
bool IsOutlineNumbered() const
void SetOrgWWIdent(const OUString &rName, const sal_uInt16 nId)
const SwNumRule * GetOutlineNumrule() const
rtl_TextEncoding GetCharSet() const
bool IsWW8BuiltInHeadingStyle() const
bool HasWW8OutlineLevel() const
sal_uInt16 m_n81BiDiFlags
static sal_uInt8 WW8OutlineLevelToOutlinelevel(const sal_uInt8 nWW8OutlineLevel)
std::shared_ptr< SvxFirstLineIndentItem > m_pWordFirstLine
sal_Int16 m_nRelativeJustify
const OUString & GetOrgWWName() const
rtl_TextEncoding m_eLTRFontSrcCharSet
std::shared_ptr< SvxTextLeftMarginItem > m_pWordLeftMargin
sal_uInt16 GetWWStyleId() const
rtl_TextEncoding m_eCJKFontSrcCharSet
virtual void removed(SwModify *pTextNode)
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
TextNodeListener(SwTextNode *pTextNode)
bool operator<(const TextNodeListener &rOther) const
virtual ~TextNodeListener() override
void StopListening(SwModify *pTextNode)
SwTextNode * GetTextNode() const
Exporter of the binary Word file formats.
FIB - the File Information Block.
const OUString & GetBookmarkCode() const
const OUString & GetBookmarkName() const
void Swap(WW8FieldEntry &rOther) noexcept
void SetBookmarkType(const OUString &bookmarkType)
WW8FieldEntry(SwPosition const &rPos, sal_uInt16 nFieldId) noexcept
sw::hack::Position maStartPos
sal_Int32 GetPtContent() const
WW8FieldEntry & operator=(const WW8FieldEntry &rOther) noexcept
void SetBookmarkCode(const OUString &bookmarkCode)
const SwNodeIndex & GetPtNode() const
::sw::mark::IFieldmark::parameter_map_t maParams
void SetBookmarkName(const OUString &bookmarkName)
::sw::mark::IFieldmark::parameter_map_t & getParameters()
WW8ListManager & operator=(const WW8ListManager &)=delete
sal_uInt16 m_nLastLFOPosition
wwSprmParser maSprmParser
std::vector< std::unique_ptr< WW8LSTInfo > > maLSTInfos
size_t GetWW8LSTInfoNum() const
SprmResult GrpprlHasSprm(sal_uInt16 nId, sal_uInt8 &rSprms, sal_uInt8 nLen)
WW8ListManager(const WW8ListManager &)=delete
SwNumRule * CreateNextRule(bool bSimple)
WW8LSTInfo * GetLSTByListId(sal_uInt32 nIdLst) const
SwNumRule * GetNumRuleForActivation(sal_uInt16 nLFOPosition, const sal_uInt8 nLevel, std::vector< sal_uInt8 > &rParaSprms, SwTextNode *pNode=nullptr)
WW8ListManager(SvStream &rSt_, SwWW8ImplReader &rReader_)
bool ReadLVL(SwNumFormat &rNumFormat, std::unique_ptr< SfxItemSet > &rpItemSet, sal_uInt16 nLevelStyle, bool bSetStartNo, sal_uInt16 nLevel, ww::bytes &rParaSprms)
void AdjustLVL(sal_uInt8 nLevel, SwNumRule &rNumRule, WW8aISet const &rListItemSet, WW8aCFormat &aCharFormat, bool &bNewCharFormatCreated, const OUString &aPrefix=OUString())
std::unique_ptr< SfxItemSet > WW8aISet[nMaxLevel]
SwNumRule * GetNumRule(size_t i)
SwCharFormat * WW8aCFormat[nMaxLevel]
static SvxNumType GetSvxNumTypeFromMSONFC(sal_uInt16 nMSONFC)
std::vector< std::unique_ptr< WW8LFOInfo > > m_LFOInfos
SwWW8ImplReader & m_rReader
among others for fields, that is, the same number of attr as positions, if Ctor-Param bNoEnd = false
iterator for Piece Table Exceptions of Fkps works on CPs (high-level)
std::unique_ptr< WW8FlyPara > mpWFlyPara
WW8ReaderSave(SwWW8ImplReader *pRdr, WW8_CP nStart=-1)
Footnotes and Endnotes.
std::deque< WW8FieldEntry > maOldFieldStack
std::deque< bool > maOldApos
std::unique_ptr< SwWW8FltAnchorStack > mxOldAnchorStck
std::unique_ptr< WW8TabDesc > mxTableDesc
const SwNumRule * mpPrevNumRule
WW8PLCFxSaveAll maPLCFxSave
std::shared_ptr< WW8PLCFMan > mxOldPlcxMan
std::unique_ptr< SwWW8FltControlStack > mxOldStck
std::shared_ptr< SwUnoCursor > mxTmpPos
std::unique_ptr< WW8SwFlyPara > mpSFlyPara
void Restore(SwWW8ImplReader *pRdr)
std::unique_ptr< sw::util::RedlineStack > mxOldRedlines
const SwPosition & GetStartPos() const
virtual bool HasGlossaries() const override
virtual ErrCode Read(SwDoc &, const OUString &rBaseURL, SwPaM &, const OUString &) override
virtual SwReaderType GetReaderType() override
ErrCode OpenMainStream(tools::SvRef< SotStorageStream > &rRef, sal_uInt16 &rBuffSize)
std::shared_ptr< SvStream > mDecodedStream
ErrCode DecryptDRMPackage()
virtual bool ReadGlossaries(SwTextBlocks &, bool bSaveRelFiles) const override
Position(const SwPosition &rPos)
const SwNodeIndex & GetPtNode() const
sal_Int32 GetPtContent() const
Knows which writer style a given word style should be imported as.
Handle requirements for table formatting in insert->file mode.
Knows which writer style a given word style should be imported as.
wwFrameNamer & operator=(wwFrameNamer const &)=delete
void SetUniqueGraphName(SwFrameFormat *pFrameFormat, std::u16string_view rFixedPart)
wwFrameNamer(bool bIsDisabled, OUString aSeed)
wwFrameNamer(wwFrameNamer const &)=delete
sal_Int32 mnImportedGraphicsCount
SwSectionFormat * InsertSection(SwPaM const &rMyPaM, wwSection &rSection)
void SetSegmentToPageDesc(const wwSection &rSection, bool bIgnoreCols)
void JoinNode(const SwPosition &rPos, const SwNode &rNode)
static void SetNumberingType(const wwSection &rNewSection, SwPageDesc &rPageDesc)
wwSectionManager(SwWW8ImplReader &rReader)
static void SetPageULSpaceItems(SwFrameFormat &rFormat, wwULSpaceData const &rData, const wwSection &rSection)
void SetHdFt(wwSection const &rSection, int nSect, const wwSection *pPrevious)
SwFormatPageDesc SetSwFormatPageDesc(mySegIter const &rIter, mySegIter const &rStart, bool bIgnoreCols)
Map a word section to a writer page descriptor.
bool WillHavePageDescHere(const SwNode &) const
void SetCurrentSectionVerticalAdjustment(const css::drawing::TextVerticalAdjust nVA)
void SetUseOn(wwSection &rSection)
SwWW8ImplReader & mrReader
sal_uInt32 GetTextAreaWidth() const
std::deque< wwSection >::iterator mySegIter
bool CurrentSectionIsVertical() const
sal_uInt32 GetPageWidth() const
wwSectionManager & operator=(const wwSectionManager &)=delete
void CreateSep(const tools::Long nTextPos)
sal_uInt32 GetPageRight() const
sal_uInt16 CurrentSectionColCount() const
static bool SetCols(SwFrameFormat &rFormat, const wwSection &rSection, sal_uInt32 nNetWidth)
std::deque< wwSection > maSegments
void PrependedInlineNode(const SwPosition &rPos, const SwNode &rNode)
static void SetPage(SwPageDesc &rPageDesc, SwFrameFormat &rFormat, const wwSection &rSection, bool bIgnoreCols)
wwSectionManager(const wwSectionManager &)=delete
bool SectionIsProtected(const wwSection &rSection) const
sal_uInt32 GetWWPageTopMargin() const
static void SetLeftRight(wwSection &rSection)
void GetPageULData(const wwSection &rNewSection, wwULSpaceData &rData) const
void SetCurrentSectionHasFootnote()
sal_uInt32 GetPageLeft() const
bool CurrentSectionIsProtected() const
wwSectionNamer(const wwSectionNamer &)=delete
wwSectionNamer(const SwDoc &rDoc, OUString aSeed)
wwSectionNamer & operator=(const wwSectionNamer &)=delete
sal_uInt32 GetPageHeight() const
bool IsFixedHeightHeader() const
sal_uInt32 GetPageWidth() const
bool HasTitlePage() const
sal_uInt32 GetPageRight() const
sal_uInt32 GetPageLeft() const
bool IsNotProtected() const
bool IsContinuous() const
sal_uInt16 PageStartAt() const
sal_Int32 StandardColSeparation() const
bool IsFixedHeightFooter() const
wwSection(const SwPosition &rPos)
bool PageRestartNo() const
sal_uInt32 GetTextAreaWidth() const
css::drawing::TextVerticalAdjust mnVerticalAdjustment
wwSprmParser knows how to take a sequence of bytes and split it up into sprms and their arguments
constexpr TypedWhichId< SvxFirstLineIndentItem > RES_MARGIN_FIRSTLINE(91)
constexpr TypedWhichId< SvxRightMarginItem > RES_MARGIN_RIGHT(93)
constexpr TypedWhichId< SvxTextLeftMarginItem > RES_MARGIN_TEXTLEFT(92)
#define SAL_N_ELEMENTS(arr)
class SAL_NO_VTABLE XPropertySet
std::shared_ptr< T > make_shared(Args &&... args)
int compareToIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)
Dialog to specify the properties of date form field.
auto FilterControlChars(std::u16string_view aString) -> OUString
std::vector< sal_uInt8 > bytes
static LanguageType nLang
OUString msOutlineNumRule
OUString msNumberingNumRule
SwNumRule * GetNumRule(const SwDoc &rDoc, sal_uInt8 nNumType)
void SetNumRule(const OUString &rNumRule, sal_uInt8 nNumType)
bool HasStartStop() const
Marks a position in the document model.
bool operator()(std::u16string_view r1, std::u16string_view r2) const
void ReadFull(sal_uInt8 nSprm29, SwWW8ImplReader *pIo)
WW8FlyPara(bool bIsVer67, const WW8FlyPara *pSrc=nullptr)
void ApplyTabPos(const WW8_TablePos *pTabPos)
void Read(sal_uInt8 nSprmTPc, WW8PLCFx_Cp_FKP *pPap)
bool operator==(const WW8FlyPara &rSrc) const
WW8PostProcessAttrsInfo(WW8_CP nCpStart, WW8_CP nCpEnd, SwPaM &rPaM)
void ProcessSprmTSetBRC(int nBrcVer, const sal_uInt8 *pParamsTSetBRC, sal_uInt16 nParamsLen)
sal_uInt8 transCell(sal_uInt8 nWwCol) const
sal_uInt8 nOverrideSpacing[MAX_COL+1]
sal_uInt8 nTransCell[MAX_COL+2]
sal_uInt16 maDirections[MAX_COL+1]
short nOverrideValues[MAX_COL+1][4]
void ReadNewShd(const sal_uInt8 *pS, bool bVer67, sal_uInt8 nStart)
void ReadShd(const sal_uInt8 *pS)
void ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8 *pParams, sal_uInt16 nParamsLen)
WW8TabBandDesc * pNextBand
WW8TabBandDesc & operator=(WW8TabBandDesc const &)=default
void ProcessSprmTInsert(const sal_uInt8 *pParamsTInsert)
void ProcessSpecificSpacing(const sal_uInt8 *pParamsTInsert)
void ProcessSprmTDelete(const sal_uInt8 *pParamsTDelete)
void ReadDef(bool bVer67, const sal_uInt8 *pS, short nLen)
void ProcessDirection(const sal_uInt8 *pParams)
void ProcessSprmTDxaCol(const sal_uInt8 *pParamsTDxaCol)
void ProcessSpacing(const sal_uInt8 *pParamsTInsert)
constexpr sal_uInt8 MAXLEVEL
#define SAL_WARN_UNUSED_RESULT
bool CanUseRemoteLink(const OUString &rGrfName)
void SyncIndentWithList(SvxFirstLineIndentItem &rFirstLine, SvxTextLeftMarginItem &rLeftMargin, const SwNumFormat &rFormat, const bool bFirstLineOfStSet, const bool bLeftIndentSet)
void SetStyleIndent(SwWW8StyInf &rStyleInfo, const SwNumFormat &rFormat)
void UseListIndent(SwWW8StyInf &rStyle, const SwNumFormat &rFormat)
bool get_flag(Type nBitField, Type nMask)
ReturnType ulimit_cast(Type nValue, ReturnType nMax)
void MatchEscherMirrorIntoFlySet(const SvxMSDffImportRec &rRecord, SfxItemSet &rFlySet)
bool RTLGraphicsHack(SwTwips &rLeft, SwTwips nWidth, sal_Int16 eHoriOri, sal_Int16 eHoriRel, SwTwips nPageLeft, SwTwips nPageRight, SwTwips nPageSize)
OUString BookmarkToWriter(std::u16string_view rBookmark)
std::set< WW8_CP > cp_set
tools::Long GetListFirstLineIndent(const SwNumFormat &rFormat)
WW8_BRCVer9 WW8_BRCVer9_5[5]