• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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 FPDFSDK_INCLUDE_FORMFILLER_FFL_UTILS_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_UTILS_H_
9 
10 #include "../../../core/include/fpdfapi/fpdf_parser.h"
11 #include "../../../core/include/fxcrt/fx_memory.h"
12 
13 #define FFL_BASE_USERUNIT			(1.0f / 72.0f)
14 
15 class CFFL_Utils
16 {
17 public:
18 	static CPDF_Rect				MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2);
19 	static CPDF_Rect				InflateRect(const CPDF_Rect & crRect, const FX_FLOAT & fSize);
20 	static CPDF_Rect				DeflateRect(const CPDF_Rect & crRect, const FX_FLOAT & fSize);
21 	static FX_BOOL					TraceObject(CPDF_Object* pObj);
22 };
23 
24 #endif  // FPDFSDK_INCLUDE_FORMFILLER_FFL_UTILS_H_
25