1056 lines
39 KiB
C++
1056 lines
39 KiB
C++
/*
|
|
* (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 "../../Base/Nullable.h"
|
|
|
|
#include "../../Common/ComplexTypes.h"
|
|
#include "../Logic/VmlOfficeDrawing.h"
|
|
#include "../FtnEdn.h"
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
class CMathPr;
|
|
}
|
|
namespace Settings
|
|
{
|
|
//--------------------------------------------------------------------------------
|
|
// CWritingStyle 17.15.1.2 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CWritingStyle : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CWritingStyle)
|
|
CWritingStyle();
|
|
virtual ~CWritingStyle();
|
|
|
|
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_string m_sAppName;
|
|
nullable_bool m_oCheckSyle;
|
|
nullable_string m_sDllVersion;
|
|
nullable_string m_oLang;
|
|
nullable_bool m_oNlCheck;
|
|
nullable_string m_sVendorID;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CAutoCaption 17.15.1.7 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CAutoCaption : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CAutoCaption)
|
|
CAutoCaption();
|
|
virtual ~CAutoCaption();
|
|
|
|
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_string m_sCaption;
|
|
nullable_string m_sName;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CAutoCaptions 17.15.1.8 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CAutoCaptions : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CAutoCaptions)
|
|
CAutoCaptions();
|
|
virtual ~CAutoCaptions();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
std::vector<OOX::Settings::CAutoCaption*> m_arrAutoCaption;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CCaption 17.15.1.16 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CCaption : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CCaption)
|
|
CCaption();
|
|
virtual ~CCaption();
|
|
|
|
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_bool m_oChapNum;
|
|
nullable<SimpleTypes::CDecimalNumber> m_oHeading;
|
|
std::wstring m_sName;
|
|
nullable_bool m_oNoLabel;
|
|
nullable<SimpleTypes::CNumberFormat> m_oNumFmt;
|
|
nullable<SimpleTypes::CCaptionPos> m_oPos;
|
|
nullable<SimpleTypes::CChapterSep> m_oSep;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CCaptions 17.15.1.17 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CCaptions : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CCaptions)
|
|
CCaptions();
|
|
virtual ~CCaptions();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
std::vector<OOX::Settings::CCaption*> m_arrCaption;
|
|
nullable<OOX::Settings::CAutoCaptions> m_oAutoCaptions;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CCharacterSpacing 17.15.1.18 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CCharacterSpacing : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CCharacterSpacing)
|
|
CCharacterSpacing();
|
|
virtual ~CCharacterSpacing();
|
|
|
|
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:
|
|
SimpleTypes::CCharacterSpacing m_oVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CCompatSetting 17.15.3.4 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CCompatSetting : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CCompatSetting)
|
|
CCompatSetting();
|
|
virtual ~CCompatSetting();
|
|
|
|
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_string m_sName;
|
|
nullable_string m_sUri;
|
|
nullable_string m_sVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CCompat 17.15.1.21 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CCompat : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CCompat)
|
|
CCompat();
|
|
virtual ~CCompat();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
// TO DO: Добавить аттрибуты из 9.7.3 Part4
|
|
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseSingleBorderforContiguousCells;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oWpJustification;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oNoTabHangInd;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oNoLeading;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSpaceForUL;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oNoColumnBalance;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oBalanceSingleByteDoubleByteWidth;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oNoExtraLineSpacing;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotLeaveBackslashAlone;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUlTrailSpace;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotExpandShiftReturn;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSpacingInWholePoints;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oLineWrapLikeWord6;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oPrintBodyTextBeforeHeader;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oPrintColBlack;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oWpSpaceWidth;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oShowBreaksInFrames;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSubFontBySize;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSuppressBottomSpacing;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSuppressTopSpacing;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSuppressSpacingAtTopOfPage;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSuppressTopSpacingWP;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSuppressSpBfAfterPgBrk;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSwapBordersFacingPages;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oConvMailMergeEsc;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oTruncateFontHeightsLikeWP6;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oMwSmallCaps;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUsePrinterMetrics;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotSuppressParagraphBorders;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oWrapTrailSpaces;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oFootnoteLayoutLikeWW8;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oShapeLayoutLikeWW8;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAlignTablesRowByRow;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oForgetLastTabAlignment;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAdjustLineHeightInTable;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAutoSpaceLikeWord95;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oNoSpaceRaiseLower;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotUseHTMLParagraphAutoSpacing;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oLayoutRawTableWidth;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oLayoutTableRowsApart;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseWord97LineBreakRules;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotBreakWrappedTables;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotSnapToGridInCell;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSelectFldWithFirstOrLastChar;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oApplyBreakingRules;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotWrapTextWithPunct;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotUseEastAsianBreakRules;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseWord2002TableStyleRules;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oGrowAutofit;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseFELayout;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseNormalStyleForList;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotUseIndentAsNumberingTabStop;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseAltKinsokuLineBreakRules;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAllowSpaceOfSameStyleInTable;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotSuppressIndentation;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotAutofitConstrainedTables;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAutofitToFirstFixedWidthCell;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUnderlineTabInNumList;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDisplayHangulFixedWidth;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSplitPgBreakAndParaMark;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotVertAlignCellWithSp;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotBreakConstrainedForcedTable;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotVertAlignInTxbx;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseAnsiKerningPairs;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oCachedColBalance;
|
|
|
|
std::vector<OOX::Settings::CCompatSetting*> m_arrCompatSettings;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CDocProtect 17.15.1.29 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CDocProtect : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CDocProtect)
|
|
CDocProtect();
|
|
virtual ~CDocProtect();
|
|
|
|
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<SimpleTypes::CCryptAlgoritmName> m_oAlgorithmName;
|
|
nullable<SimpleTypes::CDocProtect> m_oEdit;
|
|
nullable_bool m_oEnforcment;
|
|
nullable_bool m_oFormatting;
|
|
nullable_string m_sHashValue;
|
|
nullable_string m_sSaltValue;
|
|
nullable_int m_oSpinCount;
|
|
//ext
|
|
nullable_string m_oAlgIdExt; //long hex
|
|
nullable_string m_oAlgIdExtSource;
|
|
nullable<SimpleTypes::CCryptAlgClass> m_oCryptAlgorithmClass;
|
|
nullable_int m_oCryptAlgorithmSid;
|
|
nullable<SimpleTypes::CCryptAlgType> m_oCryptAlgorithmType;
|
|
nullable_string m_oCryptProvider;
|
|
nullable<SimpleTypes::CCryptProv> m_oCryptProviderType;
|
|
nullable_string m_oCryptProviderTypeExt; //long hex
|
|
nullable_string m_oCryptProviderTypeExtSource;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CDocType 17.15.1.30 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CDocType : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CDocType)
|
|
CDocType();
|
|
virtual ~CDocType();
|
|
|
|
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:
|
|
// Attributes
|
|
SimpleTypes::CDocType m_oVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CDocVar 17.15.1.31 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CDocVar : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CDocVar)
|
|
CDocVar();
|
|
virtual ~CDocVar();
|
|
|
|
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:
|
|
std::wstring m_sName;
|
|
std::wstring m_sVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CDocVars 17.15.1.32 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CDocVars : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CDocVars)
|
|
CDocVars();
|
|
virtual ~CDocVars();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
std::vector<OOX::Settings::CDocVar*> m_arrDocVar;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CKinsoku 17.15.1.58 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CKinsoku : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CKinsoku)
|
|
CKinsoku();
|
|
virtual ~CKinsoku();
|
|
|
|
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:
|
|
EElementType m_eType;
|
|
|
|
std::wstring m_sLang;
|
|
std::wstring m_sVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CProof 17.15.1.65 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CProof : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CProof)
|
|
CProof();
|
|
virtual ~CProof();
|
|
|
|
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<SimpleTypes::CProof> m_oGrammar;
|
|
nullable<SimpleTypes::CProof> m_oSpelling;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CReadingModeInkLockDown 17.15.1.66 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CReadingModeInkLockDown : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CReadingModeInkLockDown)
|
|
CReadingModeInkLockDown();
|
|
virtual ~CReadingModeInkLockDown();
|
|
|
|
public:
|
|
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:
|
|
SimpleTypes::COnOff m_oActualPg;
|
|
SimpleTypes::CDecimalNumberOrPercent m_oFontSz;
|
|
SimpleTypes::CPixelsMeasure m_oH;
|
|
SimpleTypes::CPixelsMeasure m_oW;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CTrackChangesView 17.15.1.69 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CTrackChangesView : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CTrackChangesView)
|
|
CTrackChangesView();
|
|
virtual ~CTrackChangesView();
|
|
|
|
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_bool m_oComments;
|
|
nullable_bool m_oFormatting;
|
|
nullable_bool m_oInkAnnotataions;
|
|
nullable_bool m_oInsDel;
|
|
nullable_bool m_oMarkup;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CDocRsids 17.15.1.72 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CDocRsids : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CDocRsids)
|
|
CDocRsids();
|
|
virtual ~CDocRsids();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
nullable<ComplexTypes::Word::CLongHexNumber> m_oRsidRoot;
|
|
std::vector<ComplexTypes::Word::CLongHexNumber*> m_arrRsid;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CSaveThroughXslt 17.15.1.76 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CSaveThroughXslt : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CSaveThroughXslt)
|
|
CSaveThroughXslt();
|
|
virtual ~CSaveThroughXslt();
|
|
|
|
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<SimpleTypes::CRelationshipId> m_rId;
|
|
nullable_string m_sSolutionID;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CSmartTagType 17.15.1.81 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CSmartTagType : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CSmartTagType)
|
|
CSmartTagType();
|
|
virtual ~CSmartTagType();
|
|
|
|
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_string m_sName;
|
|
nullable_string m_sNameSpaceUri;
|
|
nullable_string m_sUrl;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CStylePaneFilter 17.15.1.85 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CStylePaneFilter : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CStylePaneFilter)
|
|
CStylePaneFilter();
|
|
virtual ~CStylePaneFilter();
|
|
|
|
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:
|
|
// TO DO: Добавить атрибуты из 9.7.2.4 Part4
|
|
|
|
nullable_bool m_oAllStyles;
|
|
nullable_bool m_oAlternateStyleNames;
|
|
nullable_bool m_oClearFormatting;
|
|
nullable_bool m_oCustomStyles;
|
|
nullable_bool m_oDirectFormattingOnNumbering;
|
|
nullable_bool m_oDirectFormattingOnParagraphs;
|
|
nullable_bool m_oDirectFormattingOnRuns;
|
|
nullable_bool m_oDirectFormattingOnTables;
|
|
nullable_bool m_oHeadingStyles;
|
|
nullable_bool m_oLatentStyles;
|
|
nullable_bool m_oNumberingStyles;
|
|
nullable_bool m_oStylesInUse;
|
|
nullable_bool m_oTableStyles;
|
|
nullable_bool m_oTop3HeadingStyles;
|
|
nullable_bool m_oVisibleStyles;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CStyleSort 17.15.1.86 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CStyleSort : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CStyleSort)
|
|
CStyleSort()
|
|
{
|
|
}
|
|
virtual ~CStyleSort()
|
|
{
|
|
}
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode)
|
|
{
|
|
// TO DO: Реализовать CStyleSort::fromXML(XmlUtils::CXmlNode& oNode)
|
|
}
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader)
|
|
{
|
|
ReadAttributes( oReader );
|
|
|
|
if ( !oReader.IsEmptyNode() )
|
|
oReader.ReadTillEnd();
|
|
}
|
|
virtual std::wstring toXML() const
|
|
{
|
|
std::wstring sResult = L"<w:stylePaneSortMethod w:val=\"" + m_oVal.ToString() + L"\"/>";
|
|
return sResult;
|
|
}
|
|
virtual EElementType getType() const
|
|
{
|
|
return OOX::et_w_stylePaneSortMethod;
|
|
}
|
|
private:
|
|
void ReadAttributes(XmlUtils::CXmlLiteReader& oReader)
|
|
{
|
|
if ( oReader.GetAttributesCount() <= 0 )
|
|
return;
|
|
|
|
if ( !oReader.MoveToFirstAttribute() )
|
|
return;
|
|
|
|
std::wstring wsName = oReader.GetName();
|
|
while( !wsName.empty() )
|
|
{
|
|
if ( L"w:val" == wsName )
|
|
m_oVal = oReader.GetText();
|
|
|
|
if ( !oReader.MoveToNextAttribute() )
|
|
break;
|
|
|
|
wsName = oReader.GetName();
|
|
}
|
|
oReader.MoveToElement();
|
|
}
|
|
public:
|
|
SimpleTypes::CStyleSort m_oVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CView 17.15.1.92 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CView : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CView)
|
|
CView()
|
|
{
|
|
}
|
|
virtual ~CView()
|
|
{
|
|
}
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode)
|
|
{
|
|
// TO DO: Реализовать CView::fromXML(XmlUtils::CXmlNode& oNode)
|
|
}
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader)
|
|
{
|
|
ReadAttributes( oReader );
|
|
|
|
if ( !oReader.IsEmptyNode() )
|
|
oReader.ReadTillEnd();
|
|
}
|
|
virtual std::wstring toXML() const
|
|
{
|
|
std::wstring sResult = L"<w:view w:val=\"" + m_oVal.ToString() + L"\"/>";
|
|
return sResult;
|
|
}
|
|
virtual EElementType getType() const
|
|
{
|
|
return OOX::et_w_stylePaneSortMethod;
|
|
}
|
|
private:
|
|
void ReadAttributes(XmlUtils::CXmlLiteReader& oReader)
|
|
{
|
|
if ( oReader.GetAttributesCount() <= 0 )
|
|
return;
|
|
|
|
if ( !oReader.MoveToFirstAttribute() )
|
|
return;
|
|
|
|
std::wstring wsName = oReader.GetName();
|
|
while( !wsName.empty() )
|
|
{
|
|
if ( L"w:val" == wsName )
|
|
m_oVal = oReader.GetText();
|
|
|
|
if ( !oReader.MoveToNextAttribute() )
|
|
break;
|
|
|
|
wsName = oReader.GetName();
|
|
}
|
|
oReader.MoveToElement();
|
|
}
|
|
public:
|
|
SimpleTypes::CView m_oVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CWriteProtection 17.15.1.93 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CWriteProtection : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CWriteProtection)
|
|
CWriteProtection();
|
|
virtual ~CWriteProtection();
|
|
|
|
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<SimpleTypes::CCryptAlgoritmName> m_oAlgorithmName;
|
|
nullable_string m_sHashValue;
|
|
nullable_bool m_oRecommended;
|
|
nullable_string m_sSaltValue;
|
|
nullable_int m_oSpinCount;
|
|
//ext
|
|
nullable_string m_oAlgIdExt; //long hex
|
|
nullable_string m_oAlgIdExtSource;
|
|
nullable<SimpleTypes::CCryptAlgClass> m_oCryptAlgorithmClass;
|
|
nullable_int m_oCryptAlgorithmSid;
|
|
nullable<SimpleTypes::CCryptAlgType> m_oCryptAlgorithmType;
|
|
nullable_string m_oCryptProvider;
|
|
nullable<SimpleTypes::CCryptProv> m_oCryptProviderType;
|
|
nullable_string m_oCryptProviderTypeExt; //long hex
|
|
nullable_string m_oCryptProviderTypeExtSource;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CZoom 17.15.1.94 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CZoom : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CZoom)
|
|
CZoom();
|
|
virtual ~CZoom();
|
|
|
|
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:
|
|
SimpleTypes::CDecimalNumberOrPercent m_oPercent;
|
|
nullable<SimpleTypes::CZoom> m_oVal;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CEdnDocProps 17.11.4 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CEdnDocProps : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CEdnDocProps)
|
|
CEdnDocProps(OOX::Document *pMain = NULL);
|
|
virtual ~CEdnDocProps();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
public:
|
|
std::vector<OOX::CFtnEdnSepRef*> m_arrEndnote;
|
|
nullable<ComplexTypes::Word::CNumFmt> m_oNumFmt;
|
|
nullable<ComplexTypes::Word::CNumRestart> m_oNumRestart;
|
|
nullable<ComplexTypes::Word::CDecimalNumber> m_oNumStart;
|
|
nullable<ComplexTypes::Word::CEdnPos> m_oPos;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CFtnDocProps 17.11.12 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CFtnDocProps : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CFtnDocProps)
|
|
CFtnDocProps(OOX::Document *pMain = NULL);
|
|
virtual ~CFtnDocProps();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
std::vector<OOX::CFtnEdnSepRef* > m_arrFootnote;
|
|
nullable<ComplexTypes::Word::CNumFmt > m_oNumFmt;
|
|
nullable<ComplexTypes::Word::CNumRestart > m_oNumRestart;
|
|
nullable<ComplexTypes::Word::CDecimalNumber > m_oNumStart;
|
|
nullable<ComplexTypes::Word::CFtnPos > m_oPos;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CSchema 23.2.1 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CSchema : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CSchema)
|
|
CSchema();
|
|
virtual ~CSchema();
|
|
|
|
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:
|
|
std::wstring m_sManifestLocation;
|
|
std::wstring m_sShemaLanguage;
|
|
std::wstring m_sShemaLocation;
|
|
std::wstring m_sUri;
|
|
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CSchemaLibrary 23.2.2 (Part 1)
|
|
//--------------------------------------------------------------------------------
|
|
class CSchemaLibrary : public WritingElement
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CSchemaLibrary)
|
|
CSchemaLibrary();
|
|
virtual ~CSchemaLibrary();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
std::vector<OOX::Settings::CSchema*> m_arrSchema;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CShapeDefaults 9.7.2.1;9.7.2.2 (Part 4)
|
|
//--------------------------------------------------------------------------------
|
|
class CShapeDefaults : public WritingElementWithChilds<>
|
|
{
|
|
public:
|
|
WritingElement_AdditionMethods(CShapeDefaults)
|
|
CShapeDefaults();
|
|
CShapeDefaults(EElementType type);
|
|
virtual ~CShapeDefaults();
|
|
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
|
|
public:
|
|
EElementType m_eType;
|
|
};
|
|
|
|
} // namespace Settings
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CSettings 17.11.15.1.78
|
|
//--------------------------------------------------------------------------------
|
|
class CSettings : public OOX::File, OOX::WritingElement
|
|
{
|
|
public:
|
|
CSettings(OOX::Document *pMain);
|
|
CSettings(OOX::Document *pMain, const CPath& oPath);
|
|
CSettings(XmlUtils::CXmlNode& oNode);
|
|
CSettings(XmlUtils::CXmlLiteReader& oReader);
|
|
virtual ~CSettings();
|
|
virtual void read(const CPath& oFilePath);
|
|
virtual void fromXML(XmlUtils::CXmlNode& oNode);
|
|
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader);
|
|
virtual void write(const CPath& oFilePath, const CPath& oDirectory, CContentTypes& oContent) const;
|
|
virtual std::wstring toXML() const;
|
|
virtual EElementType getType() const;
|
|
virtual const OOX::FileType type() const;
|
|
virtual const CPath DefaultDirectory() const;
|
|
virtual const CPath DefaultFileName() const;
|
|
void SetDefaults();
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
nullable<OOX::Settings::CWritingStyle> m_oActiveWritingStyle;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAlignBordersAndEdges;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAlwaysMergeEmptyNamespace;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAlwaysShowPlaceholderText;
|
|
nullable<ComplexTypes::Word::String> m_oAttachedSchema;
|
|
nullable<ComplexTypes::Word::CRel> m_oAttachedTemplate;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAutoFormatOverride;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oAutoHyphenation;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oBookFoldPrinting;
|
|
nullable<ComplexTypes::Word::CDecimalNumber> m_oBookFoldPrintingSheets;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oBookFoldRevPrinting;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oBordersDoNotSurroundFooter;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oBordersDoNotSurroundHeader;
|
|
nullable<OOX::Settings::CCaptions> m_oCaptions;
|
|
nullable<OOX::Settings::CCharacterSpacing> m_oCharacterSpacingControl;
|
|
nullable<ComplexTypes::Word::String> m_oClickAndTypeStyle;
|
|
nullable<PPTX::Logic::ClrMap> m_oClrSchemeMapping;
|
|
nullable<OOX::Settings::CCompat> m_oCompat;
|
|
nullable<ComplexTypes::Word::CDecimalNumber> m_oConsecutiveHyphenLimit;
|
|
nullable<ComplexTypes::Word::String> m_oDecimalSymbol;
|
|
nullable<ComplexTypes::Word::String> m_oDefaultTableStyle;
|
|
nullable<ComplexTypes::Word::CTwipsMeasure> m_oDefaultTabStop;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDisplayBackgroundShape;
|
|
nullable<ComplexTypes::Word::CDecimalNumber> m_oDisplayHorizontalDrawingGridEvery;
|
|
nullable<ComplexTypes::Word::CDecimalNumber> m_oDisplayVerticalDrawingGridEvery;
|
|
nullable<OOX::Settings::CDocProtect> m_oDocumentProtection;
|
|
nullable<OOX::Settings::CDocType> m_oDocumentType;
|
|
nullable<OOX::Settings::CDocVars> m_oDocVars;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotAutoCompressPictures;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotDemarcateInvalidXml;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotDisplayPageBoundaries;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotEmbedSmartTags;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotHyphenateCaps;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotIncludeSubdocsInStats;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotShadeFormData;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotTrackFormatting;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotTrackMoves;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotUseMarginsForDrawingGridOrigin;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oDoNotValidateAgainstSchema;
|
|
nullable<ComplexTypes::Word::CTwipsMeasure> m_oDrawingGridHorizontalOrigin;
|
|
nullable<ComplexTypes::Word::CTwipsMeasure> m_oDrawingGridHorizontalSpacing;
|
|
nullable<ComplexTypes::Word::CTwipsMeasure> m_oDrawingGridVerticalOrigin;
|
|
nullable<ComplexTypes::Word::CTwipsMeasure> m_oDrawingGridVerticalSpacing;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oEmbedSystemFonts;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oEmbedTrueTypeFonts;
|
|
nullable<OOX::Settings::CEdnDocProps> m_oEndnotePr;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oEvenAndOddHeaders;
|
|
nullable<OOX::Settings::CFtnDocProps> m_oFootnotePr;
|
|
nullable<ComplexTypes::Word::CEmpty> m_oForceUpgrade;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oFormsDesign;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oGutterAtTop;
|
|
nullable<OOX::Settings::CShapeDefaults> m_oHdrShapeDefaults;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oHideGrammaticalErrors;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oHideSpellingErrors;
|
|
nullable<ComplexTypes::Word::CTwipsMeasure> m_oHyphenationZone;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oIgnoreMixedContent;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oLinkStyles;
|
|
nullable<ComplexTypes::Word::String> m_oListSeparator;
|
|
// TO DO: Settings::mailMerge
|
|
nullable<OOX::Logic::CMathPr> m_oMathPr;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oMirrorMargins;
|
|
nullable<OOX::Settings::CKinsoku> m_oNoLineBreaksAfter;
|
|
nullable<OOX::Settings::CKinsoku> m_oNoLineBreaksBefore;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oNoPunctuationKerning;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oPrintFormsData;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oPrintFractionalCharacterWidth;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oPrintPostScriptOverText;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oPrintTwoOnOne;
|
|
nullable<OOX::Settings::CProof> m_oProofState;
|
|
nullable<OOX::Settings::CReadingModeInkLockDown> m_oReadModeInkLockDown;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oRemoveDateAndTime;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oRemovePersonalInformation;
|
|
nullable<OOX::Settings::CTrackChangesView> m_oRevisionView;
|
|
nullable<OOX::Settings::CDocRsids> m_oRsids;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSaveFormsData;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSaveInvalidXml;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSavePreviewPicture;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSaveSubsetFonts;
|
|
nullable<OOX::Settings::CSaveThroughXslt> m_oSaveThroughtXslt;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSaveXmlDataOnly;
|
|
nullable<OOX::Settings::CSchemaLibrary> m_oSchemaLibrary;
|
|
nullable<OOX::Settings::CShapeDefaults> m_oShapeDefaults;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oShowEnvelope;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oShowXMLTags;
|
|
std::vector<OOX::Settings::CSmartTagType*> m_arrSmartTagType;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oStrictFirstAndLastChars;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oStyleLockQFSet;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oStyleLockTheme;
|
|
nullable<OOX::Settings::CStylePaneFilter> m_oStylePaneFormatFilter;
|
|
nullable<OOX::Settings::CStyleSort> m_oStylePaneSortMethod;
|
|
nullable<ComplexTypes::Word::CDecimalNumberOrPrecent> m_oSummaryLength;
|
|
nullable<ComplexTypes::Word::CLanguage> m_oThemeFontLang;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oTrackRevisions;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUpdateFields;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oUseXSLTWhenSaving;
|
|
nullable<OOX::Settings::CView> m_oView;
|
|
nullable<OOX::Settings::CWriteProtection> m_oWriteProtection;
|
|
nullable<OOX::Settings::CZoom> m_oZoom;
|
|
};
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// CSettingsCustom
|
|
//--------------------------------------------------------------------------------
|
|
class CSettingsCustom
|
|
{
|
|
public:
|
|
static std::wstring GetSchemaUrl();
|
|
void fromXML(const std::wstring& sXml);
|
|
std::wstring toXML();
|
|
bool IsEmpty();
|
|
|
|
nullable<ComplexTypes::Word::CColor> m_oSdtGlobalColor;
|
|
nullable<ComplexTypes::Word::COnOff2> m_oSdtGlobalShowHighlight;
|
|
nullable<ComplexTypes::Word::CColor> m_oSpecialFormsHighlight;
|
|
};
|
|
|
|
} // namespace OOX
|
|
|