Index: xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h |
diff --git a/xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h b/xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h |
index 92a31bd989759fe43c6dd1f07d24e77337cffeae..53af246796e95635d641948fc895f5b799841af2 100644 |
--- a/xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h |
+++ b/xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h |
@@ -7,13 +7,16 @@ |
#ifndef XFA_FXBARCODE_ONED_BC_ONEDCODABARWRITER_H_ |
#define XFA_FXBARCODE_ONED_BC_ONEDCODABARWRITER_H_ |
-enum BC_TEXT_LOC; |
-class CBC_OneDimWriter; |
-class CBC_OnedCodaBarWriter; |
+#include "core/include/fxcrt/fx_string.h" |
+#include "core/include/fxcrt/fx_system.h" |
+#include "xfa/fxbarcode/include/BC_Library.h" |
+#include "xfa/fxbarcode/oned/BC_OneDimWriter.h" |
+ |
class CBC_OnedCodaBarWriter : public CBC_OneDimWriter { |
public: |
CBC_OnedCodaBarWriter(); |
virtual ~CBC_OnedCodaBarWriter(); |
+ |
uint8_t* Encode(const CFX_ByteString& contents, |
int32_t& outLength, |
int32_t& e); |
@@ -28,6 +31,7 @@ class CBC_OnedCodaBarWriter : public CBC_OneDimWriter { |
int32_t& outHeight, |
int32_t hints, |
int32_t& e); |
+ |
CFX_WideString encodedContents(const CFX_WideStringC& contents); |
FX_BOOL CheckContentValidity(const CFX_WideStringC& contents); |
CFX_WideString FilterContents(const CFX_WideStringC& contents); |
@@ -39,13 +43,15 @@ class CBC_OnedCodaBarWriter : public CBC_OneDimWriter { |
FX_BOOL FindChar(FX_WCHAR ch, FX_BOOL isContent); |
private: |
+ static const FX_CHAR START_END_CHARS[]; |
+ static const FX_CHAR CONTENT_CHARS[]; |
+ |
void RenderResult(const CFX_WideStringC& contents, |
uint8_t* code, |
int32_t codeLength, |
FX_BOOL isDevice, |
int32_t& e); |
- static const FX_CHAR START_END_CHARS[]; |
- static const FX_CHAR CONTENT_CHARS[]; |
+ |
FX_CHAR m_chStart; |
FX_CHAR m_chEnd; |
int32_t m_iWideNarrRatio; |