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