From dcbb8e53e604178dc97d12846ddbdef88be41297 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 14 Dec 2017 19:48:44 +0000 Subject: Fold CXFA_ValidateData into CXFA_Validate The ValidateData class is a thin wrapper around the Validate class. Now that the Validate class exists we can fold the methods from ValidateData into Validate. Change-Id: I1e72f4b7bddeb22a311f4fe9a5940204221b6d2a Reviewed-on: https://pdfium-review.googlesource.com/21150 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_validatedata.h | 45 ------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 xfa/fxfa/parser/cxfa_validatedata.h (limited to 'xfa/fxfa/parser/cxfa_validatedata.h') diff --git a/xfa/fxfa/parser/cxfa_validatedata.h b/xfa/fxfa/parser/cxfa_validatedata.h deleted file mode 100644 index 309db62ab6..0000000000 --- a/xfa/fxfa/parser/cxfa_validatedata.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2016 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 XFA_FXFA_PARSER_CXFA_VALIDATEDATA_H_ -#define XFA_FXFA_PARSER_CXFA_VALIDATEDATA_H_ - -#include "core/fxcrt/fx_string.h" -#include "core/fxcrt/fx_system.h" -#include "xfa/fxfa/parser/cxfa_datadata.h" -#include "xfa/fxfa/parser/cxfa_scriptdata.h" - -class CXFA_Node; - -class CXFA_ValidateData : public CXFA_DataData { - public: - explicit CXFA_ValidateData(CXFA_Node* pNode); - - XFA_AttributeEnum GetFormatTest() const; - WideString GetFormatMessageText() const; - void SetFormatMessageText(const WideString& wsMessage); - - XFA_AttributeEnum GetNullTest() const; - void SetNullTest(const WideString& wsValue); - - WideString GetNullMessageText() const; - void SetNullMessageText(const WideString& wsMessage); - - XFA_AttributeEnum GetScriptTest() const; - WideString GetScriptMessageText() const; - void SetScriptMessageText(const WideString& wsMessage); - - WideString GetPicture() const; - - CXFA_ScriptData GetScriptData() const; - - private: - WideString GetMessageText(const WideString& wsMessageType) const; - void SetMessageText(const WideString& wsMessageType, - const WideString& wsMessage); -}; - -#endif // XFA_FXFA_PARSER_CXFA_VALIDATEDATA_H_ -- cgit v1.2.3