LibreOffice Module sc (master) 1
Classes | Typedefs | Enumerations | Functions | Variables
htmlpars.hxx File Reference
#include <memory>
#include <map>
#include <optional>
#include <stack>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#include <o3tl/sorted_vector.hxx>
#include <rangelst.hxx>
#include "eeparser.hxx"
Include dependency graph for htmlpars.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScHTMLStyles
 Collection of HTML style data parsed from the content of <style> elements. More...
 
class  ScHTMLParser
 Base class for HTML parser classes. More...
 
struct  ScHTMLTableStackEntry
 
struct  ScHTMLAdjustStackEntry
 
class  ScHTMLLayoutParser
 
struct  ScHTMLPos
 A 2D cell position in an HTML table. More...
 
struct  ScHTMLSize
 A 2D cell size in an HTML table. More...
 
struct  ScHTMLEntry
 A single entry containing a line of text or representing a table. More...
 
struct  ScHTMLTableAutoId
 This struct handles creation of unique table identifiers. More...
 
class  ScHTMLTable
 Stores data for one table in an HTML document. More...
 
class  ScHTMLGlobalTable
 The "global table" representing the entire HTML document. More...
 
class  ScHTMLQueryParser
 The HTML parser for data queries. More...
 

Typedefs

typedef o3tl::sorted_vector< sal_uLongScHTMLColOffset
 
typedef ::std::map< SCROW, SCROWInnerMap
 
typedef ::std::map< sal_uInt16, InnerMap * > OuterMap
 
typedef sal_uInt16 ScHTMLTableId
 Type for a unique identifier for each table. More...
 

Enumerations

enum  ScHTMLOrient {
  tdCol = 0 ,
  tdRow = 1
}
 Declares the orientation in or for a table: column or row. More...
 

Functions

bool operator< (const ScHTMLPos &rPos1, const ScHTMLPos &rPos2)
 

Variables

const sal_uInt32 SC_HTML_FONTSIZES = 7
 
const sal_uInt16 SC_HTML_OFFSET_TOLERANCE_SMALL = 1
 
const sal_uInt16 SC_HTML_OFFSET_TOLERANCE_LARGE = 10
 
const ScHTMLTableId SC_HTML_GLOBAL_TABLE = 0
 Identifier of the "global table" (the entire HTML document). More...
 
const ScHTMLTableId SC_HTML_NO_TABLE = 0
 Used as table index for normal (non-table) entries in ScHTMLEntry structs. More...
 

Typedef Documentation

◆ InnerMap

Definition at line 149 of file htmlpars.hxx.

◆ OuterMap

typedef ::std::map<sal_uInt16, InnerMap*> OuterMap

Definition at line 150 of file htmlpars.hxx.

◆ ScHTMLColOffset

Definition at line 98 of file htmlpars.hxx.

◆ ScHTMLTableId

typedef sal_uInt16 ScHTMLTableId

Type for a unique identifier for each table.

Definition at line 228 of file htmlpars.hxx.

Enumeration Type Documentation

◆ ScHTMLOrient

Declares the orientation in or for a table: column or row.

Enumerator
tdCol 
tdRow 

Definition at line 225 of file htmlpars.hxx.

Function Documentation

◆ operator<()

bool operator< ( const ScHTMLPos rPos1,
const ScHTMLPos rPos2 
)
inline

Definition at line 255 of file htmlpars.hxx.

References ScHTMLPos::mnCol, and ScHTMLPos::mnRow.

Variable Documentation

◆ SC_HTML_FONTSIZES

const sal_uInt32 SC_HTML_FONTSIZES = 7

◆ SC_HTML_GLOBAL_TABLE

const ScHTMLTableId SC_HTML_GLOBAL_TABLE = 0

Identifier of the "global table" (the entire HTML document).

Definition at line 230 of file htmlpars.hxx.

Referenced by ScHTMLTable::GetExistingTable(), IMPL_LINK(), ScHTMLTable::PushTableEntry(), and ScHTMLImport::WriteToDocument().

◆ SC_HTML_NO_TABLE

const ScHTMLTableId SC_HTML_NO_TABLE = 0

Used as table index for normal (non-table) entries in ScHTMLEntry structs.

Definition at line 232 of file htmlpars.hxx.

Referenced by ScHTMLEntry::IsTable(), and ScHTMLTable::RecalcDocPos().

◆ SC_HTML_OFFSET_TOLERANCE_LARGE

const sal_uInt16 SC_HTML_OFFSET_TOLERANCE_LARGE = 10

Definition at line 39 of file htmlpars.hxx.

Referenced by ScHTMLLayoutParser::TableOn().

◆ SC_HTML_OFFSET_TOLERANCE_SMALL

const sal_uInt16 SC_HTML_OFFSET_TOLERANCE_SMALL = 1

Definition at line 38 of file htmlpars.hxx.