Rename core/fxcrt IFX files to Iface
This CL renames the 3 IFX files in core/fxcrt to Iface instead.
Change-Id: I7cee6836650b71bc5c5729a8147fda62f0910fe3
Reviewed-on: https://pdfium-review.googlesource.com/27970
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index d7c8640..bb8969e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -827,6 +827,7 @@
"core/fxcrt/cfx_utf8decoder.h",
"core/fxcrt/cfx_widetextbuf.cpp",
"core/fxcrt/cfx_widetextbuf.h",
+ "core/fxcrt/fileaccess_iface.h",
"core/fxcrt/fx_bidi.cpp",
"core/fxcrt/fx_bidi.h",
"core/fxcrt/fx_codepage.h",
@@ -849,10 +850,9 @@
"core/fxcrt/fx_ucddata.h",
"core/fxcrt/fx_unicode.cpp",
"core/fxcrt/fx_unicode.h",
- "core/fxcrt/ifx_fileaccess.h",
- "core/fxcrt/ifx_pauseindicator.h",
"core/fxcrt/maybe_owned.h",
"core/fxcrt/observable.h",
+ "core/fxcrt/pauseindicator_iface.h",
"core/fxcrt/retain_ptr.h",
"core/fxcrt/shared_copy_on_write.h",
"core/fxcrt/string_data_template.h",
@@ -940,7 +940,7 @@
"core/fxcrt/css/cfx_cssvaluelistparser.h",
"core/fxcrt/fx_arabic.cpp",
"core/fxcrt/fx_arabic.h",
- "core/fxcrt/ifx_locale.h",
+ "core/fxcrt/locale_iface.h",
"core/fxcrt/xml/cfx_saxcontext.cpp",
"core/fxcrt/xml/cfx_saxcontext.h",
"core/fxcrt/xml/cfx_saxreader.cpp",
diff --git a/core/fpdfapi/page/cpdf_contentparser.cpp b/core/fpdfapi/page/cpdf_contentparser.cpp
index 93151af..08923f3 100644
--- a/core/fpdfapi/page/cpdf_contentparser.cpp
+++ b/core/fpdfapi/page/cpdf_contentparser.cpp
@@ -17,7 +17,7 @@
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_stream_acc.h"
#include "core/fxcrt/fx_safe_types.h"
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
#include "third_party/base/ptr_util.h"
#define PARSE_STEP_LIMIT 100
@@ -109,7 +109,7 @@
CPDF_ContentParser::~CPDF_ContentParser() {}
-bool CPDF_ContentParser::Continue(IFX_PauseIndicator* pPause) {
+bool CPDF_ContentParser::Continue(PauseIndicatorIface* pPause) {
if (m_bIsDone)
return false;
diff --git a/core/fpdfapi/page/cpdf_contentparser.h b/core/fpdfapi/page/cpdf_contentparser.h
index c65da6d..b667837 100644
--- a/core/fpdfapi/page/cpdf_contentparser.h
+++ b/core/fpdfapi/page/cpdf_contentparser.h
@@ -37,7 +37,7 @@
return m_pParser ? m_pParser->GetCurStates() : nullptr;
}
// Returns whether to continue or not.
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
private:
enum InternalStage {
diff --git a/core/fpdfapi/page/cpdf_image.cpp b/core/fpdfapi/page/cpdf_image.cpp
index b74de62..68432bf 100644
--- a/core/fpdfapi/page/cpdf_image.cpp
+++ b/core/fpdfapi/page/cpdf_image.cpp
@@ -370,7 +370,7 @@
return false;
}
-bool CPDF_Image::Continue(IFX_PauseIndicator* pPause) {
+bool CPDF_Image::Continue(PauseIndicatorIface* pPause) {
RetainPtr<CPDF_DIBSource> pSource = m_pDIBSource.As<CPDF_DIBSource>();
CPDF_DIBSource::LoadState ret = pSource->ContinueLoadDIBSource(pPause);
if (ret == CPDF_DIBSource::LoadState::kContinue)
diff --git a/core/fpdfapi/page/cpdf_image.h b/core/fpdfapi/page/cpdf_image.h
index 43011f8..73ea92c 100644
--- a/core/fpdfapi/page/cpdf_image.h
+++ b/core/fpdfapi/page/cpdf_image.h
@@ -19,7 +19,7 @@
class CFX_DIBitmap;
class CPDF_Document;
class CPDF_Page;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class IFX_SeekableReadStream;
class CPDF_Image : public Retainable {
@@ -57,7 +57,7 @@
bool bLoadMask = false);
// Returns whether to Continue() or not.
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
RetainPtr<CFX_DIBSource> DetachBitmap();
RetainPtr<CFX_DIBSource> DetachMask();
diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.cpp b/core/fpdfapi/page/cpdf_pageobjectholder.cpp
index 51a67e8..9413ffb 100644
--- a/core/fpdfapi/page/cpdf_pageobjectholder.cpp
+++ b/core/fpdfapi/page/cpdf_pageobjectholder.cpp
@@ -33,7 +33,7 @@
return false;
}
-void CPDF_PageObjectHolder::ContinueParse(IFX_PauseIndicator* pPause) {
+void CPDF_PageObjectHolder::ContinueParse(PauseIndicatorIface* pPause) {
if (!m_pParser)
return;
diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.h b/core/fpdfapi/page/cpdf_pageobjectholder.h
index f649ef7..aac9077 100644
--- a/core/fpdfapi/page/cpdf_pageobjectholder.h
+++ b/core/fpdfapi/page/cpdf_pageobjectholder.h
@@ -17,7 +17,7 @@
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/unowned_ptr.h"
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CPDF_Dictionary;
class CPDF_Stream;
class CPDF_Document;
@@ -49,7 +49,7 @@
virtual bool IsPage() const;
- void ContinueParse(IFX_PauseIndicator* pPause);
+ void ContinueParse(PauseIndicatorIface* pPause);
bool IsParsed() const { return m_ParseState == CONTENT_PARSED; }
CPDF_PageObjectList* GetPageObjectList() { return &m_PageObjectList; }
diff --git a/core/fpdfapi/render/cpdf_dibsource.cpp b/core/fpdfapi/render/cpdf_dibsource.cpp
index 8dd53e4..d552842 100644
--- a/core/fpdfapi/render/cpdf_dibsource.cpp
+++ b/core/fpdfapi/render/cpdf_dibsource.cpp
@@ -301,7 +301,7 @@
}
CPDF_DIBSource::LoadState CPDF_DIBSource::ContinueLoadDIBSource(
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (m_Status == LoadState::kContinue)
return ContinueLoadMaskDIB(pPause);
@@ -697,7 +697,7 @@
}
CPDF_DIBSource::LoadState CPDF_DIBSource::ContinueLoadMaskDIB(
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!m_pMask)
return LoadState::kSuccess;
@@ -1087,7 +1087,7 @@
}
bool CPDF_DIBSource::SkipToScanline(int line,
- IFX_PauseIndicator* pPause) const {
+ PauseIndicatorIface* pPause) const {
return m_pDecoder && m_pDecoder->SkipToScanline(line, pPause);
}
diff --git a/core/fpdfapi/render/cpdf_dibsource.h b/core/fpdfapi/render/cpdf_dibsource.h
index e66a45e..534baab 100644
--- a/core/fpdfapi/render/cpdf_dibsource.h
+++ b/core/fpdfapi/render/cpdf_dibsource.h
@@ -51,7 +51,7 @@
bool Load(CPDF_Document* pDoc, const CPDF_Stream* pStream);
// CFX_DIBSource
- bool SkipToScanline(int line, IFX_PauseIndicator* pPause) const override;
+ bool SkipToScanline(int line, PauseIndicatorIface* pPause) const override;
uint8_t* GetBuffer() const override;
const uint8_t* GetScanline(int line) const override;
void DownSampleScanline(int line,
@@ -73,7 +73,7 @@
bool bStdCS = false,
uint32_t GroupFamily = 0,
bool bLoadMask = false);
- LoadState ContinueLoadDIBSource(IFX_PauseIndicator* pPause);
+ LoadState ContinueLoadDIBSource(PauseIndicatorIface* pPause);
RetainPtr<CPDF_DIBSource> DetachMask();
bool IsJBigImage() const;
@@ -84,7 +84,7 @@
LoadState StartLoadMask();
LoadState StartLoadMaskDIB();
bool ContinueToLoadMask();
- LoadState ContinueLoadMaskDIB(IFX_PauseIndicator* pPause);
+ LoadState ContinueLoadMaskDIB(PauseIndicatorIface* pPause);
bool LoadColorInfo(const CPDF_Dictionary* pFormResources,
const CPDF_Dictionary* pPageResources);
DIB_COMP_DATA* GetDecodeAndMaskArray(bool* bDefaultDecode, bool* bColorKey);
diff --git a/core/fpdfapi/render/cpdf_imagecacheentry.cpp b/core/fpdfapi/render/cpdf_imagecacheentry.cpp
index f0b0c33..65c9a6b 100644
--- a/core/fpdfapi/render/cpdf_imagecacheentry.cpp
+++ b/core/fpdfapi/render/cpdf_imagecacheentry.cpp
@@ -82,7 +82,7 @@
return CPDF_DIBSource::LoadState::kFail;
}
-bool CPDF_ImageCacheEntry::Continue(IFX_PauseIndicator* pPause,
+bool CPDF_ImageCacheEntry::Continue(PauseIndicatorIface* pPause,
CPDF_RenderStatus* pRenderStatus) {
CPDF_DIBSource::LoadState ret =
m_pCurBitmap.As<CPDF_DIBSource>()->ContinueLoadDIBSource(pPause);
diff --git a/core/fpdfapi/render/cpdf_imagecacheentry.h b/core/fpdfapi/render/cpdf_imagecacheentry.h
index dfeeddf..b397370 100644
--- a/core/fpdfapi/render/cpdf_imagecacheentry.h
+++ b/core/fpdfapi/render/cpdf_imagecacheentry.h
@@ -19,7 +19,7 @@
class CPDF_Document;
class CPDF_Image;
class CPDF_RenderStatus;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CPDF_ImageCacheEntry {
public:
@@ -41,7 +41,7 @@
CPDF_RenderStatus* pRenderStatus);
// Returns whether to Continue() or not.
- bool Continue(IFX_PauseIndicator* pPause, CPDF_RenderStatus* pRenderStatus);
+ bool Continue(PauseIndicatorIface* pPause, CPDF_RenderStatus* pRenderStatus);
RetainPtr<CFX_DIBSource> DetachBitmap();
RetainPtr<CFX_DIBSource> DetachMask();
diff --git a/core/fpdfapi/render/cpdf_imageloader.cpp b/core/fpdfapi/render/cpdf_imageloader.cpp
index 08aa5f1..c8f9013 100644
--- a/core/fpdfapi/render/cpdf_imageloader.cpp
+++ b/core/fpdfapi/render/cpdf_imageloader.cpp
@@ -43,7 +43,7 @@
return ret;
}
-bool CPDF_ImageLoader::Continue(IFX_PauseIndicator* pPause,
+bool CPDF_ImageLoader::Continue(PauseIndicatorIface* pPause,
CPDF_RenderStatus* pRenderStatus) {
bool ret = m_pCache ? m_pCache->Continue(pPause, pRenderStatus)
: m_pImageObject->GetImage()->Continue(pPause);
diff --git a/core/fpdfapi/render/cpdf_imageloader.h b/core/fpdfapi/render/cpdf_imageloader.h
index 497ef15..a4f313f 100644
--- a/core/fpdfapi/render/cpdf_imageloader.h
+++ b/core/fpdfapi/render/cpdf_imageloader.h
@@ -16,7 +16,7 @@
class CPDF_ImageObject;
class CPDF_PageRenderCache;
class CPDF_RenderStatus;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CPDF_ImageLoader {
public:
@@ -29,7 +29,7 @@
uint32_t GroupFamily,
bool bLoadMask,
CPDF_RenderStatus* pRenderStatus);
- bool Continue(IFX_PauseIndicator* pPause, CPDF_RenderStatus* pRenderStatus);
+ bool Continue(PauseIndicatorIface* pPause, CPDF_RenderStatus* pRenderStatus);
RetainPtr<CFX_DIBSource> m_pBitmap;
RetainPtr<CFX_DIBSource> m_pMask;
diff --git a/core/fpdfapi/render/cpdf_imagerenderer.cpp b/core/fpdfapi/render/cpdf_imagerenderer.cpp
index 1351597..3844f69 100644
--- a/core/fpdfapi/render/cpdf_imagerenderer.cpp
+++ b/core/fpdfapi/render/cpdf_imagerenderer.cpp
@@ -516,7 +516,7 @@
return false;
}
-bool CPDF_ImageRenderer::Continue(IFX_PauseIndicator* pPause) {
+bool CPDF_ImageRenderer::Continue(PauseIndicatorIface* pPause) {
if (m_Status == 2) {
if (m_pTransformer->Continue(pPause))
return true;
diff --git a/core/fpdfapi/render/cpdf_imagerenderer.h b/core/fpdfapi/render/cpdf_imagerenderer.h
index a5d9ba7..e6c6d0c 100644
--- a/core/fpdfapi/render/cpdf_imagerenderer.h
+++ b/core/fpdfapi/render/cpdf_imagerenderer.h
@@ -43,7 +43,7 @@
bool bStdCS,
int blendType);
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
bool GetResult() const { return m_Result; }
private:
diff --git a/core/fpdfapi/render/cpdf_pagerendercache.cpp b/core/fpdfapi/render/cpdf_pagerendercache.cpp
index 781f18f..a929cb6 100644
--- a/core/fpdfapi/render/cpdf_pagerendercache.cpp
+++ b/core/fpdfapi/render/cpdf_pagerendercache.cpp
@@ -110,7 +110,7 @@
return false;
}
-bool CPDF_PageRenderCache::Continue(IFX_PauseIndicator* pPause,
+bool CPDF_PageRenderCache::Continue(PauseIndicatorIface* pPause,
CPDF_RenderStatus* pRenderStatus) {
bool ret = m_pCurImageCacheEntry->Continue(pPause, pRenderStatus);
if (ret)
diff --git a/core/fpdfapi/render/cpdf_pagerendercache.h b/core/fpdfapi/render/cpdf_pagerendercache.h
index 58f0bb7..fe94bed 100644
--- a/core/fpdfapi/render/cpdf_pagerendercache.h
+++ b/core/fpdfapi/render/cpdf_pagerendercache.h
@@ -19,7 +19,7 @@
class CPDF_Page;
class CPDF_RenderStatus;
class CPDF_Stream;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CPDF_PageRenderCache {
public:
@@ -41,7 +41,7 @@
bool bLoadMask,
CPDF_RenderStatus* pRenderStatus);
- bool Continue(IFX_PauseIndicator* pPause, CPDF_RenderStatus* pRenderStatus);
+ bool Continue(PauseIndicatorIface* pPause, CPDF_RenderStatus* pRenderStatus);
private:
void ClearImageCacheEntry(CPDF_Stream* pStream);
diff --git a/core/fpdfapi/render/cpdf_progressiverenderer.cpp b/core/fpdfapi/render/cpdf_progressiverenderer.cpp
index e509a25..922e3fd 100644
--- a/core/fpdfapi/render/cpdf_progressiverenderer.cpp
+++ b/core/fpdfapi/render/cpdf_progressiverenderer.cpp
@@ -13,7 +13,7 @@
#include "core/fpdfapi/render/cpdf_pagerendercache.h"
#include "core/fpdfapi/render/cpdf_renderoptions.h"
#include "core/fpdfapi/render/cpdf_renderstatus.h"
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
#include "core/fxge/cfx_renderdevice.h"
#include "third_party/base/ptr_util.h"
@@ -35,7 +35,7 @@
}
}
-void CPDF_ProgressiveRenderer::Start(IFX_PauseIndicator* pPause) {
+void CPDF_ProgressiveRenderer::Start(PauseIndicatorIface* pPause) {
if (!m_pContext || !m_pDevice || m_Status != Ready) {
m_Status = Failed;
return;
@@ -44,7 +44,7 @@
Continue(pPause);
}
-void CPDF_ProgressiveRenderer::Continue(IFX_PauseIndicator* pPause) {
+void CPDF_ProgressiveRenderer::Continue(PauseIndicatorIface* pPause) {
while (m_Status == ToBeContinued) {
if (!m_pCurrentLayer) {
if (m_LayerIndex >= m_pContext->CountLayers()) {
diff --git a/core/fpdfapi/render/cpdf_progressiverenderer.h b/core/fpdfapi/render/cpdf_progressiverenderer.h
index ffd63a9..5703b42 100644
--- a/core/fpdfapi/render/cpdf_progressiverenderer.h
+++ b/core/fpdfapi/render/cpdf_progressiverenderer.h
@@ -17,7 +17,7 @@
class CPDF_RenderOptions;
class CPDF_RenderStatus;
class CFX_RenderDevice;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CPDF_ProgressiveRenderer {
public:
@@ -39,8 +39,8 @@
~CPDF_ProgressiveRenderer();
Status GetStatus() const { return m_Status; }
- void Start(IFX_PauseIndicator* pPause);
- void Continue(IFX_PauseIndicator* pPause);
+ void Start(PauseIndicatorIface* pPause);
+ void Continue(PauseIndicatorIface* pPause);
private:
// Maximum page objects to render before checking for pause.
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index 0a01ae0..b93c6f5 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -1124,7 +1124,7 @@
bool CPDF_RenderStatus::ContinueSingleObject(CPDF_PageObject* pObj,
const CFX_Matrix* pObj2Device,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (m_pImageRenderer) {
if (m_pImageRenderer->Continue(pPause))
return true;
diff --git a/core/fpdfapi/render/cpdf_renderstatus.h b/core/fpdfapi/render/cpdf_renderstatus.h
index 8008092..44afa10 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.h
+++ b/core/fpdfapi/render/cpdf_renderstatus.h
@@ -61,7 +61,7 @@
void RenderSingleObject(CPDF_PageObject* pObj, const CFX_Matrix* pObj2Device);
bool ContinueSingleObject(CPDF_PageObject* pObj,
const CFX_Matrix* pObj2Device,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
void ProcessClipPath(const CPDF_ClipPath& ClipPath,
const CFX_Matrix* pObj2Device);
diff --git a/core/fxcodec/codec/ccodec_jbig2module.h b/core/fxcodec/codec/ccodec_jbig2module.h
index 4fa4a81..306b079 100644
--- a/core/fxcodec/codec/ccodec_jbig2module.h
+++ b/core/fxcodec/codec/ccodec_jbig2module.h
@@ -15,7 +15,7 @@
class CJBig2_Context;
class CJBig2_Image;
class CPDF_StreamAcc;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class JBig2_DocumentContext;
class CCodec_Jbig2Context {
@@ -46,9 +46,9 @@
const RetainPtr<CPDF_StreamAcc>& global_stream,
uint8_t* dest_buf,
uint32_t dest_pitch,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS ContinueDecode(CCodec_Jbig2Context* pJbig2Context,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
private:
FXCODEC_STATUS Decode(CCodec_Jbig2Context* pJbig2Context, int result);
diff --git a/core/fxcodec/codec/ccodec_scanlinedecoder.cpp b/core/fxcodec/codec/ccodec_scanlinedecoder.cpp
index 55b9a2a..ee0d12a 100644
--- a/core/fxcodec/codec/ccodec_scanlinedecoder.cpp
+++ b/core/fxcodec/codec/ccodec_scanlinedecoder.cpp
@@ -6,7 +6,7 @@
#include "core/fxcodec/codec/ccodec_scanlinedecoder.h"
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
CCodec_ScanlineDecoder::CCodec_ScanlineDecoder()
: CCodec_ScanlineDecoder(0, 0, 0, 0, 0, 0, 0) {}
@@ -49,7 +49,7 @@
}
bool CCodec_ScanlineDecoder::SkipToScanline(int line,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (m_NextLine == line || m_NextLine == line + 1)
return false;
diff --git a/core/fxcodec/codec/ccodec_scanlinedecoder.h b/core/fxcodec/codec/ccodec_scanlinedecoder.h
index 05d5eab..a6e6d3d 100644
--- a/core/fxcodec/codec/ccodec_scanlinedecoder.h
+++ b/core/fxcodec/codec/ccodec_scanlinedecoder.h
@@ -9,7 +9,7 @@
#include "core/fxcrt/fx_system.h"
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CCodec_ScanlineDecoder {
public:
@@ -24,7 +24,7 @@
virtual ~CCodec_ScanlineDecoder();
const uint8_t* GetScanline(int line);
- bool SkipToScanline(int line, IFX_PauseIndicator* pPause);
+ bool SkipToScanline(int line, PauseIndicatorIface* pPause);
int GetWidth() { return m_OutputWidth; }
int GetHeight() { return m_OutputHeight; }
diff --git a/core/fxcodec/codec/fx_codec_jbig.cpp b/core/fxcodec/codec/fx_codec_jbig.cpp
index 543aeeb..51cae38 100644
--- a/core/fxcodec/codec/fx_codec_jbig.cpp
+++ b/core/fxcodec/codec/fx_codec_jbig.cpp
@@ -48,7 +48,7 @@
const RetainPtr<CPDF_StreamAcc>& global_stream,
uint8_t* dest_buf,
uint32_t dest_pitch,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!pJbig2Context)
return FXCODEC_STATUS_ERR_PARAMS;
@@ -71,7 +71,7 @@
FXCODEC_STATUS CCodec_Jbig2Module::ContinueDecode(
CCodec_Jbig2Context* pJbig2Context,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
int ret = pJbig2Context->m_pContext->Continue(pPause);
return Decode(pJbig2Context, ret);
}
diff --git a/core/fxcodec/jbig2/JBig2_Context.cpp b/core/fxcodec/jbig2/JBig2_Context.cpp
index 30e4aab..3d823c7 100644
--- a/core/fxcodec/jbig2/JBig2_Context.cpp
+++ b/core/fxcodec/jbig2/JBig2_Context.cpp
@@ -23,7 +23,7 @@
#include "core/fxcodec/jbig2/JBig2_PddProc.h"
#include "core/fxcodec/jbig2/JBig2_SddProc.h"
#include "core/fxcodec/jbig2/JBig2_TrdProc.h"
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
#include "third_party/base/ptr_util.h"
namespace {
@@ -70,7 +70,7 @@
CJBig2_Context::~CJBig2_Context() {}
-int32_t CJBig2_Context::decodeSequential(IFX_PauseIndicator* pPause) {
+int32_t CJBig2_Context::decodeSequential(PauseIndicatorIface* pPause) {
int32_t nRet;
if (m_pStream->getByteLeft() <= 0)
return JBIG2_END_OF_FILE;
@@ -119,7 +119,7 @@
return JBIG2_SUCCESS;
}
-int32_t CJBig2_Context::decodeRandomFirstPage(IFX_PauseIndicator* pPause) {
+int32_t CJBig2_Context::decodeRandomFirstPage(PauseIndicatorIface* pPause) {
int32_t nRet;
while (m_pStream->getByteLeft() > JBIG2_MIN_SEGMENT_SIZE) {
auto pSegment = pdfium::MakeUnique<CJBig2_Segment>();
@@ -141,7 +141,7 @@
return decodeRandom(pPause);
}
-int32_t CJBig2_Context::decodeRandom(IFX_PauseIndicator* pPause) {
+int32_t CJBig2_Context::decodeRandom(PauseIndicatorIface* pPause) {
for (; m_nSegmentDecoded < m_SegmentList.size(); ++m_nSegmentDecoded) {
int32_t nRet =
parseSegmentData(m_SegmentList[m_nSegmentDecoded].get(), pPause);
@@ -164,7 +164,7 @@
int32_t width,
int32_t height,
int32_t stride,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
int32_t nRet = 0;
if (m_pGlobalContext) {
nRet = m_pGlobalContext->decodeSequential(pPause);
@@ -184,7 +184,7 @@
return Continue(pPause);
}
-int32_t CJBig2_Context::Continue(IFX_PauseIndicator* pPause) {
+int32_t CJBig2_Context::Continue(PauseIndicatorIface* pPause) {
m_ProcessingStatus = FXCODEC_STATUS_DECODE_READY;
int32_t nRet = 0;
if (m_PauseStep <= 2) {
@@ -317,7 +317,7 @@
}
int32_t CJBig2_Context::parseSegmentData(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
int32_t ret = ProcessingParseSegmentData(pSegment, pPause);
while (m_ProcessingStatus == FXCODEC_STATUS_DECODE_TOBECONTINUE &&
m_pStream->getByteLeft() > 0) {
@@ -326,8 +326,9 @@
return ret;
}
-int32_t CJBig2_Context::ProcessingParseSegmentData(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause) {
+int32_t CJBig2_Context::ProcessingParseSegmentData(
+ CJBig2_Segment* pSegment,
+ PauseIndicatorIface* pPause) {
switch (pSegment->m_cFlags.s.type) {
case 0:
return parseSymbolDict(pSegment);
@@ -926,7 +927,7 @@
}
int32_t CJBig2_Context::parsePatternDict(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
uint8_t cFlags;
auto pPDD = pdfium::MakeUnique<CJBig2_PDDProc>();
if (m_pStream->read1Byte(&cFlags) != 0 ||
@@ -965,7 +966,7 @@
}
int32_t CJBig2_Context::parseHalftoneRegion(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
uint8_t cFlags;
JBig2RegionInfo ri;
auto pHRD = pdfium::MakeUnique<CJBig2_HTRDProc>();
@@ -1043,7 +1044,7 @@
}
int32_t CJBig2_Context::parseGenericRegion(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!m_pGRD) {
auto pGRD = pdfium::MakeUnique<CJBig2_GRDProc>();
uint8_t cFlags;
diff --git a/core/fxcodec/jbig2/JBig2_Context.h b/core/fxcodec/jbig2/JBig2_Context.h
index f86aa2e..9a47682a 100644
--- a/core/fxcodec/jbig2/JBig2_Context.h
+++ b/core/fxcodec/jbig2/JBig2_Context.h
@@ -21,7 +21,7 @@
class CJBig2_ArithDecoder;
class CJBig2_GRDProc;
class CPDF_StreamAcc;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
// Cache is keyed by the ObjNum of a stream and an index within the stream.
using CJBig2_CacheKey = std::pair<uint32_t, uint32_t>;
@@ -49,15 +49,15 @@
int32_t width,
int32_t height,
int32_t stride,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
- int32_t Continue(IFX_PauseIndicator* pPause);
+ int32_t Continue(PauseIndicatorIface* pPause);
FXCODEC_STATUS GetProcessingStatus() const { return m_ProcessingStatus; }
private:
- int32_t decodeSequential(IFX_PauseIndicator* pPause);
- int32_t decodeRandomFirstPage(IFX_PauseIndicator* pPause);
- int32_t decodeRandom(IFX_PauseIndicator* pPause);
+ int32_t decodeSequential(PauseIndicatorIface* pPause);
+ int32_t decodeRandomFirstPage(PauseIndicatorIface* pPause);
+ int32_t decodeRandom(PauseIndicatorIface* pPause);
CJBig2_Segment* findSegmentByNumber(uint32_t dwNumber);
CJBig2_Segment* findReferredSegmentByTypeAndIndex(CJBig2_Segment* pSegment,
@@ -66,17 +66,17 @@
int32_t parseSegmentHeader(CJBig2_Segment* pSegment);
int32_t parseSegmentData(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
int32_t ProcessingParseSegmentData(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
int32_t parseSymbolDict(CJBig2_Segment* pSegment);
int32_t parseTextRegion(CJBig2_Segment* pSegment);
int32_t parsePatternDict(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
int32_t parseHalftoneRegion(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
int32_t parseGenericRegion(CJBig2_Segment* pSegment,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
int32_t parseGenericRefinementRegion(CJBig2_Segment* pSegment);
int32_t parseTable(CJBig2_Segment* pSegment);
int32_t parseRegionInfo(JBig2RegionInfo* pRI);
diff --git a/core/fxcodec/jbig2/JBig2_GrdProc.cpp b/core/fxcodec/jbig2/JBig2_GrdProc.cpp
index e308ae3..faa4865 100644
--- a/core/fxcodec/jbig2/JBig2_GrdProc.cpp
+++ b/core/fxcodec/jbig2/JBig2_GrdProc.cpp
@@ -13,7 +13,7 @@
#include "core/fxcodec/jbig2/JBig2_ArithDecoder.h"
#include "core/fxcodec/jbig2/JBig2_BitStream.h"
#include "core/fxcodec/jbig2/JBig2_Image.h"
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
#include "third_party/base/ptr_util.h"
CJBig2_GRDProc::CJBig2_GRDProc()
@@ -641,7 +641,7 @@
std::unique_ptr<CJBig2_Image>* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (GBW == 0 || GBW > JBIG2_MAX_IMAGE_SIZE || GBH == 0 ||
GBH > JBIG2_MAX_IMAGE_SIZE) {
m_ProssiveStatus = FXCODEC_STATUS_DECODE_FINISH;
@@ -666,7 +666,7 @@
}
FXCODEC_STATUS CJBig2_GRDProc::decode_Arith(
- IFX_PauseIndicator* pPause,
+ PauseIndicatorIface* pPause,
CJBig2_ArithDecoder* pArithDecoder) {
int iline = m_loopIndex;
if (GBTEMPLATE == 0) {
@@ -734,7 +734,7 @@
}
FXCODEC_STATUS CJBig2_GRDProc::Continue_decode(
- IFX_PauseIndicator* pPause,
+ PauseIndicatorIface* pPause,
CJBig2_ArithDecoder* pArithDecoder) {
if (m_ProssiveStatus != FXCODEC_STATUS_DECODE_TOBECONTINUE)
return m_ProssiveStatus;
@@ -750,7 +750,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!m_pLine)
m_pLine = pImage->data();
int32_t nStride = pImage->stride();
@@ -853,7 +853,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
for (; m_loopIndex < GBH; m_loopIndex++) {
if (TPGDON) {
if (pArithDecoder->IsComplete())
@@ -911,7 +911,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!m_pLine)
m_pLine = pImage->data();
int32_t nStride = pImage->stride();
@@ -1012,7 +1012,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
for (uint32_t h = 0; h < GBH; h++) {
if (TPGDON) {
if (pArithDecoder->IsComplete())
@@ -1066,7 +1066,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!m_pLine)
m_pLine = pImage->data();
int32_t nStride = pImage->stride();
@@ -1167,7 +1167,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
for (; m_loopIndex < GBH; m_loopIndex++) {
if (TPGDON) {
if (pArithDecoder->IsComplete())
@@ -1221,7 +1221,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
if (!m_pLine)
m_pLine = pImage->data();
int32_t nStride = pImage->stride();
@@ -1308,7 +1308,7 @@
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
for (; m_loopIndex < GBH; m_loopIndex++) {
if (TPGDON) {
if (pArithDecoder->IsComplete())
diff --git a/core/fxcodec/jbig2/JBig2_GrdProc.h b/core/fxcodec/jbig2/JBig2_GrdProc.h
index 79992ad..a8329f9 100644
--- a/core/fxcodec/jbig2/JBig2_GrdProc.h
+++ b/core/fxcodec/jbig2/JBig2_GrdProc.h
@@ -17,7 +17,7 @@
class CJBig2_ArithDecoder;
class CJBig2_BitStream;
class CJBig2_Image;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
struct JBig2ArithCtx;
class CJBig2_GRDProc {
@@ -31,10 +31,10 @@
FXCODEC_STATUS Start_decode_Arith(std::unique_ptr<CJBig2_Image>* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS Start_decode_MMR(std::unique_ptr<CJBig2_Image>* pImage,
CJBig2_BitStream* pStream);
- FXCODEC_STATUS Continue_decode(IFX_PauseIndicator* pPause,
+ FXCODEC_STATUS Continue_decode(PauseIndicatorIface* pPause,
CJBig2_ArithDecoder* pArithDecoder);
FX_RECT GetReplaceRect() const { return m_ReplaceRect; }
@@ -52,44 +52,44 @@
bool UseTemplate1Opt3() const;
bool UseTemplate23Opt3() const;
- FXCODEC_STATUS decode_Arith(IFX_PauseIndicator* pPause,
+ FXCODEC_STATUS decode_Arith(PauseIndicatorIface* pPause,
CJBig2_ArithDecoder* pArithDecoder);
FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template0_unopt(
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template1_opt3(CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template1_unopt(
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template2_opt3(CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template2_unopt(
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template3_opt3(CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
FXCODEC_STATUS decode_Arith_Template3_unopt(
CJBig2_Image* pImage,
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
std::unique_ptr<CJBig2_Image> decode_Arith_Template0_opt3(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext);
diff --git a/core/fxcodec/jbig2/JBig2_HtrdProc.cpp b/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
index bd1d92f..ec692ca 100644
--- a/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
+++ b/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
@@ -17,7 +17,7 @@
std::unique_ptr<CJBig2_Image> CJBig2_HTRDProc::decode_Arith(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
std::unique_ptr<CJBig2_Image> HSKIP;
if (HENABLESKIP == 1) {
HSKIP = pdfium::MakeUnique<CJBig2_Image>(HGW, HGH);
diff --git a/core/fxcodec/jbig2/JBig2_HtrdProc.h b/core/fxcodec/jbig2/JBig2_HtrdProc.h
index ed7cdbf..b61a08c 100644
--- a/core/fxcodec/jbig2/JBig2_HtrdProc.h
+++ b/core/fxcodec/jbig2/JBig2_HtrdProc.h
@@ -15,14 +15,14 @@
class CJBig2_ArithDecoder;
class CJBig2_BitStream;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
struct JBig2ArithCtx;
class CJBig2_HTRDProc {
public:
std::unique_ptr<CJBig2_Image> decode_Arith(CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
std::unique_ptr<CJBig2_Image> decode_MMR(CJBig2_BitStream* pStream);
diff --git a/core/fxcodec/jbig2/JBig2_PddProc.cpp b/core/fxcodec/jbig2/JBig2_PddProc.cpp
index ee891cc..68963dc 100644
--- a/core/fxcodec/jbig2/JBig2_PddProc.cpp
+++ b/core/fxcodec/jbig2/JBig2_PddProc.cpp
@@ -16,7 +16,7 @@
std::unique_ptr<CJBig2_PatternDict> CJBig2_PDDProc::decode_Arith(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
uint32_t GRAY;
std::unique_ptr<CJBig2_Image> BHDC;
auto pDict = pdfium::MakeUnique<CJBig2_PatternDict>(GRAYMAX + 1);
diff --git a/core/fxcodec/jbig2/JBig2_PddProc.h b/core/fxcodec/jbig2/JBig2_PddProc.h
index 938da1b..0d6776c 100644
--- a/core/fxcodec/jbig2/JBig2_PddProc.h
+++ b/core/fxcodec/jbig2/JBig2_PddProc.h
@@ -14,7 +14,7 @@
class CJBig2_ArithDecoder;
class CJBig2_BitStream;
class CJBig2_PatternDict;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
struct JBig2ArithCtx;
class CJBig2_PDDProc {
@@ -22,7 +22,7 @@
std::unique_ptr<CJBig2_PatternDict> decode_Arith(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* gbContext,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
std::unique_ptr<CJBig2_PatternDict> decode_MMR(CJBig2_BitStream* pStream);
diff --git a/core/fxcrt/cfx_fileaccess_posix.cpp b/core/fxcrt/cfx_fileaccess_posix.cpp
index 2f85670..4aab6fe 100644
--- a/core/fxcrt/cfx_fileaccess_posix.cpp
+++ b/core/fxcrt/cfx_fileaccess_posix.cpp
@@ -41,7 +41,7 @@
} // namespace
// static
-std::unique_ptr<IFX_FileAccess> IFX_FileAccess::Create() {
+std::unique_ptr<FileAccessIface> FileAccessIface::Create() {
return pdfium::MakeUnique<CFX_FileAccess_Posix>();
}
diff --git a/core/fxcrt/cfx_fileaccess_posix.h b/core/fxcrt/cfx_fileaccess_posix.h
index efa25eb..84fc81b 100644
--- a/core/fxcrt/cfx_fileaccess_posix.h
+++ b/core/fxcrt/cfx_fileaccess_posix.h
@@ -7,17 +7,17 @@
#ifndef CORE_FXCRT_CFX_FILEACCESS_POSIX_H_
#define CORE_FXCRT_CFX_FILEACCESS_POSIX_H_
-#include "core/fxcrt/ifx_fileaccess.h"
+#include "core/fxcrt/fileaccess_iface.h"
#if _FX_PLATFORM_ == _FX_PLATFORM_LINUX_ || \
_FX_PLATFORM_ == _FX_PLATFORM_APPLE_ || \
_FX_PLATFORM_ == _FX_PLATFORM_ANDROID_
-class CFX_FileAccess_Posix : public IFX_FileAccess {
+class CFX_FileAccess_Posix : public FileAccessIface {
public:
CFX_FileAccess_Posix();
~CFX_FileAccess_Posix() override;
- // IFX_FileAccess:
+ // FileAccessIface:
bool Open(const ByteStringView& fileName, uint32_t dwMode) override;
bool Open(const WideStringView& fileName, uint32_t dwMode) override;
void Close() override;
diff --git a/core/fxcrt/cfx_fileaccess_windows.cpp b/core/fxcrt/cfx_fileaccess_windows.cpp
index 1ac4496..f416bb6 100644
--- a/core/fxcrt/cfx_fileaccess_windows.cpp
+++ b/core/fxcrt/cfx_fileaccess_windows.cpp
@@ -32,7 +32,7 @@
} // namespace
// static
-std::unique_ptr<IFX_FileAccess> IFX_FileAccess::Create() {
+std::unique_ptr<FileAccessIface> FileAccessIface::Create() {
return pdfium::MakeUnique<CFX_FileAccess_Windows>();
}
diff --git a/core/fxcrt/cfx_fileaccess_windows.h b/core/fxcrt/cfx_fileaccess_windows.h
index 6fd07d5..451462b 100644
--- a/core/fxcrt/cfx_fileaccess_windows.h
+++ b/core/fxcrt/cfx_fileaccess_windows.h
@@ -7,15 +7,15 @@
#ifndef CORE_FXCRT_CFX_FILEACCESS_WINDOWS_H_
#define CORE_FXCRT_CFX_FILEACCESS_WINDOWS_H_
-#include "core/fxcrt/ifx_fileaccess.h"
+#include "core/fxcrt/fileaccess_iface.h"
#if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
-class CFX_FileAccess_Windows : public IFX_FileAccess {
+class CFX_FileAccess_Windows : public FileAccessIface {
public:
CFX_FileAccess_Windows();
~CFX_FileAccess_Windows() override;
- // IFX_FileAccess
+ // FileAccessIface
bool Open(const ByteStringView& fileName, uint32_t dwMode) override;
bool Open(const WideStringView& fileName, uint32_t dwMode) override;
void Close() override;
diff --git a/core/fxcrt/ifx_fileaccess.h b/core/fxcrt/fileaccess_iface.h
similarity index 83%
rename from core/fxcrt/ifx_fileaccess.h
rename to core/fxcrt/fileaccess_iface.h
index 9bfe2b4..c438f9e 100644
--- a/core/fxcrt/ifx_fileaccess.h
+++ b/core/fxcrt/fileaccess_iface.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef CORE_FXCRT_IFX_FILEACCESS_H_
-#define CORE_FXCRT_IFX_FILEACCESS_H_
+#ifndef CORE_FXCRT_FILEACCESS_IFACE_H_
+#define CORE_FXCRT_FILEACCESS_IFACE_H_
#include <algorithm>
#include <memory>
@@ -14,10 +14,10 @@
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/fx_string.h"
-class IFX_FileAccess {
+class FileAccessIface {
public:
- static std::unique_ptr<IFX_FileAccess> Create();
- virtual ~IFX_FileAccess() {}
+ static std::unique_ptr<FileAccessIface> Create();
+ virtual ~FileAccessIface() {}
virtual bool Open(const ByteStringView& fileName, uint32_t dwMode) = 0;
virtual bool Open(const WideStringView& fileName, uint32_t dwMode) = 0;
@@ -35,4 +35,4 @@
virtual bool Truncate(FX_FILESIZE szFile) = 0;
};
-#endif // CORE_FXCRT_IFX_FILEACCESS_H_
+#endif // CORE_FXCRT_FILEACCESS_IFACE_H_
diff --git a/core/fxcrt/fx_stream.cpp b/core/fxcrt/fx_stream.cpp
index bd75ad6..337cbb3 100644
--- a/core/fxcrt/fx_stream.cpp
+++ b/core/fxcrt/fx_stream.cpp
@@ -11,8 +11,8 @@
#include <utility>
#include <vector>
+#include "core/fxcrt/fileaccess_iface.h"
#include "core/fxcrt/fx_safe_types.h"
-#include "core/fxcrt/ifx_fileaccess.h"
#include "third_party/base/ptr_util.h"
namespace {
@@ -40,11 +40,11 @@
bool Flush() override { return m_pFile->Flush(); }
private:
- explicit CFX_CRTFileStream(std::unique_ptr<IFX_FileAccess> pFA)
+ explicit CFX_CRTFileStream(std::unique_ptr<FileAccessIface> pFA)
: m_pFile(std::move(pFA)) {}
~CFX_CRTFileStream() override {}
- std::unique_ptr<IFX_FileAccess> m_pFile;
+ std::unique_ptr<FileAccessIface> m_pFile;
};
} // namespace
@@ -53,7 +53,7 @@
RetainPtr<IFX_SeekableStream> IFX_SeekableStream::CreateFromFilename(
const char* filename,
uint32_t dwModes) {
- std::unique_ptr<IFX_FileAccess> pFA = IFX_FileAccess::Create();
+ std::unique_ptr<FileAccessIface> pFA = FileAccessIface::Create();
if (!pFA->Open(filename, dwModes))
return nullptr;
return pdfium::MakeRetain<CFX_CRTFileStream>(std::move(pFA));
@@ -63,7 +63,7 @@
RetainPtr<IFX_SeekableStream> IFX_SeekableStream::CreateFromFilename(
const wchar_t* filename,
uint32_t dwModes) {
- std::unique_ptr<IFX_FileAccess> pFA = IFX_FileAccess::Create();
+ std::unique_ptr<FileAccessIface> pFA = FileAccessIface::Create();
if (!pFA->Open(filename, dwModes))
return nullptr;
return pdfium::MakeRetain<CFX_CRTFileStream>(std::move(pFA));
diff --git a/core/fxcrt/ifx_pauseindicator.h b/core/fxcrt/ifx_pauseindicator.h
deleted file mode 100644
index 79c6016..0000000
--- a/core/fxcrt/ifx_pauseindicator.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2017 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 CORE_FXCRT_IFX_PAUSEINDICATOR_H_
-#define CORE_FXCRT_IFX_PAUSEINDICATOR_H_
-
-class IFX_PauseIndicator {
- public:
- virtual ~IFX_PauseIndicator() {}
- virtual bool NeedToPauseNow() = 0;
-};
-
-#endif // CORE_FXCRT_IFX_PAUSEINDICATOR_H_
diff --git a/core/fxcrt/ifx_locale.h b/core/fxcrt/locale_iface.h
similarity index 92%
rename from core/fxcrt/ifx_locale.h
rename to core/fxcrt/locale_iface.h
index 5918e7a..0adfb19 100644
--- a/core/fxcrt/ifx_locale.h
+++ b/core/fxcrt/locale_iface.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef CORE_FXCRT_IFX_LOCALE_H_
-#define CORE_FXCRT_IFX_LOCALE_H_
+#ifndef CORE_FXCRT_LOCALE_IFACE_H_
+#define CORE_FXCRT_LOCALE_IFACE_H_
#include "core/fxcrt/cfx_datetime.h"
#include "core/fxcrt/fx_string.h"
@@ -54,9 +54,9 @@
FX_DATETIMETYPE_TimeDate,
};
-class IFX_Locale {
+class LocaleIface {
public:
- virtual ~IFX_Locale() {}
+ virtual ~LocaleIface() {}
virtual WideString GetName() const = 0;
virtual WideString GetNumbericSymbol(FX_LOCALENUMSYMBOL eType) const = 0;
@@ -73,4 +73,4 @@
virtual WideString GetNumPattern(FX_LOCALENUMSUBCATEGORY eType) const = 0;
};
-#endif // CORE_FXCRT_IFX_LOCALE_H_
+#endif // CORE_FXCRT_LOCALE_IFACE_H_
diff --git a/core/fxcrt/pauseindicator_iface.h b/core/fxcrt/pauseindicator_iface.h
new file mode 100644
index 0000000..c12b02e
--- /dev/null
+++ b/core/fxcrt/pauseindicator_iface.h
@@ -0,0 +1,16 @@
+// Copyright 2017 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 CORE_FXCRT_PAUSEINDICATOR_IFACE_H_
+#define CORE_FXCRT_PAUSEINDICATOR_IFACE_H_
+
+class PauseIndicatorIface {
+ public:
+ virtual ~PauseIndicatorIface() {}
+ virtual bool NeedToPauseNow() = 0;
+};
+
+#endif // CORE_FXCRT_PAUSEINDICATOR_IFACE_H_
diff --git a/core/fxge/agg/fx_agg_driver.cpp b/core/fxge/agg/fx_agg_driver.cpp
index 922f39e..9d8d8fa 100644
--- a/core/fxge/agg/fx_agg_driver.cpp
+++ b/core/fxge/agg/fx_agg_driver.cpp
@@ -1562,7 +1562,7 @@
}
bool CFX_AggDeviceDriver::ContinueDIBits(CFX_ImageRenderer* pHandle,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
return m_pBitmap->GetBuffer() ? pHandle->Continue(pPause) : true;
}
diff --git a/core/fxge/agg/fx_agg_driver.h b/core/fxge/agg/fx_agg_driver.h
index 41b97da..3f4481c 100644
--- a/core/fxge/agg/fx_agg_driver.h
+++ b/core/fxge/agg/fx_agg_driver.h
@@ -90,7 +90,7 @@
std::unique_ptr<CFX_ImageRenderer>* handle,
int blend_type) override;
bool ContinueDIBits(CFX_ImageRenderer* handle,
- IFX_PauseIndicator* pPause) override;
+ PauseIndicatorIface* pPause) override;
bool DrawDeviceText(int nChars,
const FXTEXT_CHARPOS* pCharPos,
CFX_Font* pFont,
diff --git a/core/fxge/cfx_renderdevice.cpp b/core/fxge/cfx_renderdevice.cpp
index 919a7a9..af148ee 100644
--- a/core/fxge/cfx_renderdevice.cpp
+++ b/core/fxge/cfx_renderdevice.cpp
@@ -844,7 +844,7 @@
}
bool CFX_RenderDevice::ContinueDIBits(CFX_ImageRenderer* handle,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
return m_pDeviceDriver->ContinueDIBits(handle, pPause);
}
diff --git a/core/fxge/cfx_renderdevice.h b/core/fxge/cfx_renderdevice.h
index d3ebed4..925ec26 100644
--- a/core/fxge/cfx_renderdevice.h
+++ b/core/fxge/cfx_renderdevice.h
@@ -17,7 +17,7 @@
class CFX_Font;
class CFX_GraphStateData;
class CFX_ImageRenderer;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class IFX_RenderDeviceDriver;
#define FXDC_DEVICE_CLASS 1
@@ -205,7 +205,7 @@
uint32_t flags,
std::unique_ptr<CFX_ImageRenderer>* handle,
int blend_type);
- bool ContinueDIBits(CFX_ImageRenderer* handle, IFX_PauseIndicator* pPause);
+ bool ContinueDIBits(CFX_ImageRenderer* handle, PauseIndicatorIface* pPause);
bool DrawNormalText(int nChars,
const FXTEXT_CHARPOS* pCharPos,
diff --git a/core/fxge/dib/cfx_dibsource.cpp b/core/fxge/dib/cfx_dibsource.cpp
index 104b3ca..86bec23 100644
--- a/core/fxge/dib/cfx_dibsource.cpp
+++ b/core/fxge/dib/cfx_dibsource.cpp
@@ -726,7 +726,8 @@
return nullptr;
}
-bool CFX_DIBSource::SkipToScanline(int line, IFX_PauseIndicator* pPause) const {
+bool CFX_DIBSource::SkipToScanline(int line,
+ PauseIndicatorIface* pPause) const {
return false;
}
diff --git a/core/fxge/dib/cfx_dibsource.h b/core/fxge/dib/cfx_dibsource.h
index 02cae5d..0e7fb27 100644
--- a/core/fxge/dib/cfx_dibsource.h
+++ b/core/fxge/dib/cfx_dibsource.h
@@ -27,7 +27,7 @@
class CFX_ClipRgn;
class CFX_DIBitmap;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CFX_DIBSource : public Retainable {
public:
@@ -35,7 +35,7 @@
virtual uint8_t* GetBuffer() const;
virtual const uint8_t* GetScanline(int line) const = 0;
- virtual bool SkipToScanline(int line, IFX_PauseIndicator* pPause) const;
+ virtual bool SkipToScanline(int line, PauseIndicatorIface* pPause) const;
virtual void DownSampleScanline(int line,
uint8_t* dest_scan,
int dest_bpp,
diff --git a/core/fxge/dib/cfx_imagerenderer.cpp b/core/fxge/dib/cfx_imagerenderer.cpp
index 658d363..a196068 100644
--- a/core/fxge/dib/cfx_imagerenderer.cpp
+++ b/core/fxge/dib/cfx_imagerenderer.cpp
@@ -87,7 +87,7 @@
CFX_ImageRenderer::~CFX_ImageRenderer() {}
-bool CFX_ImageRenderer::Continue(IFX_PauseIndicator* pPause) {
+bool CFX_ImageRenderer::Continue(PauseIndicatorIface* pPause) {
if (m_Status == 1)
return m_Stretcher->Continue(pPause);
if (m_Status != 2)
diff --git a/core/fxge/dib/cfx_imagerenderer.h b/core/fxge/dib/cfx_imagerenderer.h
index 18a56e2..14eaf56 100644
--- a/core/fxge/dib/cfx_imagerenderer.h
+++ b/core/fxge/dib/cfx_imagerenderer.h
@@ -33,7 +33,7 @@
bool bRgbByteOrder);
~CFX_ImageRenderer();
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
private:
const RetainPtr<CFX_DIBitmap> m_pDevice;
diff --git a/core/fxge/dib/cfx_imagestretcher.cpp b/core/fxge/dib/cfx_imagestretcher.cpp
index 03518c6..af93b26 100644
--- a/core/fxge/dib/cfx_imagestretcher.cpp
+++ b/core/fxge/dib/cfx_imagestretcher.cpp
@@ -124,7 +124,7 @@
return StartStretch();
}
-bool CFX_ImageStretcher::Continue(IFX_PauseIndicator* pPause) {
+bool CFX_ImageStretcher::Continue(PauseIndicatorIface* pPause) {
if (m_Flags & FXDIB_DOWNSAMPLE)
return ContinueQuickStretch(pPause);
return ContinueStretch(pPause);
@@ -142,7 +142,7 @@
return true;
}
-bool CFX_ImageStretcher::ContinueStretch(IFX_PauseIndicator* pPause) {
+bool CFX_ImageStretcher::ContinueStretch(PauseIndicatorIface* pPause) {
return m_pStretchEngine && m_pStretchEngine->Continue(pPause);
}
@@ -171,7 +171,7 @@
return true;
}
-bool CFX_ImageStretcher::ContinueQuickStretch(IFX_PauseIndicator* pPause) {
+bool CFX_ImageStretcher::ContinueQuickStretch(PauseIndicatorIface* pPause) {
if (!m_pScanline)
return false;
diff --git a/core/fxge/dib/cfx_imagestretcher.h b/core/fxge/dib/cfx_imagestretcher.h
index 2ecb2a0..e2ed4e9 100644
--- a/core/fxge/dib/cfx_imagestretcher.h
+++ b/core/fxge/dib/cfx_imagestretcher.h
@@ -17,7 +17,7 @@
#include "core/fxge/fx_dib.h"
class CFX_DIBSource;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class CFX_ImageStretcher {
public:
@@ -30,15 +30,15 @@
~CFX_ImageStretcher();
bool Start();
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
RetainPtr<CFX_DIBSource> source() { return m_pSource; }
private:
bool StartQuickStretch();
bool StartStretch();
- bool ContinueQuickStretch(IFX_PauseIndicator* pPause);
- bool ContinueStretch(IFX_PauseIndicator* pPause);
+ bool ContinueQuickStretch(PauseIndicatorIface* pPause);
+ bool ContinueStretch(PauseIndicatorIface* pPause);
UnownedPtr<IFX_ScanlineComposer> const m_pDest;
RetainPtr<CFX_DIBSource> m_pSource;
diff --git a/core/fxge/dib/cfx_imagetransformer.cpp b/core/fxge/dib/cfx_imagetransformer.cpp
index e514153..6f3ab86 100644
--- a/core/fxge/dib/cfx_imagetransformer.cpp
+++ b/core/fxge/dib/cfx_imagetransformer.cpp
@@ -265,7 +265,7 @@
CFX_ImageTransformer::~CFX_ImageTransformer() {}
-bool CFX_ImageTransformer::Continue(IFX_PauseIndicator* pPause) {
+bool CFX_ImageTransformer::Continue(PauseIndicatorIface* pPause) {
if (m_Status == 1) {
if (m_Stretcher->Continue(pPause))
return true;
diff --git a/core/fxge/dib/cfx_imagetransformer.h b/core/fxge/dib/cfx_imagetransformer.h
index d13ce3f..97dd61f 100644
--- a/core/fxge/dib/cfx_imagetransformer.h
+++ b/core/fxge/dib/cfx_imagetransformer.h
@@ -26,7 +26,7 @@
const FX_RECT* pClip);
~CFX_ImageTransformer();
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
const FX_RECT& result() const { return m_result; }
RetainPtr<CFX_DIBitmap> DetachBitmap();
diff --git a/core/fxge/dib/cstretchengine.cpp b/core/fxge/dib/cstretchengine.cpp
index 6803959..cb7ffa0 100644
--- a/core/fxge/dib/cstretchengine.cpp
+++ b/core/fxge/dib/cstretchengine.cpp
@@ -9,7 +9,7 @@
#include <algorithm>
#include <utility>
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "core/fxge/dib/cfx_dibsource.h"
#include "core/fxge/dib/ifx_scanlinecomposer.h"
@@ -311,7 +311,7 @@
CStretchEngine::~CStretchEngine() {}
-bool CStretchEngine::Continue(IFX_PauseIndicator* pPause) {
+bool CStretchEngine::Continue(PauseIndicatorIface* pPause) {
while (m_State == 1) {
if (ContinueStretchHorz(pPause))
return true;
@@ -348,7 +348,7 @@
return true;
}
-bool CStretchEngine::ContinueStretchHorz(IFX_PauseIndicator* pPause) {
+bool CStretchEngine::ContinueStretchHorz(PauseIndicatorIface* pPause) {
if (!m_DestWidth)
return false;
if (m_pSource->SkipToScanline(m_CurRow, pPause))
diff --git a/core/fxge/dib/cstretchengine.h b/core/fxge/dib/cstretchengine.h
index 8ce8351..6f0d4dc 100644
--- a/core/fxge/dib/cstretchengine.h
+++ b/core/fxge/dib/cstretchengine.h
@@ -14,7 +14,7 @@
#include "core/fxcrt/unowned_ptr.h"
#include "core/fxge/fx_dib.h"
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
class IFX_ScanlineComposer;
class CStretchEngine {
@@ -28,10 +28,10 @@
int flags);
~CStretchEngine();
- bool Continue(IFX_PauseIndicator* pPause);
+ bool Continue(PauseIndicatorIface* pPause);
bool StartStretchHorz();
- bool ContinueStretchHorz(IFX_PauseIndicator* pPause);
+ bool ContinueStretchHorz(PauseIndicatorIface* pPause);
void StretchVert();
class CWeightTable {
diff --git a/core/fxge/ifx_renderdevicedriver.cpp b/core/fxge/ifx_renderdevicedriver.cpp
index eae773d..ff8d8fd 100644
--- a/core/fxge/ifx_renderdevicedriver.cpp
+++ b/core/fxge/ifx_renderdevicedriver.cpp
@@ -57,7 +57,7 @@
}
bool IFX_RenderDeviceDriver::ContinueDIBits(CFX_ImageRenderer* handle,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
return false;
}
diff --git a/core/fxge/ifx_renderdevicedriver.h b/core/fxge/ifx_renderdevicedriver.h
index e9498bd..90c94da 100644
--- a/core/fxge/ifx_renderdevicedriver.h
+++ b/core/fxge/ifx_renderdevicedriver.h
@@ -22,7 +22,7 @@
class CFX_PathData;
class CPDF_ShadingPattern;
class FXTEXT_CHARPOS;
-class IFX_PauseIndicator;
+class PauseIndicatorIface;
struct FX_RECT;
class IFX_RenderDeviceDriver {
@@ -87,7 +87,7 @@
std::unique_ptr<CFX_ImageRenderer>* handle,
int blend_type) = 0;
virtual bool ContinueDIBits(CFX_ImageRenderer* handle,
- IFX_PauseIndicator* pPause);
+ PauseIndicatorIface* pPause);
virtual bool DrawDeviceText(int nChars,
const FXTEXT_CHARPOS* pCharPos,
CFX_Font* pFont,
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index 1885cef..190ad9e 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -2395,7 +2395,7 @@
}
bool CFX_SkiaDeviceDriver::ContinueDIBits(CFX_ImageRenderer* handle,
- IFX_PauseIndicator* pPause) {
+ PauseIndicatorIface* pPause) {
#ifdef _SKIA_SUPPORT_
m_pCache->FlushForDraw();
return false;
diff --git a/core/fxge/skia/fx_skia_device.h b/core/fxge/skia/fx_skia_device.h
index c2e6c01..4e60191 100644
--- a/core/fxge/skia/fx_skia_device.h
+++ b/core/fxge/skia/fx_skia_device.h
@@ -121,7 +121,7 @@
int blend_type) override;
bool ContinueDIBits(CFX_ImageRenderer* handle,
- IFX_PauseIndicator* pPause) override;
+ PauseIndicatorIface* pPause) override;
bool DrawBitsWithMask(const RetainPtr<CFX_DIBSource>& pBitmap,
const RetainPtr<CFX_DIBSource>& pMask,
diff --git a/fpdfsdk/fsdk_pauseadapter.h b/fpdfsdk/fsdk_pauseadapter.h
index a0d0098..405f4d9 100644
--- a/fpdfsdk/fsdk_pauseadapter.h
+++ b/fpdfsdk/fsdk_pauseadapter.h
@@ -8,11 +8,11 @@
#define FPDFSDK_FSDK_PAUSEADAPTER_H_
#include "core/fxcrt/fx_system.h"
-#include "core/fxcrt/ifx_pauseindicator.h"
+#include "core/fxcrt/pauseindicator_iface.h"
#include "core/fxcrt/unowned_ptr.h"
#include "public/fpdf_progressive.h"
-class IFSDK_PAUSE_Adapter : public IFX_PauseIndicator {
+class IFSDK_PAUSE_Adapter : public PauseIndicatorIface {
public:
explicit IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause);
~IFSDK_PAUSE_Adapter() override;
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp
index f773da1..9cd3a73 100644
--- a/fxjs/cfxjse_formcalc_context.cpp
+++ b/fxjs/cfxjse_formcalc_context.cpp
@@ -470,9 +470,9 @@
c == 0x0D;
}
-IFX_Locale* LocaleFromString(CXFA_Document* pDoc,
- CXFA_LocaleMgr* pMgr,
- const ByteStringView& szLocale) {
+LocaleIface* LocaleFromString(CXFA_Document* pDoc,
+ CXFA_LocaleMgr* pMgr,
+ const ByteStringView& szLocale) {
if (!szLocale.IsEmpty())
return pMgr->GetLocaleByName(WideString::FromUTF8(szLocale));
@@ -481,7 +481,7 @@
return pThisNode->GetLocale();
}
-WideString FormatFromString(IFX_Locale* pLocale,
+WideString FormatFromString(LocaleIface* pLocale,
const ByteStringView& szFormat) {
if (!szFormat.IsEmpty())
return WideString::FromUTF8(szFormat);
@@ -1638,7 +1638,7 @@
CXFA_Document* pDoc = ToJSContext(pThis, nullptr)->GetDocument();
CXFA_LocaleMgr* pMgr = pDoc->GetLocalMgr();
- IFX_Locale* pLocale = nullptr;
+ LocaleIface* pLocale = nullptr;
if (localString.IsEmpty()) {
CXFA_Node* pThisNode = ToNode(pDoc->GetScriptContext()->GetThisObject());
ASSERT(pThisNode);
@@ -1998,7 +1998,7 @@
return ByteString();
CXFA_LocaleMgr* pMgr = pDoc->GetLocalMgr();
- IFX_Locale* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
+ LocaleIface* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
if (!pLocale)
return ByteString();
@@ -2022,7 +2022,7 @@
return ByteString();
CXFA_LocaleMgr* pMgr = pDoc->GetLocalMgr();
- IFX_Locale* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
+ LocaleIface* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
if (!pLocale)
return ByteString();
@@ -2044,7 +2044,7 @@
return ByteString();
CXFA_LocaleMgr* pMgr = pDoc->GetLocalMgr();
- IFX_Locale* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
+ LocaleIface* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
if (!pLocale)
return ByteString();
@@ -2126,7 +2126,7 @@
return ByteString();
CXFA_LocaleMgr* pMgr = pDoc->GetLocalMgr();
- IFX_Locale* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
+ LocaleIface* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
if (!pLocale)
return ByteString();
@@ -2149,7 +2149,7 @@
return ByteString();
CXFA_LocaleMgr* pMgr = pDoc->GetLocalMgr();
- IFX_Locale* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
+ LocaleIface* pLocale = LocaleFromString(pDoc, pMgr, szLocale);
if (!pLocale)
return ByteString();
@@ -3768,7 +3768,7 @@
CXFA_Node* pThisNode = ToNode(pDoc->GetScriptContext()->GetThisObject());
ASSERT(pThisNode);
- IFX_Locale* pLocale = pThisNode->GetLocale();
+ LocaleIface* pLocale = pThisNode->GetLocale();
uint32_t patternType;
WideString wsPattern = WideString::FromUTF8(szPattern.AsStringView());
WideString wsValue = WideString::FromUTF8(szValue.AsStringView());
@@ -3950,7 +3950,7 @@
CXFA_Node* pThisNode = ToNode(pDoc->GetScriptContext()->GetThisObject());
ASSERT(pThisNode);
- IFX_Locale* pLocale = pThisNode->GetLocale();
+ LocaleIface* pLocale = pThisNode->GetLocale();
WideString wsPattern = WideString::FromUTF8(szPattern.AsStringView());
WideString wsValue = WideString::FromUTF8(szValue.AsStringView());
uint32_t patternType;
diff --git a/xfa/fgas/crt/cfgas_formatstring.cpp b/xfa/fgas/crt/cfgas_formatstring.cpp
index b8f6eee..d7273d0 100644
--- a/xfa/fgas/crt/cfgas_formatstring.cpp
+++ b/xfa/fgas/crt/cfgas_formatstring.cpp
@@ -223,7 +223,7 @@
bool ParseLocaleDate(const WideString& wsDate,
const WideString& wsDatePattern,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
CFX_DateTime* datetime,
int32_t* cc) {
uint32_t year = 1900;
@@ -321,7 +321,7 @@
}
void ResolveZone(FX_TIMEZONE tzDiff,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
uint32_t* wHour,
uint32_t* wMinute) {
int32_t iMinuteDiff = *wHour * 60 + *wMinute;
@@ -341,7 +341,7 @@
bool ParseLocaleTime(const WideString& wsTime,
const WideString& wsTimePattern,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
CFX_DateTime* datetime,
int32_t* cc) {
uint32_t hour = 0;
@@ -560,7 +560,7 @@
}
WideString DateFormat(const WideString& wsDatePattern,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
const CFX_DateTime& datetime) {
WideString wsResult;
int32_t year = datetime.GetYear();
@@ -622,7 +622,7 @@
}
WideString TimeFormat(const WideString& wsTimePattern,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
const CFX_DateTime& datetime) {
WideString wsResult;
uint8_t hour = datetime.GetHour();
@@ -696,7 +696,7 @@
const WideString& wsDatePattern,
const WideString& wsTimePattern,
bool bDateFirst,
- IFX_Locale* pLocale) {
+ LocaleIface* pLocale) {
WideString wsDateOut;
if (!wsDatePattern.IsEmpty())
wsDateOut = DateFormat(wsDatePattern, pLocale, dt);
@@ -761,7 +761,7 @@
bool FX_TimeFromCanonical(const WideStringView& wsTime,
CFX_DateTime* datetime,
- IFX_Locale* pLocale) {
+ LocaleIface* pLocale) {
if (wsTime.GetLength() == 0)
return false;
@@ -960,12 +960,12 @@
return wsPurgePattern;
}
-IFX_Locale* CFGAS_FormatString::GetNumericFormat(const WideString& wsPattern,
- int32_t* iDotIndex,
- uint32_t* dwStyle,
- WideString* wsPurgePattern) {
+LocaleIface* CFGAS_FormatString::GetNumericFormat(const WideString& wsPattern,
+ int32_t* iDotIndex,
+ uint32_t* dwStyle,
+ WideString* wsPurgePattern) {
*dwStyle = 0;
- IFX_Locale* pLocale = nullptr;
+ LocaleIface* pLocale = nullptr;
int32_t ccf = 0;
int32_t iLenf = wsPattern.GetLength();
const wchar_t* pStr = wsPattern.c_str();
@@ -1146,7 +1146,7 @@
int32_t dot_index_f = -1;
uint32_t dwFormatStyle = 0;
WideString wsNumFormat;
- IFX_Locale* pLocale =
+ LocaleIface* pLocale =
GetNumericFormat(wsPattern, &dot_index_f, &dwFormatStyle, &wsNumFormat);
if (!pLocale || wsNumFormat.IsEmpty())
return false;
@@ -1545,7 +1545,7 @@
FX_DATETIMETYPE CFGAS_FormatString::GetDateTimeFormat(
const WideString& wsPattern,
- IFX_Locale** pLocale,
+ LocaleIface** pLocale,
WideString* wsDatePattern,
WideString* wsTimePattern) {
*pLocale = nullptr;
@@ -1691,7 +1691,7 @@
WideString wsDatePattern;
WideString wsTimePattern;
- IFX_Locale* pLocale = nullptr;
+ LocaleIface* pLocale = nullptr;
FX_DATETIMETYPE eCategory =
GetDateTimeFormat(wsPattern, &pLocale, &wsDatePattern, &wsTimePattern);
if (!pLocale)
@@ -1861,7 +1861,7 @@
int32_t dot_index_f = -1;
uint32_t dwNumStyle = 0;
WideString wsNumFormat;
- IFX_Locale* pLocale =
+ LocaleIface* pLocale =
GetNumericFormat(wsPattern, &dot_index_f, &dwNumStyle, &wsNumFormat);
if (!pLocale || wsNumFormat.IsEmpty())
return false;
@@ -2256,7 +2256,7 @@
WideString wsDatePattern;
WideString wsTimePattern;
- IFX_Locale* pLocale = nullptr;
+ LocaleIface* pLocale = nullptr;
FX_DATETIMETYPE eCategory =
GetDateTimeFormat(wsPattern, &pLocale, &wsDatePattern, &wsTimePattern);
if (!pLocale)
diff --git a/xfa/fgas/crt/cfgas_formatstring.h b/xfa/fgas/crt/cfgas_formatstring.h
index 5eae25d..2cc5d56 100644
--- a/xfa/fgas/crt/cfgas_formatstring.h
+++ b/xfa/fgas/crt/cfgas_formatstring.h
@@ -9,13 +9,13 @@
#include <vector>
-#include "core/fxcrt/ifx_locale.h"
+#include "core/fxcrt/locale_iface.h"
#include "xfa/fxfa/parser/cxfa_localemgr.h"
bool FX_DateFromCanonical(const WideString& wsDate, CFX_DateTime* datetime);
bool FX_TimeFromCanonical(const WideStringView& wsTime,
CFX_DateTime* datetime,
- IFX_Locale* pLocale);
+ LocaleIface* pLocale);
class CFGAS_FormatString {
public:
@@ -55,15 +55,15 @@
private:
WideString GetTextFormat(const WideString& wsPattern,
const WideStringView& wsCategory);
- IFX_Locale* GetNumericFormat(const WideString& wsPattern,
- int32_t* iDotIndex,
- uint32_t* dwStyle,
- WideString* wsPurgePattern);
+ LocaleIface* GetNumericFormat(const WideString& wsPattern,
+ int32_t* iDotIndex,
+ uint32_t* dwStyle,
+ WideString* wsPurgePattern);
bool FormatStrNum(const WideStringView& wsInputNum,
const WideString& wsPattern,
WideString* wsOutput);
FX_DATETIMETYPE GetDateTimeFormat(const WideString& wsPattern,
- IFX_Locale** pLocale,
+ LocaleIface** pLocale,
WideString* wsDatePattern,
WideString* wsTimePattern);
diff --git a/xfa/fxfa/parser/cxfa_localemgr.cpp b/xfa/fxfa/parser/cxfa_localemgr.cpp
index bb769b6..eb810df 100644
--- a/xfa/fxfa/parser/cxfa_localemgr.cpp
+++ b/xfa/fxfa/parser/cxfa_localemgr.cpp
@@ -1065,8 +1065,8 @@
0xB3, 0x85, 0xFA, 0x59, 0x2A, 0x7A, 0xFF, 0x3D, 0xC4, 0x3F, 0xDE, 0xCB,
0x8B, 0xC4};
-static std::unique_ptr<IFX_Locale> XFA_GetLocaleFromBuffer(const uint8_t* pBuf,
- int nBufLen) {
+static std::unique_ptr<LocaleIface> XFA_GetLocaleFromBuffer(const uint8_t* pBuf,
+ int nBufLen) {
if (!pBuf || nBufLen <= 0)
return nullptr;
@@ -1146,7 +1146,7 @@
return m_dwDeflcid;
}
-IFX_Locale* CXFA_LocaleMgr::GetDefLocale() {
+LocaleIface* CXFA_LocaleMgr::GetDefLocale() {
if (m_pDefLocale)
return m_pDefLocale;
@@ -1156,7 +1156,7 @@
if (!m_XMLLocaleArray.empty())
return m_XMLLocaleArray[0].get();
- std::unique_ptr<IFX_Locale> locale(GetLocale(m_dwDeflcid));
+ std::unique_ptr<LocaleIface> locale(GetLocale(m_dwDeflcid));
m_pDefLocale = locale.get();
if (locale)
m_XMLLocaleArray.push_back(std::move(locale));
@@ -1164,7 +1164,7 @@
return m_pDefLocale;
}
-std::unique_ptr<IFX_Locale> CXFA_LocaleMgr::GetLocale(uint16_t lcid) {
+std::unique_ptr<LocaleIface> CXFA_LocaleMgr::GetLocale(uint16_t lcid) {
switch (lcid) {
case FX_LANG_zh_CN:
return XFA_GetLocaleFromBuffer(g_zhCN_Locale, sizeof(g_zhCN_Locale));
@@ -1200,28 +1200,29 @@
}
}
-IFX_Locale* CXFA_LocaleMgr::GetLocaleByName(const WideString& wsLocaleName) {
+LocaleIface* CXFA_LocaleMgr::GetLocaleByName(const WideString& wsLocaleName) {
for (size_t i = 0; i < m_LocaleArray.size(); i++) {
- IFX_Locale* pLocale = m_LocaleArray[i].get();
+ LocaleIface* pLocale = m_LocaleArray[i].get();
if (pLocale->GetName() == wsLocaleName)
return pLocale;
}
if (wsLocaleName.GetLength() < 2)
return nullptr;
for (size_t i = 0; i < m_XMLLocaleArray.size(); i++) {
- IFX_Locale* pLocale = m_XMLLocaleArray[i].get();
+ LocaleIface* pLocale = m_XMLLocaleArray[i].get();
if (pLocale->GetName() == wsLocaleName)
return pLocale;
}
- std::unique_ptr<IFX_Locale> pLocale(GetLocale(XFA_GetLanguage(wsLocaleName)));
- IFX_Locale* pRetLocale = pLocale.get();
+ std::unique_ptr<LocaleIface> pLocale(
+ GetLocale(XFA_GetLanguage(wsLocaleName)));
+ LocaleIface* pRetLocale = pLocale.get();
if (pLocale)
m_XMLLocaleArray.push_back(std::move(pLocale));
return pRetLocale;
}
-void CXFA_LocaleMgr::SetDefLocale(IFX_Locale* pLocale) {
+void CXFA_LocaleMgr::SetDefLocale(LocaleIface* pLocale) {
m_pDefLocale = pLocale;
}
diff --git a/xfa/fxfa/parser/cxfa_localemgr.h b/xfa/fxfa/parser/cxfa_localemgr.h
index d77a94a..b56a4ae 100644
--- a/xfa/fxfa/parser/cxfa_localemgr.h
+++ b/xfa/fxfa/parser/cxfa_localemgr.h
@@ -11,11 +11,11 @@
#include <vector>
#include "core/fxcrt/cfx_datetime.h"
-#include "core/fxcrt/ifx_locale.h"
+#include "core/fxcrt/locale_iface.h"
#include "xfa/fxfa/parser/cxfa_localemgr.h"
class CXFA_Node;
-class IFX_Locale;
+class LocaleIface;
class CXFA_LocaleMgr {
public:
@@ -23,18 +23,18 @@
~CXFA_LocaleMgr();
uint16_t GetDefLocaleID() const;
- IFX_Locale* GetDefLocale();
- IFX_Locale* GetLocaleByName(const WideString& wsLocaleName);
+ LocaleIface* GetDefLocale();
+ LocaleIface* GetLocaleByName(const WideString& wsLocaleName);
- void SetDefLocale(IFX_Locale* pLocale);
+ void SetDefLocale(LocaleIface* pLocale);
WideStringView GetConfigLocaleName(CXFA_Node* pConfig);
private:
- std::unique_ptr<IFX_Locale> GetLocale(uint16_t lcid);
+ std::unique_ptr<LocaleIface> GetLocale(uint16_t lcid);
- std::vector<std::unique_ptr<IFX_Locale>> m_LocaleArray;
- std::vector<std::unique_ptr<IFX_Locale>> m_XMLLocaleArray;
- IFX_Locale* m_pDefLocale; // owned by m_LocaleArray or m_XMLLocaleArray.
+ std::vector<std::unique_ptr<LocaleIface>> m_LocaleArray;
+ std::vector<std::unique_ptr<LocaleIface>> m_XMLLocaleArray;
+ LocaleIface* m_pDefLocale; // owned by m_LocaleArray or m_XMLLocaleArray.
WideString m_wsConfigLocale;
uint16_t m_dwDeflcid;
uint16_t m_dwLocaleFlags;
diff --git a/xfa/fxfa/parser/cxfa_localevalue.cpp b/xfa/fxfa/parser/cxfa_localevalue.cpp
index 756d4c2..8ef67e5 100644
--- a/xfa/fxfa/parser/cxfa_localevalue.cpp
+++ b/xfa/fxfa/parser/cxfa_localevalue.cpp
@@ -87,7 +87,7 @@
CXFA_LocaleValue::CXFA_LocaleValue(uint32_t dwType,
const WideString& wsValue,
const WideString& wsFormat,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
CXFA_LocaleMgr* pLocaleMgr)
: m_pLocaleMgr(pLocaleMgr),
m_dwType(dwType),
@@ -105,10 +105,10 @@
bool CXFA_LocaleValue::ValidateValue(const WideString& wsValue,
const WideString& wsPattern,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
WideString* pMatchFormat) {
WideString wsOutput;
- IFX_Locale* locale = m_pLocaleMgr->GetDefLocale();
+ LocaleIface* locale = m_pLocaleMgr->GetDefLocale();
if (pLocale)
m_pLocaleMgr->SetDefLocale(pLocale);
@@ -318,7 +318,7 @@
bool CXFA_LocaleValue::FormatPatterns(WideString& wsResult,
const WideString& wsFormat,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
XFA_VALUEPICTURE eValueType) const {
auto pFormat = pdfium::MakeUnique<CFGAS_FormatString>(m_pLocaleMgr);
std::vector<WideString> wsPatterns;
@@ -334,9 +334,9 @@
bool CXFA_LocaleValue::FormatSinglePattern(WideString& wsResult,
const WideString& wsFormat,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
XFA_VALUEPICTURE eValueType) const {
- IFX_Locale* locale = m_pLocaleMgr->GetDefLocale();
+ LocaleIface* locale = m_pLocaleMgr->GetDefLocale();
if (pLocale)
m_pLocaleMgr->SetDefLocale(pLocale);
@@ -602,8 +602,8 @@
bool CXFA_LocaleValue::ParsePatternValue(const WideString& wsValue,
const WideString& wsPattern,
- IFX_Locale* pLocale) {
- IFX_Locale* locale = m_pLocaleMgr->GetDefLocale();
+ LocaleIface* pLocale) {
+ LocaleIface* locale = m_pLocaleMgr->GetDefLocale();
if (pLocale)
m_pLocaleMgr->SetDefLocale(pLocale);
@@ -715,7 +715,7 @@
bool CXFA_LocaleValue::ValidateNumericTemp(const WideString& wsNumeric,
const WideString& wsFormat,
- IFX_Locale* pLocale) {
+ LocaleIface* pLocale) {
if (wsFormat.IsEmpty() || wsNumeric.IsEmpty())
return true;
diff --git a/xfa/fxfa/parser/cxfa_localevalue.h b/xfa/fxfa/parser/cxfa_localevalue.h
index 44db7b1..cedea10 100644
--- a/xfa/fxfa/parser/cxfa_localevalue.h
+++ b/xfa/fxfa/parser/cxfa_localevalue.h
@@ -11,7 +11,7 @@
#include "core/fxcrt/fx_system.h"
#include "xfa/fxfa/parser/cxfa_node.h"
-class IFX_Locale;
+class LocaleIface;
class CFX_DateTime;
class CXFA_LocaleMgr;
@@ -36,25 +36,25 @@
CXFA_LocaleValue(uint32_t dwType,
const WideString& wsValue,
const WideString& wsFormat,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
CXFA_LocaleMgr* pLocaleMgr);
~CXFA_LocaleValue();
CXFA_LocaleValue& operator=(const CXFA_LocaleValue& value);
bool ValidateValue(const WideString& wsValue,
const WideString& wsPattern,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
WideString* pMatchFormat);
bool FormatPatterns(WideString& wsResult,
const WideString& wsFormat,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
XFA_VALUEPICTURE eValueType) const;
void GetNumericFormat(WideString& wsFormat, int32_t nIntLen, int32_t nDecLen);
bool ValidateNumericTemp(const WideString& wsNumeric,
const WideString& wsFormat,
- IFX_Locale* pLocale);
+ LocaleIface* pLocale);
WideString GetValue() const { return m_wsValue; }
uint32_t GetType() const { return m_dwType; }
@@ -68,7 +68,7 @@
private:
bool FormatSinglePattern(WideString& wsResult,
const WideString& wsFormat,
- IFX_Locale* pLocale,
+ LocaleIface* pLocale,
XFA_VALUEPICTURE eValueType) const;
bool ValidateCanonicalValue(const WideString& wsValue, uint32_t dwVType);
bool ValidateCanonicalDate(const WideString& wsDate, CFX_DateTime* unDate);
@@ -79,7 +79,7 @@
bool ParsePatternValue(const WideString& wsValue,
const WideString& wsPattern,
- IFX_Locale* pLocale);
+ LocaleIface* pLocale);
CXFA_LocaleMgr* m_pLocaleMgr;
WideString m_wsValue;
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp
index 77b6f74..508fb07 100644
--- a/xfa/fxfa/parser/cxfa_node.cpp
+++ b/xfa/fxfa/parser/cxfa_node.cpp
@@ -913,7 +913,7 @@
return pParentOfValueNode ? pParentOfValueNode->GetContainerNode() : nullptr;
}
-IFX_Locale* CXFA_Node::GetLocale() {
+LocaleIface* CXFA_Node::GetLocale() {
Optional<WideString> localeName = GetLocaleName();
if (!localeName)
return nullptr;
@@ -951,7 +951,7 @@
return localeName;
}
- IFX_Locale* pLocale = GetDocument()->GetLocalMgr()->GetDefLocale();
+ LocaleIface* pLocale = GetDocument()->GetLocalMgr()->GetDefLocale();
if (!pLocale)
return {};
@@ -2047,7 +2047,7 @@
if (wsPicture.IsEmpty())
return XFA_EVENTERROR_NotExist;
- IFX_Locale* pLocale = GetLocale();
+ LocaleIface* pLocale = GetLocale();
if (!pLocale)
return XFA_EVENTERROR_NotExist;
@@ -4269,7 +4269,7 @@
XFA_Element eType = pNode->GetElementType();
if (!wsPicture.IsEmpty()) {
CXFA_LocaleMgr* pLocalMgr = GetDocument()->GetLocalMgr();
- IFX_Locale* pLocale = GetLocale();
+ LocaleIface* pLocale = GetLocale();
CXFA_LocaleValue widgetValue = XFA_GetLocaleValue(this);
bValidate =
widgetValue.ValidateValue(wsValue, wsPicture, pLocale, &wsPicture);
@@ -4312,7 +4312,7 @@
}
}
- IFX_Locale* pLocale = GetLocale();
+ LocaleIface* pLocale = GetLocale();
if (!pLocale)
return L"";
@@ -4344,7 +4344,7 @@
}
}
- IFX_Locale* pLocale = GetLocale();
+ LocaleIface* pLocale = GetLocale();
if (!pLocale)
return L"";
@@ -4398,7 +4398,7 @@
}
case XFA_Element::NumericEdit:
if (eValueType != XFA_VALUEPICTURE_Raw && wsPicture.IsEmpty()) {
- IFX_Locale* pLocale = GetLocale();
+ LocaleIface* pLocale = GetLocale();
if (eValueType == XFA_VALUEPICTURE_Display && pLocale)
wsValue = FormatNumStr(NormalizeNumStr(wsValue), pLocale);
}
@@ -4409,7 +4409,7 @@
if (wsPicture.IsEmpty())
return wsValue;
- if (IFX_Locale* pLocale = GetLocale()) {
+ if (LocaleIface* pLocale = GetLocale()) {
CXFA_LocaleValue widgetValue = XFA_GetLocaleValue(this);
CXFA_LocaleMgr* pLocalMgr = GetDocument()->GetLocalMgr();
switch (widgetValue.GetType()) {
@@ -4448,7 +4448,7 @@
return wsValue;
CXFA_LocaleMgr* pLocalMgr = GetDocument()->GetLocalMgr();
- IFX_Locale* pLocale = GetLocale();
+ LocaleIface* pLocale = GetLocale();
CXFA_LocaleValue widgetValue = XFA_GetLocaleValue(this);
if (widgetValue.ValidateValue(wsValue, wsPicture, pLocale, &wsPicture)) {
widgetValue = CXFA_LocaleValue(widgetValue.GetType(), wsValue, wsPicture,
@@ -4467,7 +4467,7 @@
return wsValue;
WideString wsFormattedValue = wsValue;
- if (IFX_Locale* pLocale = GetLocale()) {
+ if (LocaleIface* pLocale = GetLocale()) {
CXFA_Value* pNodeValue = GetChild<CXFA_Value>(0, XFA_Element::Value, false);
if (!pNodeValue)
return wsValue;
@@ -4558,7 +4558,7 @@
}
WideString CXFA_Node::FormatNumStr(const WideString& wsValue,
- IFX_Locale* pLocale) {
+ LocaleIface* pLocale) {
if (wsValue.IsEmpty())
return L"";
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h
index 85aca15..697320d 100644
--- a/xfa/fxfa/parser/cxfa_node.h
+++ b/xfa/fxfa/parser/cxfa_node.h
@@ -42,7 +42,7 @@
class CXFA_Validate;
class CXFA_Value;
class CXFA_WidgetLayoutData;
-class IFX_Locale;
+class LocaleIface;
#define XFA_NODEFILTER_Children 0x01
#define XFA_NODEFILTER_Properties 0x02
@@ -212,7 +212,7 @@
int32_t RemoveBindItem(CXFA_Node* pFormNode);
bool HasBindItem();
CXFA_Node* GetContainerNode();
- IFX_Locale* GetLocale();
+ LocaleIface* GetLocale();
Optional<WideString> GetLocaleName();
XFA_AttributeEnum GetIntact();
@@ -468,7 +468,7 @@
void InsertListTextItem(CXFA_Node* pItems,
const WideString& wsText,
int32_t nIndex);
- WideString FormatNumStr(const WideString& wsValue, IFX_Locale* pLocale);
+ WideString FormatNumStr(const WideString& wsValue, LocaleIface* pLocale);
void GetItemLabel(const WideStringView& wsValue, WideString& wsLabel);
std::pair<XFA_FFWidgetType, CXFA_Ui*> CreateChildUIAndValueNodesIfNeeded();
diff --git a/xfa/fxfa/parser/cxfa_nodelocale.h b/xfa/fxfa/parser/cxfa_nodelocale.h
index 6f79e4a..d1ed800 100644
--- a/xfa/fxfa/parser/cxfa_nodelocale.h
+++ b/xfa/fxfa/parser/cxfa_nodelocale.h
@@ -9,19 +9,19 @@
#include <memory>
-#include "core/fxcrt/ifx_locale.h"
+#include "core/fxcrt/locale_iface.h"
#include "xfa/fxfa/fxfa_basic.h"
class CXFA_Node;
WideString XFA_PatternToString(FX_LOCALENUMSUBCATEGORY category);
-class CXFA_NodeLocale : public IFX_Locale {
+class CXFA_NodeLocale : public LocaleIface {
public:
explicit CXFA_NodeLocale(CXFA_Node* pLocale);
~CXFA_NodeLocale() override;
- // IFX_Locale
+ // LocaleIface
WideString GetName() const override;
WideString GetNumbericSymbol(FX_LOCALENUMSYMBOL eType) const override;
diff --git a/xfa/fxfa/parser/cxfa_xmllocale.h b/xfa/fxfa/parser/cxfa_xmllocale.h
index 5050855..9deaed2 100644
--- a/xfa/fxfa/parser/cxfa_xmllocale.h
+++ b/xfa/fxfa/parser/cxfa_xmllocale.h
@@ -9,16 +9,16 @@
#include <memory>
-#include "core/fxcrt/ifx_locale.h"
+#include "core/fxcrt/locale_iface.h"
class CXML_Element;
-class CXFA_XMLLocale : public IFX_Locale {
+class CXFA_XMLLocale : public LocaleIface {
public:
explicit CXFA_XMLLocale(std::unique_ptr<CXML_Element> pLocaleData);
~CXFA_XMLLocale() override;
- // IFX_Locale
+ // LocaleIface
WideString GetName() const override;
WideString GetNumbericSymbol(FX_LOCALENUMSYMBOL eType) const override;