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