diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-13 10:55:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-13 10:55:49 -0700 |
commit | a2919b31197737d35e4e1df53b02f7ee7cb4cf5e (patch) | |
tree | 18cf18a9081ba48d35e218279d017a6be688f029 /fpdfsdk/javascript | |
parent | 38506d3334fe114fb386ea9b719d432ff1760e42 (diff) | |
download | pdfium-a2919b31197737d35e4e1df53b02f7ee7cb4cf5e.tar.xz |
Remove RichText support from fpdfsdk/fxedit.
This CL removes the support code for RichText from fxedit as it is currently unused.
Review-Url: https://codereview.chromium.org/2146503002
Diffstat (limited to 'fpdfsdk/javascript')
-rw-r--r-- | fpdfsdk/javascript/Field.cpp | 18 | ||||
-rw-r--r-- | fpdfsdk/javascript/Field.h | 7 |
2 files changed, 1 insertions, 24 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp index 8d7fe1b186..ee910329d5 100644 --- a/fpdfsdk/javascript/Field.cpp +++ b/fpdfsdk/javascript/Field.cpp @@ -2225,8 +2225,6 @@ FX_BOOL Field::richText(IJS_Context* cc, if (m_bDelay) { AddDelay_Bool(FP_RICHTEXT, bVP); - } else { - Field::SetRichText(m_pDocument, m_FieldName, m_nFormControlIndex, bVP); } } else { std::vector<CPDF_FormField*> FieldArray = GetFormFields(m_FieldName); @@ -2246,25 +2244,12 @@ FX_BOOL Field::richText(IJS_Context* cc, return TRUE; } -void Field::SetRichText(CPDFSDK_Document* pDocument, - const CFX_WideString& swFieldName, - int nControlIndex, - bool b) { - // Not supported. -} - FX_BOOL Field::richValue(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { return TRUE; } -void Field::SetRichValue(CPDFSDK_Document* pDocument, - const CFX_WideString& swFieldName, - int nControlIndex) { - // Not supported. -} - FX_BOOL Field::rotation(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { @@ -3506,8 +3491,7 @@ void Field::DoDelay(CPDFSDK_Document* pDocument, CJS_DelayData* pData) { pData->rect); break; case FP_RICHTEXT: - Field::SetRichText(pDocument, pData->sFieldName, pData->nControlIndex, - pData->b); + // Not supported. break; case FP_RICHVALUE: break; diff --git a/fpdfsdk/javascript/Field.h b/fpdfsdk/javascript/Field.h index 2972909149..5697865b7c 100644 --- a/fpdfsdk/javascript/Field.h +++ b/fpdfsdk/javascript/Field.h @@ -374,13 +374,6 @@ class Field : public CJS_EmbedObj { const CFX_WideString& swFieldName, int nControlIndex, const CFX_FloatRect& rect); - static void SetRichText(CPDFSDK_Document* pDocument, - const CFX_WideString& swFieldName, - int nControlIndex, - bool b); - static void SetRichValue(CPDFSDK_Document* pDocument, - const CFX_WideString& swFieldName, - int nControlIndex); static void SetRotation(CPDFSDK_Document* pDocument, const CFX_WideString& swFieldName, int nControlIndex, |