LibreOffice Module sw (master)  1
swhtml.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 #ifndef INCLUDED_SW_SOURCE_FILTER_HTML_SWHTML_HXX
20 #define INCLUDED_SW_SOURCE_FILTER_HTML_SWHTML_HXX
21 
22 #include <config_java.h>
23 
24 #include <sfx2/sfxhtml.hxx>
25 #include <svl/listener.hxx>
26 #include <svl/macitem.hxx>
27 #include <svtools/htmltokn.h>
28 #include <editeng/svxenum.hxx>
29 #include <rtl/ref.hxx>
30 #include <rtl/ustrbuf.hxx>
31 #include <fltshell.hxx>
32 #include <swtypes.hxx>
33 #include <com/sun/star/drawing/XShape.hpp>
34 #include <com/sun/star/form/XFormComponent.hpp>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 
37 #include <memory>
38 #include <vector>
39 #include <deque>
40 #include <stack>
41 #include <set>
42 
43 class SfxMedium;
44 class SfxViewFrame;
45 class SdrObject;
46 class SvxMacroTableDtor;
47 class SwDoc;
48 class SwPaM;
49 class SwViewShell;
50 class SwStartNode;
51 class SwFormatColl;
52 class SwField;
53 class SwHTMLForm_Impl;
54 class SwApplet_Impl;
56 class HTMLTableCnts;
57 struct SwPending;
59 struct ImplSVEvent;
60 
61 #define HTML_CJK_PARSPACE (MM50/2)
62 #define HTML_CTL_PARSPACE (MM50/2)
63 
64 #define HTML_DFLT_IMG_WIDTH (MM50*4)
65 #define HTML_DFLT_IMG_HEIGHT (MM50*2)
66 
67 // some things you often need
71 
72 // attribute stack:
73 
74 class HTMLAttr;
75 typedef std::deque<HTMLAttr *> HTMLAttrs;
76 
77 // Table of attributes: The order here is important: The attributes in the
78 // beginning of the table will set first in EndAllAttrs.
80 {
81  HTMLAttr
82  *pKeep, // frame attributes
83  *pBox,
84  *pBrush,
85  *pBreak,
86  *pPageDesc,
87 
88  *pLRSpace, // paragraph attributes
89  *pULSpace,
90  *pLineSpacing,
91  *pAdjust,
92  *pDropCap,
93  *pSplit,
94  *pWidows,
95  *pOrphans,
96  *pDirection,
97 
98  *pCharFormats, // text attributes
99  *pINetFormat,
100 
101  *pBold, // character attributes
102  *pBoldCJK,
103  *pBoldCTL,
104  *pItalic,
105  *pItalicCJK,
106  *pItalicCTL,
107  *pStrike,
108  *pUnderline,
109  *pBlink,
110  *pFont,
111  *pFontCJK,
112  *pFontCTL,
113  *pFontHeight,
116  *pFontColor,
117  *pEscapement,
118  *pCaseMap,
119  *pKerning, // (only for SPACER)
120  *pCharBrush, // character background
121  *pLanguage,
122  *pLanguageCJK,
123  *pLanguageCTL,
124  *pCharBox
125  ;
126 };
127 
128 class HTMLAttr
129 {
130  friend class SwHTMLParser;
131  friend class CellSaveStruct;
132 
135  bool m_bInsAtStart : 1;
136  bool m_bLikePara : 1; // set attribute above the whole paragraph
137  bool m_bValid : 1; // is the attribute valid?
138 
139  std::unique_ptr<SfxPoolItem> m_pItem;
140  std::shared_ptr<HTMLAttrTable> m_xAttrTab;
141  HTMLAttr *m_pNext; // still to close attributes with different values
142  HTMLAttr *m_pPrev; // already closed but not set attributes
143  HTMLAttr **m_ppHead; // list head
144 
145  HTMLAttr( const SwPosition& rPos, const SfxPoolItem& rItem,
146  HTMLAttr **pHd, const std::shared_ptr<HTMLAttrTable>& rAttrTab );
147 
148  HTMLAttr( const HTMLAttr &rAttr, const SwNodeIndex &rEndPara,
149  sal_Int32 nEndCnt, HTMLAttr **pHd, const std::shared_ptr<HTMLAttrTable>& rAttrTab );
150 
151 public:
152 
153  ~HTMLAttr();
154 
155  HTMLAttr *Clone( const SwNodeIndex& rEndPara, sal_Int32 nEndCnt ) const;
156  void Reset( const SwNodeIndex& rSttPara, sal_Int32 nSttCnt,
157  HTMLAttr **pHd, const std::shared_ptr<HTMLAttrTable>& rAttrTab );
158  inline void SetStart( const SwPosition& rPos );
159 
160  sal_uInt32 GetSttParaIdx() const { return m_nStartPara.GetIndex(); }
161  sal_uInt32 GetEndParaIdx() const { return m_nEndPara.GetIndex(); }
162 
163  const SwNodeIndex& GetSttPara() const { return m_nStartPara; }
164  const SwNodeIndex& GetEndPara() const { return m_nEndPara; }
165 
166  sal_Int32 GetSttCnt() const { return m_nStartContent; }
167  sal_Int32 GetEndCnt() const { return m_nEndContent; }
168 
169  bool IsLikePara() const { return m_bLikePara; }
170  void SetLikePara() { m_bLikePara = true; }
171 
172  SfxPoolItem& GetItem() { return *m_pItem; }
173  const SfxPoolItem& GetItem() const { return *m_pItem; }
174 
175  HTMLAttr *GetNext() const { return m_pNext; }
176  void InsertNext( HTMLAttr *pNxt ) { m_pNext = pNxt; }
177 
178  HTMLAttr *GetPrev() const { return m_pPrev; }
179  void InsertPrev( HTMLAttr *pPrv );
180  void ClearPrev() { m_pPrev = nullptr; }
181 
182  void SetHead(HTMLAttr **ppHd, const std::shared_ptr<HTMLAttrTable>& rAttrTab)
183  {
184  m_ppHead = ppHd;
185  m_xAttrTab = rAttrTab;
186  }
187 
188  // During setting attributes from styles it can happen that these
189  // shouldn't be set anymore. To delete them would be very expensive, because
190  // you don't know all the places where they are linked in. Therefore they're
191  // made invalid and deleted at the next call of SetAttr_().
192  void Invalidate() { m_bValid = false; }
193 };
194 
196 
198  AM_NORMAL, // no paragraph spacing handling
199  AM_NOSPACE, // set spacing hard to 0cm
200  AM_SPACE, // set spacing hard to 0.5cm
201  AM_SOFTNOSPACE, // don't set spacing, but save 0cm
202  AM_NONE // no append
203 };
204 
206 {
207  HTMLAttrs m_aAttrs; // the attributes created in the context
208 
209  OUString m_aClass; // context class
210 
211  std::unique_ptr<HTMLAttrContext_SaveDoc> m_pSaveDocContext;
212  std::unique_ptr<SfxItemSet> m_pFrameItemSet;
213 
214  HtmlTokenId m_nToken; // the token of the context
215 
216  sal_uInt16 m_nTextFormatColl; // a style created in the context or zero
217 
218  sal_uInt16 m_nLeftMargin; // a changed left border
219  sal_uInt16 m_nRightMargin; // a changed right border
220  sal_uInt16 m_nFirstLineIndent; // a changed first line indent
221 
222  sal_uInt16 m_nUpperSpace;
223  sal_uInt16 m_nLowerSpace;
224 
226 
227  bool m_bLRSpaceChanged : 1; // left/right border, changed indent?
228  bool m_bULSpaceChanged : 1; // top/bottom border changed?
229  bool m_bDefaultTextFormatColl : 1;// nTextFormatColl is only default
230  bool m_bSpansSection : 1; // the context opens a SwSection
231  bool m_bPopStack : 1; // delete above stack elements
233  bool m_bRestartPRE : 1;
234  bool m_bRestartXMP : 1;
237 
238  bool m_bVisible = true;
239 
240 public:
241  void ClearSaveDocContext();
242 
243  HTMLAttrContext( HtmlTokenId nTokn, sal_uInt16 nPoolId, const OUString& rClass,
244  bool bDfltColl=false );
245  explicit HTMLAttrContext( HtmlTokenId nTokn );
247 
248  HtmlTokenId GetToken() const { return m_nToken; }
249 
250  sal_uInt16 GetTextFormatColl() const { return m_bDefaultTextFormatColl ? 0 : m_nTextFormatColl; }
251  sal_uInt16 GetDfltTextFormatColl() const { return m_bDefaultTextFormatColl ? m_nTextFormatColl : 0; }
252 
253  const OUString& GetClass() const { return m_aClass; }
254 
255  inline void SetMargins( sal_uInt16 nLeft, sal_uInt16 nRight, short nIndent );
256 
257  bool IsLRSpaceChanged() const { return m_bLRSpaceChanged; }
258  inline void GetMargins( sal_uInt16& nLeft, sal_uInt16& nRight,
259  short &nIndent ) const;
260 
261  inline void SetULSpace( sal_uInt16 nUpper, sal_uInt16 nLower );
262  bool IsULSpaceChanged() const { return m_bULSpaceChanged; }
263  inline void GetULSpace( sal_uInt16& rUpper, sal_uInt16& rLower ) const;
264 
265  bool HasAttrs() const { return !m_aAttrs.empty(); }
266  const HTMLAttrs& GetAttrs() const { return m_aAttrs; }
267  HTMLAttrs& GetAttrs() { return m_aAttrs; }
268 
269  void SetSpansSection( bool bSet ) { m_bSpansSection = bSet; }
270  bool GetSpansSection() const { return m_bSpansSection; }
271 
272  void SetPopStack( bool bSet ) { m_bPopStack = bSet; }
273  bool GetPopStack() const { return m_bPopStack; }
274 
275  bool HasSaveDocContext() const { return m_pSaveDocContext!=nullptr; }
276  HTMLAttrContext_SaveDoc *GetSaveDocContext( bool bCreate=false );
277 
278  const SfxItemSet *GetFrameItemSet() const { return m_pFrameItemSet.get(); }
279  SfxItemSet *GetFrameItemSet( SwDoc *pCreateDoc );
280 
281  void SetFinishPREListingXMP( bool bSet ) { m_bFinishPREListingXMP = bSet; }
283 
284  void SetRestartPRE( bool bSet ) { m_bRestartPRE = bSet; }
285  bool IsRestartPRE() const { return m_bRestartPRE; }
286 
287  void SetRestartXMP( bool bSet ) { m_bRestartXMP = bSet; }
288  bool IsRestartXMP() const { return m_bRestartXMP; }
289 
290  void SetRestartListing( bool bSet ) { m_bRestartListing = bSet; }
291  bool IsRestartListing() const { return m_bRestartListing; }
292 
293  void SetHeaderOrFooter( bool bSet ) { m_bHeaderOrFooter = bSet; }
294  bool IsHeaderOrFooter() const { return m_bHeaderOrFooter; }
295 
296  void SetAppendMode( SwHTMLAppendMode eMode ) { m_eAppend = eMode; }
298 
299  void SetVisible(bool bVisible) { m_bVisible = bVisible; }
300  bool IsVisible() const { return m_bVisible; }
301 };
302 
303 typedef std::vector<std::unique_ptr<HTMLAttrContext>> HTMLAttrContexts;
304 
305 class HTMLTable;
306 class SwCSS1Parser;
308 
309 typedef std::vector<std::unique_ptr<ImageMap>> ImageMaps;
310 
311 enum class HtmlContextFlags {
312  ProtectStack = 0x0001,
313  StripPara = 0x0002,
314  KeepNumrule = 0x0004,
315  HeaderDist = 0x0008,
316  FooterDist = 0x0010,
317  KeepAttrs = 0x0020,
318  MultiColMask = StripPara | KeepNumrule | KeepAttrs // for headers, footers or footnotes
319 };
320 namespace o3tl
321 {
322  template<> struct typed_flags<HtmlContextFlags> : is_typed_flags<HtmlContextFlags, 0x03f> {};
323 }
324 
326  Box = 0x0001,
327  Background = 0x0002,
328  Padding = 0x0004,
329  Direction = 0x0008,
330 };
331 namespace o3tl
332 {
333  template<> struct typed_flags<HtmlFrameFormatFlags> : is_typed_flags<HtmlFrameFormatFlags, 0x0f> {};
334 }
335 
337 {
339 public:
342  virtual void Notify(const SfxHint&) override;
343 };
344 
345 class SwHTMLParser : public SfxHTMLParser, public SvtListener
346 {
347  friend class SectionSaveStruct;
348  friend class CellSaveStruct;
349  friend class CaptionSaveStruct;
350 
351  /*
352  Progress bar
353  */
354  std::unique_ptr<ImportProgress> m_xProgress;
355 
356  OUString m_aPathToFile;
357  OUString m_sBaseURL;
358  OUString m_aBasicLib;
359  OUString m_aBasicModule;
360  OUString m_aScriptSource; // content of the current script block
361  OUString m_aScriptType; // type of read script (StarBasic/VB/JAVA)
362  OUString m_aScriptURL; // script URL
363  OUString m_aStyleSource; // content of current style sheet
364  OUString m_aContents; // text of current marquee, field and so
365  OUStringBuffer m_sTitle;
366  OUString m_aUnknownToken; // a started unknown token
368  OUString m_sJmpMark;
369 
370  std::vector<sal_uInt16> m_aBaseFontStack; // stack for <BASEFONT>
371  // Bit 0-2: font size (1-7)
372  std::vector<sal_uInt16> m_aFontStack; // stack for <FONT>, <BIG>, <SMALL>
373  // Bit 0-2: font size (1-7)
374  // Bit 15: font colour was set
375 
376  HTMLAttrs m_aSetAttrTab;// "closed", not set attributes
377  HTMLAttrs m_aParaAttrs; // temporary paragraph attributes
378  std::shared_ptr<HTMLAttrTable> m_xAttrTab; // "open" attributes
379  HTMLAttrContexts m_aContexts;// the current context of attribute/token
380  std::vector<std::unique_ptr<SwHTMLFrameFormatListener>> m_aMoveFlyFrames;// Fly-Frames, the anchor is moved
381  std::deque<sal_Int32> m_aMoveFlyCnts;// and the Content-Positions
382  //stray SwTableBoxes which need to be deleted to avoid leaking, but hold
383  //onto them until parsing is done
384  std::vector<std::unique_ptr<SwTableBox>> m_aOrphanedTableBoxes;
385 
386  std::unique_ptr<SwApplet_Impl> m_pAppletImpl; // current applet
387 
388  std::unique_ptr<SwCSS1Parser> m_pCSS1Parser; // Style-Sheet-Parser
389  std::unique_ptr<SwHTMLNumRuleInfo> m_pNumRuleInfo;
390  std::vector<SwPending> m_vPendingStack;
391 
393  SwPaM *m_pPam; // SwPosition should be enough, or ??
394  SwViewShell *m_pActionViewShell; // SwViewShell, where StartAction was called
396 
397  std::vector<HTMLTable*> m_aTables;
398  std::shared_ptr<HTMLTable> m_xTable; // current "outermost" table
399  SwHTMLForm_Impl* m_pFormImpl; // current form
400  SdrObject *m_pMarquee; // current marquee
401  std::unique_ptr<SwField> m_xField; // current field
402  ImageMap *m_pImageMap; // current image map
403  std::unique_ptr<ImageMaps> m_pImageMaps;
404  std::unique_ptr<SwHTMLFootEndNote_Impl> m_pFootEndNoteImpl;
405 
406  Size m_aHTMLPageSize; // page size of HTML template
407 
408  sal_uInt32 m_aFontHeights[7]; // font heights 1-7
410 
411  sal_uInt16 m_nBaseFontStMin;
412  sal_uInt16 m_nFontStMin;
413  sal_uInt16 m_nDefListDeep;
414  sal_uInt16 m_nFontStHeadStart; // elements in font stack at <Hn>
415  sal_uInt16 m_nSBModuleCnt; // counter for basic modules
416  sal_uInt16 m_nMissingImgMaps; // How many image maps are still missing?
417  size_t m_nParaCnt;
418  size_t m_nContextStMin; // lower limit of PopContext
419  size_t m_nContextStAttrMin; // lower limit of attributes
420  sal_uInt16 m_nSelectEntryCnt; // Number of entries in the actual listbox
421  HtmlTokenId m_nOpenParaToken; // opened paragraph element
422 
423  enum class JumpToMarks { NONE, Mark, Table, Region, Graphic };
425 
426 #ifdef DBG_UTIL
427  sal_uInt16 m_nContinue; // depth of Continue calls
428 #endif
429 
430  SvxAdjust m_eParaAdjust; // adjustment of current paragraph
431  HTMLScriptLanguage m_eScriptLang; // current script language
432 
433  bool m_bOldIsHTMLMode : 1; // Was it a HTML document?
434 
435  bool m_bDocInitalized : 1; // document resp. shell was initialize
436  // flag to prevent double init via recursion
437  bool m_bViewCreated : 1; // the view was already created (asynchronous)
439 
440  bool m_bInFloatingFrame : 1; // We are in a floating frame
441  bool m_bInField : 1;
442  bool m_bKeepUnknown : 1; // handle unknown/not supported tokens
443  // 8
444  bool m_bCallNextToken : 1; // In tables: call NextToken in any case
445  bool m_bIgnoreRawData : 1; // ignore content of script/style
446  bool m_bLBEntrySelected : 1; // Is the current option selected?
447  bool m_bTAIgnoreNewPara : 1; // ignore next LF in text area?
448  bool m_bFixMarqueeWidth : 1; // Change size of marquee?
449 
450  bool m_bUpperSpace : 1; // top paragraph spacing is needed
451  bool m_bNoParSpace : 1;
452  // 16
453 
454  bool m_bInNoEmbed : 1; // we are in a NOEMBED area
455 
456  bool m_bInTitle : 1; // we are in title
457 
458  bool m_bChkJumpMark : 1; // maybe jump to predetermined mark
460  bool m_bFixSelectWidth : 1; // Set new width of select?
461  bool m_bTextArea : 1;
462  // 24
463  bool m_bSelect : 1;
467  bool m_bRemoveHidden : 1; // the filter implementation might set the hidden flag
468 
469  bool m_bBodySeen : 1;
473 
474  sal_Int32 m_nTableDepth;
475 
477  OUString m_InfoNames[4];
478 
480 
481  bool m_bXHTML = false;
482  bool m_bReqIF = false;
483 
488  std::stack<SwOLENode*> m_aEmbeds;
489 
490  std::set<OUString> m_aAllowedRTFOLEMimeTypes;
491 
492  void DeleteFormImpl();
493 
494  void DocumentDetected();
495  void Show();
496  void ShowStatline();
497  SwViewShell *CallStartAction( SwViewShell *pVSh = nullptr, bool bChkPtr = true );
498  SwViewShell *CallEndAction( bool bChkAction = false, bool bChkPtr = true );
500 
501  DECL_LINK( AsyncCallback, void*, void );
502 
503  // set attribute on document
504  void SetAttr_( bool bChkEnd, bool bBeforeTable, std::deque<std::unique_ptr<HTMLAttr>> *pPostIts );
505  void SetAttr( bool bChkEnd = true, bool bBeforeTable = false,
506  std::deque<std::unique_ptr<HTMLAttr>> *pPostIts = nullptr )
507  {
508  if( !m_aSetAttrTab.empty() || !m_aMoveFlyFrames.empty() )
509  SetAttr_( bChkEnd, bBeforeTable, pPostIts );
510  }
511 
512  HTMLAttr **GetAttrTabEntry( sal_uInt16 nWhich );
513 
514  // create a new text node on PaM position
515  bool AppendTextNode( SwHTMLAppendMode eMode=AM_NORMAL, bool bUpdateNum=true );
516  void AddParSpace();
517 
518  // start/end an attribute
519  // ppDepAttr indicated an attribute table entry, which attribute has to be
520  // set, before the attribute is closed
521  void NewAttr(const std::shared_ptr<HTMLAttrTable>& rAttrTab, HTMLAttr **ppAttr, const SfxPoolItem& rItem);
522  bool EndAttr( HTMLAttr *pAttr, bool bChkEmpty=true );
523  void DeleteAttr( HTMLAttr* pAttr );
524 
525  void EndContextAttrs( HTMLAttrContext *pContext );
526  void SaveAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab);
527  void SplitAttrTab( const SwPosition& rNewPos );
528  void SplitAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab, bool bMoveEndBack);
529  void RestoreAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab);
530  void InsertAttr( const SfxPoolItem& rItem, bool bInsAtStart );
531  void InsertAttrs( std::deque<std::unique_ptr<HTMLAttr>> rAttrs );
532 
533  bool DoPositioning( SfxItemSet &rItemSet,
534  SvxCSS1PropertyInfo &rPropInfo,
535  HTMLAttrContext *pContext );
536  bool CreateContainer( const OUString& rClass, SfxItemSet &rItemSet,
537  SvxCSS1PropertyInfo &rPropInfo,
538  HTMLAttrContext *pContext );
539  bool EndSection( bool bLFStripped=false );
540 
541  void InsertAttrs( SfxItemSet &rItemSet, SvxCSS1PropertyInfo const &rPropInfo,
542  HTMLAttrContext *pContext, bool bCharLvl=false );
543  void InsertAttr( HTMLAttr **ppAttr, const SfxPoolItem & rItem,
544  HTMLAttrContext *pCntxt );
545  void SplitPREListingXMP( HTMLAttrContext *pCntxt );
546  void FixHeaderFooterDistance( bool bHeader, const SwPosition *pOldPos );
547 
548  void EndContext( HTMLAttrContext *pContext );
549  void ClearContext( HTMLAttrContext *pContext );
550 
551  const SwFormatColl *GetCurrFormatColl() const;
552 
554 
556  // add parameter <bCountedInList>
557  void SetNodeNum( sal_uInt8 nLevel );
558 
559  // Manage paragraph styles
560 
561  // set the style resp. its attributes on the stack
562  void SetTextCollAttrs( HTMLAttrContext *pContext = nullptr );
563 
564  void InsertParaAttrs( const SfxItemSet& rItemSet );
565 
566  // Manage attribute context
567 
568  // save current context
569  void PushContext(std::unique_ptr<HTMLAttrContext>& rCntxt)
570  {
571  m_aContexts.push_back(std::move(rCntxt));
572  }
573 
574  // Fetch top/specified context but not outside the context with token
575  // nLimit. If bRemove set then remove it.
576  std::unique_ptr<HTMLAttrContext> PopContext(HtmlTokenId nToken = HtmlTokenId::NONE);
577 
578  void GetMarginsFromContext( sal_uInt16 &nLeft, sal_uInt16 &nRight, short& nIndent,
579  bool bIgnoreCurrent=false ) const;
580  void GetMarginsFromContextWithNumberBullet( sal_uInt16 &nLeft, sal_uInt16 &nRight,
581  short& nIndent ) const;
582  void GetULSpaceFromContext( sal_uInt16 &rUpper, sal_uInt16 &rLower ) const;
583 
584  void MovePageDescAttrs( SwNode *pSrcNd, sal_uLong nDestIdx, bool bFormatBreak );
585 
586  // Handling of tags at paragraph level
587 
588  // <P> and <H1> to <H6>
589  void NewPara();
590  void EndPara( bool bReal = false );
591  void NewHeading( HtmlTokenId nToken );
592  void EndHeading();
593 
594  // <ADDRESS>, <BLOCKQUOTE> and <PRE>
595  void NewTextFormatColl( HtmlTokenId nToken, sal_uInt16 nPoolId );
596  void EndTextFormatColl( HtmlTokenId nToken );
597 
598  // <DIV> and <CENTER>
599  void NewDivision( HtmlTokenId nToken );
600  void EndDivision();
601 
602  // insert/close Fly-Frames
603  void InsertFlyFrame( const SfxItemSet& rItemSet, HTMLAttrContext *pCntxt,
604  const OUString& rId );
605 
606  void SaveDocContext( HTMLAttrContext *pCntxt, HtmlContextFlags nFlags,
607  const SwPosition *pNewPos );
608  void RestoreDocContext( HTMLAttrContext *pCntxt );
609 
610  // end all opened <DIV> areas
611  bool EndSections( bool bLFStripped );
612 
613  // <MULTICOL>
614  void NewMultiCol( sal_uInt16 columnsFromCss=0 );
615 
616  // <MARQUEE>
617  void NewMarquee( HTMLTable *pCurTable=nullptr );
618  void EndMarquee();
619  void InsertMarqueeText();
620 
621  // Handling of lists
622 
623  // order list <OL> and unordered list <UL> with <LI>
624  void NewNumberBulletList( HtmlTokenId nToken );
625  void EndNumberBulletList( HtmlTokenId nToken = HtmlTokenId::NONE );
626  void NewNumberBulletListItem( HtmlTokenId nToken );
627  void EndNumberBulletListItem( HtmlTokenId nToken, bool bSetColl);
628 
629  // definitions lists <DL> with <DD>, <DT>
630  void NewDefList();
631  void EndDefList();
632  void NewDefListItem( HtmlTokenId nToken );
633  void EndDefListItem( HtmlTokenId nToken = HtmlTokenId::NONE );
634 
635  // Handling of tags on character level
636 
637  // handle tags like <B>, <I> and so, which enable/disable a certain
638  // attribute or like <SPAN> get attributes from styles
639  void NewStdAttr( HtmlTokenId nToken );
640  void NewStdAttr( HtmlTokenId nToken,
641  HTMLAttr **ppAttr, const SfxPoolItem & rItem,
642  HTMLAttr **ppAttr2=nullptr, const SfxPoolItem *pItem2=nullptr,
643  HTMLAttr **ppAttr3=nullptr, const SfxPoolItem *pItem3=nullptr );
644  void EndTag( HtmlTokenId nToken );
645 
646  // handle font attributes
647  void NewBasefontAttr(); // for <BASEFONT>
648  void EndBasefontAttr();
649  void NewFontAttr( HtmlTokenId nToken ); // for <FONT>, <BIG> and <SMALL>
650  void EndFontAttr( HtmlTokenId nToken );
651 
652  // tags realized via character styles
653  void NewCharFormat( HtmlTokenId nToken );
654 
655  void ClearFootnotesMarksInRange(const SwNodeIndex& rSttIdx, const SwNodeIndex& rEndIdx);
656 
657  void DeleteSection(SwStartNode* pSttNd);
658 
659  // <SDFIELD>
660 public:
661  static SvxNumType GetNumType( const OUString& rStr, SvxNumType eDfltType );
662 private:
663  void NewField();
664  void EndField();
665  void InsertFieldText();
666 
667  // <SPACER>
668  void InsertSpacer();
669 
670  // Inserting graphics, plug-ins and applets
671 
672  // search image maps and link with graphic nodes
673  ImageMap *FindImageMap( const OUString& rURL ) const;
674  void ConnectImageMaps();
675 
676  // find anchor of Fly-Frames and set corresponding attributes
677  // in Attrset (htmlgrin.cxx)
678  void SetAnchorAndAdjustment( sal_Int16 eVertOri,
679  sal_Int16 eHoriOri,
680  const SvxCSS1PropertyInfo &rPropInfo,
681  SfxItemSet& rFrameSet );
682  void SetAnchorAndAdjustment( sal_Int16 eVertOri,
683  sal_Int16 eHoriOri,
684  SfxItemSet& rFrameSet,
685  bool bDontAppend=false );
686  void SetAnchorAndAdjustment( const SvxCSS1PropertyInfo &rPropInfo,
687  SfxItemSet &rFrameItemSet );
688 
689  static void SetFrameFormatAttrs( SfxItemSet &rItemSet,
690  HtmlFrameFormatFlags nFlags, SfxItemSet &rFrameItemSet );
691 
692  // create frames and register auto bound frames
693  void RegisterFlyFrame( SwFrameFormat *pFlyFrame );
694 
695  // Adjust the size of the Fly-Frames to requirements and conditions
696  // (not for graphics, therefore htmlplug.cxx)
697  static void SetFixSize( const Size& rPixSize, const Size& rTwipDfltSize,
698  bool bPercentWidth, bool bPercentHeight,
699  SvxCSS1PropertyInfo const &rPropInfo,
700  SfxItemSet& rFlyItemSet );
701  static void SetVarSize( SvxCSS1PropertyInfo const &rPropInfo,
702  SfxItemSet& rFlyItemSet, SwTwips nDfltWidth=MINLAY,
703  sal_uInt8 nDefaultPercentWidth=0 );
704  static void SetSpace( const Size& rPixSpace, SfxItemSet &rItemSet,
705  SvxCSS1PropertyInfo &rPropInfo, SfxItemSet& rFlyItemSet );
706 
707  sal_uInt16 IncGrfsThatResizeTable();
708 
709  void GetDefaultScriptType( ScriptType& rType,
710  OUString& rTypeStr ) const;
711 
712  // the actual insert methods for <IMG>, <EMBED>, <APPLET> and <PARAM>
713  void InsertImage(); // htmlgrin.cxx
714  bool InsertEmbed(); // htmlplug.cxx
715 
716 #if HAVE_FEATURE_JAVA
717  void NewObject(); // htmlplug.cxx
718 #endif
719  void EndObject(); // link CommandLine with applet (htmlplug.cxx)
720 #if HAVE_FEATURE_JAVA
721  void InsertApplet(); // htmlplug.cxx
722 #endif
723  void EndApplet(); // link CommandLine with applet (htmlplug.cxx)
724  void InsertParam(); // htmlplug.cxx
725 
726  void InsertFloatingFrame();
727 
728  // parse <BODY>-tag: set background graphic and background colour (htmlgrin.cxx)
729  void InsertBodyOptions();
730 
731  // Inserting links and bookmarks (htmlgrin.cxx)
732 
733  // parse <A>-tag: insert a link resp. bookmark
734  void NewAnchor();
735  void EndAnchor();
736 
737  // insert bookmark
738  void InsertBookmark( const OUString& rName );
739 
740  void InsertCommentText( const char *pTag );
741  void InsertComment( const OUString& rName, const char *pTag = nullptr );
742 
743  // Has the current paragraph bookmarks?
744  bool HasCurrentParaBookmarks( bool bIgnoreStack=false ) const;
745 
746  // Inserting script/basic elements
747 
748  // parse the last read basic module (htmlbas.cxx)
749  void NewScript();
750  void EndScript();
751 
752  void AddScriptSource();
753 
754  // insert event in SFX configuration (htmlbas.cxx)
755  void InsertBasicDocEvent( const OUString& aEventName, const OUString& rName,
756  ScriptType eScrType, const OUString& rScrType );
757 
758  // Inserting styles
759 
760  // <STYLE>
761  void NewStyle();
762  void EndStyle();
763 
764  static inline bool HasStyleOptions( std::u16string_view rStyle, std::u16string_view rId,
765  std::u16string_view rClass, const OUString *pLang=nullptr,
766  const OUString *pDir=nullptr );
767  bool ParseStyleOptions( const OUString &rStyle, const OUString &rId,
768  const OUString &rClass, SfxItemSet &rItemSet,
769  SvxCSS1PropertyInfo &rPropInfo,
770  const OUString *pLang=nullptr, const OUString *pDir=nullptr );
771 
772  // Inserting Controls and Forms (htmlform.cxx)
773 
774  // Insert draw object into document
775  void InsertDrawObject( SdrObject* pNewDrawObj, const Size& rSpace,
776  sal_Int16 eVertOri,
777  sal_Int16 eHoriOri,
778  SfxItemSet& rCSS1ItemSet,
779  SvxCSS1PropertyInfo& rCSS1PropInfo );
780  css::uno::Reference< css::drawing::XShape > InsertControl(
781  const css::uno::Reference< css::form::XFormComponent > & rFormComp,
782  const css::uno::Reference< css::beans::XPropertySet > & rFCompPropSet,
783  const Size& rSize,
784  sal_Int16 eVertOri,
785  sal_Int16 eHoriOri,
786  SfxItemSet& rCSS1ItemSet,
787  SvxCSS1PropertyInfo& rCSS1PropInfo,
788  const SvxMacroTableDtor& rMacroTable,
789  const std::vector<OUString>& rUnoMacroTable,
790  const std::vector<OUString>& rUnoMacroParamTable,
791  bool bSetPropSet = true,
792  bool bHidden = false );
793  void SetControlSize( const css::uno::Reference< css::drawing::XShape > & rShape, const Size& rTextSz,
794  bool bMinWidth, bool bMinHeight );
795 
796 public:
797  static void ResizeDrawObject( SdrObject* pObj, SwTwips nWidth );
798 private:
799  static void RegisterDrawObjectToTable( HTMLTable *pCurTable, SdrObject* pObj,
800  sal_uInt8 nWidth );
801 
802  void NewForm( bool bAppend=true );
803  void EndForm( bool bAppend=true );
804 
805  // Insert methods for <INPUT>, <TEXTAREA> and <SELECT>
806  void InsertInput();
807 
808  void NewTextArea();
809  void InsertTextAreaText( HtmlTokenId nToken );
810  void EndTextArea();
811 
812  void NewSelect();
813  void InsertSelectOption();
814  void InsertSelectText();
815  void EndSelect();
816 
817  // Inserting tables (htmltab.cxx)
818 public:
819 
820  // Insert box content after the given node
821  const SwStartNode *InsertTableSection( const SwStartNode *pPrevStNd );
822 
823  // Insert box content at the end of the table containing the PaM
824  // and move the PaM into the cell
825  const SwStartNode *InsertTableSection( sal_uInt16 nPoolId );
826 
827  // Insert methods for various table tags
828  std::unique_ptr<HTMLTableCnts> InsertTableContents( bool bHead );
829 
830 private:
831  // Create a section for the temporary storage of the table caption
833 
834  void BuildTableCell( HTMLTable *pTable, bool bReadOptions, bool bHead );
835  void BuildTableRow( HTMLTable *pTable, bool bReadOptions,
836  SvxAdjust eGrpAdjust, sal_Int16 eVertOri );
837  void BuildTableSection( HTMLTable *pTable, bool bReadOptions, bool bHead );
838  void BuildTableColGroup( HTMLTable *pTable, bool bReadOptions );
839  void BuildTableCaption( HTMLTable *pTable );
840  std::shared_ptr<HTMLTable> BuildTable(SvxAdjust eCellAdjust,
841  bool bIsParentHead = false,
842  bool bHasParentSection=true,
843  bool bHasToFlow = false);
844 
845  // misc ...
846 
847  void ParseMoreMetaOptions();
848 
849  bool FileDownload( const OUString& rURL, OUString& rStr );
850  void InsertLink();
851 
852  void InsertIDOption();
853  void InsertLineBreak();
854  void InsertHorzRule();
855 
856  void FillEndNoteInfo( const OUString& rContent );
857  void FillFootNoteInfo( const OUString& rContent );
858  void InsertFootEndNote( const OUString& rName, bool bEndNote, bool bFixed );
859  void FinishFootEndNote();
860  void InsertFootEndNoteText();
861  SwNodeIndex *GetFootEndNoteSection( const OUString& rName );
862 
863  sal_Int32 StripTrailingLF();
864 
865  // Remove empty paragraph at the PaM position
866  void StripTrailingPara();
867  // If removing an empty node would corrupt the document
868  bool CanRemoveNode(sal_uLong nNodeIdx) const;
869 
870  // Are there fly frames in the current paragraph?
871  bool HasCurrentParaFlys( bool bNoSurroundOnly = false,
872  bool bSurroundOnly = false ) const;
873 
874  bool PendingObjectsInPaM(SwPaM& rPam) const;
875 
877  {
878  private:
880  public:
882  : m_rParser(rParser)
883  {
884  ++m_rParser.m_nTableDepth;
885  }
886  bool TooDeep() const { return m_rParser.m_nTableDepth > 1024; }
888  {
889  --m_rParser.m_nTableDepth;
890  }
891  };
892 
893 public: // used in tables
894 
895  // Create brush item (with new) or 0
896  SvxBrushItem* CreateBrushItem( const Color *pColor,
897  const OUString &rImageURL,
898  const OUString &rStyle,
899  const OUString &rId,
900  const OUString &rClass );
901 
902 protected:
903  // Executed for each token recognized by CallParser
904  virtual void NextToken( HtmlTokenId nToken ) override;
905  virtual ~SwHTMLParser() override;
906 
907  // If the document is removed, remove the parser as well
908  virtual void Notify(const SfxHint&) override;
909 
910  virtual void AddMetaUserDefined( OUString const & i_rMetaName ) override;
911 
912 public:
913 
914  SwHTMLParser( SwDoc* pD, SwPaM & rCursor, SvStream& rIn,
915  const OUString& rFileName,
916  const OUString& rBaseURL,
917  bool bReadNewDoc,
918  SfxMedium* pMed, bool bReadUTF8,
919  bool bIgnoreHTMLComments,
920  const OUString& rNamespace);
921 
922  virtual SvParserState CallParser() override;
923 
924  static sal_uInt16 ToTwips( sal_uInt16 nPixel );
925 
926  // for reading asynchronously from SvStream
927  virtual void Continue( HtmlTokenId nToken ) override;
928 
929  virtual bool ParseMetaOptions( const css::uno::Reference<css::document::XDocumentProperties>&,
930  SvKeyValueIterator* ) override;
931 
932 
934  {
935  m_aTables.push_back(pNew);
936  }
937 
938  void DeregisterHTMLTable(HTMLTable* pOld);
939 
940  SwDoc* GetDoc() const;
941 
942  bool IsReqIF() const;
943 
945 
946  void NotifyMacroEventRead();
947 
949  static OUString StripQueryFromPath(const OUString& rBase, const OUString& rPath);
950 };
951 
953 {
954  virtual ~SwPendingData() {}
955 };
956 
957 struct SwPending
958 {
960  std::unique_ptr<SwPendingData> pData;
961 
963  : nToken( nTkn )
964  {}
965 };
966 
967 inline void HTMLAttr::SetStart( const SwPosition& rPos )
968 {
969  m_nStartPara = rPos.nNode;
973 }
974 
975 inline void HTMLAttrContext::SetMargins( sal_uInt16 nLeft, sal_uInt16 nRight,
976  short nIndent )
977 {
978  m_nLeftMargin = nLeft;
979  m_nRightMargin = nRight;
980  m_nFirstLineIndent = nIndent;
981  m_bLRSpaceChanged = true;
982 }
983 
984 inline void HTMLAttrContext::GetMargins( sal_uInt16& nLeft,
985  sal_uInt16& nRight,
986  short& nIndent ) const
987 {
988  if( m_bLRSpaceChanged )
989  {
990  nLeft = m_nLeftMargin;
991  nRight = m_nRightMargin;
992  nIndent = m_nFirstLineIndent;
993  }
994 }
995 
996 inline void HTMLAttrContext::SetULSpace( sal_uInt16 nUpper, sal_uInt16 nLower )
997 {
998  m_nUpperSpace = nUpper;
999  m_nLowerSpace = nLower;
1000  m_bULSpaceChanged = true;
1001 }
1002 
1003 inline void HTMLAttrContext::GetULSpace( sal_uInt16& rUpper,
1004  sal_uInt16& rLower ) const
1005 {
1006  if( m_bULSpaceChanged )
1007  {
1008  rUpper = m_nUpperSpace;
1009  rLower = m_nLowerSpace;
1010  }
1011 }
1012 
1013 inline bool SwHTMLParser::HasStyleOptions( std::u16string_view rStyle,
1014  std::u16string_view rId,
1015  std::u16string_view rClass,
1016  const OUString *pLang,
1017  const OUString *pDir )
1018 {
1019  return !rStyle.empty() || !rId.empty() || !rClass.empty() ||
1020  (pLang && !pLang->isEmpty()) || (pDir && !pDir->isEmpty());
1021 }
1022 
1023 class SwTextFootnote;
1024 
1026 {
1027  OUString sName;
1029  SwHTMLTextFootnote(const OUString &rName, SwTextFootnote* pInTextFootnote)
1030  : sName(rName)
1031  , pTextFootnote(pInTextFootnote)
1032  {
1033  }
1034 };
1035 
1037 {
1038  std::vector<SwHTMLTextFootnote> aTextFootnotes;
1039 
1040  OUString sName;
1041  OUString sContent; // information for the last footnote
1042  bool bEndNote;
1043  bool bFixed;
1044 };
1045 
1046 #endif
1047 
1048 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 IncGrfsThatResizeTable()
Definition: htmltab.cxx:3177
void SetNodeNum(sal_uInt8 nLevel)
void NewDefList()
Definition: swhtml.cxx:4295
std::vector< SwPending > m_vPendingStack
Definition: swhtml.hxx:390
Starts a section of nodes in the document model.
Definition: node.hxx:311
void GetULSpace(sal_uInt16 &rUpper, sal_uInt16 &rLower) const
Definition: swhtml.hxx:1003
SwHTMLFrameFormatListener(SwFrameFormat *pFrameFormat)
Definition: swhtml.cxx:2698
bool EndSection(bool bLFStripped=false)
Definition: htmlsect.cxx:516
void EndSelect()
Definition: htmlform.cxx:2352
static void SetSpace(const Size &rPixSpace, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo, SfxItemSet &rFlyItemSet)
Definition: htmlplug.cxx:241
SwViewShell * CheckActionViewShell()
Definition: swhtml.cxx:2683
virtual void Notify(const SfxHint &) override
Definition: swhtml.cxx:946
void ShowStatline()
Definition: swhtml.cxx:2566
void NewTextArea()
Definition: htmlform.cxx:1856
bool m_bSelect
Definition: swhtml.hxx:463
void SetAnchorAndAdjustment(sal_Int16 eVertOri, sal_Int16 eHoriOri, const SvxCSS1PropertyInfo &rPropInfo, SfxItemSet &rFrameSet)
Definition: htmlgrin.cxx:149
void SplitPREListingXMP(HTMLAttrContext *pCntxt)
Definition: htmlctxt.cxx:751
bool IsFinishPREListingXMP() const
Definition: swhtml.hxx:282
void DeleteSection(SwStartNode *pSttNd)
Definition: htmltab.cxx:4944
sal_uInt16 m_nMissingImgMaps
Definition: swhtml.hxx:416
SwFrameFormat * GetFrameFormat()
Definition: swhtml.hxx:341
bool HasSaveDocContext() const
Definition: swhtml.hxx:275
void FinishFootEndNote()
Definition: htmlftn.cxx:188
virtual void Continue(HtmlTokenId nToken) override
Definition: swhtml.cxx:604
Marks a position in the document model.
Definition: pam.hxx:35
void SetControlSize(const css::uno::Reference< css::drawing::XShape > &rShape, const Size &rTextSz, bool bMinWidth, bool bMinHeight)
Definition: htmlform.cxx:620
std::unique_ptr< HTMLAttrContext_SaveDoc > m_pSaveDocContext
Definition: swhtml.hxx:211
void InsertImage()
Definition: htmlgrin.cxx:316
void EndTextFormatColl(HtmlTokenId nToken)
Definition: swhtml.cxx:4254
void SetAttr(bool bChkEnd=true, bool bBeforeTable=false, std::deque< std::unique_ptr< HTMLAttr >> *pPostIts=nullptr)
Definition: swhtml.hxx:505
void EndForm(bool bAppend=true)
Definition: htmlform.cxx:1368
sal_Int32 GetSttCnt() const
Definition: swhtml.hxx:166
std::vector< sal_uInt16 > m_aBaseFontStack
Definition: swhtml.hxx:370
bool m_bIgnoreRawData
Definition: swhtml.hxx:445
void FillEndNoteInfo(const OUString &rContent)
Definition: htmlftn.cxx:114
HTMLAttrs m_aSetAttrTab
Definition: swhtml.hxx:376
HTMLOptionEnum< SvxAdjust > const aHTMLPAlignTable[]
Definition: swhtml.cxx:141
bool m_bFixMarqueeWidth
Definition: swhtml.hxx:448
SdrObject * m_pMarquee
Definition: swhtml.hxx:400
void FixHeaderFooterDistance(bool bHeader, const SwPosition *pOldPos)
Definition: htmlsect.cxx:426
bool m_bInsAtStart
Definition: swhtml.hxx:135
void EndHeading()
Definition: swhtml.cxx:4124
ImageMap * FindImageMap(const OUString &rURL) const
Definition: htmlgrin.cxx:94
bool m_bInFloatingFrame
Definition: swhtml.hxx:440
Size m_aHTMLPageSize
Definition: swhtml.hxx:406
std::vector< sal_uInt16 > m_aFontStack
Definition: swhtml.hxx:372
SwStartNode * InsertTempTableCaptionSection()
Definition: htmltab.cxx:2640
void InsertParam()
Definition: htmlplug.cxx:987
sal_uInt16 m_nSelectEntryCnt
Definition: swhtml.hxx:420
OUString m_aPathToFile
Definition: swhtml.hxx:356
void Show()
Definition: swhtml.cxx:2535
bool FileDownload(const OUString &rURL, OUString &rStr)
Definition: htmlcss1.cxx:1694
sal_uInt16 GetDfltTextFormatColl() const
Definition: swhtml.hxx:251
HTMLAttr * pAdjust
Definition: swhtml.hxx:82
std::shared_ptr< HTMLTable > BuildTable(SvxAdjust eCellAdjust, bool bIsParentHead=false, bool bHasParentSection=true, bool bHasToFlow=false)
Definition: htmltab.cxx:4966
void EndScript()
Definition: htmlbas.cxx:70
SwNodeIndex nNode
Definition: pam.hxx:37
bool IsReadingHeaderOrFooter() const
Definition: swhtml.hxx:944
std::unique_ptr< SwHTMLFootEndNote_Impl > m_pFootEndNoteImpl
Definition: swhtml.hxx:404
void SaveAttrTab(std::shared_ptr< HTMLAttrTable > const &rNewAttrTab)
Definition: swhtml.cxx:3287
HTMLOptionEnum< sal_Int16 > const aHTMLImgVAlignTable[]
Definition: htmlgrin.cxx:81
void InsertBookmark(const OUString &rName)
Definition: htmlgrin.cxx:1350
void NewPara()
Definition: swhtml.cxx:3915
HTMLAttr * pBoldCJK
Definition: swhtml.hxx:82
sal_uIntPtr sal_uLong
bool m_bHeaderOrFooter
Definition: swhtml.hxx:236
std::unique_ptr< SfxItemSet > m_pFrameItemSet
Definition: swhtml.hxx:212
void NewNumberBulletList(HtmlTokenId nToken)
HTMLAttr * pSplit
Definition: swhtml.hxx:82
#define MINLAY
Definition: swtypes.hxx:66
HTMLAttr * GetNext() const
Definition: swhtml.hxx:175
Base class of all fields.
Definition: fldbas.hxx:289
const SwStartNode * InsertTableSection(const SwStartNode *pPrevStNd)
Definition: htmltab.cxx:2532
OUString m_aUnknownToken
Definition: swhtml.hxx:366
sal_uInt16 m_nTextFormatColl
Definition: swhtml.hxx:216
void NewAttr(const std::shared_ptr< HTMLAttrTable > &rAttrTab, HTMLAttr **ppAttr, const SfxPoolItem &rItem)
Definition: swhtml.cxx:3051
sal_uInt16 m_nBaseFontStMin
Definition: swhtml.hxx:411
void SetRestartListing(bool bSet)
Definition: swhtml.hxx:290
Definition: doc.hxx:186
SwViewShell * CallEndAction(bool bChkAction=false, bool bChkPtr=true)
Definition: swhtml.cxx:2628
JumpToMarks m_eJumpTo
Definition: swhtml.hxx:424
std::unique_ptr< HTMLTableCnts > InsertTableContents(bool bHead)
Definition: htmltab.cxx:3138
bool m_bDocInitalized
Definition: swhtml.hxx:435
void AddScriptSource()
Definition: htmlbas.cxx:179
HTMLAttrContexts m_aContexts
Definition: swhtml.hxx:379
const SfxItemSet * GetFrameItemSet() const
Definition: swhtml.hxx:278
bool m_bKeepUnknown
Definition: swhtml.hxx:442
const OUString & GetClass() const
Definition: swhtml.hxx:253
sal_uInt32 m_aFontHeights[7]
Definition: swhtml.hxx:408
HTMLAttr * pBox
Definition: swhtml.hxx:82
bool InsertEmbed()
Definition: htmlplug.cxx:347
const SwNodeIndex & GetSttPara() const
Definition: swhtml.hxx:163
HTMLAttr * pLanguage
Definition: swhtml.hxx:82
sal_Int32 StripTrailingLF()
Definition: htmltab.cxx:2654
bool m_bXHTML
Definition: swhtml.hxx:481
OUString m_sBaseURL
Definition: swhtml.hxx:357
void NewForm(bool bAppend=true)
Definition: htmlform.cxx:1207
std::vector< std::unique_ptr< HTMLAttrContext > > HTMLAttrContexts
Definition: swhtml.hxx:303
std::unique_ptr< SwPendingData > pData
Definition: swhtml.hxx:960
HTMLAttr * pKerning
Definition: swhtml.hxx:82
sal_uInt16 m_nRightMargin
Definition: swhtml.hxx:219
bool m_bReadingHeaderOrFooter
Definition: swhtml.hxx:470
bool HasAttrs() const
Definition: swhtml.hxx:265
void SplitAttrTab(const SwPosition &rNewPos)
Definition: htmlctxt.cxx:172
bool m_bUpdateDocStat
Definition: swhtml.hxx:459
std::unique_ptr< ImageMaps > m_pImageMaps
all Image-Maps that have been read
Definition: swhtml.hxx:403
OUString m_aScriptURL
Definition: swhtml.hxx:362
void InsertLink()
Definition: htmlcss1.cxx:1728
HTMLAttr * m_pNext
Definition: swhtml.hxx:141
void SetAppendMode(SwHTMLAppendMode eMode)
Definition: swhtml.hxx:296
void NewField()
Definition: htmlfld.cxx:210
void InsertComment(const OUString &rName, const char *pTag=nullptr)
Definition: htmlfld.cxx:599
bool m_isInTableStructure
Definition: swhtml.hxx:472
static void RegisterDrawObjectToTable(HTMLTable *pCurTable, SdrObject *pObj, sal_uInt8 nWidth)
Definition: htmltab.cxx:3182
TableDepthGuard(SwHTMLParser &rParser)
Definition: swhtml.hxx:881
HTMLAttr * pFontHeight
Definition: swhtml.hxx:82
SwNodeIndex * m_pSttNdIdx
Definition: swhtml.hxx:395
SvParserState
bool m_bLikePara
Definition: swhtml.hxx:136
void InsertFieldText()
Definition: htmlfld.cxx:577
HTMLAttr * pBrush
Definition: swhtml.hxx:82
SwNodeIndex m_nStartPara
Definition: swhtml.hxx:133
SvxNumType
HtmlFrameFormatFlags
Definition: swhtml.hxx:325
virtual SvParserState CallParser() override
Definition: swhtml.cxx:542
HTMLAttr * pCharBox
Definition: swhtml.hxx:82
void InsertBasicDocEvent(const OUString &aEventName, const OUString &rName, ScriptType eScrType, const OUString &rScrType)
Definition: htmlbas.cxx:226
HTMLAttr * pCharFormats
Definition: swhtml.hxx:82
void SetULSpace(sal_uInt16 nUpper, sal_uInt16 nLower)
Definition: swhtml.hxx:996
void SetMargins(sal_uInt16 nLeft, sal_uInt16 nRight, short nIndent)
Definition: swhtml.hxx:975
void InsertInput()
Definition: htmlform.cxx:1384
void NewDivision(HtmlTokenId nToken)
Definition: htmlsect.cxx:55
bool m_bBodySeen
Definition: swhtml.hxx:469
HTMLAttr * pItalic
Definition: swhtml.hxx:82
void RestoreDocContext(HTMLAttrContext *pCntxt)
Definition: htmlctxt.cxx:322
bool IsHeaderOrFooter() const
Definition: swhtml.hxx:294
bool m_bFixSelectWidth
Definition: swhtml.hxx:460
void EndTextArea()
Definition: htmlform.cxx:2081
void ClearPrev()
Definition: swhtml.hxx:180
void GetMarginsFromContext(sal_uInt16 &nLeft, sal_uInt16 &nRight, short &nIndent, bool bIgnoreCurrent=false) const
Definition: htmlcss1.cxx:2155
css::uno::Reference< css::drawing::XShape > InsertControl(const css::uno::Reference< css::form::XFormComponent > &rFormComp, const css::uno::Reference< css::beans::XPropertySet > &rFCompPropSet, const Size &rSize, sal_Int16 eVertOri, sal_Int16 eHoriOri, SfxItemSet &rCSS1ItemSet, SvxCSS1PropertyInfo &rCSS1PropInfo, const SvxMacroTableDtor &rMacroTable, const std::vector< OUString > &rUnoMacroTable, const std::vector< OUString > &rUnoMacroParamTable, bool bSetPropSet=true, bool bHidden=false)
Definition: htmlform.cxx:843
bool m_bNotifyMacroEventRead
Definition: swhtml.hxx:471
void EndDefListItem(HtmlTokenId nToken=HtmlTokenId::NONE)
Definition: swhtml.cxx:4461
SwIndex nContent
Definition: pam.hxx:38
void GetDefaultScriptType(ScriptType &rType, OUString &rTypeStr) const
Definition: htmlgrin.cxx:290
static void ResizeDrawObject(SdrObject *pObj, SwTwips nWidth)
void InsertAttrs(std::deque< std::unique_ptr< HTMLAttr >> rAttrs)
Definition: swhtml.cxx:3452
bool ParseStyleOptions(const OUString &rStyle, const OUString &rId, const OUString &rClass, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo, const OUString *pLang=nullptr, const OUString *pDir=nullptr)
Definition: htmlcss1.cxx:1855
const HTMLAttrs & GetAttrs() const
Definition: swhtml.hxx:266
std::vector< SwHTMLTextFootnote > aTextFootnotes
Definition: swhtml.hxx:1038
sal_uLong GetIndex() const
Definition: ndindex.hxx:152
DECL_LINK(AsyncCallback, void *, void)
const sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:95
HTMLAttr * pKeep
Definition: swhtml.hxx:82
void NewAnchor()
Definition: htmlgrin.cxx:1125
HtmlContextFlags
Definition: swhtml.hxx:311
SfxPoolItem & GetItem()
Definition: swhtml.hxx:172
void EndStyle()
Definition: htmlcss1.cxx:1683
void MovePageDescAttrs(SwNode *pSrcNd, sal_uLong nDestIdx, bool bFormatBreak)
Definition: htmlsect.cxx:799
void Reset(const SwNodeIndex &rSttPara, sal_Int32 nSttCnt, HTMLAttr **pHd, const std::shared_ptr< HTMLAttrTable > &rAttrTab)
Definition: swhtml.cxx:5515
void SetLikePara()
Definition: swhtml.hxx:170
bool IsRestartListing() const
Definition: swhtml.hxx:291
HTMLAttr * pDirection
Definition: swhtml.hxx:82
void EndField()
Definition: htmlfld.cxx:537
void NewCharFormat(HtmlTokenId nToken)
Definition: swhtml.cxx:4797
bool m_bViewCreated
Definition: swhtml.hxx:437
SwPaM * m_pPam
Definition: swhtml.hxx:393
void InsertDrawObject(SdrObject *pNewDrawObj, const Size &rSpace, sal_Int16 eVertOri, sal_Int16 eHoriOri, SfxItemSet &rCSS1ItemSet, SvxCSS1PropertyInfo &rCSS1PropInfo)
bool CreateContainer(const OUString &rClass, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo, HTMLAttrContext *pContext)
Definition: htmlctxt.cxx:504
void EndDivision()
Definition: htmlsect.cxx:397
bool m_bRemoveHidden
Definition: swhtml.hxx:467
HTMLAttr * pBold
Definition: swhtml.hxx:82
static OUString StripQueryFromPath(const OUString &rBase, const OUString &rPath)
Strips query and fragment from a URL path if base URL is a file:// one.
Definition: htmlplug.cxx:334
std::stack< SwOLENode * > m_aEmbeds
Non-owning pointers to already inserted OLE nodes, matching opened XHTML elements...
Definition: swhtml.hxx:488
std::vector< std::unique_ptr< SwHTMLFrameFormatListener > > m_aMoveFlyFrames
Definition: swhtml.hxx:380
void InsertBodyOptions()
Definition: htmlgrin.cxx:893
bool m_bRestartPRE
Definition: swhtml.hxx:233
ImplSVEvent * m_nEventId
Definition: swhtml.hxx:409
void EndApplet()
Definition: htmlplug.cxx:958
void InsertAttr(const SfxPoolItem &rItem, bool bInsAtStart)
Definition: swhtml.cxx:3443
bool m_bSetModEnabled
Definition: swhtml.hxx:438
HTMLAttr * pStrike
Definition: swhtml.hxx:82
void BuildTableColGroup(HTMLTable *pTable, bool bReadOptions)
Definition: htmltab.cxx:4283
std::set< OUString > m_aAllowedRTFOLEMimeTypes
Definition: swhtml.hxx:490
const SwNodeIndex & GetEndPara() const
Definition: swhtml.hxx:164
sal_Int32 m_nEndContent
Definition: swhtml.hxx:134
OUString m_sJmpMark
Definition: swhtml.hxx:368
void InsertHorzRule()
Definition: swhtml.cxx:5233
std::unique_ptr< ImportProgress > m_xProgress
Definition: swhtml.hxx:354
std::unique_ptr< SwField > m_xField
Definition: swhtml.hxx:401
void RegisterHTMLTable(HTMLTable *pNew)
Definition: swhtml.hxx:933
static void SetFrameFormatAttrs(SfxItemSet &rItemSet, HtmlFrameFormatFlags nFlags, SfxItemSet &rFrameItemSet)
Definition: htmlcss1.cxx:2078
sal_uInt16 m_nLeftMargin
Definition: swhtml.hxx:218
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
void NewSelect()
Definition: htmlform.cxx:2138
sal_uInt16 m_nDefListDeep
Definition: swhtml.hxx:413
SwNodeIndex * GetFootEndNoteSection(const OUString &rName)
Definition: htmlftn.cxx:215
HTMLAttr * pPageDesc
Definition: swhtml.hxx:82
void InsertNext(HTMLAttr *pNxt)
Definition: swhtml.hxx:176
SwNodeIndex m_nEndPara
Definition: swhtml.hxx:133
void InsertFootEndNote(const OUString &rName, bool bEndNote, bool bFixed)
Definition: htmlftn.cxx:173
HTMLAttr * pOrphans
Definition: swhtml.hxx:82
sal_uInt16 m_nFirstLineIndent
Definition: swhtml.hxx:220
void DeleteAttr(HTMLAttr *pAttr)
Definition: swhtml.cxx:3229
Style of a layout element.
Definition: frmfmt.hxx:58
std::deque< HTMLAttr * > HTMLAttrs
Definition: swhtml.hxx:74
bool m_bSpansSection
Definition: swhtml.hxx:230
bool m_bLBEntrySelected
Definition: swhtml.hxx:446
void EndTag(HtmlTokenId nToken)
Definition: swhtml.cxx:3585
SwHTMLTextFootnote(const OUString &rName, SwTextFootnote *pInTextFootnote)
Definition: swhtml.hxx:1029
void NewBasefontAttr()
Definition: swhtml.cxx:3596
std::shared_ptr< HTMLAttrTable > m_xAttrTab
Definition: swhtml.hxx:140
HTMLAttr * pFontColor
Definition: swhtml.hxx:82
OUString m_aStyleSource
Definition: swhtml.hxx:363
sal_uInt16 m_nFontStMin
Definition: swhtml.hxx:412
std::deque< sal_Int32 > m_aMoveFlyCnts
Definition: swhtml.hxx:381
SwDoc * GetDoc() const
Definition: htmltab.cxx:1062
bool IsLRSpaceChanged() const
Definition: swhtml.hxx:257
SvxAdjust
HTMLAttr * GetPrev() const
Definition: swhtml.hxx:178
void EndContextAttrs(HTMLAttrContext *pContext)
Definition: htmlcss1.cxx:2229
HTMLAttr * pULSpace
Definition: swhtml.hxx:82
sal_Int32 m_nStartContent
Definition: swhtml.hxx:134
SwTextFootnote * pTextFootnote
Definition: swhtml.hxx:1028
void NewMarquee(HTMLTable *pCurTable=nullptr)
sal_uInt16 m_nLowerSpace
Definition: swhtml.hxx:223
SwHTMLParser(SwDoc *pD, SwPaM &rCursor, SvStream &rIn, const OUString &rFileName, const OUString &rBaseURL, bool bReadNewDoc, SfxMedium *pMed, bool bReadUTF8, bool bIgnoreHTMLComments, const OUString &rNamespace)
Definition: swhtml.cxx:254
void NotifyMacroEventRead()
Definition: htmlgrin.cxx:1521
void InsertFloatingFrame()
Definition: htmlplug.cxx:1020
bool HasCurrentParaBookmarks(bool bIgnoreStack=false) const
Definition: htmlgrin.cxx:1357
HtmlTokenId m_nOpenParaToken
Definition: swhtml.hxx:421
void NewNumberBulletListItem(HtmlTokenId nToken)
void SetHeaderOrFooter(bool bSet)
Definition: swhtml.hxx:293
OUString m_aBasicModule
Definition: swhtml.hxx:359
std::unique_ptr< SwCSS1Parser > m_pCSS1Parser
Definition: swhtml.hxx:388
bool m_bPopStack
Definition: swhtml.hxx:231
HTMLAttrs & GetAttrs()
Definition: swhtml.hxx:267
void DocumentDetected()
Definition: swhtml.cxx:955
void BuildTableRow(HTMLTable *pTable, bool bReadOptions, SvxAdjust eGrpAdjust, sal_Int16 eVertOri)
Definition: htmltab.cxx:3895
void AddParSpace()
Definition: swhtml.cxx:2457
HTMLAttrContext(HtmlTokenId nTokn, sal_uInt16 nPoolId, const OUString &rClass, bool bDfltColl=false)
Definition: htmlctxt.cxx:118
HTMLAttr * m_pPrev
Definition: swhtml.hxx:142
void DeleteFormImpl()
Definition: htmlform.cxx:586
void EndContext(HTMLAttrContext *pContext)
Definition: htmlctxt.cxx:370
virtual void AddMetaUserDefined(OUString const &i_rMetaName) override
Definition: swhtml.cxx:5562
HTMLAttr * pCharBrush
Definition: swhtml.hxx:82
size_t m_nParaCnt
Definition: swhtml.hxx:417
std::unique_ptr< HTMLAttrContext > PopContext(HtmlTokenId nToken=HtmlTokenId::NONE)
Definition: htmlcss1.cxx:2115
bool m_bUpperSpace
Definition: swhtml.hxx:450
void BuildTableCell(HTMLTable *pTable, bool bReadOptions, bool bHead)
Definition: htmltab.cxx:3188
bool GetPopStack() const
Definition: swhtml.hxx:273
void StripTrailingPara()
Definition: htmlgrin.cxx:1405
bool m_bInNoEmbed
Definition: swhtml.hxx:454
bool DoPositioning(SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo, HTMLAttrContext *pContext)
Definition: htmlctxt.cxx:466
void BuildTableSection(HTMLTable *pTable, bool bReadOptions, bool bHead)
Definition: htmltab.cxx:4095
void EndAnchor()
Definition: htmlgrin.cxx:1333
void InsertIDOption()
Definition: swhtml.cxx:5065
void SetSpansSection(bool bSet)
Definition: swhtml.hxx:269
Marks a node in the document model.
Definition: ndindex.hxx:31
bool m_bInFootEndNoteSymbol
Definition: swhtml.hxx:465
void NewHeading(HtmlTokenId nToken)
Definition: swhtml.cxx:4038
bool m_bNoParSpace
Definition: swhtml.hxx:451
sal_Int32 m_nTableDepth
Definition: swhtml.hxx:474
bool m_bFinishPREListingXMP
Definition: swhtml.hxx:232
void DeregisterHTMLTable(HTMLTable *pOld)
Definition: htmltab.cxx:1055
void RegisterFlyFrame(SwFrameFormat *pFlyFrame)
Definition: htmlgrin.cxx:276
HTMLAttr * Clone(const SwNodeIndex &rEndPara, sal_Int32 nEndCnt) const
Definition: swhtml.cxx:5504
~HTMLAttr()
Definition: swhtml.cxx:5500
HTMLAttr * pBoldCTL
Definition: swhtml.hxx:82
HTMLAttr * pBlink
Definition: swhtml.hxx:82
bool IsRestartPRE() const
Definition: swhtml.hxx:285
void InsertMarqueeText()
HTMLAttr * pFontCTL
Definition: swhtml.hxx:82
void InsertFlyFrame(const SfxItemSet &rItemSet, HTMLAttrContext *pCntxt, const OUString &rId)
Definition: htmlsect.cxx:774
bool IsVisible() const
Definition: swhtml.hxx:300
HTMLScriptLanguage m_eScriptLang
Definition: swhtml.hxx:431
void InsertParaAttrs(const SfxItemSet &rItemSet)
Definition: htmlcss1.cxx:2250
tools::Long SwTwips
Definition: swtypes.hxx:49
bool m_bULSpaceChanged
Definition: swhtml.hxx:228
void InsertCommentText(const char *pTag)
Definition: htmlfld.cxx:586
void GetMargins(sal_uInt16 &nLeft, sal_uInt16 &nRight, short &nIndent) const
Definition: swhtml.hxx:984
HTMLAttrContext_SaveDoc * GetSaveDocContext(bool bCreate=false)
Definition: htmlctxt.cxx:110
bool IsRestartXMP() const
Definition: swhtml.hxx:288
bool HasCurrentParaFlys(bool bNoSurroundOnly=false, bool bSurroundOnly=false) const
Definition: swhtml.cxx:4514
OUString m_aClass
Definition: swhtml.hxx:209
static sal_uInt16 ToTwips(sal_uInt16 nPixel)
Definition: swhtml.cxx:5028
SfxViewFrame * m_pTempViewFrame
Definition: swhtml.hxx:479
SwTwips GetCurrentBrowseWidth()
Definition: swhtml.cxx:5040
size_t m_nContextStMin
Definition: swhtml.hxx:418
void NewMultiCol(sal_uInt16 columnsFromCss=0)
Definition: htmlsect.cxx:552
SwFrameFormat * m_pFrameFormat
Definition: swhtml.hxx:338
void EndNumberBulletListItem(HtmlTokenId nToken, bool bSetColl)
HtmlTokenId
HTMLAttrs m_aAttrs
Definition: swhtml.hxx:207
void ClearFootnotesMarksInRange(const SwNodeIndex &rSttIdx, const SwNodeIndex &rEndIdx)
Definition: htmltab.cxx:4896
bool m_bIgnoreHTMLComments
Definition: swhtml.hxx:466
SwHTMLParser & m_rParser
Definition: swhtml.hxx:879
void EndNumberBulletList(HtmlTokenId nToken=HtmlTokenId::NONE)
virtual void NextToken(HtmlTokenId nToken) override
Definition: swhtml.cxx:974
void EndObject()
Definition: htmlplug.cxx:828
bool m_bOldIsHTMLMode
Definition: swhtml.hxx:433
std::unique_ptr< SwApplet_Impl > m_pAppletImpl
Definition: swhtml.hxx:386
bool PendingObjectsInPaM(SwPaM &rPam) const
Definition: htmltab.cxx:5271
OUString m_aScriptType
Definition: swhtml.hxx:361
HTMLAttr * pFontCJK
Definition: swhtml.hxx:82
void InsertFootEndNoteText()
Definition: htmlftn.cxx:209
bool IsULSpaceChanged() const
Definition: swhtml.hxx:262
bool EndSections(bool bLFStripped)
Definition: htmlsect.cxx:534
void ConnectImageMaps()
Definition: htmlgrin.cxx:111
void InsertSpacer()
Definition: swhtml.cxx:4858
void NewDefListItem(HtmlTokenId nToken)
Definition: swhtml.cxx:4425
void EndBasefontAttr()
Definition: swhtml.cxx:3677
HTMLOptionEnum< sal_Int16 > const aHTMLImgHAlignTable[]
Definition: htmlgrin.cxx:74
sal_uInt16 m_nContinue
Definition: swhtml.hxx:427
HTMLAttr(const SwPosition &rPos, const SfxPoolItem &rItem, HTMLAttr **pHd, const std::shared_ptr< HTMLAttrTable > &rAttrTab)
Definition: swhtml.cxx:5466
HTMLAttrs m_aParaAttrs
Definition: swhtml.hxx:377
bool m_bInField
Definition: swhtml.hxx:441
OUString m_aContents
Definition: swhtml.hxx:364
std::vector< std::unique_ptr< ImageMap > > ImageMaps
Definition: swhtml.hxx:307
void InsertSelectText()
Definition: htmlform.cxx:2467
const SfxPoolItem & GetItem() const
Definition: swhtml.hxx:173
bool m_bValid
Definition: swhtml.hxx:137
Direction
std::vector< std::unique_ptr< SwTableBox > > m_aOrphanedTableBoxes
Definition: swhtml.hxx:384
void SetPopStack(bool bSet)
Definition: swhtml.hxx:272
static SvxNumType GetNumType(const OUString &rStr, SvxNumType eDfltType)
Definition: htmlfld.cxx:198
unsigned char sal_uInt8
void InsertTextAreaText(HtmlTokenId nToken)
Definition: htmlform.cxx:2108
HtmlTokenId GetToken() const
Definition: swhtml.hxx:248
OUString m_aScriptSource
Definition: swhtml.hxx:360
bool m_bDefaultTextFormatColl
Definition: swhtml.hxx:229
void GetULSpaceFromContext(sal_uInt16 &rUpper, sal_uInt16 &rLower) const
Definition: htmlcss1.cxx:2196
void ClearContext(HTMLAttrContext *pContext)
Definition: htmlctxt.cxx:419
HTMLAttr * pFontHeightCTL
Definition: swhtml.hxx:82
bool CanRemoveNode(sal_uLong nNodeIdx) const
Definition: swhtml.cxx:598
void SetTextCollAttrs(HTMLAttrContext *pContext=nullptr)
Definition: swhtml.cxx:4586
sal_Int32 GetIndex() const
Definition: index.hxx:91
SwHTMLNumRuleInfo & GetNumInfo()
Definition: swhtml.hxx:555
void BuildTableCaption(HTMLTable *pTable)
Definition: htmltab.cxx:4510
std::vector< HTMLTable * > m_aTables
Definition: swhtml.hxx:397
HTMLAttr * pWidows
Definition: swhtml.hxx:82
bool EndAttr(HTMLAttr *pAttr, bool bChkEmpty=true)
Definition: swhtml.cxx:3067
HTMLAttr * pBreak
Definition: swhtml.hxx:82
void NewStdAttr(HtmlTokenId nToken)
Definition: swhtml.cxx:3462
SvxBrushItem * CreateBrushItem(const Color *pColor, const OUString &rImageURL, const OUString &rStyle, const OUString &rId, const OUString &rClass)
Definition: htmltab.cxx:2694
bool m_bRestartXMP
Definition: swhtml.hxx:234
bool m_bRestartListing
Definition: swhtml.hxx:235
SwHTMLForm_Impl * m_pFormImpl
Definition: swhtml.hxx:399
void SetAttr_(bool bChkEnd, bool bBeforeTable, std::deque< std::unique_ptr< HTMLAttr >> *pPostIts)
Definition: swhtml.cxx:2710
HTMLAttr * pFontHeightCJK
Definition: swhtml.hxx:82
sal_uInt16 m_nFontStHeadStart
Definition: swhtml.hxx:414
void InsertLineBreak()
Definition: swhtml.cxx:5083
void EndDefList()
Definition: swhtml.cxx:4398
void SetVisible(bool bVisible)
Definition: swhtml.hxx:299
HTMLAttr ** GetAttrTabEntry(sal_uInt16 nWhich)
Definition: htmlcss1.cxx:1541
HTMLAttr * pLRSpace
Definition: swhtml.hxx:82
bool m_bReqIF
Definition: swhtml.hxx:482
std::unique_ptr< SwHTMLNumRuleInfo > m_pNumRuleInfo
Definition: swhtml.hxx:389
virtual ~SwHTMLParser() override
Definition: swhtml.cxx:454
static void SetVarSize(SvxCSS1PropertyInfo const &rPropInfo, SfxItemSet &rFlyItemSet, SwTwips nDfltWidth=MINLAY, sal_uInt8 nDefaultPercentWidth=0)
Definition: htmlcss1.cxx:2039
HTMLAttr * pDropCap
Definition: swhtml.hxx:82
void SetFinishPREListingXMP(bool bSet)
Definition: swhtml.hxx:281
void SetRestartXMP(bool bSet)
Definition: swhtml.hxx:287
OUString m_aBasicLib
Definition: swhtml.hxx:358
size_t m_nContextStAttrMin
Definition: swhtml.hxx:419
void RestoreAttrTab(std::shared_ptr< HTMLAttrTable > const &rNewAttrTab)
Definition: swhtml.cxx:3413
void NewScript()
Definition: htmlbas.cxx:58
bool m_bTextArea
Definition: swhtml.hxx:461
std::shared_ptr< HTMLTable > m_xTable
Definition: swhtml.hxx:398
void NewFontAttr(HtmlTokenId nToken)
Definition: swhtml.cxx:3686
sal_uInt16 m_nUpperSpace
Definition: swhtml.hxx:222
bool m_bLRSpaceChanged
Definition: swhtml.hxx:227
SvxAdjust m_eParaAdjust
Definition: swhtml.hxx:430
bool IsReqIF() const
Definition: htmltab.cxx:1067
OUStringBuffer m_sTitle
Definition: swhtml.hxx:365
HTMLAttr * pItalicCJK
Definition: swhtml.hxx:82
HTMLScriptLanguage
void FillFootNoteInfo(const OUString &rContent)
Definition: htmlftn.cxx:121
void Invalidate()
Definition: swhtml.hxx:192
const SwFormatColl * GetCurrFormatColl() const
Definition: swhtml.cxx:4580
OUString m_InfoNames[4]
the names corresponding to the DOCINFO field subtypes INFO[1-4]
Definition: swhtml.hxx:477
HTMLAttr * pItalicCTL
Definition: swhtml.hxx:82
void InsertSelectOption()
Definition: htmlform.cxx:2428
void SetRestartPRE(bool bSet)
Definition: swhtml.hxx:284
void GetMarginsFromContextWithNumberBullet(sal_uInt16 &nLeft, sal_uInt16 &nRight, short &nIndent) const
Definition: htmlcss1.cxx:2180
sal_uInt16 m_nSBModuleCnt
Definition: swhtml.hxx:415
sal_Int32 GetEndCnt() const
Definition: swhtml.hxx:167
void SetStart(const SwPosition &rPos)
Definition: swhtml.hxx:967
virtual ~SwPendingData()
Definition: swhtml.hxx:954
void SetHead(HTMLAttr **ppHd, const std::shared_ptr< HTMLAttrTable > &rAttrTab)
Definition: swhtml.hxx:182
ScriptType
std::shared_ptr< HTMLAttrTable > m_xAttrTab
Definition: swhtml.hxx:378
void NewStyle()
Definition: htmlcss1.cxx:1667
void ClearSaveDocContext()
Definition: htmlctxt.cxx:167
HtmlTokenId m_nToken
Definition: swhtml.hxx:214
bool m_bInFootEndNoteAnchor
Definition: swhtml.hxx:464
HTMLAttr ** m_ppHead
Definition: swhtml.hxx:143
bool AppendTextNode(SwHTMLAppendMode eMode=AM_NORMAL, bool bUpdateNum=true)
Definition: swhtml.cxx:2154
bool m_bCallNextToken
Definition: swhtml.hxx:444
sal_uInt16 GetTextFormatColl() const
Definition: swhtml.hxx:250
HTMLAttr * pLineSpacing
Definition: swhtml.hxx:82
void EndPara(bool bReal=false)
Definition: swhtml.cxx:3991
bool m_bInTitle
Definition: swhtml.hxx:456
void PushContext(std::unique_ptr< HTMLAttrContext > &rCntxt)
Definition: swhtml.hxx:569
bool m_bChkJumpMark
Definition: swhtml.hxx:458
SwHTMLAppendMode GetAppendMode() const
Definition: swhtml.hxx:297
SwViewShell * CallStartAction(SwViewShell *pVSh=nullptr, bool bChkPtr=true)
Definition: swhtml.cxx:2599
SwPending(HtmlTokenId nTkn)
Definition: swhtml.hxx:962
SwViewShell * m_pActionViewShell
Definition: swhtml.hxx:394
rtl::Reference< SwDoc > m_xDoc
Definition: swhtml.hxx:392
void ParseMoreMetaOptions()
Definition: swhtml.cxx:5393
SwHTMLAppendMode m_eAppend
Definition: swhtml.hxx:225
void NewTextFormatColl(HtmlTokenId nToken, sal_uInt16 nPoolId)
Definition: swhtml.cxx:4166
virtual void Notify(const SfxHint &) override
Definition: swhtml.cxx:2704
void SaveDocContext(HTMLAttrContext *pCntxt, HtmlContextFlags nFlags, const SwPosition *pNewPos)
Definition: htmlctxt.cxx:271
void EndFontAttr(HtmlTokenId nToken)
Definition: swhtml.cxx:3906
std::unique_ptr< SfxPoolItem > m_pItem
Definition: swhtml.hxx:139
sal_uInt32 GetSttParaIdx() const
Definition: swhtml.hxx:160
HTMLAttr * pEscapement
Definition: swhtml.hxx:82
void InsertPrev(HTMLAttr *pPrv)
Definition: swhtml.cxx:5531
HTMLAttr * pLanguageCJK
Definition: swhtml.hxx:82
HtmlTokenId nToken
Definition: swhtml.hxx:959
bool GetSpansSection() const
Definition: swhtml.hxx:270
ImageMap * m_pImageMap
Definition: swhtml.hxx:402
HTMLAttr * pCaseMap
Definition: swhtml.hxx:82
static void SetFixSize(const Size &rPixSize, const Size &rTwipDfltSize, bool bPercentWidth, bool bPercentHeight, SvxCSS1PropertyInfo const &rPropInfo, SfxItemSet &rFlyItemSet)
Definition: htmlplug.cxx:163
static bool HasStyleOptions(std::u16string_view rStyle, std::u16string_view rId, std::u16string_view rClass, const OUString *pLang=nullptr, const OUString *pDir=nullptr)
Definition: swhtml.hxx:1013
HTMLAttr * pINetFormat
Definition: swhtml.hxx:82
HTMLAttr * pLanguageCTL
Definition: swhtml.hxx:82
OUString m_aBulletGrfs[MAXLEVEL]
Definition: swhtml.hxx:367
SwHTMLAppendMode
Definition: swhtml.hxx:197
HTMLAttr * pUnderline
Definition: swhtml.hxx:82
bool IsLikePara() const
Definition: swhtml.hxx:169
HTMLAttr * pFont
Definition: swhtml.hxx:82
Base class of the Writer document model elements.
Definition: node.hxx:79
bool m_bTAIgnoreNewPara
Definition: swhtml.hxx:447
virtual bool ParseMetaOptions(const css::uno::Reference< css::document::XDocumentProperties > &, SvKeyValueIterator *) override
Definition: swhtml.cxx:5548
sal_uInt32 GetEndParaIdx() const
Definition: swhtml.hxx:161