OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_FXEDIT_INCLUDE_FX_EDIT_H_ | 7 #ifndef FPDFSDK_FXEDIT_INCLUDE_FX_EDIT_H_ |
8 #define FPDFSDK_FXEDIT_INCLUDE_FX_EDIT_H_ | 8 #define FPDFSDK_FXEDIT_INCLUDE_FX_EDIT_H_ |
9 | 9 |
10 #include "core/fpdfdoc/include/cpdf_variabletext.h" | 10 #include "core/fpdfdoc/include/cpdf_variabletext.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 }; | 162 }; |
163 | 163 |
164 class IFX_Edit { | 164 class IFX_Edit { |
165 public: | 165 public: |
166 static IFX_Edit* NewEdit(); | 166 static IFX_Edit* NewEdit(); |
167 static void DelEdit(IFX_Edit* pEdit); | 167 static void DelEdit(IFX_Edit* pEdit); |
168 | 168 |
169 // set a IPVT_FontMap pointer implemented by user. | 169 // set a IPVT_FontMap pointer implemented by user. |
170 virtual void SetFontMap(IPVT_FontMap* pFontMap) = 0; | 170 virtual void SetFontMap(IPVT_FontMap* pFontMap) = 0; |
171 | 171 |
172 // if user don't like to use FontMap, implement VTProvider and set it | |
173 // directly. | |
174 virtual void SetVTProvider(CPDF_VariableText::Provider* pProvider) = 0; | |
175 | |
176 // set a IFX_Edit_Notify pointer implemented by user. | 172 // set a IFX_Edit_Notify pointer implemented by user. |
177 virtual void SetNotify(IFX_Edit_Notify* pNotify) = 0; | 173 virtual void SetNotify(IFX_Edit_Notify* pNotify) = 0; |
178 virtual void SetOprNotify(IFX_Edit_OprNotify* pOprNotify) = 0; | 174 virtual void SetOprNotify(IFX_Edit_OprNotify* pOprNotify) = 0; |
179 | 175 |
180 // get a pointer allocated by CPDF_Edit, by this pointer, user can iterate the | 176 // get a pointer allocated by CPDF_Edit, by this pointer, user can iterate the |
181 // contents of edit, but don't need to release. | 177 // contents of edit, but don't need to release. |
182 virtual IFX_Edit_Iterator* GetIterator() = 0; | 178 virtual IFX_Edit_Iterator* GetIterator() = 0; |
183 | 179 |
184 // get a VT pointer relative to this edit. | 180 // get a VT pointer relative to this edit. |
185 virtual CPDF_VariableText* GetVariableText() = 0; | 181 virtual CPDF_VariableText* GetVariableText() = 0; |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 protected: | 616 protected: |
621 virtual ~IFX_List() {} | 617 virtual ~IFX_List() {} |
622 }; | 618 }; |
623 | 619 |
624 CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, | 620 CFX_ByteString GetPDFWordString(IPVT_FontMap* pFontMap, |
625 int32_t nFontIndex, | 621 int32_t nFontIndex, |
626 uint16_t Word, | 622 uint16_t Word, |
627 uint16_t SubWord); | 623 uint16_t SubWord); |
628 | 624 |
629 #endif // FPDFSDK_FXEDIT_INCLUDE_FX_EDIT_H_ | 625 #endif // FPDFSDK_FXEDIT_INCLUDE_FX_EDIT_H_ |
OLD | NEW |