LibreOffice Module sw (master)  1
ww8par.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8PAR_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_WW8PAR_HXX
22 
23 #include <rtl/ustring.hxx>
25 #include <filter/msfilter/util.hxx>
26 #include <editeng/frmdir.hxx>
27 #include <fltshell.hxx>
28 
29 #include <svx/svdobj.hxx>
30 
31 #include <vector>
32 #include <stack>
33 #include <string_view>
34 #include <deque>
35 #include <map>
36 #include <utility>
37 #include <memory>
38 
39 #include "ww8struc.hxx"
40 #include "ww8scan.hxx"
41 #include "ww8glsy.hxx"
42 #include "ww8graf.hxx"
43 #include "wrtww8.hxx"
44 #include <msfilter.hxx>
45 #include <xmloff/odffields.hxx>
46 #include <IMark.hxx>
47 
48 #include <com/sun/star/drawing/TextVerticalAdjust.hpp>
49 #include <swtypes.hxx>
50 #include <fmtfsize.hxx>
51 #include <fmtornt.hxx>
52 #include <fmtsrnd.hxx>
53 #include <ndtxt.hxx>
54 #include <editeng/lrspitem.hxx>
55 #include <o3tl/deleter.hxx>
56 #include <o3tl/sorted_vector.hxx>
57 #include <oox/ole/olehelper.hxx>
58 
59 #define SW_UD_IMAPDATA 2
60 
61 class SwDoc;
62 class SwPaM;
63 class SfxPoolItem;
64 class SwTextFormatColl;
65 class SwPageDesc;
66 class SvxBoxItem;
67 class SwFormat;
68 class SwNodeIndex;
69 class SwFlyFrameFormat;
70 class SwAttrSet;
71 class SwNumRule;
72 class SwFrameFormat;
73 class Writer;
74 class SwFormatField;
75 class WW8Fib;
76 class WW8PLCFMan;
77 struct WW8PLCFManResult;
78 class WW8RStyle;
79 class WW8PLCF_HdFt;
80 class WW8ScannerBase;
81 struct WW8FlyPara;
82 struct WW8SwFlyPara;
83 struct WW8_PIC;
84 class WW8TabDesc;
85 struct WW8_SHD;
86 struct WW8_OLST;
87 class SwNumFormat;
88 struct WW8_ANLD;
89 struct WW8_ANLV;
90 struct WW8_DO;
91 struct WW8_DPHEAD;
92 struct WW8_FSPA;
93 class SdrModel;
94 class SdrPage;
95 class SdrObject;
96 class SdrTextObj;
97 class SdrUnoObj;
98 class Size;
99 class EditEngine;
100 struct SwPosition;
101 class WW8ReaderSave;
102 struct WW8PicDesc;
103 class Graphic;
104 class SwFieldType;
105 class SotStorage;
106 class SwAttrSet;
107 class GDIMetaFile;
108 struct ESelection;
109 class SfxItemSet;
110 class OutlinerParaObject;
111 
112 namespace com::sun::star{
113  namespace beans{ class XPropertySet;}
114  namespace form { class XFormComponent;}
115  namespace drawing{class XShape;}
116  namespace lang{class XMultiServiceFactory;}
117 }
118 
119 // defines only for the WW8-variable of the INI file
120 #define WW8FL_NO_STYLES 2
121 #define WW8FL_NO_GRAF 0x80
122 
123 #define WW8FL_NO_OUTLINE 0x1000
124 #define WW8FL_NO_IMPLPASP 0x4000 // no implicit para space
125 #define WW8FL_NO_GRAFLAYER 0x8000
126 
127 // Add-on-filter-flags, valid from Winword 8 on
128 #define WW8FL_NO_FLY_FOR_TXBX 1
129 
130 // List-Manager (from Ver8 on)
131 
132 struct WW8LFOInfo;
133 
134 class WW8Reader : public StgReader
135 {
136  std::shared_ptr<SvStream> mDecodedStream;
137  virtual ErrCode Read(SwDoc &, const OUString& rBaseURL, SwPaM &, const OUString &) override;
138  ErrCode OpenMainStream( tools::SvRef<SotStorageStream>& rRef, sal_uInt16& rBuffSize );
140 public:
142  virtual SwReaderType GetReaderType() override;
143 
144  virtual bool HasGlossaries() const override;
145  virtual bool ReadGlossaries( SwTextBlocks&, bool bSaveRelFiles ) const override;
146 };
147 
148 class SwWW8ImplReader;
149 struct WW8LSTInfo;
151 {
152 public:
153  WW8ListManager(SvStream& rSt_, SwWW8ImplReader& rReader_);
154  //Min and Max possible List Levels in Word
156  //the rParaSprms returns back the original word paragraph indent
157  //sprms which were attached to the original numbering format
158  SwNumRule* GetNumRuleForActivation(sal_uInt16 nLFOPosition, const sal_uInt8 nLevel,
159  std::vector<sal_uInt8> &rParaSprms, SwTextNode *pNode=nullptr);
160  SwNumRule* CreateNextRule(bool bSimple);
161  ~WW8ListManager() COVERITY_NOEXCEPT_FALSE;
162  SwNumRule* GetNumRule(size_t i);
163  size_t GetWW8LSTInfoNum() const{return maLSTInfos.size();}
164  static SvxNumType GetSvxNumTypeFromMSONFC(sal_uInt16 nMSONFC);
165 
166 private:
170  const WW8Fib& rFib;
172  std::vector<std::unique_ptr<WW8LSTInfo>> maLSTInfos;
173  std::vector<std::unique_ptr<WW8LFOInfo>> m_LFOInfos;// D. from PLF LFO, sorted exactly like in the WW8 Stream
174  sal_uInt16 nUniqueList; // current number for creating unique list names
175  SprmResult GrpprlHasSprm(sal_uInt16 nId, sal_uInt8& rSprms, sal_uInt8 nLen);
176  WW8LSTInfo* GetLSTByListId( sal_uInt32 nIdLst ) const;
177  //the rParaSprms returns back the original word paragraph indent
178  //sprms which are attached to this numbering level
179  bool ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet>& rpItemSet, sal_uInt16 nLevelStyle,
180  bool bSetStartNo, sal_uInt16 nLevel, ww::bytes &rParaSprms);
181 
182  // character attributes from GrpprlChpx
183  typedef std::unique_ptr<SfxItemSet> WW8aISet[nMaxLevel];
184  // character style pointer
186 
187  void AdjustLVL(sal_uInt8 nLevel, SwNumRule& rNumRule, WW8aISet const & rListItemSet,
188  WW8aCFormat& aCharFormat, bool& bNewCharFormatCreated,
189  const OUString& aPrefix = OUString());
190 
191  WW8ListManager(const WW8ListManager&) = delete;
192  WW8ListManager& operator=(const WW8ListManager&) = delete;
193  sal_uInt16 nLastLFOPosition;
194 };
195 
197 { // WinWord-attributes
198  // Attention: *DO NOT* reorder, since parts will be
199  // compared using memcmp
200  bool bVer67;
201  sal_Int16 nSp26, nSp27; // raw position
202  sal_Int16 nSp45, nSp28; // width / height
203  sal_Int16 nLeMgn, nRiMgn, nUpMgn, nLoMgn; // borders
204  sal_uInt8 nSp29; // raw binding + alignment
205  sal_uInt8 nSp37; // Wrap-Mode ( 1 / 2; 0 = no Apo ? )
206  WW8_BRCVer9_5 brc; // borders Top, Left, Bottom, Right, Between
207  bool bBorderLines; // border lines
208  bool bGrafApo; // true: this frame is only used to position
209  // the contained graphics *not* as a character
210  bool mbVertSet; // true if vertical positioning has been set
211 
212  WW8FlyPara(bool bIsVer67, const WW8FlyPara* pSrc = nullptr);
213  bool operator==(const WW8FlyPara& rSrc) const;
214  void Read(sal_uInt8 nSprm29, WW8PLCFx_Cp_FKP* pPap);
215  void ReadFull(sal_uInt8 nSprm29, SwWW8ImplReader* pIo);
216  void Read(sal_uInt8 nSprm29, WW8RStyle const * pStyle);
217  void ApplyTabPos(const WW8_TablePos *pTabPos);
218  bool IsEmpty() const;
219 };
220 
222 {
223  OUString m_sWWStyleName;
224  sal_uInt16 m_nWWStyleId;
225 public:
226  rtl_TextEncoding m_eLTRFontSrcCharSet; // rtl_TextEncoding for the font
227  rtl_TextEncoding m_eRTLFontSrcCharSet; // rtl_TextEncoding for the font
228  rtl_TextEncoding m_eCJKFontSrcCharSet; // rtl_TextEncoding for the font
230  std::shared_ptr<WW8FlyPara> m_xWWFly;
233  sal_uInt16 m_nBase;
234  sal_uInt16 m_nFollow;
235  sal_uInt16 m_nLFOIndex;
237 
238  // WW8 outline level is zero-based:
239  // 0: outline level 1
240  // 1: outline level 2
241  // ...
242  // 8: outline level 9
243  // 9: body text
245 
246  sal_uInt16 m_n81Flags; // for bold, italic, ...
247  sal_uInt16 m_n81BiDiFlags; // for bold, italic, ...
248  std::shared_ptr<SvxLRSpaceItem> maWordLR;
249  bool m_bValid; // empty of valid
250  bool m_bImported; // for recursive imports
251  bool m_bColl; // true-> pFormat is SwTextFormatColl
252  bool m_bImportSkipped; // only true if !bNewDoc && existing style
253  bool m_bHasStyNumRule; // true-> named NumRule in style
254  bool m_bHasBrokenWW6List; // true-> WW8+ style has a WW7- list
255  bool m_bListRelevantIndentSet; //true if this style's indent has
256  //been explicitly set, it's set to the value
257  //of pFormat->GetItemState(RES_LR_SPACE, false)
258  //if it was possible to get the ItemState
259  //for L of the LR space independently
260  bool m_bParaAutoBefore; // For Auto spacing before a paragraph
261  bool m_bParaAutoAfter; // For Auto Spacing after a paragraph
263 
265  m_sWWStyleName( OUString() ),
266  m_nWWStyleId( 0 ),
267  m_eLTRFontSrcCharSet(0),
268  m_eRTLFontSrcCharSet(0),
269  m_eCJKFontSrcCharSet(0),
270  m_pFormat( nullptr ),
271  m_pOutlineNumrule( nullptr ),
272  m_nFilePos( 0 ),
273  m_nBase( 0 ),
274  m_nFollow( 0 ),
275  m_nLFOIndex( USHRT_MAX ),
276  m_nListLevel(MAXLEVEL),
277  mnWW8OutlineLevel( MAXLEVEL ),
278  m_n81Flags( 0 ),
279  m_n81BiDiFlags(0),
281  m_bValid(false),
282  m_bImported(false),
283  m_bColl(false),
284  m_bImportSkipped(false),
285  m_bHasStyNumRule(false),
286  m_bHasBrokenWW6List(false),
287  m_bListRelevantIndentSet(false),
288  m_bParaAutoBefore(false),
289  m_bParaAutoAfter(false),
290  m_nRelativeJustify(-1)
291 
292  {}
293 
294  void SetOrgWWIdent( const OUString& rName, const sal_uInt16 nId )
295  {
296  m_sWWStyleName = rName;
297  m_nWWStyleId = nId;
298 
299  // apply default WW8 outline level to WW8 Built-in Heading styles
301  {
302  mnWW8OutlineLevel = m_nWWStyleId - 1;
303  }
304  }
305 
306  const OUString& GetOrgWWName() const
307  {
308  return m_sWWStyleName;
309  }
310 
311  bool HasWW8OutlineLevel() const
312  {
313  return (m_pFormat != nullptr && (MAXLEVEL > mnWW8OutlineLevel));
314  }
315 
316  bool IsOutlineNumbered() const
317  {
318  return m_pOutlineNumrule && HasWW8OutlineLevel();
319  }
320 
322  {
323  return m_pOutlineNumrule;
324  }
325  rtl_TextEncoding GetCharSet() const;
326  rtl_TextEncoding GetCJKCharSet() const;
327 
328  sal_uInt16 GetWWStyleId() const
329  {
330  return m_nWWStyleId;
331  }
332 
334  {
335  return GetWWStyleId() >= 1 && GetWWStyleId() <= 9;
336  }
337 
339  {
340  return GetWWStyleId() == 0;
341  }
342 
343  static sal_uInt8
344  WW8OutlineLevelToOutlinelevel(const sal_uInt8 nWW8OutlineLevel)
345  {
346  if (nWW8OutlineLevel < MAXLEVEL)
347  {
348  if (nWW8OutlineLevel == 9)
349  {
350  return 0; // no outline level --> body text
351  }
352  else
353  {
354  return nWW8OutlineLevel + 1; // outline level 1..9
355  }
356  }
357 
358  return 0;
359  }
360 };
361 
362 // Stack
363 
365 {
366 private:
368  std::unique_ptr<SfxItemSet> m_xScratchSet;
369  sal_uInt16 nToggleAttrFlags;
373  const SwNumFormat* GetNumFormatFromStack(const SwPosition &rPos,
374  const SwTextNode &rTextNode);
375 protected:
376  virtual void SetAttrInDoc(const SwPosition& rTmpPos,
377  SwFltStackEntry& rEntry) override;
378 
379  virtual sal_Int32 GetCurrAttrCP() const override;
380  virtual bool IsParaEndInCPs(sal_Int32 nStart, sal_Int32 nEnd, bool bSdOD) const override;
381  //Clear the para end position recorded in reader intermittently for the least impact on loading performance
382  virtual void ClearParaEndPosition() override;
383  virtual bool CheckSdOD(sal_Int32 nStart,sal_Int32 nEnd) override;
384 
385 public:
387  : SwFltControlStack( rDo, nFieldFl ), rReader( rReader_ ),
388  nToggleAttrFlags(0), nToggleBiDiAttrFlags(0)
389  {}
390 
391  void NewAttr(const SwPosition& rPos, const SfxPoolItem& rAttr);
392 
393  virtual SwFltStackEntry* SetAttr(const SwPosition& rPos, sal_uInt16 nAttrId, bool bTstEnd=true, tools::Long nHand=LONG_MAX, bool consumedByField=false) override;
394 
395  void SetToggleAttr(sal_uInt8 nId, bool bOn)
396  {
397  if( bOn )
398  nToggleAttrFlags |= (1 << nId);
399  else
400  nToggleAttrFlags &= ~(1 << nId);
401  }
402 
403  sal_uInt16 GetToggleAttrFlags() const { return nToggleAttrFlags; }
404 
405  void SetToggleBiDiAttr(sal_uInt8 nId, bool bOn)
406  {
407  if( bOn )
408  nToggleBiDiAttrFlags |= (1 << nId);
409  else
410  nToggleBiDiAttrFlags &= ~(1 << nId);
411  }
412 
413  sal_uInt16 GetToggleBiDiAttrFlags() const { return nToggleBiDiAttrFlags; }
414  void SetToggleAttrFlags(sal_uInt16 nFlags) { nToggleAttrFlags = nFlags; }
415  void SetToggleBiDiAttrFlags(sal_uInt16 nFlags) {nToggleBiDiAttrFlags = nFlags;}
416 
417  const SfxPoolItem* GetFormatAttr(const SwPosition& rPos, sal_uInt16 nWhich);
418  template<class T> const T* GetFormatAttr( const SwPosition& rPos, TypedWhichId<T> nWhich )
419  {
420  return static_cast<const T*>(GetFormatAttr(rPos, sal_uInt16(nWhich)));
421  }
422  const SfxPoolItem* GetStackAttr(const SwPosition& rPos, sal_uInt16 nWhich);
423 };
424 
425 //The only thing this is for is RES_FLTR_ANCHOR, anything else is an error.
426 //For graphics whose anchoring position would otherwise be automatically moved
427 //along by the insertion of text.
429 {
430 public:
432  : SwFltControlStack( rDo, nFieldFl ) {}
433  void AddAnchor(const SwPosition& rPos,SwFrameFormat *pFormat);
434  void Flush();
435 private:
436  SwWW8FltAnchorStack(const SwWW8FltAnchorStack&) = delete;
438 };
439 
440 
441 namespace SwWW8
442 {
443  struct ltstr
444  {
445  bool operator()(const OUString &r1, std::u16string_view r2) const
446  {
447  return r1.compareToIgnoreAsciiCase(r2)<0;
448  }
449  };
450 
451  struct ltnode
452  {
453  bool operator()(const SwTextNode *r1, const SwTextNode *r2) const
454  {
455  return r1->GetIndex() < r2->GetIndex();
456  }
457  };
458 };
459 
461 {
462 public:
464  : SwFltEndStack( rDo, nFieldFl )
466  {}
467 
468  // Keep track of referenced TOC bookmarks in order to suppress the import
469  // of unreferenced ones.
470  std::set<OUString, SwWW8::ltstr> aReferencedTOCBookmarks;
471 protected:
472  virtual void SetAttrInDoc( const SwPosition& rTmpPos,
473  SwFltStackEntry& rEntry ) override;
474 };
475 
476 class SwWW8FltRefStack final : public SwFltEndStack
477 {
478 public:
480  : SwFltEndStack( rDo, nFieldFl )
481  , aFieldVarNames()
482  {}
483  bool IsFootnoteEdnBkmField(const SwFormatField& rFormatField, sal_uInt16& rBkmNo);
484 
485  //Keep track of variable names created with fields, and the bookmark
486  //mapped to their position, hopefully the same, but very possibly
487  //an additional pseudo bookmark
488  std::map<OUString, OUString, SwWW8::ltstr> aFieldVarNames;
489 private:
490  SwFltStackEntry *RefToVar(const SwField* pField,SwFltStackEntry& rEntry);
491  virtual void SetAttrInDoc(const SwPosition& rTmpPos,
492  SwFltStackEntry& rEntry) override;
493  SwWW8FltRefStack(const SwWW8FltRefStack&) = delete;
494  SwWW8FltRefStack& operator=(const SwWW8FltRefStack&) = delete;
495 };
496 
497 template< typename Type >
498 inline bool get_flag( Type nBitField, Type nMask )
499 { return (nBitField & nMask) != 0; }
500 
501 template< typename ReturnType, typename Type >
502 inline ReturnType ulimit_cast( Type nValue, ReturnType nMax )
503 { return static_cast< ReturnType >( std::min< Type >( nValue, nMax ) ); }
504 
505 template< typename ReturnType, typename Type >
506 inline ReturnType ulimit_cast( Type nValue )
507 { return ulimit_cast( nValue, std::numeric_limits< ReturnType >::max() ); }
508 
510 {
511 public:
512  SwMacroInfo();
513  virtual ~SwMacroInfo() override;
514 
515  SwMacroInfo(SwMacroInfo const &) = default;
516  SwMacroInfo(SwMacroInfo &&) = default;
517  SwMacroInfo & operator =(SwMacroInfo const &) = delete; // due to SdrObjUserData
518  SwMacroInfo & operator =(SwMacroInfo &&) = delete; // due to SdrObjUserData
519 
520  virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject* pObj ) const override;
521 
522  void SetHlink( const OUString& rHlink ) { maHlink = rHlink; }
523  const OUString& GetHlink() const { return maHlink; }
524  void SetTarFrame( const OUString& rTarFrame ) { maTarFrame = rTarFrame; }
525  const OUString& GetTarFrame() const { return maTarFrame; }
526  void SetShapeId( sal_Int32 rShapeId ) { mnShapeId = rShapeId; }
527  const sal_Int32& GetShapeId() const { return mnShapeId; }
528  void SetName( const OUString& rName ) { maNameStr = rName; }
529  const OUString& GetName() const { return maNameStr; }
530 
531 private:
532  sal_Int32 mnShapeId;
533  OUString maHlink;
534  OUString maNameStr;
535  OUString maTarFrame;
536 };
537 
539 {
540  OUString hLinkAddr;
541  OUString tarFrame;
542 };
543 
544 namespace sw
545 {
546  namespace hack
547  {
548  class Position
549  {
550  private:
552  sal_Int32 mnPtContent;
553  public:
554  explicit Position(const SwPosition &rPos);
555  operator SwPosition() const;
556  const SwNodeIndex& GetPtNode() const { return maPtNode; };
557  sal_Int32 GetPtContent() const { return mnPtContent; };
558  };
559  }
560 
561  auto FilterControlChars(OUString const& rString) -> OUString;
562 }
563 
565 {
566  private:
567  OUString msBookmarkName;
568  OUString msMarkType;
569  OUString msMarkCode;
571 
572  public:
574  sal_uInt16 mnFieldId;
576  WW8FieldEntry(SwPosition const &rPos, sal_uInt16 nFieldId) noexcept;
577  WW8FieldEntry(const WW8FieldEntry &rOther) noexcept;
578  WW8FieldEntry &operator=(const WW8FieldEntry &rOther) noexcept;
579  void Swap(WW8FieldEntry &rOther) noexcept;
580 
581  SwNodeIndex GetPtNode() const { return maStartPos.GetPtNode(); };
582  sal_Int32 GetPtContent() const { return maStartPos.GetPtContent(); };
583 
584  const OUString& GetBookmarkName() const { return msBookmarkName;}
585  const OUString& GetBookmarkCode() const { return msMarkCode;}
586  void SetBookmarkName(const OUString& bookmarkName);
587  void SetBookmarkType(const OUString& bookmarkType);
588  void SetBookmarkCode(const OUString& bookmarkCode);
590 };
591 
592 // mini marker for some flags
593 
595 {
596 private:
599  std::deque<bool> maOldApos;
600  std::deque<WW8FieldEntry> maOldFieldStack;
601  std::unique_ptr<SwWW8FltControlStack> mxOldStck;
602  std::unique_ptr<SwWW8FltAnchorStack> mxOldAnchorStck;
603  std::unique_ptr<sw::util::RedlineStack> mxOldRedlines;
604  std::shared_ptr<WW8PLCFMan> mxOldPlcxMan;
605  std::unique_ptr<WW8FlyPara> mpWFlyPara;
606  std::unique_ptr<WW8SwFlyPara> mpSFlyPara;
609  std::unique_ptr<WW8TabDesc> mxTableDesc;
611  sal_uInt16 mnCurrentColl;
614  bool mbSymbol;
617  bool mbAnl;
623 public:
624  WW8ReaderSave(SwWW8ImplReader* pRdr, WW8_CP nStart=-1);
625  void Restore(SwWW8ImplReader* pRdr);
626  const SwPosition &GetStartPos() const { return maTmpPos; }
627 };
628 
629 enum class eF_ResT { OK, TEXT, TAGIGN, READ_FSPA };
630 
632 {
633 public:
635  SwWW8Shade(bool bVer67, const WW8_SHD& rSHD);
636  SwWW8Shade(Color nFore, Color nBack, sal_uInt16 nIndex)
637  {
638  SetShade(nFore, nBack, nIndex);
639  }
640 private:
641  void SetShade(Color nFore, Color nBack, sal_uInt16 nIndex);
642 };
643 
644 // Formulas
645 
647 {
651 };
652 
654 {
655 protected:
657 
658  WW8FormulaControl(WW8FormulaControl const&) = delete;
660 
661 public:
662  WW8FormulaControl(const OUString& rN, SwWW8ImplReader &rRdr)
663  : mrRdr(rRdr), mfUnknown(0), mfDropdownIndex(0),
664  mfToolTip(0), mfNoMark(0), mfType(0),
665  mfUnused(0), mhpsCheckBox(20), mnChecked(0), mnMaxLen(0),
666  mbHelp(false), msName( rN )
667  {
668  }
675 
676  sal_uInt16 mhpsCheckBox;
677  sal_uInt16 mnChecked;
678 
680  sal_uInt16 mnMaxLen;
681  OUString msTitle;
682  OUString msDefault;
683  OUString msFormatting;
684  bool mbHelp;
685  OUString msHelp;
686  OUString msToolTip;
687  OUString msEntryMcr;
688  OUString msExitMcr;
689  std::vector<OUString> maListEntries;
690  virtual ~WW8FormulaControl() {}
691  void FormulaRead(SwWw8ControlType nWhich,SvStream *pD);
692  virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory> &rServiceFactory,
693  css::uno::Reference< css::form::XFormComponent> &rFComp,
694  css::awt::Size &rSz) = 0;
695  OUString msName;
696 };
697 
699 {
700 private:
701  WW8FormulaCheckBox(const WW8FormulaCheckBox&) = delete;
703 
704 public:
705  explicit WW8FormulaCheckBox(SwWW8ImplReader &rR);
706 
707  virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory> &rServiceFactory,
708  css::uno::Reference< css::form::XFormComponent> &rFComp,
709  css::awt::Size &rSz) override;
710 };
711 
713 {
714 private:
715  WW8FormulaListBox(const WW8FormulaListBox&) = delete;
717 
718 public:
719  explicit WW8FormulaListBox(SwWW8ImplReader &rR);
720 
721  virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory> &rServiceFactory,
722  css::uno::Reference< css::form::XFormComponent> &rFComp,
723  css::awt::Size &rSz) override;
724 };
725 
727 {
728 private:
729  WW8FormulaEditBox(const WW8FormulaEditBox&) = delete;
731 public:
732  explicit WW8FormulaEditBox(SwWW8ImplReader &rR);
733  //no real implementation, return false
734  virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory> & /* rServiceFactory */,
735  css::uno::Reference< css::form::XFormComponent> & /* rFComp */,
736  css::awt::Size & /* rSz */) override { return false; }
737 };
738 
740 {
741 public:
742  SwMSConvertControls( SfxObjectShell const *pDSh, SwPaM *pP );
743  void InsertFormula( WW8FormulaControl &rFormula);
744  virtual bool InsertControl(const css::uno::Reference< css::form::XFormComponent >& rFComp,
745  const css::awt::Size& rSize,
746  css::uno::Reference< css::drawing::XShape > *pShape, bool bFloatingCtrl) override;
747  void ExportControl(WW8Export &rWrt, const SdrUnoObj& rFormObj);
748  bool ReadOCXStream( tools::SvRef<SotStorage> const & rSrc1,
749  css::uno::Reference< css::drawing::XShape > *pShapeRef,
750  bool bFloatingCtrl=false );
751 private:
753  sal_uInt32 mnObjectId;
754 };
755 
757 {
758 private:
761  std::unordered_map<sal_uInt32, Graphic> aOldEscherBlipCache;
762 
763  virtual bool GetOLEStorageName( sal_uInt32 nOLEId, OUString& rStorageName,
764  tools::SvRef<SotStorage>& rSrcStorage, css::uno::Reference < css::embed::XStorage >& rDestStorage ) const override;
765  virtual bool ShapeHasText( sal_uLong nShapeId, sal_uLong nFilePos ) const override;
766  // #i32596# - new parameter <_nCalledByGroup>, which
767  // indicates, if the OLE object is imported inside a group object
768  virtual SdrObject* ImportOLE( sal_uInt32 nOLEId,
769  const Graphic& rGrf,
770  const tools::Rectangle& rBoundRect,
771  const tools::Rectangle& rVisArea,
772  const int _nCalledByGroup ) const override;
773 
774  SwMSDffManager(const SwMSDffManager&) = delete;
775  SwMSDffManager& operator=(const SwMSDffManager&) = delete;
776 public:
777  static sal_uInt32 GetFilterFlags();
778  static sal_Int32 GetEscherLineMatch(MSO_LineStyle eStyle, MSO_SPT eShapeType,
779  sal_Int32 &rThick);
780  SwMSDffManager( SwWW8ImplReader& rRdr, bool bSkipImages );
781  void DisableFallbackStream();
782  void EnableFallbackStream();
783 protected:
784  virtual SdrObject* ProcessObj( SvStream& rSt, DffObjData& rObjData, SvxMSDffClientData& rData, tools::Rectangle& rTextRect, SdrObject* pObj ) override;
785 };
786 
788 {
789 public:
790  explicit wwSection(const SwPosition &rPos);
797 
798  sal_uInt32 nPgWidth;
799  sal_uInt32 nPgLeft;
800  sal_uInt32 nPgRight;
801  sal_uInt32 nPgGutter;
802  bool m_bRtlGutter = false;
803 
804  css::drawing::TextVerticalAdjust mnVerticalAdjustment;
807  void SetDirection();
808  bool IsContinuous() const { return maSep.bkc == 0; }
809  bool IsNotProtected() const { return maSep.fUnlocked != 0; }
810  bool IsVertical() const;
811  sal_Int16 NoCols() const { return maSep.ccolM1 + 1; }
812  sal_Int32 StandardColSeparation() const { return maSep.dxaColumns; }
813  bool HasTitlePage() const { return maSep.fTitlePage != 0; }
814  sal_uInt16 PageStartAt() const { return maSep.pgnStart; }
815  bool PageRestartNo() const { return maSep.fPgnRestart != 0; }
816  bool IsBiDi() const { return maSep.fBiDi != 0; }
817  sal_uInt32 GetPageWidth() const { return nPgWidth; }
818  sal_uInt32 GetTextAreaWidth() const
819  { return GetPageWidth() - GetPageLeft() - nPgGutter - GetPageRight(); }
820  sal_uInt32 GetPageHeight() const { return maSep.yaPage; }
821  sal_uInt32 GetPageLeft() const { return nPgLeft; }
822  sal_uInt32 GetPageRight() const { return nPgRight; }
823  bool IsLandScape() const { return maSep.dmOrientPage != 0; }
824  bool IsFixedHeightHeader() const { return maSep.dyaTop < 0; }
825  bool IsFixedHeightFooter() const { return maSep.dyaBottom < 0; }
826 };
827 
829 {
830 private:
831  /*
832  A queue of the ms sections in the document
833  */
835  std::deque<wwSection> maSegments;
836  typedef std::deque<wwSection>::iterator mySegIter;
837 
838  //Num of page desc's entered into the document
839  sal_uInt16 mnDesc;
840 
842  {
844  sal_uInt32 nSwHLo, nSwFUp, nSwUp, nSwLo;
846  : bHasHeader(false)
847  , bHasFooter(false)
848  , nSwHLo(0)
849  , nSwFUp(0)
850  , nSwUp(0)
851  , nSwLo(0)
852  {}
853  };
854 
855  void SetSegmentToPageDesc(const wwSection &rSection, bool bIgnoreCols);
856 
857  void GetPageULData(const wwSection &rNewSection,
858  wwULSpaceData& rData) const;
859  static void SetPageULSpaceItems(SwFrameFormat &rFormat, wwULSpaceData const & rData,
860  const wwSection &rSection);
861 
862  static void SetPage(SwPageDesc &rPageDesc, SwFrameFormat &rFormat,
863  const wwSection &rSection, bool bIgnoreCols);
864 
865  static void SetNumberingType(const wwSection &rNewSection, SwPageDesc &rPageDesc);
866 
867  void SetUseOn(wwSection &rSection);
868  void SetHdFt(wwSection const &rSection, int nSect, const wwSection *pPrevious);
869 
870  SwSectionFormat *InsertSection(SwPaM const & rMyPaM, wwSection &rSection);
871  static bool SetCols(SwFrameFormat &rFormat, const wwSection &rSection,
872  sal_uInt32 nNetWidth);
873  bool SectionIsProtected(const wwSection &rSection) const;
874  static void SetLeftRight(wwSection &rSection);
875  /*
876  The segment we're inserting, the start of the segments container, and the
877  nodeindex of where we want the page break to (normally the segments start
878  position
879  */
880  SwFormatPageDesc SetSwFormatPageDesc(mySegIter const &rIter, mySegIter const &rStart,
881  bool bIgnoreCols);
882 
883  wwSectionManager(const wwSectionManager&) = delete;
884  wwSectionManager& operator=(const wwSectionManager&) = delete;
885 public:
886  explicit wwSectionManager(SwWW8ImplReader &rReader) : mrReader(rReader), mnDesc(0)
887  {}
889  void SetCurrentSectionVerticalAdjustment(const css::drawing::TextVerticalAdjust nVA);
890  bool CurrentSectionIsVertical() const;
891  bool CurrentSectionIsProtected() const;
892  void PrependedInlineNode(const SwPosition &rPos, const SwNode &rNode);
893  sal_uInt16 CurrentSectionColCount() const;
894  bool WillHavePageDescHere(const SwNodeIndex& rIdx) const;
895  void CreateSep(const tools::Long nTextPos);
896  void InsertSegments();
897  void JoinNode(const SwPosition &rPos, const SwNode &rNode);
898  sal_uInt32 GetPageLeft() const;
899  sal_uInt32 GetPageRight() const;
900  sal_uInt32 GetPageWidth() const;
901  sal_uInt32 GetWWPageTopMargin() const;
902  sal_uInt32 GetTextAreaWidth() const;
903 };
904 
905 //Various writer elements like frames start off containing a blank paragraph,
906 //sometimes this paragraph turns out to be extraneous, e.g. the frame should
907 //only contain a table with no trailing paragraph.
908 
909 //We want to remove these extra paragraphs, but removing them during the parse
910 //is problematic, because we don't want to remove any paragraphs that are still
911 //addressed by property entries in a SwFltControlStack which have not yet been
912 //committed to the document.
913 
914 //Safest thing is to not delete SwTextNodes from a document during import, and
915 //remove these extraneous paragraphs at the end after all SwFltControlStack are
916 //destroyed.
918 {
919 private:
920  /*
921  A vector of SwTextNodes to erase from a document after import is complete
922  */
923  std::set<SwTextNode*, SwWW8::ltnode> m_aTextNodes;
925 
926  wwExtraneousParas(wwExtraneousParas const&) = delete;
928 
929 public:
930  explicit wwExtraneousParas(SwDoc &rDoc) : m_rDoc(rDoc) {}
932  void insert(SwTextNode *pTextNode) { m_aTextNodes.insert(pTextNode); }
933  void delete_all_from_doc();
934 };
935 
937 {
938 private:
939  OUString msSeed;
942 
943  wwFrameNamer(wwFrameNamer const&) = delete;
944  wwFrameNamer& operator=(wwFrameNamer const&) = delete;
945 
946 public:
947  void SetUniqueGraphName(SwFrameFormat *pFrameFormat, std::u16string_view rFixedPart);
948  wwFrameNamer(bool bIsDisabled, const OUString &rSeed)
949  : msSeed(rSeed), mnImportedGraphicsCount(0), mbIsDisabled(bIsDisabled)
950  {
951  }
952 };
953 
955 {
956 private:
957  const SwDoc &mrDoc;
958  OUString msFileLinkSeed;
960  wwSectionNamer(const wwSectionNamer&) = delete;
961  wwSectionNamer& operator=(const wwSectionNamer&) = delete;
962 public:
963  OUString UniqueName();
964  wwSectionNamer(const SwDoc &rDoc, const OUString &rSeed)
965  : mrDoc(rDoc), msFileLinkSeed(rSeed), mnFileSectionNo(0)
966  { }
967 };
968 
970 {
971 public:
973  bool mbAutoNum;
976 };
977 
979 {
981  bool mbStopApo;
987  : mbStartApo(false), mbStopApo(false), m_bHasSprm37(false)
988  , m_bHasSprm29(false), m_nSprm29(0), mpStyleApo(nullptr) {}
989  bool HasStartStop() const { return (mbStartApo || mbStopApo); }
990  bool HasFrame() const { return (m_bHasSprm29 || m_bHasSprm37 || mpStyleApo); }
991 };
992 
994 {
995  OUString msOutlineNumRule; // WinWord 6 numbering, variant 1
996  OUString msNumberingNumRule; // WinWord 6 numbering, variant 2
997  SwNumRule* GetNumRule(const SwDoc& rDoc, sal_uInt8 nNumType);
998  void SetNumRule(const OUString& rNumRule, sal_uInt8 nNumType);
999 };
1000 
1001 struct SprmReadInfo;
1002 class SwDocShell;
1004 {
1005  bool mbCopy;
1010 
1011  WW8PostProcessAttrsInfo(WW8_CP nCpStart, WW8_CP nCpEnd, SwPaM & rPaM);
1012 };
1013 
1014 #define MAX_COL 64 // WW6-description: 32, WW6-UI: 31 & WW8-UI: 63!
1015 
1017 {
1019  short nGapHalf;
1026  short nRows;
1027  sal_uInt16 maDirections[MAX_COL + 1];
1028  short nCenter[MAX_COL + 1]; // X-edge of all cells of this band
1029  short nWidth[MAX_COL + 1]; // length of all cells of this band
1030  short nWwCols; // sal_uInt8 would be sufficient, alignment -> short
1031  short nSwCols; // SW: number of columns for the writer
1032  bool bLEmptyCol; // SW: an additional empty column at the left
1033  bool bREmptyCol; // SW: same at the right
1038  short nOverrideValues[MAX_COL + 1][4];
1042 
1043  bool bExist[MAX_COL]; // does this cell exist ?
1044  sal_uInt8 nTransCell[MAX_COL + 2]; // translation WW-Index -> SW-Index
1045 
1047  {
1048  return nWwCol < SAL_N_ELEMENTS(nTransCell) ? nTransCell[nWwCol] : 0xFF;
1049  }
1050 
1051  WW8TabBandDesc();
1052  WW8TabBandDesc(WW8TabBandDesc const & rBand); // deep copy
1053  ~WW8TabBandDesc();
1054  void ReadDef(bool bVer67, const sal_uInt8* pS, short nLen);
1055  void ProcessDirection(const sal_uInt8* pParams);
1056  void ProcessSprmTSetBRC(int nBrcVer, const sal_uInt8* pParamsTSetBRC, sal_uInt16 nParamsLen);
1057  void ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8* pParams, sal_uInt16 nParamsLen);
1058  void ProcessSprmTDxaCol(const sal_uInt8* pParamsTDxaCol);
1059  void ProcessSprmTDelete(const sal_uInt8* pParamsTDelete);
1060  void ProcessSprmTInsert(const sal_uInt8* pParamsTInsert);
1061  void ProcessSpacing(const sal_uInt8* pParamsTInsert);
1062  void ProcessSpecificSpacing(const sal_uInt8* pParamsTInsert);
1063  void ReadShd(const sal_uInt8* pS );
1064  void ReadNewShd(const sal_uInt8* pS, bool bVer67, sal_uInt8 nStart);
1065 
1066  enum wwDIR {wwTOP = 0, wwLEFT = 1, wwBOTTOM = 2, wwRIGHT = 3};
1067 
1068 private:
1069  WW8TabBandDesc & operator =(WW8TabBandDesc const &) = default; // only for use in copy ctor
1070 };
1071 
1072 // Storage-Reader
1073 
1074 typedef std::set<WW8_CP> cp_set;
1075 
1077 {
1078 private:
1079  SwDocShell *m_pDocShell; // The Real DocShell
1080 
1081 friend class WW8RStyle;
1082 friend class WW8TabDesc;
1083 friend class WW8ReaderSave;
1084 friend struct WW8FlyPara;
1085 friend struct WW8SwFlyPara;
1086 friend class WW8FlySet;
1087 friend class SwMSDffManager;
1089 friend class WW8FormulaControl;
1090 friend class wwSectionManager;
1091 
1092 private:
1093 
1094  SotStorage* m_pStg; // Input-Storage
1095  SvStream* m_pStrm; // Input-(Storage)Stream
1096  SvStream* m_pTableStream; // Input-(Storage)Stream
1097  SvStream* m_pDataStream; // Input-(Storage)Stream
1098 
1099 // general stuff
1101  std::shared_ptr<SwUnoCursor> mpCursor;
1103 
1104  std::unique_ptr<SwWW8FltControlStack> m_xCtrlStck; // stack for the attributes
1105 
1106  /*
1107  This stack is for redlines, because their sequence of discovery can
1108  be out of order of their order of insertion into the document.
1109  */
1110  std::stack<std::unique_ptr<sw::util::RedlineStack>> m_aFrameRedlines; //inside frames, tables, etc
1111  std::unique_ptr<sw::util::RedlineStack> m_xRedlineStack; //main document
1112 
1113  /*
1114  This stack is for fields that get referenced later, e.g. BookMarks and TOX.
1115  They get inserted at the end of the document, it is the same stack for
1116  headers/footers/main text/textboxes/tables etc...
1117  */
1118  std::unique_ptr<SwWW8ReferencedFltEndStack> m_xReffedStck;
1119 
1120  /*
1121  This stack is for fields whose true conversion cannot be determined until
1122  the end of the document, it is the same stack for headers/footers/main
1123  text/textboxes/tables etc... They are things that reference other things
1124  e.g. NoteRef and Ref, they are processed after m_xReffedStck
1125  */
1126  std::unique_ptr<SwWW8FltRefStack> m_xReffingStck;
1127 
1128  /*
1129  For graphics anchors. Determines the graphics whose anchors are in the
1130  current paragraph, and works around the difficulty in inserting a graphic
1131  anchored to character before a character to be anchored to has been
1132  inserted. Is emptied at the end of each paragraph.
1133  */
1134  std::unique_ptr<SwWW8FltAnchorStack> m_xAnchorStck;
1135 
1136  /*
1137  A stack of fields identifiers to keep track of any open fields that need
1138  to be closed. Generally word fields are inserted as writer fields as soon
1139  as they are encountered, and so their end point is normally unimportant.
1140  But hyperlink fields need to be applied as attributes to text and it is
1141  far easier and safer to set the end point of an attribute when we
1142  encounter the end marker of the field instead of calculating in advance
1143  where the end point will fall, to do so fully correctly duplicates the
1144  main logic of the filter itself.
1145  */
1146  std::deque<WW8FieldEntry> m_aFieldStack;
1147 
1148  /*
1149  A stack of open footnotes. Should only be one in it at any time.
1150  */
1151  std::deque<FootnoteDescriptor> m_aFootnoteStack;
1152 
1153  /*
1154  A queue of the ms sections in the document
1155  */
1157 
1158  /*
1159  A vector of surplus-to-requirements paragraph in the final document,
1160  that exist because of quirks of the SwDoc document model and/or API,
1161  which need to be removed.
1162  */
1164 
1165  /*
1166  A map of tables to their follow nodes for use in inserting tables into
1167  already existing document, i.e. insert file
1168  */
1170 
1171  /*
1172  Creates unique names to give to (file link) sections (WW1/WW2/...)
1173  */
1175 
1176  /*
1177  Knows how to split a series of bytes into sprms and their arguments
1178  */
1179  std::unique_ptr<wwSprmParser> m_xSprmParser;
1180 
1181  /*
1182  Creates unique names to give to graphics
1183  */
1185 
1186  /*
1187  Knows which writer style a given word style should be imported as.
1188  */
1191 
1192  /*
1193  Stack of textencoding being used as we progress through the document text
1194  */
1195  std::stack<rtl_TextEncoding> m_aFontSrcCharSets;
1196  std::stack<rtl_TextEncoding> m_aFontSrcCJKCharSets;
1197 
1198  /*
1199  Progress bar
1200  */
1201  std::unique_ptr<ImportProgress> m_xProgress;
1202 
1203  std::unique_ptr<SwMSConvertControls> m_xFormImpl; // implementation of control
1204 
1206  std::unique_ptr<FrameDeleteWatch> m_xFormatOfJustInsertedApo;
1209 
1210  //Keep track of APO environments
1211  std::deque<bool> m_aApos;
1212  /*
1213  Keep track of generated Ruby character formats we can minimize the
1214  number of character formats created
1215  */
1216  std::vector<const SwCharFormat*> m_aRubyCharFormats;
1217 
1218  /*
1219  For fuzzing keep track of source offset of inserted graphics
1220  */
1221  std::set<sal_uLong> m_aGrafPosSet;
1222 
1223  std::unique_ptr<WW8PostProcessAttrsInfo> m_pPostProcessAttrsInfo;
1224 
1225  std::shared_ptr<WW8Fib> m_xWwFib;
1226  std::unique_ptr<WW8Fonts> m_xFonts;
1227  std::unique_ptr<WW8Dop> m_xWDop;
1228  std::unique_ptr<WW8ListManager, o3tl::default_delete<WW8ListManager>> m_xLstManager;
1229  std::unique_ptr<WW8ScannerBase> m_xSBase;
1230  std::shared_ptr<WW8PLCFMan> m_xPlcxMan;
1231  std::map<short, OUString> m_aLinkStringMap;
1232 
1235 
1236  std::unique_ptr<WW8RStyle> m_xStyles; // pointer to the style reading class
1237  SwFormat* m_pCurrentColl; // collection to be created now
1238  // ( always 0 outside of a Style-Def )
1239  std::unique_ptr<SfxItemSet> m_xCurrentItemSet;// character attributes to be read in now
1240  // (always 0 outside of the WW8ListManager Ctor)
1241  std::vector<SwWW8StyInf> m_vColl;
1244 
1245  std::unique_ptr<WW8PLCF_HdFt> m_xHdFt; // pointer to Header / Footer - scanner class
1246 
1247  std::unique_ptr<WW8FlyPara> m_xWFlyPara; // WW-parameter
1248  std::unique_ptr<WW8SwFlyPara> m_xSFlyPara; // Sw parameters created from previous
1249 
1250  std::unique_ptr<WW8TabDesc> m_xTableDesc; // description of table properties
1251  //Keep track of tables within tables
1252  std::stack<std::unique_ptr<WW8TabDesc>> m_aTableStack;
1253 
1255  std::unique_ptr<WW8_OLST> m_xNumOlst; // position in text
1256 
1259  std::unique_ptr<EditEngine> m_pDrawEditEngine;
1260  std::unique_ptr<wwZOrderer> m_xWWZOrder;
1261 
1262  SwFieldType* m_pNumFieldType; // for number circle
1263 
1264  std::unique_ptr<SwMSDffManager> m_xMSDffManager;
1265 
1266  std::unique_ptr<std::vector<OUString>> m_pAtnNames;
1267 
1268  std::unique_ptr<WW8SmartTagData> m_pSmartTagData;
1269 
1271  OUString m_sBaseURL;
1272 
1273  // Ini-Flags:
1274  sal_uInt32 m_nIniFlags; // flags from writer.ini
1275  sal_uInt32 m_nIniFlags1; // ditto ( additional flags )
1276  sal_uInt32 m_nFieldFlags; // ditto for fields
1277  sal_uInt32 m_nFieldTagAlways[3]; // ditto for tagging of fields
1278  sal_uInt32 m_nFieldTagBad[3]; // ditto for tagging of fields that can't be imported
1279  bool m_bRegardHindiDigits; // import digits in CTL scripts as Hindi numbers
1280 
1282  WW8_CP m_nDrawCpO; // start of Txbx-SubDocs
1283 
1284  sal_uLong m_nPicLocFc; // Picture Location in File (FC)
1285  sal_uLong m_nObjLocFc; // Object Location in File (FC)
1286 
1287  sal_Int32 m_nIniFlyDx; // X-offset of Flys
1288  sal_Int32 m_nIniFlyDy; // Y-offset of Flys
1289 
1290  rtl_TextEncoding m_eTextCharSet; // Default charset for Text
1291  rtl_TextEncoding m_eStructCharSet; // rtl_TextEncoding for structures
1292  rtl_TextEncoding m_eHardCharSet; // Hard rtl_TextEncoding-Attribute
1293  sal_uInt16 m_nProgress; // percentage for Progressbar
1294  sal_uInt16 m_nCurrentColl; // per WW-count
1295  sal_uInt16 m_nFieldNum; // serial number for that
1296  sal_uInt16 m_nLFOPosition;
1297 
1298  short m_nCharFormat; // per WW-count, <0 for none
1299 
1302 
1303  sal_Unicode m_cSymbol; // symbol to be read now
1304 
1305  sal_uInt8 m_nWantedVersion; // originally requested WW-Doc version by Writer
1306 
1307  sal_uInt8 m_nSwNumLevel; // level number for outline / enumeration
1308  sal_uInt8 m_nWwNumType; // outline / number / enumeration
1309  const SwNumRule* m_pChosenWW8OutlineStyle; // copied to the "Outline" Chapter Numbering style
1311 
1312  bool m_bNewDoc; // new document?
1313  bool m_bSkipImages; // skip images for text extraction/indexing
1314  bool m_bReadNoTable; // no tables
1315  bool m_bPgSecBreak; // Page- or Sectionbreak is still to be added
1316  bool m_bSpec; // special char follows in text
1317  bool m_bObj; // Obj in Text
1318  bool m_bTxbxFlySection; // FlyFrame that was inserted as replacement for Winword Textbox
1319  bool m_bHasBorder; // for bundling of the borders
1320  bool m_bSymbol; // e.g. Symbol instead of Times
1321  bool m_bIgnoreText; // e.g. for FieldVanish
1322  int m_nInTable; // are we currently reading a table?
1323  bool m_bWasTabRowEnd; // table : Row End Mark
1324  bool m_bWasTabCellEnd; // table: Cell End Mark
1325 
1326  bool m_bAnl; // enumeration in work
1327  // Anl stands for "Autonumber level"
1328 
1329  bool m_bHdFtFootnoteEdn; // special text: header/footer/and so on
1330  bool m_bFootnoteEdn; // footnote or endnote
1331  bool m_bIsHeader; // text is read from header ( line height )
1332  bool m_bIsFooter; // text is read from footer ( line height )
1333 
1334  bool m_bIsUnicode; // current piece of text is encoded as 2-byte Unicode
1335  // please do NOT handle this as bit field!
1336 
1337  bool m_bCpxStyle; // style in the complex part
1338  bool m_bStyNormal; // style with Id 0 is currently read
1339  bool m_bWWBugNormal; // WW-Version with Bug Dya in Style Normal
1340  bool m_bNoAttrImport; // ignore attributes for ignoring styles
1341  bool m_bInHyperlink; // special case for reading 0x01
1342  // see also: SwWW8ImplReader::Read_F_Hyperlink()
1344 
1345  // useful helper variables
1346  bool m_bVer67; // ( (6 == nVersion) || (7 == nVersion) );
1347  bool m_bVer6; // (6 == nVersion);
1348  bool m_bVer7; // (7 == nVersion);
1349  bool m_bVer8; // (8 == nVersion);
1350 
1351  bool m_bEmbeddObj; // EmbeddField is being read
1352 
1353  bool m_bCurrentAND_fNumberAcross; // current active Annotated List Descriptor - ROW flag
1354 
1355  bool m_bNoLnNumYet; // no Line Numbering has been activated yet (we import
1356  // the very 1st Line Numbering and ignore the rest)
1357 
1358  bool m_bFirstPara; // first paragraph?
1362 
1364  sal_Int32 m_nDropCap;
1365 
1366  bool m_bBidi;
1368  // Indicate that currently on loading a TOC, managed by Read_F_TOX() and End_Field()
1371  // Indicate that current on loading a hyperlink, which is inside a TOC; Managed by Read_F_Hyperlink() and End_Field()
1373  // a document position recorded the after-position of TOC section, managed by Read_F_TOX() and End_Field()
1374  std::unique_ptr<SwPaM> m_pPosAfterTOC;
1375  // used for some dropcap tweaking
1377 
1378  std::unique_ptr< SwPosition > m_pLastAnchorPos;
1379 
1383 
1384  std::vector<WW8_CP> m_aEndParaPos;
1388 
1389  const SprmReadInfo& GetSprmReadInfo(sal_uInt16 nId) const;
1390 
1391  bool StyleExists(unsigned int nColl) const { return (nColl < m_vColl.size()); }
1392  SwWW8StyInf *GetStyle(sal_uInt16 nColl) const;
1393  void AppendTextNode(SwPosition& rPos);
1394 
1395  void Read_HdFt(int nSect, const SwPageDesc *pPrev,
1396  const wwSection &rSection);
1397  void Read_HdFtText(WW8_CP nStartCp, WW8_CP nLen, SwFrameFormat const * pHdFtFormat);
1398  void Read_HdFtTextAsHackedFrame(WW8_CP nStart, WW8_CP nLen,
1399  SwFrameFormat const &rHdFtFormat, sal_uInt16 nPageWidth);
1400 
1401  bool isValid_HdFt_CP(WW8_CP nHeaderCP) const;
1402 
1403  bool HasOwnHeaderFooter(sal_uInt8 nWhichItems, sal_uInt8 grpfIhdt, int nSect);
1404 
1405  void HandleLineNumbering(const wwSection &rSection);
1406 
1407  void CopyPageDescHdFt( const SwPageDesc* pOrgPageDesc,
1408  SwPageDesc* pNewPageDesc, sal_uInt8 nCode );
1409 
1410  void DeleteStack(std::unique_ptr<SwFltControlStack> prStck);
1412  {
1413  DeleteStack(std::move(m_xCtrlStck));
1414  }
1416  {
1417  DeleteStack(std::move(m_xReffedStck));
1418  DeleteStack(std::move(m_xReffingStck));
1419  }
1421  {
1422  DeleteStack(std::move(m_xAnchorStck));
1423  }
1424  void emulateMSWordAddTextToParagraph(const OUString& rAddString);
1425  void simpleAddTextToParagraph(const OUString& rAddString);
1426  bool HandlePageBreakChar();
1427  bool ReadChar(tools::Long nPosCp, tools::Long nCpOfs);
1428  bool ReadPlainChars(WW8_CP& rPos, sal_Int32 nEnd, sal_Int32 nCpOfs);
1429  bool ReadChars(WW8_CP& rPos, WW8_CP nNextAttr, tools::Long nTextEnd, tools::Long nCpOfs);
1432 
1433  void SetDocumentGrid(SwFrameFormat &rFormat, const wwSection &rSection);
1434 
1435  void ProcessCurrentCollChange(WW8PLCFManResult& rRes, bool* pStartAttr,
1436  bool bCallProcessSpecial);
1437  tools::Long ReadTextAttr(WW8_CP& rTextPos, tools::Long nTextEnd, bool& rbStartLine, int nDepthGuard = 0);
1438  void ReadAttrs(WW8_CP& rTextPos, WW8_CP& rNext, tools::Long nTextEnd, bool& rbStartLine);
1439  void CloseAttrEnds();
1440  bool ReadText(WW8_CP nStartCp, WW8_CP nTextLen, ManTypes nType);
1441 
1442  void ReadRevMarkAuthorStrTabl( SvStream& rStrm, sal_Int32 nTablePos,
1443  sal_Int32 nTableSiz, SwDoc& rDoc );
1444 
1445  void Read_HdFtFootnoteText(const SwNodeIndex* pSttIdx, WW8_CP nStartCp,
1446  WW8_CP nLen, ManTypes nType);
1447 
1448  void ImportTox( int nFieldId, const OUString& aStr );
1449 
1450  void EndSprm( sal_uInt16 nId );
1451  // #i103711#
1452  // #i105414#
1453  void NewAttr( const SfxPoolItem& rAttr,
1454  const bool bFirstLineOfStSet = false,
1455  const bool bLeftIndentSet = false );
1456 
1457  bool GetFontParams(sal_uInt16, FontFamily&, OUString&, FontPitch&,
1458  rtl_TextEncoding&);
1459  bool SetNewFontAttr(sal_uInt16 nFCode, bool bSetEnums, sal_uInt16 nWhich);
1460  void ResetCharSetVars();
1461  void ResetCJKCharSetVars();
1462 
1463  const SfxPoolItem* GetFormatAttr( sal_uInt16 nWhich );
1464  bool JoinNode(SwPaM &rPam, bool bStealAttr = false);
1465 
1466  static bool IsBorder(const WW8_BRCVer9* pbrc, bool bChkBtwn = false);
1467 
1468  //Set closest writer border equivalent into rBox from pbrc, optionally
1469  //recording true winword dimensions in pSizeArray. nSetBorders to mark a
1470  //border which has been previously set to a value and for which becoming
1471  //empty is valid. Set bCheBtwn to work with paragraphs that have a special
1472  //between paragraphs border
1473 
1474  // Note #i20672# we can't properly support between lines so best to ignore
1475  // them for now
1476  static bool SetBorder(SvxBoxItem& rBox, const WW8_BRCVer9* pbrc,
1477  short *pSizeArray=nullptr, sal_uInt8 nSetBorders=0xFF);
1478  static void GetBorderDistance(const WW8_BRCVer9* pbrc, tools::Rectangle& rInnerDist);
1479  static sal_uInt16 GetParagraphAutoSpace(bool fDontUseHTMLAutoSpacing);
1480  static bool SetShadow(SvxShadowItem& rShadow, const short *pSizeArray,
1481  const WW8_BRCVer9& aRightBrc);
1482  //returns true is a shadow was set
1483  static bool SetFlyBordersShadow(SfxItemSet& rFlySet, const WW8_BRCVer9 *pbrc,
1484  short *SizeArray);
1485  static void SetPageBorder(SwFrameFormat &rFormat, const wwSection &rSection);
1486 
1487  static sal_Int32 MatchSdrBoxIntoFlyBoxItem( const Color& rLineColor,
1488  MSO_LineStyle eLineStyle, MSO_LineDashing eDashing, MSO_SPT eShapeType, sal_Int32 &rLineWidth,
1489  SvxBoxItem& rBox );
1490  void MatchSdrItemsIntoFlySet( SdrObject const * pSdrObj, SfxItemSet &aFlySet,
1491  MSO_LineStyle eLineStyle, MSO_LineDashing eDashing, MSO_SPT eShapeType, tools::Rectangle &rInnerDist );
1492  static void AdjustLRWrapForWordMargins(const SvxMSDffImportRec &rRecord,
1493  SvxLRSpaceItem &rLR);
1494  static void AdjustULWrapForWordMargins(const SvxMSDffImportRec &rRecord,
1495  SvxULSpaceItem &rUL);
1496  static void MapWrapIntoFlyFormat(const SvxMSDffImportRec& rRecord, SwFrameFormat& rFlyFormat);
1497 
1498  void SetAttributesAtGrfNode(const SvxMSDffImportRec& rRecord, const SwFrameFormat& rFlyFormat,
1499  WW8_FSPA const* pF);
1500 
1501  bool IsDropCap() const;
1502  bool IsListOrDropcap() const { return (!m_xCurrentItemSet || m_bDropCap); };
1503 
1504  //Apo == Absolutely Positioned Object, MSWord's old-style frames
1505  std::unique_ptr<WW8FlyPara> ConstructApo(const ApoTestResults &rApo,
1506  const WW8_TablePos *pTabPos);
1507  bool StartApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos);
1508  void StopApo();
1509  bool TestSameApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos);
1510  ApoTestResults TestApo(int nCellLevel, bool bTableRowEnd,
1511  const WW8_TablePos *pTabPos);
1512  static void StripNegativeAfterIndent(SwFrameFormat const *pFlyFormat);
1513 
1514  void EndSpecial();
1515  bool ProcessSpecial(bool &rbReSync, WW8_CP nStartCp);
1516  sal_uInt16 TabRowSprm(int nLevel) const;
1517 
1518  bool ReadGrafFile(OUString& rFileName, std::unique_ptr<Graphic>& rpGraphic,
1519  const WW8_PIC& rPic, SvStream* pSt, sal_uLong nFilePos, bool* pDelIt);
1520 
1521  static void ReplaceObj(const SdrObject &rReplaceTextObj,
1522  SdrObject &rSubObj);
1523 
1525  const Graphic* pGraph, const OUString& rFileName,
1526  const SfxItemSet& rGrfSet);
1527 
1528  SwFrameFormat* MakeGrafInContent(const WW8_PIC& rPic, const WW8PicDesc& rPD,
1529  const Graphic* pGraph, const OUString& rFileName,
1530  const SfxItemSet& rGrfSet);
1531 
1533  SwFrameFormat* ImportGraf1(WW8_PIC const & rPic, SvStream* pSt, sal_uLong nFilePos);
1534  SwFrameFormat* ImportGraf(SdrTextObj const * pTextObj = nullptr, SwFrameFormat const * pFlyFormat = nullptr);
1535 
1536  SdrObject* ImportOleBase( Graphic& rGraph, const Graphic* pGrf=nullptr,
1537  const SfxItemSet* pFlySet=nullptr, const tools::Rectangle& aVisArea = tools::Rectangle() );
1538 
1539  SwFrameFormat* ImportOle( const Graphic* = nullptr, const SfxItemSet* pFlySet = nullptr,
1540  const SfxItemSet* pGrfSet = nullptr, const tools::Rectangle& aVisArea = tools::Rectangle() );
1541  SwFlyFrameFormat* InsertOle(SdrOle2Obj &rObject, const SfxItemSet &rFlySet,
1542  const SfxItemSet *rGrfSet);
1543 
1544  bool ImportFormulaControl(WW8FormulaControl &rBox,WW8_CP nStart,
1545  SwWw8ControlType nWhich);
1546 
1547  void ImportDop();
1548 
1549  //This converts MS Asian Typography information into OOo's
1550  void ImportDopTypography(const WW8DopTypography &rTypo);
1551 
1554  ErrCode CoreLoad(WW8Glossary const *pGloss);
1555 
1556  void ReadDocVars();
1557 
1558  bool StartTable(WW8_CP nStartCp);
1559  bool InEqualApo(int nLvl) const;
1560  bool InLocalApo() const { return InEqualApo(m_nInTable); }
1561  bool InEqualOrHigherApo(int nLvl) const;
1562  void TabCellEnd();
1563  void StopTable();
1564  bool IsInvalidOrToBeMergedTabCell() const;
1565 
1566 // Enumerations / lists ( Autonumbered List Data Descriptor )
1567 // list: ANLD ( Autonumbered List Data Descriptor )
1568 // one level: ANLV ( Autonumber Level Descriptor )
1569 
1570 // Chg7-8:
1571 // lists are separate structures in WW8 that are handled via the following three tables:
1572 // rglst, hpllfo and hsttbListNames
1573 // the corresponding structures are: LSTF, LVLF, LFO LFOLVL
1574 
1575  void SetAnlvStrings(SwNumFormat &rNum, WW8_ANLV const &rAV, const sal_uInt8* pText,
1576  size_t nStart, size_t nElements, bool bOutline);
1577  void SetAnld(SwNumRule* pNumR, WW8_ANLD const * pAD, sal_uInt8 nSwLevel, bool bOutLine);
1578  void SetNumOlst( SwNumRule* pNumR, WW8_OLST* pO, sal_uInt8 nSwLevel );
1579  SwNumRule* GetStyRule();
1580 
1581  void StartAnl(const sal_uInt8* pSprm13);
1582  void NextAnlLine(const sal_uInt8* pSprm13);
1583  void StopAllAnl(bool bGoBack = true);
1584  void StopAnlToRestart(sal_uInt8 nType, bool bGoBack = true);
1585 
1586 // graphics layer
1587 
1588  bool ReadGrafStart(void* pData, short nDataSiz, WW8_DPHEAD const * pHd,
1589  SfxAllItemSet &rSet);
1590  SdrObject *ReadLine(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1591  SdrObject *ReadRect(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1592  SdrObject *ReadEllipse(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1593  SdrObject *ReadArc(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1594  SdrObject *ReadPolyLine(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1595  void InsertTxbxStyAttrs( SfxItemSet& rS, sal_uInt16 nColl );
1596  void InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp, ManTypes eType, bool bONLYnPicLocFc=false);
1597 
1598  bool GetTxbxTextSttEndCp(WW8_CP& rStartCp, WW8_CP& rEndCp, sal_uInt16 nTxBxS,
1599  sal_uInt16 nSequence);
1600  sal_Int32 GetRangeAsDrawingString(OUString& rString, tools::Long StartCp, tools::Long nEndCp, ManTypes eType);
1601  std::unique_ptr<OutlinerParaObject> ImportAsOutliner(OUString &rString, WW8_CP nStartCp, WW8_CP nEndCp, ManTypes eType);
1602  void InsertTxbxText(SdrTextObj* pTextObj, Size const * pObjSiz,
1603  sal_uInt16 nTxBxS, sal_uInt16 nSequence, tools::Long nPosCp, SwFrameFormat const * pFlyFormat,
1604  bool bMakeSdrGrafObj, bool& rbEraseTextObj,
1605  bool* pbTestTxbxContainsText = nullptr, tools::Long* pnStartCp = nullptr,
1606  tools::Long* pnEndCp = nullptr, bool* pbContainsGraphics = nullptr,
1607  SvxMSDffImportRec const * pRecord = nullptr);
1608  bool TxbxChainContainsRealText( sal_uInt16 nTxBxS,
1609  tools::Long& rStartCp,
1610  tools::Long& rEndCp );
1611  SdrObject *ReadTextBox(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1612  SdrObject *ReadCaptionBox(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1613  SdrObject *ReadGroup(WW8_DPHEAD const * pHd, SfxAllItemSet &rSet);
1614  SdrObject *ReadGrafPrimitive(short& rLeft, SfxAllItemSet &rSet);
1615  void ReadGrafLayer1(WW8PLCFspecial& rPF, tools::Long nGrafAnchorCp);
1618  bool MiserableRTLGraphicsHack(SwTwips &rLeft, SwTwips nWidth,
1619  sal_Int16 eHoriOri, sal_Int16 eHoriRel);
1620  SwFrameFormat* Read_GrafLayer( tools::Long nGrafAnchorCp );
1621  SwFlyFrameFormat* ImportReplaceableDrawables(SdrObject*& rpObject, SdrObject*& rpOurNewObject,
1622  SvxMSDffImportRec& rRecord, WW8_FSPA& rF,
1623  SfxItemSet& rFlySet);
1624  SwFlyFrameFormat* ConvertDrawTextToFly(SdrObject*& rpObject, SdrObject*& rpOurNewObject,
1625  const SvxMSDffImportRec& rRecord, RndStdIds eAnchor,
1626  const WW8_FSPA& rF, SfxItemSet& rFlySet);
1628  SwFrameFormat* pRetFrameFormat);
1629 
1630  void GraphicCtor();
1631  void GraphicDtor();
1632 
1633 // other stuff
1634  OUString GetFieldResult( WW8FieldDesc const * pF );
1635  void MakeTagString( OUString& rStr, const OUString& rOrg );
1636  void UpdateFields();
1637  OUString ConvertFFileName(const OUString& rRaw);
1639  void InsertTagField( const sal_uInt16 nId, const OUString& rTagText );
1641  void EndExtSprm(sal_uInt16 nSprmId);
1642  void ReadDocInfo();
1643 
1644 // Ver8 lists
1645 
1646  void RegisterNumFormatOnTextNode(sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel,
1647  const bool bSetAttr = true);
1648 
1649  void RegisterNumFormatOnStyle(sal_uInt16 nStyle);
1650  void SetStylesList(sal_uInt16 nStyle, sal_uInt16 nCurrentLFO,
1651  sal_uInt8 nCurrentLevel);
1652  void RegisterNumFormat(sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel);
1653 
1654 // to be replaced by calls in the appropriate extended SvxMSDffManager
1655 
1656  const OUString* GetAnnotationAuthor(sal_uInt16 nIdx);
1657 
1658  void GetSmartTagInfo(SwFltRDFMark& rMark);
1659 
1660  // interfaces for the toggle attributes
1661  void SetToggleAttr(sal_uInt8 nAttrId, bool bOn);
1662  void SetToggleBiDiAttr(sal_uInt8 nAttrId, bool bOn);
1663  void ChkToggleAttr_( sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask );
1664 
1665  void ChkToggleAttr( sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask )
1666  {
1667  if( nOldStyle81Mask != nNewStyle81Mask &&
1668  m_xCtrlStck->GetToggleAttrFlags() )
1669  ChkToggleAttr_( nOldStyle81Mask, nNewStyle81Mask );
1670  }
1671 
1672  void ChkToggleBiDiAttr_( sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask );
1673 
1674  void ChkToggleBiDiAttr( sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask )
1675  {
1676  if( nOldStyle81Mask != nNewStyle81Mask &&
1677  m_xCtrlStck->GetToggleBiDiAttrFlags() )
1678  ChkToggleBiDiAttr_( nOldStyle81Mask, nNewStyle81Mask );
1679  }
1680 
1681  void PopTableDesc();
1682  void MoveInsideFly(const SwFrameFormat *pFlyFormat);
1683  SwTwips MoveOutsideFly(SwFrameFormat *pFlyFormat, const SwPosition &rPos,
1684  bool bTableJoin = true);
1685 
1686  void SetOutlineStyles();
1687 
1688  bool SetSpacing(SwPaM &rMyPam, int nSpace, bool bIsUpper);
1689  bool SetUpperSpacing(SwPaM &pMyPam, int nSpace);
1690  bool SetLowerSpacing(SwPaM &rMyPam, int nSpace);
1691 
1692  bool IsInlineEscherHack() const
1693  { return !m_aFieldStack.empty() && m_aFieldStack.back().mnFieldId == 95; };
1694 
1695  void StoreMacroCmds();
1696 
1697  // #i84783#
1698  // determine object attribute "Layout in Table Cell"
1699  bool IsObjectLayoutInTableCell( const sal_uInt32 nLayoutInTableCell ) const;
1700  void ReadGlobalTemplateSettings( std::u16string_view sCreatedFrom, const css::uno::Reference< css::container::XNameContainer >& xPrjNameMap );
1701  SwWW8ImplReader(const SwWW8ImplReader &) = delete;
1702  SwWW8ImplReader& operator=(const SwWW8ImplReader&) = delete;
1703 public: // really private, but can only be done public
1704  ~SwWW8ImplReader();
1705  sal_uInt16 GetToggleAttrFlags() const;
1706  sal_uInt16 GetToggleBiDiAttrFlags() const;
1707  void SetToggleAttrFlags(sal_uInt16 nFlags);
1708  void SetToggleBiDiAttrFlags(sal_uInt16 nFlags);
1710  bool IsParaEndInCPs(sal_Int32 , sal_Int32,bool bSdOD=true) const;
1711  //Clear the para end position recorded in reader intermittently for the least impact on loading performance
1712  void ClearParaEndPosition();
1713 
1715  sal_uInt16 End_Footnote();
1717  sal_uInt16 End_Field();
1722 
1723  // attributes
1724 
1725  void Read_Special(sal_uInt16, const sal_uInt8*, short nLen);
1726  void Read_Obj(sal_uInt16, const sal_uInt8*, short nLen);
1727  void Read_PicLoc(sal_uInt16, const sal_uInt8* pData, short nLen );
1728  void Read_BoldUsw(sal_uInt16 nId, const sal_uInt8*, short nLen);
1729  void Read_Bidi(sal_uInt16 nId, const sal_uInt8*, short nLen);
1730  void Read_BoldBiDiUsw(sal_uInt16 nId, const sal_uInt8*, short nLen);
1731  void Read_AmbiguousSPRM(sal_uInt16 nId, const sal_uInt8*, short nLen);
1732  void Read_SubSuper( sal_uInt16, const sal_uInt8*, short nLen );
1734  static SwFrameFormat *ContainsSingleInlineGraphic(const SwPaM &rRegion);
1735  void Read_SubSuperProp( sal_uInt16, const sal_uInt8*, short nLen );
1736  void Read_Underline( sal_uInt16, const sal_uInt8*, short nLen );
1737  void Read_TextColor( sal_uInt16, const sal_uInt8*, short nLen );
1738  void openFont(sal_uInt16 nFCode, sal_uInt16 nId);
1739  void closeFont(sal_uInt16 nId);
1740  void Read_FontCode( sal_uInt16, const sal_uInt8*, short nLen );
1741  void Read_FontSize( sal_uInt16, const sal_uInt8*, short nLen );
1742  void Read_CharSet(sal_uInt16 , const sal_uInt8* pData, short nLen);
1743  void Read_Language( sal_uInt16, const sal_uInt8*, short nLen );
1744  void Read_CColl( sal_uInt16, const sal_uInt8*, short nLen );
1745  void Read_Kern( sal_uInt16, const sal_uInt8* pData, short nLen );
1746  void Read_FontKern( sal_uInt16, const sal_uInt8* pData, short nLen );
1747  void Read_Emphasis( sal_uInt16, const sal_uInt8* pData, short nLen );
1748  void Read_ScaleWidth( sal_uInt16, const sal_uInt8* pData, short nLen );
1749  void Read_Relief( sal_uInt16, const sal_uInt8* pData, short nLen);
1750  void Read_TextAnim( sal_uInt16, const sal_uInt8* pData, short nLen);
1751 
1752  void Read_NoLineNumb( sal_uInt16 nId, const sal_uInt8* pData, short nLen );
1753 
1754  void Read_LR( sal_uInt16 nId, const sal_uInt8*, short nLen );
1755  void Read_UL( sal_uInt16 nId, const sal_uInt8*, short nLen );
1756  void Read_ParaAutoBefore(sal_uInt16 , const sal_uInt8 *pData, short nLen);
1757  void Read_ParaAutoAfter(sal_uInt16 , const sal_uInt8 *pData, short nLen);
1758  void Read_ParaContextualSpacing( sal_uInt16 nId, const sal_uInt8* pData, short nLen );
1759  void Read_LineSpace( sal_uInt16, const sal_uInt8*, short nLen );
1760 
1761  void SetRelativeJustify( bool bRel );
1762  bool IsRelativeJustify();
1763  bool IsRelativeJustify(sal_uInt16 nColl, o3tl::sorted_vector<sal_uInt16>& rVisitedStyles);
1764  void Read_Justify(sal_uInt16, const sal_uInt8*, short nLen);
1765 
1766  void Read_IdctHint(sal_uInt16, const sal_uInt8*, short nLen);
1767  bool IsRightToLeft();
1768  void Read_RTLJustify(sal_uInt16, const sal_uInt8*, short nLen);
1769  void Read_Hyphenation( sal_uInt16, const sal_uInt8* pData, short nLen );
1770  void Read_WidowControl( sal_uInt16, const sal_uInt8* pData, short nLen );
1771  void Read_AlignFont( sal_uInt16, const sal_uInt8* pData, short nLen );
1772  void Read_UsePgsuSettings( sal_uInt16, const sal_uInt8* pData, short nLen );
1773  void Read_KeepLines( sal_uInt16, const sal_uInt8* pData, short nLen );
1774  void Read_KeepParas( sal_uInt16, const sal_uInt8* pData, short nLen );
1775  void Read_BreakBefore( sal_uInt16, const sal_uInt8* pData, short nLen );
1776  void Read_ApoPPC(sal_uInt16, const sal_uInt8* pData, short);
1777 
1778  void Read_BoolItem( sal_uInt16 nId, const sal_uInt8*, short nLen );
1779 
1780  void Read_Border( sal_uInt16 nId, const sal_uInt8* pData, short nLen );
1781  void Read_CharBorder(sal_uInt16 nId, const sal_uInt8* pData, short nLen );
1782  void Read_Tab( sal_uInt16 nId, const sal_uInt8* pData, short nLen );
1783  void Read_Symbol(sal_uInt16, const sal_uInt8* pData, short nLen);
1784  void Read_FieldVanish( sal_uInt16 nId, const sal_uInt8* pData, short nLen );
1785 
1786  // Revision Marks ( == Redlining )
1787 
1788  // insert or delete content (change char attributes resp.)
1789  void Read_CRevisionMark(RedlineType eType, const sal_uInt8* pData, short nLen);
1790  // insert new content
1791  void Read_CFRMark(sal_uInt16 , const sal_uInt8* pData, short nLen);
1792  // delete old content
1793  void Read_CFRMarkDel(sal_uInt16 , const sal_uInt8* pData, short nLen);
1794  // change properties of content (e.g. char formatting)
1795  void Read_CPropRMark(sal_uInt16 , const sal_uInt8* pData, short nLen); // complex!
1796 
1797  void Read_TabRowEnd( sal_uInt16, const sal_uInt8* pData, short nLen );
1798  void Read_TabCellEnd( sal_uInt16, const sal_uInt8* pData, short nLen );
1799  bool ParseTabPos(WW8_TablePos *aTabPos, WW8PLCFx_Cp_FKP* pPap);
1800  void Read_Shade( sal_uInt16, const sal_uInt8* pData, short nLen );
1801  void Read_ANLevelNo( sal_uInt16, const sal_uInt8* pData, short nLen );
1802  void Read_ANLevelDesc( sal_uInt16, const sal_uInt8* pData, short nLen );
1803 
1804  // outline level Ver8
1805  void Read_POutLvl(sal_uInt16, const sal_uInt8* pData, short nLen);
1806 
1807  void Read_OLST( sal_uInt16, const sal_uInt8* pData, short nLen );
1808 
1809  void Read_CharShadow( sal_uInt16, const sal_uInt8* pData, short nLen );
1810  void Read_CharHighlight( sal_uInt16, const sal_uInt8* pData, short nLen );
1811  // Ver8-Listen
1812 
1813  void Read_ListLevel( sal_uInt16 nId, const sal_uInt8* pData, short nLen);
1814 
1823  void Read_LFOPosition( sal_uInt16 nId, const sal_uInt8* pData, short nLen);
1824  bool SetTextFormatCollAndListLevel(const SwPaM& rRg, SwWW8StyInf& rStyleInfo);
1825 
1826  void Read_StyleCode(sal_uInt16, const sal_uInt8* pData, short nLen);
1827  void Read_Majority(sal_uInt16, const sal_uInt8* , short );
1828  void Read_DoubleLine_Rotate( sal_uInt16, const sal_uInt8* pDATA, short nLen);
1829 
1830  void Read_TextForeColor(sal_uInt16, const sal_uInt8* pData, short nLen);
1831  void Read_TextBackColor(sal_uInt16, const sal_uInt8* pData, short nLen);
1832  void Read_ParaBackColor(sal_uInt16, const sal_uInt8* pData, short nLen);
1833  void Read_ParaBiDi(sal_uInt16, const sal_uInt8* pData, short nLen);
1834  static Color ExtractColour(const sal_uInt8* &rpData, bool bVer67);
1835 
1836  void Read_TextVerticalAdjustment(sal_uInt16, const sal_uInt8* pData, short nLen);
1837  void Read_UnderlineColor(sal_uInt16, const sal_uInt8* pData, short nLen);
1838  tools::Long MapBookmarkVariables(const WW8FieldDesc* pF, OUString &rOrigName,
1839  const OUString &rData);
1840  OUString GetMappedBookmark(std::u16string_view rOrigName);
1841 
1842  // fields
1843  eF_ResT Read_F_Input(WW8FieldDesc*, OUString& rStr);
1844  eF_ResT Read_F_InputVar(WW8FieldDesc*, OUString& rStr);
1845  eF_ResT Read_F_ANumber( WW8FieldDesc*, OUString& );
1846  eF_ResT Read_F_DocInfo( WW8FieldDesc* pF, OUString& rStr );
1847  eF_ResT Read_F_Author( WW8FieldDesc*, OUString& );
1848  eF_ResT Read_F_TemplName( WW8FieldDesc*, OUString& );
1849  SvNumFormatType GetTimeDatePara(OUString const & rStr, sal_uInt32& rFormat, LanguageType &rLang,
1850  int nWhichDefault, bool bHijri = false);
1852  eF_ResT Read_F_DateTime( WW8FieldDesc*, OUString& rStr );
1853  eF_ResT Read_F_FileName( WW8FieldDesc*, OUString& rStr);
1854  eF_ResT Read_F_Num( WW8FieldDesc* pF, OUString& );
1855  eF_ResT Read_F_CurPage( WW8FieldDesc*, OUString& );
1856  eF_ResT Read_F_Ref( WW8FieldDesc* pF, OUString& );
1857 
1858  eF_ResT Read_F_Set( WW8FieldDesc*, OUString& rStr );
1859  eF_ResT Read_F_PgRef( WW8FieldDesc*, OUString& rStr );
1860  eF_ResT Read_F_NoteReference( WW8FieldDesc* pF, OUString& rStr );
1861 
1862  eF_ResT Read_F_Tox( WW8FieldDesc* pF, OUString& rStr );
1863  eF_ResT Read_F_Symbol( WW8FieldDesc*, OUString& rStr );
1864  eF_ResT Read_F_Embedd( WW8FieldDesc*, OUString& rStr );
1865  eF_ResT Read_F_FormTextBox( WW8FieldDesc* pF, OUString& rStr);
1866  eF_ResT Read_F_FormCheckBox( WW8FieldDesc* pF, OUString& rStr );
1867  eF_ResT Read_F_FormListBox( WW8FieldDesc* pF, OUString& rStr);
1868  css::awt::Size MiserableDropDownFormHack(const OUString &rString,
1869  css::uno::Reference<css::beans::XPropertySet> const & rPropSet);
1870 
1871  eF_ResT Read_F_Macro( WW8FieldDesc*, OUString& rStr);
1872  eF_ResT Read_F_DBField( WW8FieldDesc*, OUString& rStr );
1873  eF_ResT Read_F_DBNext( WW8FieldDesc*, OUString& );
1874  eF_ResT Read_F_DBNum( WW8FieldDesc*, OUString& );
1875  eF_ResT Read_F_Equation( WW8FieldDesc*, OUString& );
1877  eF_ResT Read_F_IncludePicture( WW8FieldDesc*, OUString& rStr );
1878  eF_ResT Read_F_IncludeText( WW8FieldDesc*, OUString& rStr );
1879  eF_ResT Read_F_Seq( WW8FieldDesc*, OUString& rStr );
1881  eF_ResT Read_F_Styleref(WW8FieldDesc*, OUString& rStr);
1882 
1883  eF_ResT Read_F_OCX(WW8FieldDesc*, OUString&);
1884  eF_ResT Read_F_Hyperlink(WW8FieldDesc*, OUString& rStr);
1885  eF_ResT Read_F_Shape(WW8FieldDesc* pF, OUString& rStr);
1886  eF_ResT Read_F_HTMLControl( WW8FieldDesc* pF, OUString& rStr);
1887 
1888  short ImportSprm(const sal_uInt8* pPos, sal_Int32 nMemLen, sal_uInt16 nId = 0);
1889 
1890  bool SearchRowEnd(WW8PLCFx_Cp_FKP* pPap,WW8_CP &rStartCp, int nLevel) const;
1892  bool SearchTableEnd(WW8PLCFx_Cp_FKP* pPap) const;
1894 
1895  const WW8Fib& GetFib() const { return *m_xWwFib; }
1896  SwDoc& GetDoc() const { return m_rDoc; }
1897  sal_uInt16 GetCurrentColl() const { return m_nCurrentColl; }
1898  void SetNCurrentColl( sal_uInt16 nColl ) { m_nCurrentColl = nColl; }
1899  std::unique_ptr<SfxItemSet> SetCurrentItemSet(std::unique_ptr<SfxItemSet> pItemSet);
1900  sal_uInt16 StyleUsingLFO( sal_uInt16 nLFOIndex ) const ;
1901  const SwFormat* GetStyleWithOrgWWName( std::u16string_view rName ) const ;
1902 
1903  static bool GetPictGrafFromStream(Graphic& rGraphic, SvStream& rSrc);
1904  static void PicRead( SvStream *pDataStream, WW8_PIC *pPic, bool bVer67);
1905  static bool ImportOleWMF(const tools::SvRef<SotStorage>& xSrc1, GDIMetaFile& rWMF, tools::Long& rX,
1906  tools::Long& rY);
1907  static Color GetCol(sal_uInt8 nIco);
1908 
1909  SwWW8ImplReader( sal_uInt8 nVersionPara, SotStorage* pStorage, SvStream* pSt,
1910  SwDoc& rD, const OUString& rBaseURL, bool bNewDoc, bool bSkipImages, SwPosition const &rPos );
1911 
1912  const OUString& GetBaseURL() const { return m_sBaseURL; }
1913  // load a complete doc file
1914  ErrCode LoadDoc(WW8Glossary *pGloss=nullptr);
1915  rtl_TextEncoding GetCurrentCharSet();
1916  rtl_TextEncoding GetCurrentCJKCharSet();
1917  rtl_TextEncoding GetCharSetFromLanguage();
1918  rtl_TextEncoding GetCJKCharSetFromLanguage();
1919 
1920  void PostProcessAttrs();
1921  void ReadEmbeddedData(SvStream& rStrm, SwDocShell const * pDocShell, struct HyperLinksTable& hlStr);
1922  void NotifyMacroEventRead();
1923 };
1924 
1925 bool CanUseRemoteLink(const OUString &rGrfName);
1926 void UseListIndent(SwWW8StyInf &rStyle, const SwNumFormat &rFormat);
1927 void SetStyleIndent(SwWW8StyInf &rStyleInfo, const SwNumFormat &rFormat);
1928 // #i103711#
1929 // #i105414#
1931  const SwNumFormat &rFormat,
1932  const bool bFirstLineOfStSet,
1933  const bool bLeftIndentSet );
1935 OUString BookmarkToWriter(std::u16string_view rBookmark);
1936 bool RTLGraphicsHack(SwTwips &rLeft, SwTwips nWidth,
1937  sal_Int16 eHoriOri, sal_Int16 eHoriRel, SwTwips nPageLeft,
1938  SwTwips nPageRight, SwTwips nPageSize);
1940  SfxItemSet &rFlySet);
1941 #endif
1942 
1943 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool HasFrame() const
Definition: ww8par.hxx:990
SwNodeIndex GetPtNode() const
Definition: ww8par.hxx:581
eF_ResT Read_F_Set(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:2009
void Read_ListLevel(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par3.cxx:1866
sal_uInt32 GetTextAreaWidth() const
Definition: ww8par2.cxx:160
sal_Int16 nSp45
Definition: ww8par.hxx:202
Instances of SwFields and those derived from it occur 0 to n times.
Definition: fldbas.hxx:240
void InsertTagField(const sal_uInt16 nId, const OUString &rTagText)
Definition: ww8par5.cxx:1106
void AdjustLVL(sal_uInt8 nLevel, SwNumRule &rNumRule, WW8aISet const &rListItemSet, WW8aCFormat &aCharFormat, bool &bNewCharFormatCreated, const OUString &aPrefix=OUString())
Definition: ww8par3.cxx:971
SwWW8FltControlStack & operator=(const SwWW8FltControlStack &)=delete
virtual ~WW8FormulaControl()
Definition: ww8par.hxx:690
Type
std::unique_ptr< WW8PLCF_HdFt > m_xHdFt
Definition: ww8par.hxx:1245
WW8_BRCVer9 aDefBrcs[6]
Definition: ww8par.hxx:1041
SwFrameFormat * ImportGraf1(WW8_PIC const &rPic, SvStream *pSt, sal_uLong nFilePos)
Definition: ww8graf2.cxx:410
void Read_Language(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3994
short nLineHeight
Definition: ww8par.hxx:1025
sal_uInt32 m_nFieldFlags
Definition: ww8par.hxx:1276
std::unordered_map< sal_uInt32, Graphic > aOldEscherBlipCache
Definition: ww8par.hxx:761
sal_uInt16 pgnStart
Definition: ww8struc.hxx:1046
short nCenter[MAX_COL+1]
Definition: ww8par.hxx:1028
const OUString * GetAnnotationAuthor(sal_uInt16 nIdx)
Definition: ww8par.cxx:6091
void EndExtSprm(sal_uInt16 nSprmId)
Definition: ww8par6.cxx:5308
Exporter of the binary Word file formats.
Definition: wrtww8.hxx:987
sal_uInt8 m_nWwNumType
Definition: ww8par.hxx:1308
sal_uInt32 mnObjectId
Definition: ww8par.hxx:753
std::unique_ptr< SwWW8FltControlStack > m_xCtrlStck
Definition: ww8par.hxx:1104
void SetCurrentSectionVerticalAdjustment(const css::drawing::TextVerticalAdjust nVA)
Definition: ww8par2.cxx:119
OUString msFileLinkSeed
Definition: ww8par.hxx:958
rtl_TextEncoding m_eLTRFontSrcCharSet
Definition: ww8par.hxx:226
sal_uLong GetIndex() const
Definition: node.hxx:291
sal_uInt8 m_nWantedVersion
Definition: ww8par.hxx:1305
WW8_CP GetCurrAttrCP() const
Definition: ww8par.hxx:1709
void SyncIndentWithList(SvxLRSpaceItem &rLR, const SwNumFormat &rFormat, const bool bFirstLineOfStSet, const bool bLeftIndentSet)
Definition: ww8par.cxx:1253
sal_Int32 mnImportedGraphicsCount
Definition: ww8par.hxx:940
SdrObject * ReadPolyLine(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:427
sw::util::CharStyleMapper m_aCharStyleMapper
Definition: ww8par.hxx:1190
static sal_Int32 MatchSdrBoxIntoFlyBoxItem(const Color &rLineColor, MSO_LineStyle eLineStyle, MSO_LineDashing eDashing, MSO_SPT eShapeType, sal_Int32 &rLineWidth, SvxBoxItem &rBox)
Definition: ww8graf.cxx:1558
sal_uInt32 GetPageLeft() const
Definition: ww8par2.cxx:145
sal_Int32 dyaBottom
Definition: ww8struc.hxx:1061
std::map< OUString, css::uno::Any > parameter_map_t
Definition: IMark.hxx:94
sal_uInt8 mfNoMark
Definition: ww8par.hxx:672
static SwFrameFormat * ContainsSingleInlineGraphic(const SwPaM &rRegion)
Definition: ww8par6.cxx:3394
bool mbVertSet
Definition: ww8par.hxx:210
virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceFactory, css::uno::Reference< css::form::XFormComponent > &rFComp, css::awt::Size &rSz)=0
Represents the style of a paragraph.
Definition: fmtcol.hxx:56
std::deque< wwSection >::iterator mySegIter
Definition: ww8par.hxx:836
Marks a position in the document model.
Definition: pam.hxx:35
rtl_TextEncoding m_eStructCharSet
Definition: ww8par.hxx:1291
void Read_FieldVanish(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par5.cxx:3662
SwWW8FltControlStack(SwDoc &rDo, sal_uLong nFieldFl, SwWW8ImplReader &rReader_)
Definition: ww8par.hxx:386
ErrCode SetSubStreams(tools::SvRef< SotStorageStream > &rTableStream, tools::SvRef< SotStorageStream > &rDataStream)
Definition: ww8par.cxx:5493
SwWw8ControlType
Definition: ww8par.hxx:646
void ReadDocInfo()
Document Info.
Definition: ww8par.cxx:4816
bool InEqualOrHigherApo(int nLvl) const
Definition: ww8par.cxx:6635
bool m_bNotifyMacroEventRead
Definition: ww8par.hxx:1387
WW8FieldEntry(SwPosition const &rPos, sal_uInt16 nFieldId) noexcept
Definition: ww8par5.cxx:714
bool m_bLoadingTOXCache
Definition: ww8par.hxx:1369
sal_uInt16 nToggleAttrFlags
Definition: ww8par.hxx:369
sal_Int32 GetRangeAsDrawingString(OUString &rString, tools::Long StartCp, tools::Long nEndCp, ManTypes eType)
Definition: ww8graf.cxx:885
eF_ResT Read_F_DateTime(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1777
static sal_uInt32 GetFilterFlags()
Definition: ww8par.cxx:492
std::unique_ptr< WW8RStyle > m_xStyles
Definition: ww8par.hxx:1236
void SetHlink(const OUString &rHlink)
Definition: ww8par.hxx:522
ReturnType ulimit_cast(Type nValue, ReturnType nMax)
Definition: ww8par.hxx:502
OUString msName
Definition: ww8par.hxx:695
SwFlyFrameFormat * m_pFlyFormatOfJustInsertedGraphic
Definition: ww8par.hxx:1205
SwWW8FltAnchorStack(SwDoc &rDo, sal_uLong nFieldFl)
Definition: ww8par.hxx:431
SwDoc & m_rDoc
Definition: ww8par.hxx:924
SdrObject * ReadCaptionBox(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:1261
std::unique_ptr< std::vector< OUString > > m_pAtnNames
Definition: ww8par.hxx:1266
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Definition: fmtpdsc.hxx:35
SwMSDffManager(const SwMSDffManager &)=delete
ErrCode LoadThroughDecryption(WW8Glossary *pGloss)
Definition: ww8par.cxx:5758
bool ProcessSpecial(bool &rbReSync, WW8_CP nStartCp)
Definition: ww8par.cxx:2650
static Color ExtractColour(const sal_uInt8 *&rpData, bool bVer67)
Definition: ww8par6.cxx:4957
void Read_HdFtTextAsHackedFrame(WW8_CP nStart, WW8_CP nLen, SwFrameFormat const &rHdFtFormat, sal_uInt16 nPageWidth)
Definition: ww8par.cxx:2208
void NotifyMacroEventRead()
Definition: ww8par.cxx:6695
sal_uInt32 m_nFieldTagAlways[3]
Definition: ww8par.hxx:1277
void StartAnl(const sal_uInt8 *pSprm13)
Definition: ww8par2.cxx:908
bool RTLGraphicsHack(SwTwips &rLeft, SwTwips nWidth, sal_Int16 eHoriOri, sal_Int16 eHoriRel, SwTwips nPageLeft, SwTwips nPageRight, SwTwips nPageSize)
Definition: wrtw8esh.cxx:529
std::stack< std::unique_ptr< sw::util::RedlineStack > > m_aFrameRedlines
Definition: ww8par.hxx:1110
eF_ResT Read_F_Num(WW8FieldDesc *pF, OUString &)
Definition: ww8par5.cxx:1884
void Read_TextBackColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4106
sal_uInt16 End_Field()
Definition: ww8par5.cxx:500
void ReadDef(bool bVer67, const sal_uInt8 *pS, short nLen)
Definition: ww8par2.cxx:1103
OUString msMarkType
Definition: ww8par.hxx:568
sal_uInt32 GetWWPageTopMargin() const
Definition: ww8par2.cxx:165
sw::util::AuthorInfos m_aAuthorInfos
Definition: ww8par.hxx:1270
void Read_ApoPPC(sal_uInt16, const sal_uInt8 *pData, short)
Definition: ww8par6.cxx:5227
SwNumRule * m_pOutlineNumrule
Definition: ww8par.hxx:231
sal_uInt16 mnDesc
Definition: ww8par.hxx:839
size_t GetWW8LSTInfoNum() const
Definition: ww8par.hxx:163
SotStorage * m_pStg
Definition: ww8par.hxx:1094
bool SearchRowEnd(WW8PLCFx_Cp_FKP *pPap, WW8_CP &rStartCp, int nLevel) const
Definition: ww8par2.cxx:326
void delete_all_from_doc()
Definition: ww8par.cxx:4736
void Read_CColl(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4028
virtual bool IsParaEndInCPs(sal_Int32 nStart, sal_Int32 nEnd, bool bSdOD) const override
Definition: ww8par.cxx:1314
void Read_CFRMark(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par4.cxx:529
std::deque< WW8FieldEntry > maOldFieldStack
Definition: ww8par.hxx:600
wwSection(const SwPosition &rPos)
Definition: ww8par6.cxx:823
sal_uInt8 fTitlePage
Definition: ww8struc.hxx:1010
tools::Long Read_And(WW8PLCFManResult *pRes)
Use authornames, if not available fall back to initials.
Definition: ww8par.cxx:2133
void SetBookmarkType(const OUString &bookmarkType)
Definition: ww8par5.cxx:743
void ReadAttrs(WW8_CP &rTextPos, WW8_CP &rNext, tools::Long nTextEnd, bool &rbStartLine)
Definition: ww8par.cxx:4003
void CreateSep(const tools::Long nTextPos)
Definition: ww8par6.cxx:857
virtual bool ReadGlossaries(SwTextBlocks &, bool bSaveRelFiles) const override
Definition: ww8par.cxx:6524
ANLDRuleMap m_aANLDRules
Definition: ww8par.hxx:1254
sal_uInt16 m_nProgress
Definition: ww8par.hxx:1293
void Read_SubSuperProp(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3457
std::set< SwTextNode *, SwWW8::ltnode > m_aTextNodes
Definition: ww8par.hxx:923
sal_uInt16 mnCurrentColl
Definition: ww8par.hxx:611
static bool SetBorder(SvxBoxItem &rBox, const WW8_BRCVer9 *pbrc, short *pSizeArray=nullptr, sal_uInt8 nSetBorders=0xFF)
Definition: ww8par6.cxx:1510
sal_Int16 nSp27
Definition: ww8par.hxx:201
bool get_flag(Type nBitField, Type nMask)
Definition: ww8par.hxx:498
void Read_IdctHint(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4513
void StoreMacroCmds()
Definition: ww8par.cxx:4749
void simpleAddTextToParagraph(const OUString &rAddString)
Definition: ww8par.cxx:3457
eF_ResT Read_F_InputVar(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1360
sal_Int16 nLoMgn
Definition: ww8par.hxx:203
eF_ResT Read_F_Author(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:1758
void Read_Bidi(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3084
void SetHdFt(wwSection const &rSection, int nSect, const wwSection *pPrevious)
Definition: ww8par.cxx:2409
void MatchSdrItemsIntoFlySet(SdrObject const *pSdrObj, SfxItemSet &aFlySet, MSO_LineStyle eLineStyle, MSO_LineDashing eDashing, MSO_SPT eShapeType, tools::Rectangle &rInnerDist)
Definition: ww8graf.cxx:1643
SwFieldType * m_pNumFieldType
Definition: ww8par.hxx:1262
virtual SwFltStackEntry * SetAttr(const SwPosition &rPos, sal_uInt16 nAttrId, bool bTstEnd=true, tools::Long nHand=LONG_MAX, bool consumedByField=false) override
Definition: ww8par.cxx:1193
std::vector< sal_uInt8 > bytes
Definition: types.hxx:29
rtl_TextEncoding GetCharSetFromLanguage()
Definition: ww8par.cxx:2815
rtl_TextEncoding m_eCJKFontSrcCharSet
Definition: ww8par.hxx:228
rtl_TextEncoding GetCharSet() const
Definition: ww8par2.cxx:4542
void Read_BoolItem(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4630
bool mbHasFootnote
Definition: ww8par.hxx:806
bool m_bParaAutoBefore
Definition: ww8par.hxx:260
void DeleteCtrlStack()
Definition: ww8par.hxx:1411
sal_uIntPtr sal_uLong
bool IsObjectLayoutInTableCell(const sal_uInt32 nLayoutInTableCell) const
Definition: ww8graf.cxx:2422
long Long
static bool ImportOleWMF(const tools::SvRef< SotStorage > &xSrc1, GDIMetaFile &rWMF, tools::Long &rX, tools::Long &rY)
Definition: ww8par4.cxx:305
sal_Int16 nSp28
Definition: ww8par.hxx:202
SwNodeIndex maPtNode
Definition: ww8par.hxx:551
void SetNCurrentColl(sal_uInt16 nColl)
Definition: ww8par.hxx:1898
bool m_bHasStyNumRule
Definition: ww8par.hxx:253
SwNumRule * GetNumRule(const SwDoc &rDoc, sal_uInt8 nNumType)
Definition: ww8par2.cxx:890
wwFrameNamer m_aGrfNameGenerator
Definition: ww8par.hxx:1184
sal_uInt8 mfType
Definition: ww8par.hxx:673
void Read_HdFtText(WW8_CP nStartCp, WW8_CP nLen, SwFrameFormat const *pHdFtFormat)
Definition: ww8par.cxx:2257
Base class of all fields.
Definition: fldbas.hxx:289
OUString maNameStr
Definition: ww8par.hxx:534
std::unique_ptr< SwWW8FltRefStack > m_xReffingStck
Definition: ww8par.hxx:1126
wwExtraneousParas m_aExtraneousParas
Definition: ww8par.hxx:1163
static void AdjustLRWrapForWordMargins(const SvxMSDffImportRec &rRecord, SvxLRSpaceItem &rLR)
Definition: ww8graf.cxx:1902
void MakeTagString(OUString &rStr, const OUString &rOrg)
Definition: ww8par5.cxx:1038
std::map< sal_uInt16, std::size_t > AuthorInfos
Redlining Authors, map word author key to writer author value.
Definition: msfilter.hxx:109
void ImportDopTypography(const WW8DopTypography &rTypo)
Definition: ww8par.cxx:1969
void ReadGlobalTemplateSettings(std::u16string_view sCreatedFrom, const css::uno::Reference< css::container::XNameContainer > &xPrjNameMap)
Definition: ww8par.cxx:4940
bool GetFontParams(sal_uInt16, FontFamily &, OUString &, FontPitch &, rtl_TextEncoding &)
Definition: ww8par6.cxx:3674
virtual SwReaderType GetReaderType() override
Definition: ww8par.cxx:6514
sal_uInt32 nPgWidth
Definition: ww8par.hxx:798
bool FloatingTableConversion(WW8PLCFx_Cp_FKP *pPap)
Definition: ww8par.cxx:2566
static sal_Int32 GetEscherLineMatch(MSO_LineStyle eStyle, MSO_SPT eShapeType, sal_Int32 &rThick)
Definition: ww8graf.cxx:1500
std::unique_ptr< FrameDeleteWatch > m_xFormatOfJustInsertedApo
Definition: ww8par.hxx:1206
Definition: doc.hxx:187
const OUString & GetTarFrame() const
Definition: ww8par.hxx:525
#define MAX_COL
Definition: ww8par.hxx:1014
WW8PLCFxSaveAll maPLCFxSave
Definition: ww8par.hxx:597
bool m_bWasTabCellEnd
Definition: ww8par.hxx:1324
std::unique_ptr< WW8FlyPara > m_xWFlyPara
Definition: ww8par.hxx:1247
void Read_Underline(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3497
std::shared_ptr< WW8Fib > m_xWwFib
Definition: ww8par.hxx:1225
bool StyleExists(unsigned int nColl) const
Definition: ww8par.hxx:1391
void Read_TextVerticalAdjustment(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4976
OUString msEntryMcr
Definition: ww8par.hxx:687
sal_uInt16 m_nFollow
Definition: ww8par.hxx:234
SwCharFormat * WW8aCFormat[nMaxLevel]
Definition: ww8par.hxx:185
bool HasTitlePage() const
Definition: ww8par.hxx:813
ManTypes meType
Definition: ww8par.hxx:972
std::unique_ptr< EditEngine > m_pDrawEditEngine
Definition: ww8par.hxx:1259
void SetToggleAttr(sal_uInt8 nId, bool bOn)
Definition: ww8par.hxx:395
void InsertFormula(WW8FormulaControl &rFormula)
Definition: ww8par3.cxx:2080
static void GetBorderDistance(const WW8_BRCVer9 *pbrc, tools::Rectangle &rInnerDist)
Definition: ww8par6.cxx:1570
sal_uInt8 mnWW8OutlineLevel
Definition: ww8par.hxx:244
std::unique_ptr< WW8TabDesc > m_xTableDesc
Definition: ww8par.hxx:1250
void Read_POutLvl(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:2898
std::unique_ptr< SwPaM > m_pPosAfterTOC
Definition: ww8par.hxx:1374
SdrPage * m_pDrawPg
Definition: ww8par.hxx:1258
std::unique_ptr< WW8ListManager, o3tl::default_delete< WW8ListManager > > m_xLstManager
Definition: ww8par.hxx:1228
OUString msDefault
Definition: ww8par.hxx:682
bool CanUseRemoteLink(const OUString &rGrfName)
Definition: ww8par5.cxx:2379
sal_Int16 nUpMgn
Definition: ww8par.hxx:203
bool m_bNoLnNumYet
Definition: ww8par.hxx:1355
sal_uInt32 m_nIniFlags
Definition: ww8par.hxx:1274
SwPageDesc * mpPage
Definition: ww8par.hxx:795
sal_uInt32 GetTextAreaWidth() const
Definition: ww8par.hxx:818
bool IsBiDi() const
Definition: ww8par.hxx:816
SvxFrameDirection
rtl_TextEncoding GetCJKCharSet() const
Definition: ww8par2.cxx:4549
std::unique_ptr< SwMSDffManager > m_xMSDffManager
Definition: ww8par.hxx:1264
const SfxPoolItem * GetFormatAttr(sal_uInt16 nWhich)
Definition: ww8par6.cxx:2811
bool m_bInHyperlink
Definition: ww8par.hxx:1341
void Read_OLST(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par2.cxx:860
void StopAnlToRestart(sal_uInt8 nType, bool bGoBack=true)
Definition: ww8par2.cxx:1051
bool mbIsDisabled
Definition: ww8par.hxx:941
Dialog to specify the properties of date form field.
static void MapWrapIntoFlyFormat(const SvxMSDffImportRec &rRecord, SwFrameFormat &rFlyFormat)
Definition: ww8graf.cxx:1970
sal_Int32 m_nIniFlyDy
Definition: ww8par.hxx:1288
WW8FlyPara * mpStyleApo
Definition: ww8par.hxx:985
void ProcessSprmTDelete(const sal_uInt8 *pParamsTDelete)
Definition: ww8par2.cxx:1534
sal_uInt16 m_n81BiDiFlags
Definition: ww8par.hxx:247
void MoveInsideFly(const SwFrameFormat *pFlyFormat)
Definition: ww8par6.cxx:2292
short mnDefaultBottom
Definition: ww8par.hxx:1023
std::shared_ptr< T > make_shared(Args &&...args)
WW8FormulaCheckBox & operator=(const WW8FormulaCheckBox &)=delete
o3tl::sorted_vector< const SwNode * > m_aTextNodesHavingLeftIndentSet
Definition: ww8par.hxx:1234
std::unique_ptr< WW8SmartTagData > m_pSmartTagData
Definition: ww8par.hxx:1268
sal_uInt32 GetPageWidth() const
Definition: ww8par.hxx:817
rtl_TextEncoding GetCurrentCJKCharSet()
Definition: ww8par.cxx:2877
bool ReadChars(WW8_CP &rPos, WW8_CP nNextAttr, tools::Long nTextEnd, tools::Long nCpOfs)
Return value: true for para end.
Definition: ww8par.cxx:3502
void CloseAttrEnds()
CloseAttrEnds to only read the attribute ends at the end of a text or a text area (Header...
Definition: ww8par.cxx:4037
void HandleLineNumbering(const wwSection &rSection)
Definition: ww8par6.cxx:774
void insert(SwTextNode *pTextNode)
Definition: ww8par.hxx:932
eF_ResT Read_F_Macro(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:2275
std::unique_ptr< sw::util::RedlineStack > mxOldRedlines
Definition: ww8par.hxx:603
wwSectionManager & operator=(const wwSectionManager &)=delete
SwWW8ImplReader & rReader
Definition: ww8par.hxx:367
#define OK
const WW8Fib & GetFib() const
Definition: ww8par.hxx:1895
bool JoinNode(SwPaM &rPam, bool bStealAttr=false)
Definition: ww8par6.cxx:2522
bool m_bRegardHindiDigits
Definition: ww8par.hxx:1279
SwNumRule * GetNumRule(size_t i)
Definition: ww8par3.cxx:1099
void SetCurrentSectionHasFootnote()
Definition: ww8par2.cxx:111
sal_Int32 dyaTop
Definition: ww8struc.hxx:1060
bool m_bPgSecBreak
Definition: ww8par.hxx:1315
WW8FormulaCheckBox(const WW8FormulaCheckBox &)=delete
void TabCellEnd()
Definition: ww8par2.cxx:3487
bool ConvertSubToGraphicPlacement()
Definition: ww8par6.cxx:3427
void Read(sal_uInt8 nSprm29, WW8PLCFx_Cp_FKP *pPap)
Definition: ww8par6.cxx:1697
void PopTableDesc()
Definition: ww8par2.cxx:3508
bool ReadChar(tools::Long nPosCp, tools::Long nCpOfs)
Definition: ww8par.cxx:3590
bool m_bListRelevantIndentSet
Definition: ww8par.hxx:255
WW8_SHD * pSHDs
Definition: ww8par.hxx:1039
sal_uInt8 fBiDi
Definition: ww8struc.hxx:1068
sal_uInt16 mhpsCheckBox
Definition: ww8par.hxx:676
bool IsRightToLeft()
Definition: ww8par6.cxx:4568
SwFrameFormat * ImportOle(const Graphic *=nullptr, const SfxItemSet *pFlySet=nullptr, const SfxItemSet *pGrfSet=nullptr, const tools::Rectangle &aVisArea=tools::Rectangle())
Definition: ww8par4.cxx:241
bool StartTable(WW8_CP nStartCp)
Definition: ww8par2.cxx:3367
eF_ResT Read_F_Shape(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par5.cxx:3481
sal_uInt16 m_nBase
Definition: ww8par.hxx:233
const OUString & GetName() const
Definition: ww8par.hxx:529
const SfxPoolItem * GetFormatAttr(const SwPosition &rPos, sal_uInt16 nWhich)
Definition: ww8par.cxx:1480
bool bExist[MAX_COL]
Definition: ww8par.hxx:1043
void ReadShd(const sal_uInt8 *pS)
Definition: ww8par2.cxx:1580
eF_ResT Read_F_Seq(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1430
void ReadFull(sal_uInt8 nSprm29, SwWW8ImplReader *pIo)
Definition: ww8par6.cxx:1748
OUString GetMappedBookmark(std::u16string_view rOrigName)
Definition: ww8par5.cxx:1344
rtl_TextEncoding m_eHardCharSet
Definition: ww8par.hxx:1292
bool mbSymbol
Definition: ww8par.hxx:614
wwFrameNamer & operator=(wwFrameNamer const &)=delete
bool ImportFormulaControl(WW8FormulaControl &rBox, WW8_CP nStart, SwWw8ControlType nWhich)
Definition: ww8par3.cxx:2026
void Read_ANLevelDesc(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par2.cxx:787
bool InLocalApo() const
Definition: ww8par.hxx:1560
rtl_TextEncoding m_eRTLFontSrcCharSet
Definition: ww8par.hxx:227
bool m_bHasSprm37
Definition: ww8par.hxx:982
SvxNumType
static LanguageType nLang
Definition: srtdlg.cxx:51
bool IsFixedHeightFooter() const
Definition: ww8par.hxx:825
const OUString & GetHlink() const
Definition: ww8par.hxx:523
void RegisterNumFormat(sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel)
Definition: ww8par3.cxx:1857
static void SetNumberingType(const wwSection &rNewSection, SwPageDesc &rPageDesc)
Definition: ww8par6.cxx:837
void GraphicDtor()
Definition: ww8graf.cxx:3187
void GraphicCtor()
Definition: ww8graf.cxx:3165
void SetSegmentToPageDesc(const wwSection &rSection, bool bIgnoreCols)
Definition: ww8par.cxx:4392
SdrObject * ReadEllipse(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:366
SwTwips MoveOutsideFly(SwFrameFormat *pFlyFormat, const SwPosition &rPos, bool bTableJoin=true)
Definition: ww8par6.cxx:2307
virtual sal_Int32 GetCurrAttrCP() const override
Definition: ww8par.cxx:1309
static SvxNumType GetSvxNumTypeFromMSONFC(sal_uInt16 nMSONFC)
Definition: ww8par3.cxx:517
SwFlyFrameFormat * InsertOle(SdrOle2Obj &rObject, const SfxItemSet &rFlySet, const SfxItemSet *rGrfSet)
Definition: ww8par4.cxx:197
std::unique_ptr< sw::util::RedlineStack > m_xRedlineStack
Definition: ww8par.hxx:1111
WW8LSTInfo * GetLSTByListId(sal_uInt32 nIdLst) const
Definition: ww8par3.cxx:482
void Read_ParaContextualSpacing(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4501
sal_uInt8 mfDropdownIndex
Definition: ww8par.hxx:670
virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory > &, css::uno::Reference< css::form::XFormComponent > &, css::awt::Size &) override
Definition: ww8par.hxx:734
SvxFrameDirection meDir
Definition: ww8par.hxx:796
void SetToggleBiDiAttr(sal_uInt8 nId, bool bOn)
Definition: ww8par.hxx:405
void Read_Border(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4999
std::deque< FootnoteDescriptor > m_aFootnoteStack
Definition: ww8par.hxx:1151
static void SetLeftRight(wwSection &rSection)
Definition: ww8par6.cxx:475
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.
Definition: ww8par3.cxx:1910
void Read_ParaAutoAfter(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4429
wwSprmParser maSprmParser
Definition: ww8par.hxx:167
sal_uInt8 mfUnknown
Definition: ww8par.hxx:669
sal_Int32 StandardColSeparation() const
Definition: ww8par.hxx:812
const SwNumRule * m_pPrevNumRule
Definition: ww8par.hxx:1208
wwSectionManager(SwWW8ImplReader &rReader)
Definition: ww8par.hxx:886
void emulateMSWordAddTextToParagraph(const OUString &rAddString)
Definition: ww8par.cxx:3307
sal_uInt16 sal_Unicode
void GetSmartTagInfo(SwFltRDFMark &rMark)
Definition: ww8par.cxx:6127
bool HasOwnHeaderFooter(sal_uInt8 nWhichItems, sal_uInt8 grpfIhdt, int nSect)
Definition: ww8par.cxx:2276
Stores RDF statements on a paragraph (key-value pairs where the subject is the paragraph).
Definition: fltshell.hxx:263
OUString msExitMcr
Definition: ww8par.hxx:688
sal_uInt16 GetWWStyleId() const
Definition: ww8par.hxx:328
void Read_Relief(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4730
SwMacroInfo & operator=(SwMacroInfo const &)=delete
bool m_bParaAutoAfter
Definition: ww8par.hxx:261
bool IsInlineEscherHack() const
Definition: ww8par.hxx:1692
short m_nDrawYOfs2
Definition: ww8par.hxx:1301
MSO_LineDashing
sal_uInt16 mnFieldId
Definition: ww8par.hxx:574
void Read_Kern(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4058
sal_uInt16 mnChecked
Definition: ww8par.hxx:677
MSO_SPT
ErrCode DecryptDRMPackage()
Definition: ww8par.cxx:6375
std::unique_ptr< SwWW8ReferencedFltEndStack > m_xReffedStck
Definition: ww8par.hxx:1118
std::unique_ptr< SfxItemSet > m_xScratchSet
Definition: ww8par.hxx:368
sal_uLong mnObjLocFc
Definition: ww8par.hxx:575
virtual SdrObject * ImportOLE(sal_uInt32 nOLEId, const Graphic &rGrf, const tools::Rectangle &rBoundRect, const tools::Rectangle &rVisArea, const int _nCalledByGroup) const override
Definition: ww8par.cxx:513
sal_Int32 m_nDropCap
Definition: ww8par.hxx:1364
std::shared_ptr< WW8FlyPara > m_xWWFly
Definition: ww8par.hxx:230
std::vector< SwWW8StyInf > m_vColl
Definition: ww8par.hxx:1241
void ProcessCurrentCollChange(WW8PLCFManResult &rRes, bool *pStartAttr, bool bCallProcessSpecial)
Definition: ww8par.cxx:3816
void SetRelativeJustify(bool bRel)
Definition: ww8par6.cxx:314
void Read_Shade(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4912
SwFormat * m_pStandardFormatColl
Definition: ww8par.hxx:1243
Knows which writer style a given word style should be imported as.
Definition: msfilter.hxx:202
sal_uInt8 nSp37
Definition: ww8par.hxx:205
sal_uInt32 yaPage
Definition: ww8struc.hxx:1055
OUString msSeed
Definition: ww8par.hxx:939
void Read_ParaAutoBefore(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4402
SwMSConvertControls(SfxObjectShell const *pDSh, SwPaM *pP)
Definition: wrtw8esh.cxx:3009
std::unique_ptr< SfxItemSet > WW8aISet[nMaxLevel]
Definition: ww8par.hxx:183
bool mbHasSpacing
Definition: ww8par.hxx:1024
bool m_bImportSkipped
Definition: ww8par.hxx:252
eF_ResT Read_F_DBNum(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:2610
std::unique_ptr< SwPosition > m_pLastAnchorPos
Definition: ww8par.hxx:1378
WW8_BRCVer9_5 brc
Definition: ww8par.hxx:206
void Read_Obj(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:2858
wwSectionNamer & operator=(const wwSectionNamer &)=delete
SvStream * m_pStrm
Definition: ww8par.hxx:1095
void DeleteAnchorStack()
Definition: ww8par.hxx:1420
const SwTextFormatColl * m_pDfltTextFormatColl
Definition: ww8par.hxx:1242
const sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:95
sw::util::ParaStyleMapper m_aParaStyleMapper
Definition: ww8par.hxx:1189
bool m_bWWBugNormal
Definition: ww8par.hxx:1339
virtual bool CheckSdOD(sal_Int32 nStart, sal_Int32 nEnd) override
Definition: ww8par.cxx:1331
WW8FormulaListBox(const WW8FormulaListBox &)=delete
SwSectionFormat * InsertSection(SwPaM const &rMyPaM, wwSection &rSection)
Definition: ww8par6.cxx:717
void Read_Justify(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4531
virtual bool HasGlossaries() const override
Definition: ww8par.cxx:6519
sal_uInt32 GetPageLeft() const
Definition: ww8par.hxx:821
void Read_Hyphenation(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5112
exports com.sun.star. drawing
cp_set m_aTOXEndCps
Definition: ww8par.hxx:1382
bool IsWW8BuiltInHeadingStyle() const
Definition: ww8par.hxx:333
virtual void ClearParaEndPosition() override
Clear the para end position recorded in reader intermittently for the least impact on loading perform...
Definition: ww8par.cxx:1323
bool mbInHyperlink
Definition: ww8par.hxx:618
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)
Definition: ww8graf.cxx:1005
sal_uInt32 nPgRight
Definition: ww8par.hxx:800
static bool GetPictGrafFromStream(Graphic &rGraphic, SvStream &rSrc)
Definition: ww8graf2.cxx:234
void SetBookmarkCode(const OUString &bookmarkCode)
Definition: ww8par5.cxx:748
void InsertTxbxStyAttrs(SfxItemSet &rS, sal_uInt16 nColl)
Definition: ww8graf.cxx:494
void ProcessSpecificSpacing(const sal_uInt8 *pParamsTInsert)
Definition: ww8par2.cxx:1498
eF_ResT Read_F_IncludeText(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:2488
const SwDoc & mrDoc
Definition: ww8par.hxx:957
short m_nDrawXOfs2
Definition: ww8par.hxx:1301
OUString msFormatting
Definition: ww8par.hxx:683
sal_uInt16 m_n81Flags
Definition: ww8par.hxx:246
::sw::mark::IFieldmark::parameter_map_t maParams
Definition: ww8par.hxx:570
WW8Reader()
Definition: ww8par.hxx:141
eF_ResT
Definition: ww8par.hxx:629
sal_uInt8 mfUnused
Definition: ww8par.hxx:674
void Read_TextColor(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3588
bool m_bLoadingTOXHyperlink
Definition: ww8par.hxx:1372
sal_uInt8 bkc
Definition: ww8struc.hxx:1009
bool operator==(const WW8FlyPara &rSrc) const
Definition: ww8par6.cxx:1674
std::map< OUString, OUString, SwWW8::ltstr > aFieldVarNames
Definition: ww8par.hxx:488
void ProcessSprmTDxaCol(const sal_uInt8 *pParamsTDxaCol)
Definition: ww8par2.cxx:1344
SwFltStackEntry * RefToVar(const SwField *pField, SwFltStackEntry &rEntry)
Definition: ww8par5.cxx:1321
static sal_uInt8 nTablePos
Definition: basesh.cxx:111
eF_ResT Read_F_PgRef(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:2178
SvStream & rSt
Definition: ww8par.hxx:171
bool StartApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos)
Definition: ww8par6.cxx:2435
void Read_FontKern(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4069
bool m_bDrawCpOValid
Definition: ww8par.hxx:1281
void DisableFallbackStream()
Definition: ww8par.cxx:562
tools::Long ReadTextAttr(WW8_CP &rTextPos, tools::Long nTextEnd, bool &rbStartLine, int nDepthGuard=0)
Definition: ww8par.cxx:3857
void Read_ScaleWidth(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4716
WW8_TCell * pTCs
Definition: ww8par.hxx:1036
bool IsNotProtected() const
Definition: ww8par.hxx:809
OUString maTarFrame
Definition: ww8par.hxx:535
SwWW8ImplReader(const SwWW8ImplReader &)=delete
bool m_bParaAutoAfter
Definition: ww8par.hxx:1361
Base class for various Writer styles.
Definition: format.hxx:46
#define SAL_N_ELEMENTS(arr)
sal_uInt16 GetCurrentColl() const
Definition: ww8par.hxx:1897
wwSectionManager(const wwSectionManager &)=delete
void Read_CFRMarkDel(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par4.cxx:535
void Read_Symbol(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:2931
void SetStylesList(sal_uInt16 nStyle, sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel)
Definition: ww8par3.cxx:1683
tools::Long MapBookmarkVariables(const WW8FieldDesc *pF, OUString &rOrigName, const OUString &rData)
Definition: ww8par5.cxx:1281
void Read_KeepParas(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5210
WW8_BRCVer9 brc[4]
Definition: ww8par.hxx:792
WW8_CP Read_F_Tag(WW8FieldDesc *pF)
Definition: ww8par5.cxx:1131
virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceFactory, css::uno::Reference< css::form::XFormComponent > &rFComp, css::awt::Size &rSz) override
Definition: ww8par3.cxx:2450
void ExportControl(WW8Export &rWrt, const SdrUnoObj &rFormObj)
Definition: wrtw8esh.cxx:3031
void Read_SubF_Ruby(msfilter::util::WW8ReadFieldParams &rReadParam)
Definition: ww8par5.cxx:2658
SwFrameFormat * Read_GrafLayer(tools::Long nGrafAnchorCp)
Definition: ww8graf.cxx:2484
bool mbStartApo
Definition: ww8par.hxx:980
sal_uInt16 m_nFieldNum
Definition: ww8par.hxx:1295
void Read_CharBorder(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5073
void StopAllAnl(bool bGoBack=true)
Definition: ww8par2.cxx:1044
OUString m_sWWStyleName
Definition: ww8par.hxx:223
bool m_bFirstParaOfPage
Definition: ww8par.hxx:1359
sal_Int32 m_nIniFlyDx
Definition: ww8par.hxx:1287
eF_ResT Read_F_FormCheckBox(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par3.cxx:185
WW8FlyPara(bool bIsVer67, const WW8FlyPara *pSrc=nullptr)
Definition: ww8par6.cxx:1651
eF_ResT Read_F_DBField(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:2556
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
void SetDirection()
Definition: ww8par6.cxx:166
SwPosition maTmpPos
Definition: ww8par.hxx:598
void PrependedInlineNode(const SwPosition &rPos, const SwNode &rNode)
Definition: ww8par2.cxx:2356
void SetAttributesAtGrfNode(const SvxMSDffImportRec &rRecord, const SwFrameFormat &rFlyFormat, WW8_FSPA const *pF)
Definition: ww8graf.cxx:2090
sal_uInt16 GetToggleAttrFlags() const
Definition: ww8par.hxx:403
std::unique_ptr< wwZOrderer > m_xWWZOrder
Definition: ww8par.hxx:1260
eF_ResT Read_F_TemplName(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:1768
bool CurrentSectionIsProtected() const
Definition: ww8par2.cxx:136
void Read_CRevisionMark(RedlineType eType, const sal_uInt8 *pData, short nLen)
Definition: ww8par4.cxx:474
WW8_BRCVer9 WW8_BRCVer9_5[5]
Definition: ww8struc.hxx:354
sal_uInt8 fPgnRestart
Definition: ww8struc.hxx:1015
short ImportSprm(const sal_uInt8 *pPos, sal_Int32 nMemLen, sal_uInt16 nId=0)
Definition: ww8par6.cxx:6120
ApoTestResults TestApo(int nCellLevel, bool bTableRowEnd, const WW8_TablePos *pTabPos)
Definition: ww8par2.cxx:419
OUString msHelp
Definition: ww8par.hxx:685
void MatchEscherMirrorIntoFlySet(const SvxMSDffImportRec &rRecord, SfxItemSet &rFlySet)
Definition: ww8graf.cxx:3046
OUString tarFrame
Definition: ww8par.hxx:541
sal_Int32 GetPtContent() const
Definition: ww8par.hxx:557
eF_ResT Read_F_Symbol(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1909
SEPr maSep
Definition: ww8par.hxx:791
sal_uInt16 TabRowSprm(int nLevel) const
Definition: ww8par.cxx:2538
SwWW8FltRefStack(SwDoc &rDo, sal_uLong nFieldFl)
Definition: ww8par.hxx:479
Style of a layout element.
Definition: frmfmt.hxx:58
std::vector< WW8_CP > m_aEndParaPos
Definition: ww8par.hxx:1384
OUString BookmarkToWriter(std::u16string_view rBookmark)
Definition: wrtw8nds.cxx:1224
void Swap(WW8FieldEntry &rOther) noexcept
Definition: ww8par5.cxx:724
static bool IsBorder(const WW8_BRCVer9 *pbrc, bool bChkBtwn=false)
Definition: ww8par6.cxx:1505
void CopyPageDescHdFt(const SwPageDesc *pOrgPageDesc, SwPageDesc *pNewPageDesc, sal_uInt8 nCode)
Definition: ww8par6.cxx:1270
void SetUniqueGraphName(SwFrameFormat *pFrameFormat, std::u16string_view rFixedPart)
Definition: ww8graf.cxx:162
bool TestSameApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos)
Definition: ww8par6.cxx:2745
void Read_UL(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4457
SwFrameFormat * MungeTextIntoDrawBox(SvxMSDffImportRec &rRecord, tools::Long nGrafAnchorCp, SwFrameFormat *pRetFrameFormat)
Definition: ww8graf.cxx:2843
sal_uInt16 m_nCurrentColl
Definition: ww8par.hxx:1294
void SetOutlineStyles()
Definition: ww8par.cxx:5952
wwSectionManager m_aSectionManager
Definition: ww8par.hxx:1156
o3tl::sorted_vector< const SwNode * > m_aTextNodesHavingFirstLineOfstSet
Definition: ww8par.hxx:1233
bool HasWW8OutlineLevel() const
Definition: ww8par.hxx:311
short m_nCharFormat
Definition: ww8par.hxx:1298
SwDoc & m_rDoc
Definition: ww8par.hxx:1100
void EnableFallbackStream()
Definition: ww8par.cxx:572
bool m_bNoAttrImport
Definition: ww8par.hxx:1340
bool operator()(const OUString &r1, std::u16string_view r2) const
Definition: ww8par.hxx:445
void SetShapeId(sal_Int32 rShapeId)
Definition: ww8par.hxx:526
wwFrameNamer(bool bIsDisabled, const OUString &rSeed)
Definition: ww8par.hxx:948
among others for fields, that is, the same number of attr as positions, if Ctor-Param bNoEnd = false ...
Definition: ww8scan.hxx:219
std::unique_ptr< WW8ScannerBase > m_xSBase
Definition: ww8par.hxx:1229
void SetToggleAttrFlags(sal_uInt16 nFlags)
Definition: ww8par.cxx:590
class SAL_NO_VTABLE XPropertySet
std::unique_ptr< SfxItemSet > SetCurrentItemSet(std::unique_ptr< SfxItemSet > pItemSet)
Definition: ww8par.cxx:6688
void Read_Majority(sal_uInt16, const sal_uInt8 *, short)
Read_Majority is for Majority (103) and Majority50 (108)
Definition: ww8par.cxx:1172
std::map< short, OUString > m_aLinkStringMap
Definition: ww8par.hxx:1231
bool ReadText(WW8_CP nStartCp, WW8_CP nTextLen, ManTypes nType)
Definition: ww8par.cxx:4055
void DeleteStack(std::unique_ptr< SwFltControlStack > prStck)
Definition: ww8par.cxx:4379
bool TxbxChainContainsRealText(sal_uInt16 nTxBxS, tools::Long &rStartCp, tools::Long &rEndCp)
Definition: ww8graf.cxx:1209
void ClearParaEndPosition()
Definition: ww8par.cxx:3997
void Read_StyleCode(sal_uInt16, const sal_uInt8 *pData, short nLen)
Special FastSave - Attributes.
Definition: ww8par.cxx:1150
bool GetTxbxTextSttEndCp(WW8_CP &rStartCp, WW8_CP &rEndCp, sal_uInt16 nTxBxS, sal_uInt16 nSequence)
Definition: ww8graf.cxx:788
eF_ResT Read_F_FileName(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1854
bool IsWW8BuiltInDefaultStyle() const
Definition: ww8par.hxx:338
sal_uInt8 fUnlocked
Definition: ww8struc.hxx:1013
short nGapHalf
Definition: ww8par.hxx:1019
bool mbHasBorder
Definition: ww8par.hxx:621
sal_uInt8 mfToolTip
Definition: ww8par.hxx:671
tools::Long Read_Footnote(WW8PLCFManResult *pRes)
Definition: ww8par2.cxx:289
OUString msTitle
Definition: ww8par.hxx:681
SwFormat * m_pFormat
Definition: ww8par.hxx:229
void Read_HdFt(int nSect, const SwPageDesc *pPrev, const wwSection &rSection)
Definition: ww8par.cxx:2305
void ImportDop()
DOP.
Definition: ww8par.cxx:1811
SwFrameFormat * AddAutoAnchor(SwFrameFormat *pFormat)
Definition: ww8graf.cxx:2828
void Read_AmbiguousSPRM(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3163
sal_Int16 NoCols() const
Definition: ww8par.hxx:811
tools::Long ImportExtSprm(WW8PLCFManResult *pRes)
Definition: ww8par6.cxx:5279
std::unique_ptr< OutlinerParaObject > ImportAsOutliner(OUString &rString, WW8_CP nStartCp, WW8_CP nEndCp, ManTypes eType)
Definition: ww8graf.cxx:952
void SetAnld(SwNumRule *pNumR, WW8_ANLD const *pAD, sal_uInt8 nSwLevel, bool bOutLine)
Definition: ww8par2.cxx:705
bool IsListOrDropcap() const
Definition: ww8par.hxx:1502
SdrObject * ReadRect(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:343
bool ReadPlainChars(WW8_CP &rPos, sal_Int32 nEnd, sal_Int32 nCpOfs)
Return value: true for non special chars.
Definition: ww8par.cxx:3037
void Read_ANLevelNo(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par2.cxx:743
void Read_WidowControl(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5135
sal_Unicode mcSymbol
Definition: ww8par.hxx:612
std::unique_ptr< SwMSConvertControls > m_xFormImpl
Definition: ww8par.hxx:1203
std::shared_ptr< SvxLRSpaceItem > maWordLR
Definition: ww8par.hxx:248
sal_uInt16 m_nLFOIndex
Definition: ww8par.hxx:235
static sal_uInt16 GetParagraphAutoSpace(bool fDontUseHTMLAutoSpacing)
Definition: ww8par6.cxx:4394
SwWW8Shade(Color nFore, Color nBack, sal_uInt16 nIndex)
Definition: ww8par.hxx:636
rtl_TextEncoding GetCurrentCharSet()
Definition: ww8par.cxx:2851
virtual ~SwMacroInfo() override
Definition: ww8par.cxx:6679
void StopTable()
Definition: ww8par2.cxx:3523
void SetNumOlst(SwNumRule *pNumR, WW8_OLST *pO, sal_uInt8 nSwLevel)
Definition: ww8par2.cxx:838
static void StripNegativeAfterIndent(SwFrameFormat const *pFlyFormat)
Definition: ww8par6.cxx:2581
std::unique_ptr< SwWW8FltAnchorStack > mxOldAnchorStck
Definition: ww8par.hxx:602
void Read_BoldUsw(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:2980
void RegisterNumFormatOnStyle(sal_uInt16 nStyle)
Definition: ww8par3.cxx:1716
rtl_TextEncoding m_eTextCharSet
Definition: ww8par.hxx:1290
virtual SdrObject * ProcessObj(SvStream &rSt, DffObjData &rObjData, SvxMSDffClientData &rData, tools::Rectangle &rTextRect, SdrObject *pObj) override
Definition: ww8par.cxx:602
std::unique_ptr< WW8TabDesc > mxTableDesc
Definition: ww8par.hxx:609
sal_uInt8 transCell(sal_uInt8 nWwCol) const
Definition: ww8par.hxx:1046
void NewAttr(const SfxPoolItem &rAttr, const bool bFirstLineOfStSet=false, const bool bLeftIndentSet=false)
Definition: ww8par6.cxx:2769
void AppendTextNode(SwPosition &rPos)
Definition: ww8par.cxx:2430
WW8TabBandDesc * pNextBand
Definition: ww8par.hxx:1018
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
Definition: ww8par3.cxx:2492
sal_Int16 nLeMgn
Definition: ww8par.hxx:203
bool ForceFieldLanguage(SwField &rField, LanguageType nLang)
Definition: ww8par5.cxx:386
SwDoc & GetDoc() const
Definition: ww8par.hxx:1896
virtual bool Import(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceFactory, css::uno::Reference< css::form::XFormComponent > &rFComp, css::awt::Size &rSz) override
Definition: ww8par3.cxx:2361
Handle requirements for table formatting in insert->file mode.
Definition: msfilter.hxx:279
bool m_bRtlGutter
Definition: ww8par.hxx:802
eF_ResT Read_F_Embedd(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1982
eF_ResT Read_F_Ref(WW8FieldDesc *pF, OUString &)
Definition: ww8par5.cxx:2045
sal_Int32 mnShapeId
Definition: ww8par.hxx:532
wwSectionNamer(const SwDoc &rDoc, const OUString &rSeed)
Definition: ww8par.hxx:964
std::set< sal_uLong > m_aGrafPosSet
Definition: ww8par.hxx:1221
SwDocShell * m_pDocShell
Definition: ww8par.hxx:1079
eF_ResT Read_F_FormTextBox(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par3.cxx:92
void SetAnlvStrings(SwNumFormat &rNum, WW8_ANLV const &rAV, const sal_uInt8 *pText, size_t nStart, size_t nElements, bool bOutline)
Definition: ww8par2.cxx:588
sal_uInt8 dmOrientPage
Definition: ww8struc.hxx:1044
void FormulaRead(SwWw8ControlType nWhich, SvStream *pD)
Definition: ww8par3.cxx:2099
void Restore(SwWW8ImplReader *pRdr)
Definition: ww8par.cxx:2071
void ImportTox(int nFieldId, const OUString &aStr)
Definition: ww8par5.cxx:3656
std::set< WW8_CP > cp_set
Definition: ww8par.hxx:1074
SvNumFormatType
const SfxPoolItem * GetStackAttr(const SwPosition &rPos, sal_uInt16 nWhich)
Definition: ww8par.cxx:1525
bool mbStopApo
Definition: ww8par.hxx:981
tools::Long GetListFirstLineIndent(const SwNumFormat &rFormat)
Definition: ww8par.cxx:1218
eF_ResT Read_F_Tox(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par5.cxx:2963
sal_uInt16 nLastLFOPosition
Definition: ww8par.hxx:193
SwWW8FltAnchorStack & operator=(const SwWW8FltAnchorStack &)=delete
std::unique_ptr< WW8PostProcessAttrsInfo > m_pPostProcessAttrsInfo
Definition: ww8par.hxx:1223
void SetTarFrame(const OUString &rTarFrame)
Definition: ww8par.hxx:524
bool PageRestartNo() const
Definition: ww8par.hxx:815
std::unique_ptr< WW8Dop > m_xWDop
Definition: ww8par.hxx:1227
void Read_UsePgsuSettings(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5155
void UpdateFields()
Definition: ww8par5.cxx:494
std::stack< rtl_TextEncoding > m_aFontSrcCharSets
Definition: ww8par.hxx:1195
sal_uInt8 nSp29
Definition: ww8par.hxx:204
virtual void SetAttrInDoc(const SwPosition &rTmpPos, SwFltStackEntry &rEntry) override
Definition: ww8par.cxx:1336
sal_uInt16 GetToggleAttrFlags() const
Definition: ww8par.cxx:580
const OUString & GetBookmarkCode() const
Definition: ww8par.hxx:585
Marks a node in the document model.
Definition: ndindex.hxx:31
void Read_LR(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4182
const SwNodeIndex & GetPtNode() const
Definition: ww8par.hxx:556
void Read_UnderlineColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:3629
OUString msBookmarkName
Definition: ww8par.hxx:567
WW8_CP m_aCurrAttrCP
Definition: ww8par.hxx:1385
void Read_FontSize(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3918
short nOverrideValues[MAX_COL+1][4]
Definition: ww8par.hxx:1038
bool mbWasParaEnd
Definition: ww8par.hxx:620
const OUString & GetBookmarkName() const
Definition: ww8par.hxx:584
ManTypes
Definition: ww8scan.hxx:869
SwWW8StyInf * GetStyle(sal_uInt16 nColl) const
Definition: ww8par6.cxx:2973
std::vector< std::unique_ptr< WW8LSTInfo > > maLSTInfos
Definition: ww8par.hxx:172
void ProcessSpacing(const sal_uInt8 *pParamsTInsert)
Definition: ww8par2.cxx:1455
std::unique_ptr< WW8SwFlyPara > mpSFlyPara
Definition: ww8par.hxx:606
void SetBookmarkName(const OUString &bookmarkName)
Definition: ww8par5.cxx:738
::sw::mark::IFieldmark::parameter_map_t & getParameters()
Definition: ww8par.hxx:589
bool SearchTableEnd(WW8PLCFx_Cp_FKP *pPap) const
Seek to the end of the table with pPap, returns true on success.
Definition: ww8par2.cxx:380
const SwNumRule * GetOutlineNumrule() const
Definition: ww8par.hxx:321
void NewAttr(const SwPosition &rPos, const SfxPoolItem &rAttr)
Stack.
Definition: ww8par.cxx:1179
FontPitch
sal_uInt32 m_nFieldTagBad[3]
Definition: ww8par.hxx:1278
eF_ResT Read_F_FormListBox(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par3.cxx:244
virtual void SetAttrInDoc(const SwPosition &rTmpPos, SwFltStackEntry &rEntry) override
Definition: ww8par.cxx:1370
bool IsContinuous() const
Definition: ww8par.hxx:808
SwPaM * mpPreviousNumPaM
Definition: ww8par.hxx:607
sal_uInt16 StyleUsingLFO(sal_uInt16 nLFOIndex) const
Definition: ww8par2.cxx:3558
tools::Long Read_FactoidBook(WW8PLCFManResult *)
Definition: ww8par5.cxx:245
sal_uInt16 mnMaxLen
FFData.cch in the spec: maximum length, in characters, of the value of the textbox.
Definition: ww8par.hxx:680
std::unique_ptr< WW8Fonts > m_xFonts
Definition: ww8par.hxx:1226
std::vector< std::unique_ptr< WW8LFOInfo > > m_LFOInfos
Definition: ww8par.hxx:173
std::set< OUString, SwWW8::ltstr > aReferencedTOCBookmarks
Definition: ww8par.hxx:470
SvStream * pFallbackStream
Definition: ww8par.hxx:760
SwFlyFrameFormat * MakeGrafNotInContent(const WW8PicDesc &rPD, const Graphic *pGraph, const OUString &rFileName, const SfxItemSet &rGrfSet)
Definition: ww8graf2.cxx:348
tools::Long SwTwips
Definition: swtypes.hxx:49
SwWW8ImplReader & mrReader
Definition: ww8par.hxx:834
std::stack< rtl_TextEncoding > m_aFontSrcCJKCharSets
Definition: ww8par.hxx:1196
std::deque< bool > m_aApos
Definition: ww8par.hxx:1211
void Read_TextForeColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:3609
void EndSpecial()
Definition: ww8par.cxx:2545
Knows which writer style a given word style should be imported as.
Definition: msfilter.hxx:145
bool ReadGrafStart(void *pData, short nDataSiz, WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:171
SwReaderType
Definition: shellio.hxx:184
void EndSprm(sal_uInt16 nId)
Definition: ww8par6.cxx:6110
std::stack< std::unique_ptr< WW8TabDesc > > m_aTableStack
Definition: ww8par.hxx:1252
std::vector< OUString > maListEntries
Definition: ww8par.hxx:689
void Read_CPropRMark(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par4.cxx:541
static sal_Unicode TranslateToHindiNumbers(sal_Unicode)
Definition: ww8par.cxx:3012
void SetDocumentGrid(SwFrameFormat &rFormat, const wwSection &rSection)
Definition: ww8par6.cxx:214
bool IsFixedHeightHeader() const
Definition: ww8par.hxx:824
sal_uInt32 GetPageRight() const
Definition: ww8par2.cxx:150
tools::Long Read_AtnBook(WW8PLCFManResult *)
Definition: ww8par5.cxx:233
void RegisterNumFormatOnTextNode(sal_uInt16 nCurrentLFO, sal_uInt8 nCurrentLevel, const bool bSetAttr=true)
Definition: ww8par3.cxx:1762
WW8FormulaListBox & operator=(const WW8FormulaListBox &)=delete
WW8FormulaControl(const OUString &rN, SwWW8ImplReader &rRdr)
Definition: ww8par.hxx:662
WW8PostProcessAttrsInfo(WW8_CP nCpStart, WW8_CP nCpEnd, SwPaM &rPaM)
Definition: ww8par5.cxx:2369
sal_Int32 WW8_CP
Definition: ww8struc.hxx:153
int m_nEmbeddedTOXLevel
Definition: ww8par.hxx:1370
OUString m_sBaseURL
Definition: ww8par.hxx:1271
void Read_TabCellEnd(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par2.cxx:3496
SwPaM * m_pPreviousNumPaM
Definition: ww8par.hxx:1207
static bool LangUsesHindiNumbers(LanguageType nLang)
Definition: ww8par.cxx:2981
SwTextNode * m_pPreviousNode
Definition: ww8par.hxx:1376
void SetToggleBiDiAttrFlags(sal_uInt16 nFlags)
Definition: ww8par.hxx:415
bool SetLowerSpacing(SwPaM &rMyPam, int nSpace)
Definition: ww8par.cxx:2528
const OUString & GetOrgWWName() const
Definition: ww8par.hxx:306
sw::util::InsertedTablesManager m_aInsertedTables
Definition: ww8par.hxx:1169
static void AdjustULWrapForWordMargins(const SvxMSDffImportRec &rRecord, SvxULSpaceItem &rUL)
Definition: ww8graf.cxx:1940
bool SetSpacing(SwPaM &rMyPam, int nSpace, bool bIsUpper)
Definition: ww8par.cxx:2502
void Read_CharHighlight(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4128
void Read_BreakBefore(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5218
std::vector< const SwCharFormat * > m_aRubyCharFormats
Definition: ww8par.hxx:1216
bool m_bCareFirstParaEndInToc
Definition: ww8par.hxx:1380
OUString ConvertFFileName(const OUString &rRaw)
translate FieldParameter names into the system character set and at the same time, double backslashes are converted into single ones
Definition: ww8par5.cxx:266
exports com.sun.star. beans
static bool SetCols(SwFrameFormat &rFormat, const wwSection &rSection, sal_uInt32 nNetWidth)
Definition: ww8par6.cxx:422
void ReadDocVars()
Definition: ww8par.cxx:4779
sal_uInt8 m_nListLevel
Definition: ww8par.hxx:236
bool m_bReadNoTable
Definition: ww8par.hxx:1314
bool m_bTxbxFlySection
Definition: ww8par.hxx:1318
short mnDefaultLeft
Definition: ww8par.hxx:1020
FontFamily
SdrObject * ReadTextBox(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:1219
tools::Long Read_Field(WW8PLCFManResult *pRes)
Definition: ww8par5.cxx:757
void SetToggleBiDiAttrFlags(sal_uInt16 nFlags)
Definition: ww8par.cxx:596
exports com.sun.star. form
Position(const SwPosition &rPos)
Definition: ww8par.cxx:6660
std::unique_ptr< SwWW8FltControlStack > mxOldStck
Definition: ww8par.hxx:601
SwNodeIndex maStart
Definition: ww8par.hxx:793
bool IsRelativeJustify()
Definition: ww8par6.cxx:322
OUString GetFieldResult(WW8FieldDesc const *pF)
Definition: ww8par5.cxx:1191
WW8_CP m_nDrawCpO
Definition: ww8par.hxx:1282
wwExtraneousParas(wwExtraneousParas const &)=delete
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:79
WW8ListManager(SvStream &rSt_, SwWW8ImplReader &rReader_)
Definition: ww8par3.cxx:1109
void openFont(sal_uInt16 nFCode, sal_uInt16 nId)
Definition: ww8par6.cxx:3840
ErrCode OpenMainStream(tools::SvRef< SotStorageStream > &rRef, sal_uInt16 &rBuffSize)
Definition: ww8par.cxx:6325
SwWW8ImplReader & rReader
Definition: ww8par.hxx:759
ErrCode LoadDoc(WW8Glossary *pGloss=nullptr)
Definition: ww8par.cxx:6172
std::unique_ptr< WW8_OLST > m_xNumOlst
Definition: ww8par.hxx:1255
WW8ListManager & operator=(const WW8ListManager &)=delete
bool IsLandScape() const
Definition: ww8par.hxx:823
SwWW8Shade(bool bVer67, const WW8_SHD &rSHD)
Definition: ww8par6.cxx:4780
static void SetPage(SwPageDesc &rPageDesc, SwFrameFormat &rFormat, const wwSection &rSection, bool bIgnoreCols)
Definition: ww8par6.cxx:516
SwWW8FltControlStack(const SwWW8FltControlStack &)=delete
void ChkToggleBiDiAttr_(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
Definition: ww8par6.cxx:3350
bool InEqualApo(int nLvl) const
Definition: ww8par.cxx:6648
bool mbHdFtFootnoteEdn
Definition: ww8par.hxx:615
void Read_ParaBackColor(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4934
bool bGrafApo
Definition: ww8par.hxx:208
wwExtraneousParas & operator=(wwExtraneousParas const &)=delete
OUString UniqueName()
Definition: ww8par5.cxx:2481
void ApplyTabPos(const WW8_TablePos *pTabPos)
Definition: ww8par6.cxx:1636
void ReadEmbeddedData(SvStream &rStrm, SwDocShell const *pDocShell, struct HyperLinksTable &hlStr)
Definition: ww8par.cxx:220
WW8FieldEntry & operator=(const WW8FieldEntry &rOther) noexcept
Definition: ww8par5.cxx:730
SvNumFormatType GetTimeDatePara(OUString const &rStr, sal_uInt32 &rFormat, LanguageType &rLang, int nWhichDefault, bool bHijri=false)
Definition: ww8par5.cxx:427
bool m_bFootnoteEdn
Definition: ww8par.hxx:1330
const SwNumRule * mpPrevNumRule
Definition: ww8par.hxx:608
SwSection * mpSection
Definition: ww8par.hxx:794
const WW8Fib & rFib
Definition: ww8par.hxx:170
bool IsOutlineNumbered() const
Definition: ww8par.hxx:316
bool m_bCurrentAND_fNumberAcross
Definition: ww8par.hxx:1353
void Read_TextAnim(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4757
sal_uInt16 GetToggleBiDiAttrFlags() const
Definition: ww8par.hxx:413
bool m_bImported
Definition: ww8par.hxx:250
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 ...
Definition: ww8par.cxx:6630
void ChkToggleAttr_(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
Definition: ww8par6.cxx:3334
bool mbTxbxFlySection
Definition: ww8par.hxx:616
bool SectionIsProtected(const wwSection &rSection) const
Definition: ww8par.cxx:2404
sal_uInt16 PageStartAt() const
Definition: ww8par.hxx:814
sal_Int32 dxaColumns
Definition: ww8struc.hxx:1072
virtual std::unique_ptr< SdrObjUserData > Clone(SdrObject *pObj) const override
Definition: ww8par.cxx:6683
eF_ResT Read_F_DBNext(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:2597
unsigned char sal_uInt8
SdrObject * ImportOleBase(Graphic &rGraph, const Graphic *pGrf=nullptr, const SfxItemSet *pFlySet=nullptr, const tools::Rectangle &aVisArea=tools::Rectangle())
Definition: ww8par4.cxx:328
sal_Int16 ccolM1
Definition: ww8struc.hxx:1065
bool ParseTabPos(WW8_TablePos *aTabPos, WW8PLCFx_Cp_FKP *pPap)
Definition: ww8par6.cxx:5242
void SetToggleAttr(sal_uInt8 nAttrId, bool bOn)
Definition: ww8par6.cxx:3272
void Read_LineSpace(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4329
void InsertSegments()
Definition: ww8par.cxx:4533
sal_uInt16 End_Footnote()
Definition: ww8par2.cxx:170
exports com.sun.star. lang
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
Definition: unosett.cxx:254
static void PicRead(SvStream *pDataStream, WW8_PIC *pPic, bool bVer67)
Definition: ww8graf2.cxx:443
void SetToggleAttrFlags(sal_uInt16 nFlags)
Definition: ww8par.hxx:414
WW8ReaderSave(SwWW8ImplReader *pRdr, WW8_CP nStart=-1)
Footnotes and Endnotes.
Definition: ww8par.cxx:2013
sal_uInt32 GetPageHeight() const
Definition: ww8par.hxx:820
void Read_HdFtFootnoteText(const SwNodeIndex *pSttIdx, WW8_CP nStartCp, WW8_CP nLen, ManTypes nType)
Definition: ww8par.cxx:2113
wwSprmParser knows how to take a sequence of bytes and split it up into sprms and their arguments ...
Definition: ww8scan.hxx:112
sal_uInt16 CurrentSectionColCount() const
Definition: ww8par5.cxx:2926
RndStdIds ProcessEscherAlign(SvxMSDffImportRec &rRecord, WW8_FSPA &rFSPA, SfxItemSet &rFlySet)
Definition: ww8graf.cxx:2221
SwFormatPageDesc SetSwFormatPageDesc(mySegIter const &rIter, mySegIter const &rStart, bool bIgnoreCols)
Map a word section to a writer page descriptor.
Definition: ww8par.cxx:4494
bool IsVertical() const
Definition: ww8par6.cxx:202
bool operator()(const SwTextNode *r1, const SwTextNode *r2) const
Definition: ww8par.hxx:453
sal_uInt8 m_nSprm29
Definition: ww8par.hxx:984
Color aColor
Definition: ww8par.hxx:634
eF_ResT Read_F_OCX(WW8FieldDesc *, OUString &)
Definition: ww8par3.cxx:84
eF_ResT Read_F_Input(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:1154
iterator for Piece Table Exceptions of Fkps works on CPs (high-level)
Definition: ww8scan.hxx:632
short mnDefaultRight
Definition: ww8par.hxx:1022
eF_ResT Read_F_ANumber(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:1416
static bool SetFlyBordersShadow(SfxItemSet &rFlySet, const WW8_BRCVer9 *pbrc, short *SizeArray)
Definition: ww8par6.cxx:1579
void PostProcessAttrs()
Definition: ww8par.cxx:2900
bool m_bHdFtFootnoteEdn
Definition: ww8par.hxx:1329
void SetOrgWWIdent(const OUString &rName, const sal_uInt16 nId)
Definition: ww8par.hxx:294
MSO_LineStyle
bool m_bIgnoreText
Definition: ww8par.hxx:1321
void InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp, ManTypes eType, bool bONLYnPicLocFc=false)
Definition: ww8graf.cxx:592
ErrCode CoreLoad(WW8Glossary const *pGloss)
Definition: ww8par.cxx:4990
bool ReadLVL(SwNumFormat &rNumFormat, std::unique_ptr< SfxItemSet > &rpItemSet, sal_uInt16 nLevelStyle, bool bSetStartNo, sal_uInt16 nLevel, ww::bytes &rParaSprms)
Definition: ww8par3.cxx:617
void ReadRevMarkAuthorStrTabl(SvStream &rStrm, sal_Int32 nTablePos, sal_Int32 nTableSiz, SwDoc &rDoc)
Definition: ww8par4.cxx:453
sal_Unicode m_cSymbol
Definition: ww8par.hxx:1303
bool IsInvalidOrToBeMergedTabCell() const
Definition: ww8par2.cxx:3539
FIB - the File Information Block.
Definition: ww8scan.hxx:1103
eF_ResT Read_F_DocInfo(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par5.cxx:1527
SdrObject * CreateContactObject(SwFrameFormat *pFlyFormat)
Definition: ww8graf.cxx:2191
static bool SetShadow(SvxShadowItem &rShadow, const short *pSizeArray, const WW8_BRCVer9 &aRightBrc)
Definition: ww8par6.cxx:1551
~WW8ListManager() COVERITY_NOEXCEPT_FALSE
Definition: ww8par3.cxx:1442
SwFlyFrameFormat * ImportReplaceableDrawables(SdrObject *&rpObject, SdrObject *&rpOurNewObject, SvxMSDffImportRec &rRecord, WW8_FSPA &rF, SfxItemSet &rFlySet)
Definition: ww8graf.cxx:3061
SdrObject * ReadGrafPrimitive(short &rLeft, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:1365
std::shared_ptr< SwUnoCursor > mpCursor
Definition: ww8par.hxx:1101
void SetStyleIndent(SwWW8StyInf &rStyleInfo, const SwNumFormat &rFormat)
Definition: ww8par3.cxx:1664
auto FilterControlChars(OUString const &rString) -> OUString
Definition: ww8par.cxx:3437
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
OUString msMarkCode
Definition: ww8par.hxx:569
std::shared_ptr< SvStream > mDecodedStream
Definition: ww8par.hxx:136
void closeFont(sal_uInt16 nId)
Definition: ww8par6.cxx:3854
eF_ResT Read_F_Styleref(WW8FieldDesc *, OUString &rStr)
Reads a STYLEREF field.
Definition: ww8par5.cxx:1506
std::deque< bool > maOldApos
Definition: ww8par.hxx:599
void Read_CharShadow(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4080
bool bBorderLines
Definition: ww8par.hxx:207
void ChkToggleAttr(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
Definition: ww8par.hxx:1665
bool m_bHasBrokenWW6List
Definition: ww8par.hxx:254
void Read_Emphasis(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4658
std::unique_ptr< WW8FlyPara > mpWFlyPara
Definition: ww8par.hxx:605
sal_uInt32 m_nIniFlags1
Definition: ww8par.hxx:1275
sal_Int32 mnPtContent
Definition: ww8par.hxx:552
void ResetCJKCharSetVars()
Definition: ww8par6.cxx:3833
void SetUseOn(wwSection &rSection)
Definition: ww8par.cxx:4442
WW8FormulaEditBox(const WW8FormulaEditBox &)=delete
static Color GetCol(sal_uInt8 nIco)
Definition: ww8par6.cxx:119
void SetShade(Color nFore, Color nBack, sal_uInt16 nIndex)
Definition: ww8par6.cxx:4801
wwSectionNamer(const wwSectionNamer &)=delete
SwFrameFormat * ImportGraf(SdrTextObj const *pTextObj=nullptr, SwFrameFormat const *pFlyFormat=nullptr)
Definition: ww8graf2.cxx:471
SwWW8FltRefStack & operator=(const SwWW8FltRefStack &)=delete
sal_uInt16 nToggleBiDiAttrFlags
Definition: ww8par.hxx:370
sal_Int16 nRiMgn
Definition: ww8par.hxx:203
eF_ResT Read_F_Hyperlink(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:3491
SwNumRule * CreateNextRule(bool bSimple)
Definition: ww8par3.cxx:1085
bool IsEmpty() const
Definition: ww8par6.cxx:1865
virtual ErrCode Read(SwDoc &, const OUString &rBaseURL, SwPaM &, const OUString &) override
Definition: ww8par.cxx:6435
std::unique_ptr< wwSprmParser > m_xSprmParser
Definition: ww8par.hxx:1179
const sal_Int32 & GetShapeId() const
Definition: ww8par.hxx:527
void Read_PicLoc(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:2881
void Read_NoLineNumb(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:4150
bool m_bSkipImages
Definition: ww8par.hxx:1313
std::unique_ptr< WW8FlyPara > ConstructApo(const ApoTestResults &rApo, const WW8_TablePos *pTabPos)
Definition: ww8par6.cxx:2385
static void SetPageBorder(SwFrameFormat &rFormat, const wwSection &rSection)
Definition: ww8par6.cxx:557
void UseListIndent(SwWW8StyInf &rStyle, const SwNumFormat &rFormat)
Definition: ww8par3.cxx:1649
bool m_bCareLastParaEndInToc
Definition: ww8par.hxx:1381
void ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8 *pParams, sal_uInt16 nParamsLen)
Definition: ww8par2.cxx:1308
sal_uInt32 GetPageRight() const
Definition: ww8par.hxx:822
bool IsDropCap() const
Definition: ww8par6.cxx:2406
bool IsFootnoteEdnBkmField(const SwFormatField &rFormatField, sal_uInt16 &rBkmNo)
Definition: ww8par.cxx:1556
OUString hLinkAddr
Definition: ww8par.hxx:540
const SwNumFormat * GetNumFormatFromStack(const SwPosition &rPos, const SwTextNode &rTextNode)
Definition: ww8par.cxx:1291
tools::Long m_nFilePos
Definition: ww8par.hxx:232
SwNumRule * GetStyRule()
Definition: ww8par2.cxx:724
SdrObject * ReadArc(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:390
std::shared_ptr< WW8PLCFMan > m_xPlcxMan
Definition: ww8par.hxx:1230
sal_uInt16 GetToggleBiDiAttrFlags() const
Definition: ww8par.cxx:585
bool m_bHasSprm29
Definition: ww8par.hxx:983
void Read_TabRowEnd(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par2.cxx:3502
sal_uInt32 GetPageWidth() const
Definition: ww8par2.cxx:155
bool WillHavePageDescHere(const SwNodeIndex &rIdx) const
Definition: ww8par5.cxx:2936
SdrObject * ReadLine(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:308
sal_uInt8 nOverrideSpacing[MAX_COL+1]
Definition: ww8par.hxx:1037
std::unique_ptr< WW8SwFlyPara > m_xSFlyPara
Definition: ww8par.hxx:1248
wwFrameNamer(wwFrameNamer const &)=delete
void ResetCharSetVars()
Definition: ww8par6.cxx:3826
RndStdIds
sal_uLong m_nObjLocFc
Definition: ww8par.hxx:1285
short mnDefaultTop
Definition: ww8par.hxx:1021
static sal_uInt8 WW8OutlineLevelToOutlinelevel(const sal_uInt8 nWW8OutlineLevel)
Definition: ww8par.hxx:344
int mnFileSectionNo
Definition: ww8par.hxx:959
bool SetUpperSpacing(SwPaM &pMyPam, int nSpace)
Definition: ww8par.cxx:2533
bool mbPgSecBreak
Definition: ww8par.hxx:619
void ReadGrafLayer1(WW8PLCFspecial &rPF, tools::Long nGrafAnchorCp)
Definition: ww8graf.cxx:1422
void DeleteRefStacks()
Definition: ww8par.hxx:1415
wwSectionNamer m_aSectionNameGenerator
Definition: ww8par.hxx:1174
void ChkToggleBiDiAttr(sal_uInt16 nOldStyle81Mask, sal_uInt16 nNewStyle81Mask)
Definition: ww8par.hxx:1674
SdrModel * m_pDrawModel
Definition: ww8par.hxx:1257
bool HasStartStop() const
Definition: ww8par.hxx:989
RedlineType
bool m_bValid
Definition: ww8par.hxx:249
SvStream * m_pDataStream
Definition: ww8par.hxx:1097
const SprmReadInfo & GetSprmReadInfo(sal_uInt16 nId) const
Definition: ww8par6.cxx:6084
const SwFormat * GetStyleWithOrgWWName(std::u16string_view rName) const
Definition: ww8par2.cxx:3571
sal_uInt16 nUniqueList
Definition: ww8par.hxx:174
bool ReadOCXStream(tools::SvRef< SotStorage > const &rSrc1, css::uno::Reference< css::drawing::XShape > *pShapeRef, bool bFloatingCtrl=false)
Definition: wrtw8esh.cxx:3017
bool m_bWasParaEnd
Definition: ww8par.hxx:1343
void Read_Tab(sal_uInt16 nId, const sal_uInt8 *pData, short nLen)
Definition: ww8par.cxx:1651
SwFlyFrameFormat * ConvertDrawTextToFly(SdrObject *&rpObject, SdrObject *&rpOurNewObject, const SvxMSDffImportRec &rRecord, RndStdIds eAnchor, const WW8_FSPA &rF, SfxItemSet &rFlySet)
Definition: ww8graf.cxx:2938
std::shared_ptr< WW8PLCFMan > mxOldPlcxMan
Definition: ww8par.hxx:604
void Read_SubSuper(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3366
OUString msToolTip
Definition: ww8par.hxx:686
bool m_bColl
Definition: ww8par.hxx:251
sw::hack::Position maStartPos
Definition: ww8par.hxx:573
sal_uInt16 maDirections[MAX_COL+1]
Definition: ww8par.hxx:1027
sal_uInt8 m_nListLevel
Definition: ww8par.hxx:1310
sal_uInt32 nPgLeft
Definition: ww8par.hxx:799
SwFrameFormat * MakeGrafInContent(const WW8_PIC &rPic, const WW8PicDesc &rPD, const Graphic *pGraph, const OUString &rFileName, const SfxItemSet &rGrfSet)
Definition: ww8graf2.cxx:384
const SwPosition & GetStartPos() const
Definition: ww8par.hxx:626
sal_uLong m_nPicLocFc
Definition: ww8par.hxx:1284
bool HandlePageBreakChar()
Definition: ww8par.cxx:3550
short m_nDrawXOfs
Definition: ww8par.hxx:1300
bool ReadGrafFile(OUString &rFileName, std::unique_ptr< Graphic > &rpGraphic, const WW8_PIC &rPic, SvStream *pSt, sal_uLong nFilePos, bool *pDelIt)
Definition: ww8graf2.cxx:239
sal_uInt8 m_nSwNumLevel
Definition: ww8par.hxx:1307
virtual bool GetOLEStorageName(sal_uInt32 nOLEId, OUString &rStorageName, tools::SvRef< SotStorage > &rSrcStorage, css::uno::Reference< css::embed::XStorage > &rDestStorage) const override
Definition: ww8par.cxx:6540
static void ReplaceObj(const SdrObject &rReplaceTextObj, SdrObject &rSubObj)
Definition: ww8graf2.cxx:325
bool m_bOnLoadingMain
Definition: ww8par.hxx:1386
void Read_Special(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:2847
short m_nDrawYOfs
Definition: ww8par.hxx:1300
std::unique_ptr< SwWW8FltAnchorStack > m_xAnchorStck
Definition: ww8par.hxx:1134
std::deque< WW8FieldEntry > m_aFieldStack
Definition: ww8par.hxx:1146
SwFormat * m_pCurrentColl
Definition: ww8par.hxx:1237
sal_uInt32 nPgGutter
Definition: ww8par.hxx:801
void Read_FontCode(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3866
SwWW8ReferencedFltEndStack(SwDoc &rDo, sal_uLong nFieldFl)
Definition: ww8par.hxx:463
bool mbIgnoreText
Definition: ww8par.hxx:613
OUString msNumberingNumRule
Definition: ww8par.hxx:996
SdrObject * ReadGroup(WW8_DPHEAD const *pHd, SfxAllItemSet &rSet)
Definition: ww8graf.cxx:1328
const T * GetFormatAttr(const SwPosition &rPos, TypedWhichId< T > nWhich)
Definition: ww8par.hxx:418
std::unique_ptr< SfxItemSet > m_xCurrentItemSet
Definition: ww8par.hxx:1239
WW8FormulaControl & operator=(WW8FormulaControl const &)=delete
void GetPageULData(const wwSection &rNewSection, wwULSpaceData &rData) const
Definition: ww8par6.cxx:581
rtl_TextEncoding GetCJKCharSetFromLanguage()
Definition: ww8par.cxx:2833
void JoinNode(const SwPosition &rPos, const SwNode &rNode)
Definition: ww8par6.cxx:2516
eF_ResT Read_F_CurPage(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:1898
virtual void SetAttrInDoc(const SwPosition &rTmpPos, SwFltStackEntry &rEntry) override
Definition: ww8par.cxx:1579
eF_ResT Read_F_IncludePicture(WW8FieldDesc *, OUString &rStr)
Definition: ww8par5.cxx:2421
OUString msOutlineNumRule
Definition: ww8par.hxx:995
sal_Int32 GetPtContent() const
Definition: ww8par.hxx:582
void AddAnchor(const SwPosition &rPos, SwFrameFormat *pFormat)
Definition: ww8graf.cxx:3193
std::deque< wwSection > maSegments
Definition: ww8par.hxx:835
void Read_RTLJustify(sal_uInt16, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:4586
void Read_BoldBiDiUsw(sal_uInt16 nId, const sal_uInt8 *, short nLen)
Definition: ww8par6.cxx:3177
sal_Int16 nSp26
Definition: ww8par.hxx:201
Color * pNewSHDs
Definition: ww8par.hxx:1040
eF_ResT Read_F_NoteReference(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par5.cxx:2128
void ProcessSprmTSetBRC(int nBrcVer, const sal_uInt8 *pParamsTSetBRC, sal_uInt16 nParamsLen)
Definition: ww8par2.cxx:1238
bool bVer67
Definition: ww8par.hxx:200
css::drawing::TextVerticalAdjust mnVerticalAdjustment
Definition: ww8par.hxx:804
sal_uInt8 mnBorders
Definition: ww8par.hxx:805
SwPaM * m_pPaM
Definition: ww8par.hxx:1102
void Read_ParaBiDi(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:374
SwDoc & rDoc
Definition: ww8par.hxx:169
tools::Long Read_Book(WW8PLCFManResult *)
Definition: ww8par5.cxx:117
SvStream * m_pTableStream
Definition: ww8par.hxx:1096
bool SetTextFormatCollAndListLevel(const SwPaM &rRg, SwWW8StyInf &rStyleInfo)
Definition: ww8par3.cxx:1615
bool CurrentSectionIsVertical() const
Definition: ww8par2.cxx:127
bool mbFirstPara
Definition: ww8par.hxx:622
void Read_KeepLines(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5202
void NextAnlLine(const sal_uInt8 *pSprm13)
Definition: ww8par2.cxx:980
bool SetNewFontAttr(sal_uInt16 nFCode, bool bSetEnums, sal_uInt16 nWhich)
Definition: ww8par6.cxx:3744
WW8TabBandDesc & operator=(WW8TabBandDesc const &)=default
SwMSDffManager & operator=(const SwMSDffManager &)=delete
std::unique_ptr< ImportProgress > m_xProgress
Definition: ww8par.hxx:1201
const SwNumRule * m_pChosenWW8OutlineStyle
Definition: ww8par.hxx:1309
bool isValid_HdFt_CP(WW8_CP nHeaderCP) const
Definition: ww8par.cxx:2270
bool IsParaEndInCPs(sal_Int32, sal_Int32, bool bSdOD=true) const
Definition: ww8par.cxx:3979
SwWW8ImplReader & mrRdr
Definition: ww8par.hxx:656
OUString maHlink
Definition: ww8par.hxx:533
void Read_DoubleLine_Rotate(sal_uInt16, const sal_uInt8 *pDATA, short nLen)
Definition: ww8par6.cxx:3552
void ProcessDirection(const sal_uInt8 *pParams)
Definition: ww8par2.cxx:1438
sal_uInt16 m_nWWStyleId
Definition: ww8par.hxx:224
sal_uInt16 m_nLFOPosition
Definition: ww8par.hxx:1296
void SetToggleBiDiAttr(sal_uInt8 nAttrId, bool bOn)
Definition: ww8par6.cxx:3247
void SetName(const OUString &rName)
Definition: ww8par.hxx:528
wwExtraneousParas(SwDoc &rDoc)
Definition: ww8par.hxx:930
eF_ResT Read_F_Equation(WW8FieldDesc *, OUString &)
Definition: ww8par5.cxx:2631
void Read_AlignFont(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:5168
SwWW8ImplReader & operator=(const SwWW8ImplReader &)=delete
SwWW8ImplReader & rReader
Definition: ww8par.hxx:168
SwNumRule * GetNumRuleForActivation(sal_uInt16 nLFOPosition, const sal_uInt8 nLevel, std::vector< sal_uInt8 > &rParaSprms, SwTextNode *pNode=nullptr)
Definition: ww8par3.cxx:1498
const OUString & GetBaseURL() const
Definition: ww8par.hxx:1912
WW8FormulaControl(WW8FormulaControl const &)=delete
bool m_bParaAutoBefore
Definition: ww8par.hxx:1360
sal_uInt8 nTransCell[MAX_COL+2]
Definition: ww8par.hxx:1044
static void SetPageULSpaceItems(SwFrameFormat &rFormat, wwULSpaceData const &rData, const wwSection &rSection)
Definition: ww8par6.cxx:652
void SetNumRule(const OUString &rNumRule, sal_uInt8 nNumType)
Definition: ww8par2.cxx:898
SprmResult GrpprlHasSprm(sal_uInt16 nId, sal_uInt8 &rSprms, sal_uInt8 nLen)
Definition: ww8par3.cxx:461
css::awt::Size MiserableDropDownFormHack(const OUString &rString, css::uno::Reference< css::beans::XPropertySet > const &rPropSet)
Definition: ww8par3.cxx:2224
WW8FormulaEditBox & operator=(const WW8FormulaEditBox &)=delete
sal_Int16 m_nRelativeJustify
Definition: ww8par.hxx:262
bool bCantSplit90
Definition: ww8par.hxx:1035
short nWidth[MAX_COL+1]
Definition: ww8par.hxx:1029
void ReadNewShd(const sal_uInt8 *pS, bool bVer67, sal_uInt8 nStart)
Definition: ww8par2.cxx:1601
void Read_CharSet(sal_uInt16, const sal_uInt8 *pData, short nLen)
Definition: ww8par6.cxx:3979
eF_ResT Read_F_HTMLControl(WW8FieldDesc *pF, OUString &rStr)
Definition: ww8par3.cxx:317
Base class of the Writer document model elements.
Definition: node.hxx:80
bool m_bWasTabRowEnd
Definition: ww8par.hxx:1323
void ProcessSprmTInsert(const sal_uInt8 *pParamsTInsert)
Definition: ww8par2.cxx:1367
bool MiserableRTLGraphicsHack(SwTwips &rLeft, SwTwips nWidth, sal_Int16 eHoriOri, sal_Int16 eHoriRel)
Definition: ww8graf.cxx:2210