Fix warnings in android build, fix font rendering issue, fix issue 357588: wrong...
[pdfium.git] / core / src / reflow / reflowengine.cpp
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 #include "../../include/reflow/reflowengine.h"
8 #include "reflowedpage.h"
9 IPDF_ReflowedPage* IPDF_ReflowedPage::Create()
10 {
11     CPDF_ReflowedPage* pRefPage = FX_NEW CPDF_ReflowedPage(NULL);
12     return pRefPage;
13 }
14 IPDF_ReflowedPage* Create_ReflowPage()
15 {
16     return IPDF_ReflowedPage::Create();
17 }
18 IPDF_ProgressiveReflowPageParser* Create_ReflowPageParser()
19 {
20     return IPDF_ProgressiveReflowPageParser::Create();
21 }
22 IPDF_ProgressiveReflowPageParser* IPDF_ProgressiveReflowPageParser::Create()
23 {
24     CPDF_ProgressiveReflowPageParser* pParser = FX_NEW CPDF_ProgressiveReflowPageParser;
25     if (NULL == pParser) {
26         return NULL;
27     }
28     pParser->Init();
29     return pParser;
30 }
31 IPDF_ProgressiveReflowPageRender* Create_ReflowPageRender()
32 {
33     return IPDF_ProgressiveReflowPageRender::Create();
34 }
35 IPDF_ProgressiveReflowPageRender* IPDF_ProgressiveReflowPageRender::Create()
36 {
37     return FX_NEW CPDF_ProgressiveReflowPageRender;
38 }