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