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_cssvaluelistparser.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_CSSVALUELISTPARSER_H_
8#define CORE_FXCRT_CSS_CFX_CSSVALUELISTPARSER_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/css/cfx_cssvalue.h"
13
15 public:
16 CFX_CSSValueListParser(const wchar_t* psz, size_t nLen, wchar_t separator);
17
19 const wchar_t** pStart,
20 size_t* nLength);
21 void UseCommaSeparator() { m_Separator = ','; }
22
23 private:
24 size_t SkipToChar(wchar_t wch);
25 size_t SkipToCharMatchingParens(wchar_t wch);
26
27 wchar_t m_Separator;
28 const wchar_t* m_pCur;
29 const wchar_t* m_pEnd;
30};
31
32#endif // CORE_FXCRT_CSS_CFX_CSSVALUELISTPARSER_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)
CFX_CSSValueListParser(const wchar_t *psz, size_t nLen, wchar_t separator)
bool NextValue(CFX_CSSValue::PrimitiveType *eType, const wchar_t **pStart, size_t *nLength)
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