Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_cssrulecollection.h
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FXCRT_CSS_CFX_CSSRULECOLLECTION_H_
8#define CORE_FXCRT_CSS_CFX_CSSRULECOLLECTION_H_
9
10#include <map>
11#include <memory>
12#include <vector>
13
14#include "core/fxcrt/unowned_ptr.h"
15#include "core/fxcrt/widestring.h"
16
18class CFX_CSSSelector;
21
23 public:
32
35
36 void SetRulesFromSheet(const CFX_CSSStyleSheet* sheet);
37
39 const WideString& tagname) const;
40
41 private:
42 void AddRule(CFX_CSSStyleRule* pRule);
43
44 std::map<uint32_t, std::vector<std::unique_ptr<Data>>> m_TagRules;
45};
46
47#endif // CORE_FXCRT_CSS_CFX_CSSRULECOLLECTION_H_
CFX_CSSFontVariant
Definition cfx_css.h:82
CFX_CSSFontStyle
Definition cfx_css.h:57
CFX_CSSDisplay
Definition cfx_css.h:48
CFX_CSSVerticalAlign
Definition cfx_css.h:70
CFX_CSSTextAlign
Definition cfx_css.h:62
CFX_CSSPropertyValue
Definition cfx_css.h:35
CFX_CSSProperty
Definition cfx_css.h:28
CFX_CSSTEXTDECORATION
Definition cfx_css.h:87
static const Property * GetPropertyByEnum(CFX_CSSProperty property)
static const Color * GetColorByName(WideStringView wsName)
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
static const Property * GetPropertyByName(WideStringView name)
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
CFX_CSSNumberValue(Unit unit, float value)
float Apply(float percentBase) const
~CFX_CSSNumberValue() override
UnownedPtr< CFX_CSSDeclaration > const pDeclaration
Data(CFX_CSSSelector *pSel, CFX_CSSDeclaration *pDecl)
UnownedPtr< CFX_CSSSelector > const pSelector
const std::vector< std::unique_ptr< Data > > * GetTagRuleData(const WideString &tagname) const
void SetRulesFromSheet(const CFX_CSSStyleSheet *sheet)
void SetUAStyleSheet(std::unique_ptr< CFX_CSSStyleSheet > pSheet)
void ComputeStyle(const std::vector< const CFX_CSSDeclaration * > &declArray, const WideString &styleString, const WideString &alignString, CFX_CSSComputedStyle *pDestStyle)
void SetDefaultFontSize(float fFontSize)
RetainPtr< CFX_CSSComputedStyle > CreateComputedStyle(const CFX_CSSComputedStyle *pParentStyle)
std::vector< const CFX_CSSDeclaration * > MatchDeclarations(const WideString &tagname)
const wchar_t * name
Definition cfx_cssdata.h:35
CFX_CSSNumberValue::Unit type
Definition cfx_cssdata.h:31
const wchar_t * value
Definition cfx_cssdata.h:30
CFX_CSSPropertyValue eName
Definition cfx_cssdata.h:25
CFX_CSSValueTypeMask dwTypes
Definition cfx_cssdata.h:21
CFX_CSSProperty eName
Definition cfx_cssdata.h:19