/* * (c) Copyright Ascensio System SIA 2010-2023 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect * that Ascensio System SIA expressly excludes the warranty of non-infringement * of any third-party rights. * * This program is distributed WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions * of the Program must display Appropriate Legal Notices, as required under * Section 5 of the GNU AGPL version 3. * * Pursuant to Section 7(b) of the License you must retain the original Product * logo when distributing the program. Pursuant to Section 7(e) we decline to * grant you any rights under trademark law for use of our trademarks. * * All the Product's GUI elements, including illustrations and icon sets, as * well as technical writing content are licensed under the terms of the * Creative Commons Attribution-ShareAlike 4.0 International. See the License * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ #pragma once #include "../WritingElement.h" #include "../../Base/Nullable.h" #include "../../Common/ComplexTypes.h" namespace ComplexTypes { namespace Word { //-------------------------------------------------------------------------------- // MacroName 17.16.16 (Part 1) //-------------------------------------------------------------------------------- class CMacroName : public ComplexType { public: ComplexTypes_AdditionConstructors(CMacroName) CMacroName(); virtual ~CMacroName(); virtual void FromXML(XmlUtils::CXmlNode& oNode); virtual void FromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring ToString() const; private: void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: nullable m_oVal; }; //-------------------------------------------------------------------------------- // FFHelpText 17.16.16 (Part 1) //-------------------------------------------------------------------------------- class CFFHelpText : public ComplexType { public: ComplexTypes_AdditionConstructors(CFFHelpText) CFFHelpText(); virtual ~CFFHelpText(); virtual void FromXML(XmlUtils::CXmlNode& oNode); virtual void FromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring ToString() const; private: void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: nullable m_oType; nullable m_oVal; }; //-------------------------------------------------------------------------------- // FFName 17.16.27 (Part 1) //-------------------------------------------------------------------------------- class CFFName : public ComplexType { public: ComplexTypes_AdditionConstructors(CFFName) CFFName(); virtual ~CFFName(); virtual void FromXML(XmlUtils::CXmlNode& oNode); virtual void FromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring ToString() const; private: void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: nullable m_oVal; }; //-------------------------------------------------------------------------------- // FFStatusText 17.16.31 (Part 1) //-------------------------------------------------------------------------------- class CFFStatusText : public ComplexType { public: ComplexTypes_AdditionConstructors(CFFStatusText) CFFStatusText(); virtual ~CFFStatusText(); virtual void FromXML(XmlUtils::CXmlNode& oNode); virtual void FromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring ToString() const; private: void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: nullable m_oType; nullable m_oVal; }; //-------------------------------------------------------------------------------- // FFTextType 17.16.34 (Part 1) //-------------------------------------------------------------------------------- class CFFTextType : public ComplexType { public: ComplexTypes_AdditionConstructors(CFFTextType) CFFTextType(); virtual ~CFFTextType(); virtual void FromXML(XmlUtils::CXmlNode& oNode); virtual void FromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring ToString() const; private: void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: nullable m_oVal; }; } // Word } // ComplexTypes namespace OOX { namespace Logic { //-------------------------------------------------------------------------------- // CFFCheckBox 17.16.7 (Part 1) //-------------------------------------------------------------------------------- class CFFCheckBox : public WritingElement { public: CFFCheckBox(); virtual ~CFFCheckBox(); const CFFCheckBox &operator=(const XmlUtils::CXmlNode &oNode); const CFFCheckBox &operator=(const XmlUtils::CXmlLiteReader& oReader); virtual void fromXML(XmlUtils::CXmlNode& oNode); virtual void fromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring toXML() const; virtual EElementType getType() const; public: nullable m_oChecked; nullable m_oDefault; nullable m_oSize; nullable m_oSizeAuto; }; //-------------------------------------------------------------------------------- // CFFDDList 17.16.9 (Part 1) //-------------------------------------------------------------------------------- class CFFDDList : public WritingElement { public: CFFDDList(); virtual ~CFFDDList(); virtual void ClearItems(); const CFFDDList &operator=(const XmlUtils::CXmlNode &oNode); const CFFDDList &operator=(const XmlUtils::CXmlLiteReader& oReader); virtual void fromXML(XmlUtils::CXmlNode& oNode); virtual void fromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring toXML() const; virtual EElementType getType() const; public: nullable m_oDefault; nullable m_oResult; std::vector m_arrListEntry; }; //-------------------------------------------------------------------------------- // CFFTextInput 17.16.33 (Part 1) //-------------------------------------------------------------------------------- class CFFTextInput : public WritingElement { public: CFFTextInput(); virtual ~CFFTextInput(); const CFFTextInput &operator=(const XmlUtils::CXmlNode &oNode); const CFFTextInput &operator=(const XmlUtils::CXmlLiteReader& oReader); virtual void fromXML(XmlUtils::CXmlNode& oNode); virtual void fromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring toXML() const; virtual EElementType getType() const; nullable m_oDefault; nullable m_oFormat; nullable m_oMaxLength; nullable m_oType; }; //-------------------------------------------------------------------------------- // CFFData 17.16.17 (Part 1) //-------------------------------------------------------------------------------- class CFFData : public WritingElement { public: CFFData(); virtual ~CFFData(); const CFFData &operator=(const XmlUtils::CXmlNode &oNode); const CFFData &operator=(const XmlUtils::CXmlLiteReader& oReader); virtual void fromXML(XmlUtils::CXmlNode& oNode); virtual void fromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring toXML() const; virtual EElementType getType() const; public: nullable m_oCalcOnExit; nullable m_oCheckBox; nullable m_oDDList; nullable m_oEnabled; nullable m_oEntryMacro; nullable m_oExitMacro; nullable m_oHelpText; nullable m_oLabel; nullable m_oName; nullable m_oStatusText; nullable m_oTabIndex; nullable m_oTextInput; }; //-------------------------------------------------------------------------------- // CFldChar 17.16.18 (Part 1) //-------------------------------------------------------------------------------- class CFldChar : public WritingElement { public: CFldChar(OOX::Document *pMain = NULL); virtual ~CFldChar(); const CFldChar &operator=(const XmlUtils::CXmlNode &oNode); const CFldChar &operator=(const XmlUtils::CXmlLiteReader& oReader); virtual void fromXML(XmlUtils::CXmlNode& oNode); virtual void fromXML(XmlUtils::CXmlLiteReader& oReader); virtual std::wstring toXML() const; virtual EElementType getType() const; private: void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: nullable m_oDirty; nullable m_oFldCharType; nullable m_oFldLock; nullable_string m_sPrivateData; nullable m_oFFData; }; } // namespace Logic } // namespace OOX