• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
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 XFA_FXFA_PARSER_CXFA_CAPTION_H_
8 #define XFA_FXFA_PARSER_CXFA_CAPTION_H_
9 
10 #include "xfa/fxfa/parser/cxfa_node.h"
11 
12 class CXFA_Font;
13 class CXFA_Margin;
14 class CXFA_Value;
15 
16 class CXFA_Caption final : public CXFA_Node {
17  public:
18   static constexpr XFA_AttributeValue kDefaultPlacementType =
19       XFA_AttributeValue::Left;
20 
21   CXFA_Caption(CXFA_Document* doc, XFA_PacketType packet);
22   ~CXFA_Caption() override;
23 
24   bool IsVisible();
25   bool IsHidden();
26   XFA_AttributeValue GetPlacementType();
27   float GetReserve() const;
28   CXFA_Margin* GetMarginIfExists();
29   CXFA_Font* GetFontIfExists();
30   CXFA_Value* GetValueIfExists();
31 };
32 
33 #endif  // XFA_FXFA_PARSER_CXFA_CAPTION_H_
34