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_cssstylerule.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_CSSSTYLERULE_H_
8#define CORE_FXCRT_CSS_CFX_CSSSTYLERULE_H_
9
10#include <memory>
11#include <vector>
12
13#include "core/fxcrt/css/cfx_cssdeclaration.h"
14#include "core/fxcrt/css/cfx_cssselector.h"
15
17 public:
20
22 CFX_CSSSelector* GetSelectorList(size_t index) const;
24
25 void SetSelector(std::vector<std::unique_ptr<CFX_CSSSelector>>* list);
26
27 private:
28 CFX_CSSDeclaration m_Declaration;
29 std::vector<std::unique_ptr<CFX_CSSSelector>> m_ppSelector;
30};
31
32#endif // CORE_FXCRT_CSS_CFX_CSSSTYLERULE_H_
Data(CFX_CSSSelector *pSel, CFX_CSSDeclaration *pDecl)
const std::vector< std::unique_ptr< Data > > * GetTagRuleData(const WideString &tagname) const
void SetRulesFromSheet(const CFX_CSSStyleSheet *sheet)
bool is_descendant() const
static std::unique_ptr< CFX_CSSSelector > FromString(WideStringView str)
uint32_t name_hash() const
CFX_CSSSelector(WideStringView str, std::unique_ptr< CFX_CSSSelector > next)
const CFX_CSSSelector * next_selector() const
CFX_CSSDeclaration * GetDeclaration()
CFX_CSSSelector * GetSelectorList(size_t index) const
size_t CountSelectorLists() const
void SetSelector(std::vector< std::unique_ptr< CFX_CSSSelector > > *list)