diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-03 15:52:41 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-03 21:12:00 +0000 |
commit | bf1cf346ba28a9eab0d2ea490868c51040ee2bc4 (patch) | |
tree | c1986792d22464cb308fb4d29980fea25c688362 /xfa/fxfa/parser/cxfa_strokedata.h | |
parent | fa50df5605a14ca4c9ba440506685981f1c8b04b (diff) | |
download | pdfium-bf1cf346ba28a9eab0d2ea490868c51040ee2bc4.tar.xz |
Convert CXFA_StrokeData to CXFA_Stroke
This CL changes CXFA_StrokeData to CXFA_Stroke and changes the
inheritance form CXFA_DataData to CXFA_Node. The CXFA_EdgeData and
CXFA_CornerData classes are removed and the node equivalents are changed
to inherit from CXFA_Stroke.
Change-Id: I8aa4365a8ed79c29c3a4c34879abe898a188b7de
Reviewed-on: https://pdfium-review.googlesource.com/22151
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_strokedata.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_strokedata.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/xfa/fxfa/parser/cxfa_strokedata.h b/xfa/fxfa/parser/cxfa_strokedata.h deleted file mode 100644 index 5ac7820239..0000000000 --- a/xfa/fxfa/parser/cxfa_strokedata.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef XFA_FXFA_PARSER_CXFA_STROKEDATA_H_ -#define XFA_FXFA_PARSER_CXFA_STROKEDATA_H_ - -#include "core/fxcrt/fx_system.h" -#include "core/fxge/fx_dib.h" -#include "xfa/fxfa/fxfa_basic.h" -#include "xfa/fxfa/parser/cxfa_datadata.h" - -enum StrokeSameStyle { - XFA_STROKE_SAMESTYLE_NoPresence = 1, - XFA_STROKE_SAMESTYLE_Corner = 2 -}; - -class CXFA_Node; - -class CXFA_StrokeData : public CXFA_DataData { - public: - CXFA_StrokeData() : CXFA_StrokeData(nullptr) {} - explicit CXFA_StrokeData(CXFA_Node* pNode) : CXFA_DataData(pNode) {} - - bool IsCorner() const { return GetElementType() == XFA_Element::Corner; } - bool IsVisible() const; - bool IsInverted() const; - - XFA_AttributeEnum GetCapType() const; - XFA_AttributeEnum GetStrokeType() const; - XFA_AttributeEnum GetJoinType() const; - float GetRadius() const; - float GetThickness() const; - - CXFA_Measurement GetMSThickness() const; - void SetMSThickness(CXFA_Measurement msThinkness); - - FX_ARGB GetColor() const; - void SetColor(FX_ARGB argb); - - bool SameStyles(CXFA_StrokeData stroke, uint32_t dwFlags) const; -}; - -#endif // XFA_FXFA_PARSER_CXFA_STROKEDATA_H_ |