Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Unified Diff: xfa/fxfa/parser/cxfa_containerlayoutitem.h

Issue 2170473002: Rename xfa_doclayout and xfa_document_layout_imp files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_parser_I
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/fxfa/parser/cxfa_containerlayoutitem.h
diff --git a/xfa/fxfa/parser/cxfa_containerlayoutitem.h b/xfa/fxfa/parser/cxfa_containerlayoutitem.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3d6bfd81a8582a9f3367b2cf526df0e22961dc1
--- /dev/null
+++ b/xfa/fxfa/parser/cxfa_containerlayoutitem.h
@@ -0,0 +1,28 @@
+// 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_CONTAINERLAYOUTITEM_H_
+#define XFA_FXFA_PARSER_CXFA_CONTAINERLAYOUTITEM_H_
+
+#include "xfa/fxfa/parser/cxfa_layoutitem.h"
+
+class CXFA_ContainerLayoutItem : public CXFA_LayoutItem {
+ public:
+ CXFA_ContainerLayoutItem(CXFA_Node* pNode);
+
+ CXFA_LayoutProcessor* GetLayout() const;
+ int32_t GetPageIndex() const;
+ void GetPageSize(CFX_SizeF& size) const;
+ CXFA_Node* GetMasterPage() const;
+
+ CXFA_Node* m_pOldSubform;
+};
+
+inline CXFA_ContainerLayoutItem* ToContainerLayoutItem(CXFA_LayoutItem* pItem) {
+ return pItem ? pItem->AsContainerLayoutItem() : nullptr;
+}
+
+#endif // XFA_FXFA_PARSER_CXFA_CONTAINERLAYOUTITEM_H_

Powered by Google App Engine
This is Rietveld 408576698