init repo
This commit is contained in:
70
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/AlbumLayout.h
Normal file
70
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/AlbumLayout.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_ALBUMLAYOUT_INCLUDE_H_
|
||||
#define PPTX_LIMIT_ALBUMLAYOUT_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class AlbumLayout : public BaseLimit
|
||||
{
|
||||
public:
|
||||
AlbumLayout()
|
||||
{
|
||||
m_strValue = _T("fitToSlide");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("1pic") == strValue) ||
|
||||
(_T("1picTitle") == strValue) ||
|
||||
(_T("2pic") == strValue) ||
|
||||
(_T("2picTitle") == strValue) ||
|
||||
(_T("4pic") == strValue) ||
|
||||
(_T("4picTitle") == strValue) ||
|
||||
(_T("fitToSlide") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_ALBUMLAYOUT_INCLUDE_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_ANIMATIONDGMBUILD_INCLUDE_H_
|
||||
#define PPTX_LIMIT_ANIMATIONDGMBUILD_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class AnimationDgmBuild : public BaseLimit
|
||||
{
|
||||
public:
|
||||
AnimationDgmBuild()
|
||||
{
|
||||
m_strValue = _T("allAtOnce");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((strValue == _T("allAtOnce")) ||
|
||||
(strValue == _T("lvlAtOnce")) ||
|
||||
(strValue == _T("lvlOne")) ||
|
||||
(strValue == _T("one")))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_ANIMATIONDGMBUILD_INCLUDE_H_
|
||||
122
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BWMode.h
Normal file
122
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BWMode.h
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_BWMODE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_BWMODE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class BWMode : public BaseLimit
|
||||
{
|
||||
public:
|
||||
BWMode()
|
||||
{
|
||||
m_strValue = _T("auto");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("auto") == strValue) ||
|
||||
(_T("black") == strValue) ||
|
||||
(_T("blackGray") == strValue) ||
|
||||
(_T("blackWhite") == strValue) ||
|
||||
(_T("clr") == strValue) ||
|
||||
(_T("gray") == strValue) ||
|
||||
(_T("grayWhite") == strValue) ||
|
||||
(_T("hidden") == strValue) ||
|
||||
(_T("invGray") == strValue) ||
|
||||
(_T("ltGray") == strValue) ||
|
||||
(_T("white") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("auto") == m_strValue)
|
||||
return 0;
|
||||
if (_T("black") == m_strValue)
|
||||
return 1;
|
||||
if (_T("blackGray") == m_strValue)
|
||||
return 2;
|
||||
if (_T("blackWhite") == m_strValue)
|
||||
return 3;
|
||||
if (_T("clr") == m_strValue)
|
||||
return 4;
|
||||
if (_T("gray") == m_strValue)
|
||||
return 5;
|
||||
if (_T("grayWhite") == m_strValue)
|
||||
return 6;
|
||||
if (_T("hidden") == m_strValue)
|
||||
return 7;
|
||||
if (_T("invGray") == m_strValue)
|
||||
return 8;
|
||||
if (_T("ltGray") == m_strValue)
|
||||
return 9;
|
||||
if (_T("white") == m_strValue)
|
||||
return 10;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0: m_strValue = _T("auto"); break;
|
||||
case 1: m_strValue = _T("black"); break;
|
||||
case 2: m_strValue = _T("blackGray"); break;
|
||||
case 3: m_strValue = _T("blackWhite"); break;
|
||||
case 4: m_strValue = _T("clr"); break;
|
||||
case 5: m_strValue = _T("gray"); break;
|
||||
case 6: m_strValue = _T("grayWhite"); break;
|
||||
case 7: m_strValue = _T("hidden"); break;
|
||||
case 8: m_strValue = _T("invGray"); break;
|
||||
case 9: m_strValue = _T("ltGray"); break;
|
||||
case 10: m_strValue = _T("white"); break;
|
||||
default:
|
||||
m_strValue = _T("auto");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_BWMODE_INCLUDE_H_
|
||||
105
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BaseLimit.h
Normal file
105
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BaseLimit.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_BASE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_BASE_INCLUDE_H_
|
||||
|
||||
#include "../../../Common/DocxFormat/Source/Base/Base.h"
|
||||
|
||||
#define _USE_STRING_OPERATOR \
|
||||
virtual void operator=(const CString& value) \
|
||||
{ \
|
||||
set(value); \
|
||||
} \
|
||||
virtual void operator=(const BSTR& value) \
|
||||
{ \
|
||||
set((CString)value); \
|
||||
}
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class BaseLimit
|
||||
{
|
||||
public:
|
||||
BaseLimit(const CString& str = _T("")) : m_strValue(str)
|
||||
{
|
||||
}
|
||||
|
||||
BaseLimit(const BaseLimit& oSrc)
|
||||
{
|
||||
*this = oSrc;
|
||||
}
|
||||
|
||||
BaseLimit& operator=(const BaseLimit& oSrc)
|
||||
{
|
||||
m_strValue = oSrc.m_strValue;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void operator=(const CString& str)
|
||||
{
|
||||
set(str);
|
||||
}
|
||||
AVSINLINE void _set(const CString& strValue)
|
||||
{
|
||||
set(strValue);
|
||||
}
|
||||
|
||||
public:
|
||||
virtual void set(const CString& strValue) = 0;
|
||||
|
||||
AVSINLINE CString& get()
|
||||
{
|
||||
return m_strValue;
|
||||
}
|
||||
AVSINLINE const CString& get() const
|
||||
{
|
||||
return m_strValue;
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
CString m_strValue;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_BASE_INCLUDE_H_
|
||||
103
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BevelType.h
Normal file
103
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BevelType.h
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_BEVELTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_BEVELTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class BevelType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
BevelType()
|
||||
{
|
||||
m_strValue = _T("circle");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("angle") == strValue) ||
|
||||
(_T("artDeco") == strValue) ||
|
||||
(_T("circle") == strValue) ||
|
||||
(_T("convex") == strValue) ||
|
||||
(_T("coolSlant") == strValue) ||
|
||||
(_T("cross") == strValue) ||
|
||||
(_T("divot") == strValue) ||
|
||||
(_T("hardEdge") == strValue) ||
|
||||
(_T("relaxedInset") == strValue) ||
|
||||
(_T("riblet") == strValue) ||
|
||||
(_T("slope") == strValue) ||
|
||||
(_T("softRound") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("angle") == m_strValue)
|
||||
return 0;
|
||||
if (_T("artDeco") == m_strValue)
|
||||
return 1;
|
||||
if (_T("circle") == m_strValue)
|
||||
return 2;
|
||||
if (_T("convex") == m_strValue)
|
||||
return 3;
|
||||
if (_T("coolSlant") == m_strValue)
|
||||
return 4;
|
||||
if (_T("cross") == m_strValue)
|
||||
return 5;
|
||||
if (_T("divot") == m_strValue)
|
||||
return 6;
|
||||
if (_T("hardEdge") == m_strValue)
|
||||
return 7;
|
||||
if (_T("relaxedInset") == m_strValue)
|
||||
return 8;
|
||||
if (_T("riblet") == m_strValue)
|
||||
return 9;
|
||||
if (_T("slope") == m_strValue)
|
||||
return 10;
|
||||
if (_T("softRound") == m_strValue)
|
||||
return 11;
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_BEVELTYPE_INCLUDE_H_
|
||||
83
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BlendMode.h
Normal file
83
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BlendMode.h
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_BLENDMODE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_BLENDMODE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class BlendMode : public BaseLimit
|
||||
{
|
||||
public:
|
||||
BlendMode()
|
||||
{
|
||||
m_strValue = _T("screen");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("darken") == strValue) ||
|
||||
(_T("lighten") == strValue) ||
|
||||
(_T("mult") == strValue) ||
|
||||
(_T("over") == strValue) ||
|
||||
(_T("screen") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("darken") == m_strValue)
|
||||
return 0;
|
||||
if (_T("lighten") == m_strValue)
|
||||
return 1;
|
||||
if (_T("mult") == m_strValue)
|
||||
return 2;
|
||||
if (_T("over") == m_strValue)
|
||||
return 3;
|
||||
if (_T("screen") == m_strValue)
|
||||
return 4;
|
||||
return 4;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_BLENDMODE_INCLUDE_H_
|
||||
82
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BlipCompression.h
Normal file
82
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/BlipCompression.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_BLIPCOMPRESSION_INCLUDE_H_
|
||||
#define PPTX_LIMIT_BLIPCOMPRESSION_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class BlipCompression : public BaseLimit
|
||||
{
|
||||
public:
|
||||
BlipCompression()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("none") == strValue) ||
|
||||
(_T("email") == strValue) ||
|
||||
(_T("hqprint") == strValue) ||
|
||||
(_T("print") == strValue) ||
|
||||
(_T("screen") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("none") == m_strValue)
|
||||
return 0;
|
||||
if (_T("email") == m_strValue)
|
||||
return 1;
|
||||
if (_T("hqprint") == m_strValue)
|
||||
return 2;
|
||||
if (_T("print") == m_strValue)
|
||||
return 3;
|
||||
if (_T("screen") == m_strValue)
|
||||
return 4;
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_BLIPCOMPRESSION_INCLUDE_H_
|
||||
125
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/CameraType.h
Normal file
125
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/CameraType.h
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_CAMERATYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_CAMERATYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class CameraType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
CameraType()
|
||||
{
|
||||
m_strValue = _T("legacyObliqueFront");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void CameraType::set(const CString& strValue)
|
||||
{
|
||||
if ((_T("isometricBottomDown") == strValue) ||
|
||||
(_T("isometricBottomUp") == strValue) ||
|
||||
(_T("isometricLeftDown") == strValue) ||
|
||||
(_T("isometricLeftUp") == strValue) ||
|
||||
(_T("isometricOffAxis1Left") == strValue) ||
|
||||
(_T("isometricOffAxis1Right") == strValue) ||
|
||||
(_T("isometricOffAxis1Top") == strValue) ||
|
||||
(_T("isometricOffAxis2Left") == strValue) ||
|
||||
(_T("isometricOffAxis2Right") == strValue) ||
|
||||
(_T("isometricOffAxis2Top") == strValue) ||
|
||||
(_T("isometricOffAxis3Bottom") == strValue) ||
|
||||
(_T("isometricOffAxis3Left") == strValue) ||
|
||||
(_T("isometricOffAxis3Right") == strValue) ||
|
||||
(_T("isometricOffAxis4Bottom") == strValue) ||
|
||||
(_T("isometricOffAxis4Left") == strValue) ||
|
||||
(_T("isometricOffAxis4Right") == strValue) ||
|
||||
(_T("isometricRightDown") == strValue) ||
|
||||
(_T("isometricRightUp") == strValue) ||
|
||||
(_T("isometricTopDown") == strValue) ||
|
||||
(_T("isometricTopUp") == strValue) ||
|
||||
(_T("legacyObliqueBottom") == strValue) ||
|
||||
(_T("legacyObliqueBottomLeft") == strValue) ||
|
||||
(_T("legacyObliqueBottomRight") == strValue) ||
|
||||
(_T("legacyObliqueFront") == strValue) ||
|
||||
(_T("legacyObliqueLeft") == strValue) ||
|
||||
(_T("legacyObliqueRight") == strValue) ||
|
||||
(_T("legacyObliqueTop") == strValue) ||
|
||||
(_T("legacyObliqueTopLeft") == strValue) ||
|
||||
(_T("legacyObliqueTopRight") == strValue) ||
|
||||
(_T("legacyPerspectiveBottom") == strValue) ||
|
||||
(_T("legacyPerspectiveBottomLeft") == strValue) ||
|
||||
(_T("legacyPerspectiveBottomRight") == strValue) ||
|
||||
(_T("legacyPerspectiveFront") == strValue) ||
|
||||
(_T("legacyPerspectiveLeft") == strValue) ||
|
||||
(_T("legacyPerspectiveRight") == strValue) ||
|
||||
(_T("legacyPerspectiveTop") == strValue) ||
|
||||
(_T("legacyPerspectiveTopLeft") == strValue) ||
|
||||
(_T("legacyPerspectiveTopRight") == strValue) ||
|
||||
(_T("obliqueBottom") == strValue) ||
|
||||
(_T("obliqueBottomLeft") == strValue) ||
|
||||
(_T("obliqueBottomRight") == strValue) ||
|
||||
(_T("obliqueLeft") == strValue) ||
|
||||
(_T("obliqueRight") == strValue) ||
|
||||
(_T("obliqueTop") == strValue) ||
|
||||
(_T("obliqueTopLeft") == strValue) ||
|
||||
(_T("obliqueTopRight") == strValue) ||
|
||||
(_T("orthographicFront") == strValue) ||
|
||||
(_T("perspectiveAbove") == strValue) ||
|
||||
(_T("perspectiveAboveLeftFacing") == strValue) ||
|
||||
(_T("perspectiveAboveRightFacing") == strValue) ||
|
||||
(_T("perspectiveBelow") == strValue) ||
|
||||
(_T("perspectiveContrastingLeftFacing") == strValue) ||
|
||||
(_T("perspectiveContrastingRightFacing") == strValue) ||
|
||||
(_T("perspectiveFront") == strValue) ||
|
||||
(_T("perspectiveHeroicExtremeLeftFacing") == strValue) ||
|
||||
(_T("perspectiveHeroicExtremeRightFacing") == strValue) ||
|
||||
(_T("perspectiveHeroicLeftFacing") == strValue) ||
|
||||
(_T("perspectiveHeroicRightFacing") == strValue) ||
|
||||
(_T("perspectiveLeft") == strValue) ||
|
||||
(_T("perspectiveRelaxed") == strValue) ||
|
||||
(_T("perspectiveRelaxedModerately") == strValue) ||
|
||||
(_T("perspectiveRight") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_CAMERATYPE_INCLUDE_H_
|
||||
69
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ChartBuild.h
Normal file
69
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ChartBuild.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_CHARTBUILD_INCLUDE_H_
|
||||
#define PPTX_LIMIT_CHARTBUILD_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class ChartBuild : public BaseLimit
|
||||
{
|
||||
public:
|
||||
ChartBuild()
|
||||
{
|
||||
m_strValue = _T("allPts");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("allPts") == strValue) ||
|
||||
(_T("category") == strValue) ||
|
||||
(_T("gridLegend") == strValue) ||
|
||||
(_T("ptInCategory") == strValue) ||
|
||||
(_T("ptInSeries") == strValue) ||
|
||||
(_T("series") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_CHARTBUILD_INCLUDE_H_
|
||||
68
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ChartBuildType.h
Normal file
68
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ChartBuildType.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_CHARTBUILDTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_CHARTBUILDTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class ChartBuildType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
ChartBuildType::ChartBuildType()
|
||||
{
|
||||
m_strValue = _T("allAtOnce");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("allAtOnce") == strValue) ||
|
||||
(_T("category") == strValue) ||
|
||||
(_T("categoryEl") == strValue) ||
|
||||
(_T("series") == strValue) ||
|
||||
(_T("seriesEl") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_CHARTBUILDTYPE_INCLUDE_H_
|
||||
177
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ColorSchemeIndex.h
Normal file
177
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ColorSchemeIndex.h
Normal file
@@ -0,0 +1,177 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_COLORSCHEMEINDEX_INCLUDE_H_
|
||||
#define PPTX_LIMIT_COLORSCHEMEINDEX_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class ColorSchemeIndex : public BaseLimit
|
||||
{
|
||||
public:
|
||||
ColorSchemeIndex()
|
||||
{
|
||||
m_strValue = _T("accent1");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("accent1") == strValue) ||
|
||||
(_T("accent2") == strValue) ||
|
||||
(_T("accent3") == strValue) ||
|
||||
(_T("accent4") == strValue) ||
|
||||
(_T("accent5") == strValue) ||
|
||||
(_T("accent6") == strValue) ||
|
||||
(_T("dk1") == strValue) ||
|
||||
(_T("dk2") == strValue) ||
|
||||
(_T("folHlink") == strValue) ||
|
||||
(_T("hlink") == strValue) ||
|
||||
(_T("lt1") == strValue) ||
|
||||
(_T("lt2") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (_T("light1") == strValue)
|
||||
m_strValue = _T("lt1");
|
||||
else if (_T("light2") == strValue)
|
||||
m_strValue = _T("lt2");
|
||||
else if (_T("dark1") == strValue)
|
||||
m_strValue = _T("dk1");
|
||||
else if (_T("dark2") == strValue)
|
||||
m_strValue = _T("dk2");
|
||||
else if (_T("hyperlink") == strValue)
|
||||
m_strValue = _T("hlink");
|
||||
else if (_T("followedHyperlink") == strValue)
|
||||
m_strValue = _T("folHlink");
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("accent1") == m_strValue)
|
||||
return 0;
|
||||
if (_T("accent2") == m_strValue)
|
||||
return 1;
|
||||
if (_T("accent3") == m_strValue)
|
||||
return 2;
|
||||
if (_T("accent4") == m_strValue)
|
||||
return 3;
|
||||
if (_T("accent5") == m_strValue)
|
||||
return 4;
|
||||
if (_T("accent6") == m_strValue)
|
||||
return 5;
|
||||
if (_T("bg1") == m_strValue)
|
||||
return 6;
|
||||
if (_T("bg2") == m_strValue)
|
||||
return 7;
|
||||
if (_T("dk1") == m_strValue)
|
||||
return 8;
|
||||
if (_T("dk2") == m_strValue)
|
||||
return 9;
|
||||
if (_T("folHlink") == m_strValue)
|
||||
return 10;
|
||||
if (_T("hlink") == m_strValue)
|
||||
return 11;
|
||||
if (_T("lt1") == m_strValue)
|
||||
return 12;
|
||||
if (_T("lt2") == m_strValue)
|
||||
return 13;
|
||||
if (_T("phClr") == m_strValue)
|
||||
return 14;
|
||||
if (_T("tx1") == m_strValue)
|
||||
return 15;
|
||||
if (_T("tx2") == m_strValue)
|
||||
return 16;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SetStringCode(const BYTE& val)
|
||||
{
|
||||
switch (val)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("accent1");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("accent2");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("accent3");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("accent4");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("accent5");
|
||||
break;
|
||||
case 5:
|
||||
m_strValue = _T("accent6");
|
||||
break;
|
||||
case 8:
|
||||
m_strValue = _T("dk1");
|
||||
break;
|
||||
case 9:
|
||||
m_strValue = _T("dk2");
|
||||
break;
|
||||
case 10:
|
||||
m_strValue = _T("folHlink");
|
||||
break;
|
||||
case 11:
|
||||
m_strValue = _T("hlink");
|
||||
break;
|
||||
case 12:
|
||||
m_strValue = _T("lt1");
|
||||
break;
|
||||
case 13:
|
||||
m_strValue = _T("lt2");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("accent1");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_COLORSCHEMEINDEX_INCLUDE_H_
|
||||
105
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/CompoundLine.h
Normal file
105
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/CompoundLine.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_COMPOUNDLINE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_COMPOUNDLINE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class CompoundLine : public BaseLimit
|
||||
{
|
||||
public:
|
||||
CompoundLine()
|
||||
{
|
||||
m_strValue = _T("sng");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("dbl") == strValue) ||
|
||||
(_T("sng") == strValue) ||
|
||||
(_T("thickThin") == strValue) ||
|
||||
(_T("thinThick") == strValue) ||
|
||||
(_T("tri") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("dbl") == m_strValue)
|
||||
return 0;
|
||||
if (_T("sng") == m_strValue)
|
||||
return 1;
|
||||
if (_T("thickThin") == m_strValue)
|
||||
return 2;
|
||||
if (_T("thinThick") == m_strValue)
|
||||
return 3;
|
||||
if (_T("tri") == m_strValue)
|
||||
return 4;
|
||||
return 1;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("dbl");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("thickThin");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("thinThick");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("tri");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("sng");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_COMPOUNDLINE_INCLUDE_H_
|
||||
74
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Conformance.h
Normal file
74
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Conformance.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_CONFORMANCE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_CONFORMANCE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class Conformance : public BaseLimit
|
||||
{
|
||||
public:
|
||||
Conformance()
|
||||
{
|
||||
m_strValue = _T("transitional");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("strict") == strValue) ||
|
||||
(_T("transitional") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("strict") == m_strValue)
|
||||
return 0;
|
||||
if (_T("transitional") == m_strValue)
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_CONFORMANCE_INCLUDE_H_
|
||||
67
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ContentStatus.h
Normal file
67
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ContentStatus.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_CONTENT_STATUS_INCLUDE_H_
|
||||
#define PPTX_LIMIT_CONTENT_STATUS_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class ContentStatus : public BaseLimit
|
||||
{
|
||||
public:
|
||||
ContentStatus()
|
||||
{
|
||||
m_strValue = _T("Draft");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("Draft") == strValue) ||
|
||||
(_T("Reviewed") == strValue) ||
|
||||
(_T("Final") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_CONTENT_STATUS_INCLUDE_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_CORNERDIRECTIONVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_CORNERDIRECTIONVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class CornerDirectionVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
CornerDirectionVal()
|
||||
{
|
||||
m_strValue = _T("lu");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("ld") == strValue) ||
|
||||
(_T("lu") == strValue) ||
|
||||
(_T("rd") == strValue) ||
|
||||
(_T("ru") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_CORNERDIRECTIONVAL_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/DgmBuild.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/DgmBuild.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_DGMBUILD_INCLUDE_H_
|
||||
#define PPTX_LIMIT_DGMBUILD_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class DgmBuild : public BaseLimit
|
||||
{
|
||||
public:
|
||||
DgmBuild()
|
||||
{
|
||||
m_strValue = _T("sp");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("bg") == strValue) ||
|
||||
(_T("sp") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_DGMBUILD_INCLUDE_H_
|
||||
80
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/DgmBuildType.h
Normal file
80
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/DgmBuildType.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_DGMBUILDTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_DGMBUILDTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class DgmBuildType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
DgmBuildType()
|
||||
{
|
||||
m_strValue = _T("whole");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("allAtOnce") == strValue) ||
|
||||
(_T("breadthByLvl") == strValue) ||
|
||||
(_T("breadthByNode") == strValue) ||
|
||||
(_T("ccw") == strValue) ||
|
||||
(_T("ccwIn") == strValue) ||
|
||||
(_T("ccwOut") == strValue) ||
|
||||
(_T("cust") == strValue) ||
|
||||
(_T("cw") == strValue) ||
|
||||
(_T("cwIn") == strValue) ||
|
||||
(_T("cwOut") == strValue) ||
|
||||
(_T("depthByBranch") == strValue) ||
|
||||
(_T("depthByNode") == strValue) ||
|
||||
(_T("down") == strValue) ||
|
||||
(_T("inByRing") == strValue) ||
|
||||
(_T("outByRing") == strValue) ||
|
||||
(_T("up") == strValue) ||
|
||||
(_T("whole") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_DGMBUILDTYPE_INCLUDE_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_EFFECTCONTAINERTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_EFFECTCONTAINERTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class EffectContainerType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
EffectContainerType()
|
||||
{
|
||||
m_strValue = _T("sib");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("sib") == strValue) ||
|
||||
(_T("tree") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("sib") == m_strValue)
|
||||
return 0;
|
||||
if (_T("tree") == m_strValue)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_EFFECTCONTAINERTYPE_INCLUDE_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_EIGHTDIRECTIONVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_EIGHTDIRECTIONVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class EightDirectionVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
EightDirectionVal()
|
||||
{
|
||||
m_strValue = _T("l");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("ld") == strValue) ||
|
||||
(_T("lu") == strValue) ||
|
||||
(_T("rd") == strValue) ||
|
||||
(_T("ru") == strValue) ||
|
||||
(_T("d") == strValue) ||
|
||||
(_T("l") == strValue) ||
|
||||
(_T("r") == strValue) ||
|
||||
(_T("u") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_EIGHTDIRECTIONVAL_INCLUDE_H_
|
||||
95
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FillPath.h
Normal file
95
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FillPath.h
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_FILLPATH_INCLUDE_H_
|
||||
#define PPTX_LIMIT_FILLPATH_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class FillPath : public BaseLimit
|
||||
{
|
||||
public:
|
||||
FillPath()
|
||||
{
|
||||
m_strValue = _T("circle");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("circle") == strValue) ||
|
||||
(_T("rect") == strValue) ||
|
||||
(_T("shape") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("circle") == m_strValue)
|
||||
return 0;
|
||||
if (_T("rect") == m_strValue)
|
||||
return 1;
|
||||
if (_T("shape") == m_strValue)
|
||||
return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("circle");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("rect");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("shape");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_FILLPATH_INCLUDE_H_
|
||||
101
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Flip.h
Normal file
101
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Flip.h
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_FLIP_INCLUDE_H_
|
||||
#define PPTX_LIMIT_FLIP_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class Flip : public BaseLimit
|
||||
{
|
||||
public:
|
||||
Flip()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("none") == strValue) ||
|
||||
(_T("x") == strValue) ||
|
||||
(_T("xy") == strValue) ||
|
||||
(_T("y") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("none") == m_strValue)
|
||||
return 0;
|
||||
if (_T("x") == m_strValue)
|
||||
return 1;
|
||||
if (_T("y") == m_strValue)
|
||||
return 2;
|
||||
if (_T("xy") == m_strValue)
|
||||
return 3;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("none");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("x");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("y");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("xy");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_FLIP_INCLUDE_H_
|
||||
108
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FontAlign.h
Normal file
108
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FontAlign.h
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_FONTALIGN_INCLUDE_H_
|
||||
#define PPTX_LIMIT_FONTALIGN_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class FontAlign : public BaseLimit
|
||||
{
|
||||
public:
|
||||
FontAlign()
|
||||
{
|
||||
m_strValue = _T("auto");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("auto") == strValue) ||
|
||||
(_T("b") == strValue) ||
|
||||
(_T("base") == strValue) ||
|
||||
(_T("ctr") == strValue) ||
|
||||
(_T("t") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("auto") == m_strValue)
|
||||
return 0;
|
||||
if (_T("b") == m_strValue)
|
||||
return 1;
|
||||
if (_T("base") == m_strValue)
|
||||
return 2;
|
||||
if (_T("ctr") == m_strValue)
|
||||
return 3;
|
||||
if (_T("t") == m_strValue)
|
||||
return 4;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& val)
|
||||
{
|
||||
switch (val)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("auto");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("b");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("base");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("ctr");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("t");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("auto");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_FONTALIGN_INCLUDE_H_
|
||||
92
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FontStyleIndex.h
Normal file
92
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FontStyleIndex.h
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_FONTSTYLEINDEX_INCLUDE_H_
|
||||
#define PPTX_LIMIT_FONTSTYLEINDEX_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class FontStyleIndex : public BaseLimit
|
||||
{
|
||||
public:
|
||||
FontStyleIndex()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("major") == strValue) ||
|
||||
(_T("minor") == strValue) ||
|
||||
(_T("none") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("major") == m_strValue)
|
||||
return 0;
|
||||
if (_T("minor") == m_strValue)
|
||||
return 1;
|
||||
if (_T("none") == m_strValue)
|
||||
return 2;
|
||||
return 2;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("major");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("minor");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_FONTSTYLEINDEX_INCLUDE_H_
|
||||
71
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FrameShape.h
Normal file
71
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/FrameShape.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_FRAMESHAPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_FRAMESHAPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class FrameShape : public BaseLimit
|
||||
{
|
||||
public:
|
||||
FrameShape()
|
||||
{
|
||||
m_strValue = _T("frameStyle1");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("frameStyle1") == strValue) ||
|
||||
(_T("frameStyle2") == strValue) ||
|
||||
(_T("frameStyle3") == strValue) ||
|
||||
(_T("frameStyle4") == strValue) ||
|
||||
(_T("frameStyle5") == strValue) ||
|
||||
(_T("frameStyle6") == strValue) ||
|
||||
(_T("frameStyle7") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_FRAMESHAPE_INCLUDE_H_
|
||||
81
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/HorzOverflow.h
Normal file
81
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/HorzOverflow.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_HORZOVERFLOW_INCLUDE_H_
|
||||
#define PPTX_LIMIT_HORZOVERFLOW_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class HorzOverflow : public BaseLimit
|
||||
{
|
||||
public:
|
||||
HorzOverflow()
|
||||
{
|
||||
m_strValue = _T("clip");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("clip") == strValue) ||
|
||||
(_T("overflow") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("clip") == m_strValue)
|
||||
return 0;
|
||||
if (_T("overflow") == m_strValue)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
if (1 == src)
|
||||
m_strValue = _T("overflow");
|
||||
else
|
||||
m_strValue = _T("clip");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_HORZOVERFLOW_INCLUDE_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_INOUTDIRECTIONVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_INOUTDIRECTIONVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class InOutDirectionVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
InOutDirectionVal()
|
||||
{
|
||||
m_strValue = _T("out");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("in") == strValue) ||
|
||||
(_T("out") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_INOUTDIRECTIONVAL_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/IterateType.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/IterateType.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_ITERATETYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_ITERATETYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class IterateType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
IterateType()
|
||||
{
|
||||
m_strValue = _T("el");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("el") == strValue) ||
|
||||
(_T("lt") == strValue) ||
|
||||
(_T("wd") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_ITERATETYPE_INCLUDE_H_
|
||||
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LastView.h
Normal file
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LastView.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_LASTVIEW_INCLUDE_H_
|
||||
#define PPTX_LIMIT_LASTVIEW_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class LastView : public BaseLimit
|
||||
{
|
||||
public:
|
||||
LastView()
|
||||
{
|
||||
m_strValue = _T("sldThumbnailView");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("handoutView") == strValue) ||
|
||||
(_T("notesMasterView") == strValue) ||
|
||||
(_T("notesView") == strValue) ||
|
||||
(_T("outlineView") == strValue) ||
|
||||
(_T("sldMasterView") == strValue) ||
|
||||
(_T("sldSorterView") == strValue) ||
|
||||
(_T("sldThumbnailView") == strValue) ||
|
||||
(_T("sldView") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("handoutView") == m_strValue)
|
||||
return 0;
|
||||
if (_T("notesMasterView") == m_strValue)
|
||||
return 1;
|
||||
if (_T("notesView") == m_strValue)
|
||||
return 2;
|
||||
if (_T("outlineView") == m_strValue)
|
||||
return 3;
|
||||
if (_T("sldMasterView") == m_strValue)
|
||||
return 4;
|
||||
if (_T("sldSorterView") == m_strValue)
|
||||
return 5;
|
||||
if (_T("sldThumbnailView") == m_strValue)
|
||||
return 6;
|
||||
if (_T("sldView") == m_strValue)
|
||||
return 7;
|
||||
return 6;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_LASTVIEW_INCLUDE_H_
|
||||
90
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LightRigType.h
Normal file
90
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LightRigType.h
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_LIGHTRIGTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_LIGHTRIGTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class LightRigType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
LightRigType()
|
||||
{
|
||||
m_strValue = _T("balanced");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("balanced") == strValue) ||
|
||||
(_T("brightRoom") == strValue) ||
|
||||
(_T("chilly") == strValue) ||
|
||||
(_T("contrasting") == strValue) ||
|
||||
(_T("flat") == strValue) ||
|
||||
(_T("flood") == strValue) ||
|
||||
(_T("freezing") == strValue) ||
|
||||
(_T("glow") == strValue) ||
|
||||
(_T("harsh") == strValue) ||
|
||||
(_T("legacyFlat1") == strValue) ||
|
||||
(_T("legacyFlat2") == strValue) ||
|
||||
(_T("legacyFlat3") == strValue) ||
|
||||
(_T("legacyFlat4") == strValue) ||
|
||||
(_T("legacyHarsh1") == strValue) ||
|
||||
(_T("legacyHarsh2") == strValue) ||
|
||||
(_T("legacyHarsh3") == strValue) ||
|
||||
(_T("legacyHarsh4") == strValue) ||
|
||||
(_T("legacyNormal1") == strValue) ||
|
||||
(_T("legacyNormal2") == strValue) ||
|
||||
(_T("legacyNormal3") == strValue) ||
|
||||
(_T("legacyNormal4") == strValue) ||
|
||||
(_T("morning") == strValue) ||
|
||||
(_T("soft") == strValue) ||
|
||||
(_T("sunrise") == strValue) ||
|
||||
(_T("sunset") == strValue) ||
|
||||
(_T("threePt") == strValue) ||
|
||||
(_T("twoPt") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_LIGHTRIGTYPE_INCLUDE_H_
|
||||
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LineCap.h
Normal file
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LineCap.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_LINECAP_INCLUDE_H_
|
||||
#define PPTX_LIMIT_LINECAP_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class LineCap : public BaseLimit
|
||||
{
|
||||
public:
|
||||
LineCap()
|
||||
{
|
||||
m_strValue = _T("flat");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("flat") == strValue) ||
|
||||
(_T("rnd") == strValue) ||
|
||||
(_T("sq") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("flat") == m_strValue)
|
||||
return 0;
|
||||
if (_T("rnd") == m_strValue)
|
||||
return 1;
|
||||
if (_T("sq") == m_strValue)
|
||||
return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 1:
|
||||
m_strValue = _T("rnd");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("sq");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("flat");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_LINECAP_INCLUDE_H_
|
||||
94
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LineEndSize.h
Normal file
94
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LineEndSize.h
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_LINEENDSIZE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_LINEENDSIZE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class LineEndSize : public BaseLimit
|
||||
{
|
||||
public:
|
||||
LineEndSize()
|
||||
{
|
||||
m_strValue = _T("med");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("lg") == strValue) ||
|
||||
(_T("med") == strValue) ||
|
||||
(_T("sm") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("lg") == m_strValue)
|
||||
return 0;
|
||||
if (_T("med") == m_strValue)
|
||||
return 1;
|
||||
if (_T("sm") == m_strValue)
|
||||
return 2;
|
||||
return 1;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("lg");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("med");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("sm");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_LINEENDSIZE_INCLUDE_H_
|
||||
113
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LineEndType.h
Normal file
113
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/LineEndType.h
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_LINEENDTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_LINEENDTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class LineEndType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
LineEndType()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("none") == strValue) ||
|
||||
(_T("arrow") == strValue) ||
|
||||
(_T("diamond") == strValue) ||
|
||||
(_T("oval") == strValue) ||
|
||||
(_T("stealth") == strValue) ||
|
||||
(_T("triangle") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("none") == m_strValue)
|
||||
return 0;
|
||||
if (_T("arrow") == m_strValue)
|
||||
return 1;
|
||||
if (_T("diamond") == m_strValue)
|
||||
return 2;
|
||||
if (_T("oval") == m_strValue)
|
||||
return 3;
|
||||
if (_T("stealth") == m_strValue)
|
||||
return 4;
|
||||
if (_T("triangle") == m_strValue)
|
||||
return 5;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("none");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("arrow");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("diamond");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("oval");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("stealth");
|
||||
break;
|
||||
case 5:
|
||||
m_strValue = _T("triangle");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_LINEENDTYPE_INCLUDE_H_
|
||||
114
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Material.h
Normal file
114
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Material.h
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_MATERIAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_MATERIAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class Material : public BaseLimit
|
||||
{
|
||||
public:
|
||||
Material()
|
||||
{
|
||||
m_strValue = _T("clear");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("clear") == strValue) ||
|
||||
(_T("dkEdge") == strValue) ||
|
||||
(_T("flat") == strValue) ||
|
||||
(_T("legacyMatte") == strValue) ||
|
||||
(_T("legacyMetal") == strValue) ||
|
||||
(_T("legacyPlastic") == strValue) ||
|
||||
(_T("legacyWireframe") == strValue) ||
|
||||
(_T("matte") == strValue) ||
|
||||
(_T("metal") == strValue) ||
|
||||
(_T("plastic") == strValue) ||
|
||||
(_T("powder") == strValue) ||
|
||||
(_T("softEdge") == strValue) ||
|
||||
(_T("softmetal") == strValue) ||
|
||||
(_T("translucentPowder") == strValue) ||
|
||||
(_T("warmMatte") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("clear") == m_strValue)
|
||||
return 0;
|
||||
if (_T("dkEdge") == m_strValue)
|
||||
return 1;
|
||||
if (_T("flat") == m_strValue)
|
||||
return 2;
|
||||
if (_T("legacyMatte") == m_strValue)
|
||||
return 3;
|
||||
if (_T("legacyMetal") == m_strValue)
|
||||
return 4;
|
||||
if (_T("legacyPlastic") == m_strValue)
|
||||
return 5;
|
||||
if (_T("legacyWireframe") == m_strValue)
|
||||
return 6;
|
||||
if (_T("matte") == m_strValue)
|
||||
return 7;
|
||||
if (_T("metal") == m_strValue)
|
||||
return 8;
|
||||
if (_T("plastic") == m_strValue)
|
||||
return 9;
|
||||
if (_T("powder") == m_strValue)
|
||||
return 10;
|
||||
if (_T("softEdge") == m_strValue)
|
||||
return 11;
|
||||
if (_T("softmetal") == m_strValue)
|
||||
return 12;
|
||||
if (_T("translucentPowder") == m_strValue)
|
||||
return 13;
|
||||
if (_T("warmMatte") == m_strValue)
|
||||
return 14;
|
||||
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_MATERIAL_INCLUDE_H_
|
||||
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/OnOff.h
Normal file
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/OnOff.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_ONOFF_INCLUDE_H_
|
||||
#define PPTX_LIMIT_ONOFF_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class OnOff : public BaseLimit
|
||||
{
|
||||
public:
|
||||
OnOff()
|
||||
{
|
||||
m_strValue = _T("def");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("on") == strValue) ||
|
||||
(_T("off") == strValue) ||
|
||||
(_T("def") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("on") == m_strValue)
|
||||
return 0;
|
||||
if (_T("off") == m_strValue)
|
||||
return 1;
|
||||
if (_T("def") == m_strValue)
|
||||
return 2;
|
||||
return 2;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("on");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("off");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("def");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_ONOFF_INCLUDE_H_
|
||||
80
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Orient.h
Normal file
80
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/Orient.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_ORIENT_INCLUDE_H_
|
||||
#define PPTX_LIMIT_ORIENT_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class Orient : public BaseLimit
|
||||
{
|
||||
public:
|
||||
Orient()
|
||||
{
|
||||
m_strValue = _T("vert");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("horz") == strValue) ||
|
||||
(_T("vert") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("horz") == m_strValue)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
if (0 == src)
|
||||
m_strValue = _T("horz");
|
||||
else
|
||||
m_strValue = _T("vert");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_ORIENT_INCLUDE_H_
|
||||
67
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ParaBuildType.h
Normal file
67
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ParaBuildType.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PARABUILDTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PARABUILDTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class ParaBuildType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
ParaBuildType()
|
||||
{
|
||||
m_strValue = _T("whole");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("allAtOnce") == strValue) ||
|
||||
(_T("cust") == strValue) ||
|
||||
(_T("p") == strValue) ||
|
||||
(_T("whole") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PARABUILDTYPE_INCLUDE_H_
|
||||
113
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PathFillMode.h
Normal file
113
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PathFillMode.h
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PATHFILLMODE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PATHFILLMODE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PathFillMode : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PathFillMode()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("darken") == strValue) ||
|
||||
(_T("darkenLess") == strValue) ||
|
||||
(_T("lighten") == strValue) ||
|
||||
(_T("lightenLess") == strValue) ||
|
||||
(_T("none") == strValue) ||
|
||||
(_T("norm") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("darken") == m_strValue)
|
||||
return 0;
|
||||
if (_T("darkenLess") == m_strValue)
|
||||
return 1;
|
||||
if (_T("lighten") == m_strValue)
|
||||
return 2;
|
||||
if (_T("lightenLess") == m_strValue)
|
||||
return 3;
|
||||
if (_T("none") == m_strValue)
|
||||
return 4;
|
||||
if (_T("norm") == m_strValue)
|
||||
return 5;
|
||||
return 4;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("darken");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("darkenLess");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("lighten");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("lightenLess");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("none");
|
||||
break;
|
||||
case 5:
|
||||
m_strValue = _T("norm");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("none");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PATHFILLMODE_INCLUDE_H_
|
||||
240
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PattFillVal.h
Normal file
240
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PattFillVal.h
Normal file
@@ -0,0 +1,240 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PATTFILLVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PATTFILLVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PattFillVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PattFillVal()
|
||||
{
|
||||
m_strValue = _T("cross");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("cross") == strValue) ||
|
||||
(_T("dashDnDiag") == strValue) ||
|
||||
(_T("dashHorz") == strValue) ||
|
||||
(_T("dashUpDiag") == strValue) ||
|
||||
(_T("dashVert") == strValue) ||
|
||||
(_T("diagBrick") == strValue) ||
|
||||
(_T("diagCross") == strValue) ||
|
||||
(_T("divot") == strValue) ||
|
||||
(_T("dkDnDiag") == strValue) ||
|
||||
(_T("dkHorz") == strValue) ||
|
||||
(_T("dkUpDiag") == strValue) ||
|
||||
(_T("dkVert") == strValue) ||
|
||||
(_T("dnDiag") == strValue) ||
|
||||
(_T("dotDmnd") == strValue) ||
|
||||
(_T("dotGrid") == strValue) ||
|
||||
(_T("horz") == strValue) ||
|
||||
(_T("horzBrick") == strValue) ||
|
||||
(_T("lgCheck") == strValue) ||
|
||||
(_T("lgConfetti") == strValue) ||
|
||||
(_T("lgGrid") == strValue) ||
|
||||
(_T("ltDnDiag") == strValue) ||
|
||||
(_T("ltHorz") == strValue) ||
|
||||
(_T("ltUpDiag") == strValue) ||
|
||||
(_T("ltVert") == strValue) ||
|
||||
(_T("narHorz") == strValue) ||
|
||||
(_T("narVert") == strValue) ||
|
||||
(_T("openDmnd") == strValue) ||
|
||||
(_T("pct10") == strValue) ||
|
||||
(_T("pct20") == strValue) ||
|
||||
(_T("pct25") == strValue) ||
|
||||
(_T("pct30") == strValue) ||
|
||||
(_T("pct40") == strValue) ||
|
||||
(_T("pct5") == strValue) ||
|
||||
(_T("pct50") == strValue) ||
|
||||
(_T("pct60") == strValue) ||
|
||||
(_T("pct70") == strValue) ||
|
||||
(_T("pct75") == strValue) ||
|
||||
(_T("pct80") == strValue) ||
|
||||
(_T("pct90") == strValue) ||
|
||||
(_T("plaid") == strValue) ||
|
||||
(_T("shingle") == strValue) ||
|
||||
(_T("smCheck") == strValue) ||
|
||||
(_T("smConfetti") == strValue) ||
|
||||
(_T("smGrid") == strValue) ||
|
||||
(_T("solidDmnd") == strValue) ||
|
||||
(_T("sphere") == strValue) ||
|
||||
(_T("trellis") == strValue) ||
|
||||
(_T("upDiag") == strValue) ||
|
||||
(_T("vert") == strValue) ||
|
||||
(_T("wave") == strValue) ||
|
||||
(_T("wdDnDiag") == strValue) ||
|
||||
(_T("wdUpDiag") == strValue) ||
|
||||
(_T("weave") == strValue) ||
|
||||
(_T("zigZag") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("cross") == m_strValue) return 0;
|
||||
if (_T("dashDnDiag") == m_strValue) return 1;
|
||||
if (_T("dashHorz") == m_strValue) return 2;
|
||||
if (_T("dashUpDiag") == m_strValue) return 3;
|
||||
if (_T("dashVert") == m_strValue) return 4;
|
||||
if (_T("diagBrick") == m_strValue) return 5;
|
||||
if (_T("diagCross") == m_strValue) return 6;
|
||||
if (_T("divot") == m_strValue) return 7;
|
||||
if (_T("dkDnDiag") == m_strValue) return 8;
|
||||
if (_T("dkHorz") == m_strValue) return 9;
|
||||
if (_T("dkUpDiag") == m_strValue) return 10;
|
||||
if (_T("dkVert") == m_strValue) return 11;
|
||||
if (_T("dnDiag") == m_strValue) return 12;
|
||||
if (_T("dotDmnd") == m_strValue) return 13;
|
||||
if (_T("dotGrid") == m_strValue) return 14;
|
||||
if (_T("horz") == m_strValue) return 15;
|
||||
if (_T("horzBrick") == m_strValue) return 16;
|
||||
if (_T("lgCheck") == m_strValue) return 17;
|
||||
if (_T("lgConfetti") == m_strValue) return 18;
|
||||
if (_T("lgGrid") == m_strValue) return 19;
|
||||
if (_T("ltDnDiag") == m_strValue) return 20;
|
||||
if (_T("ltHorz") == m_strValue) return 21;
|
||||
if (_T("ltUpDiag") == m_strValue) return 22;
|
||||
if (_T("ltVert") == m_strValue) return 23;
|
||||
if (_T("narHorz") == m_strValue) return 24;
|
||||
if (_T("narVert") == m_strValue) return 25;
|
||||
if (_T("openDmnd") == m_strValue) return 26;
|
||||
if (_T("pct10") == m_strValue) return 27;
|
||||
if (_T("pct20") == m_strValue) return 28;
|
||||
if (_T("pct25") == m_strValue) return 29;
|
||||
if (_T("pct30") == m_strValue) return 30;
|
||||
if (_T("pct40") == m_strValue) return 31;
|
||||
if (_T("pct5") == m_strValue) return 32;
|
||||
if (_T("pct50") == m_strValue) return 33;
|
||||
if (_T("pct60") == m_strValue) return 34;
|
||||
if (_T("pct70") == m_strValue) return 35;
|
||||
if (_T("pct75") == m_strValue) return 36;
|
||||
if (_T("pct80") == m_strValue) return 37;
|
||||
if (_T("pct90") == m_strValue) return 38;
|
||||
if (_T("plaid") == m_strValue) return 39;
|
||||
if (_T("shingle") == m_strValue) return 40;
|
||||
if (_T("smCheck") == m_strValue) return 41;
|
||||
if (_T("smConfetti") == m_strValue) return 42;
|
||||
if (_T("smGrid") == m_strValue) return 43;
|
||||
if (_T("solidDmnd") == m_strValue) return 44;
|
||||
if (_T("sphere") == m_strValue) return 45;
|
||||
if (_T("trellis") == m_strValue) return 46;
|
||||
if (_T("upDiag") == m_strValue) return 47;
|
||||
if (_T("vert") == m_strValue) return 48;
|
||||
if (_T("wave") == m_strValue) return 49;
|
||||
if (_T("wdDnDiag") == m_strValue) return 50;
|
||||
if (_T("wdUpDiag") == m_strValue) return 51;
|
||||
if (_T("weave") == m_strValue) return 52;
|
||||
if (_T("zigZag") == m_strValue) return 53;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0: m_strValue = _T("cross"); break;
|
||||
case 1: m_strValue = _T("dashDnDiag"); break;
|
||||
case 2: m_strValue = _T("dashHorz"); break;
|
||||
case 3: m_strValue = _T("dashUpDiag"); break;
|
||||
case 4: m_strValue = _T("dashVert"); break;
|
||||
case 5: m_strValue = _T("diagBrick"); break;
|
||||
case 6: m_strValue = _T("diagCross"); break;
|
||||
case 7: m_strValue = _T("divot"); break;
|
||||
case 8: m_strValue = _T("dkDnDiag"); break;
|
||||
case 9: m_strValue = _T("dkHorz"); break;
|
||||
case 10: m_strValue = _T("dkUpDiag"); break;
|
||||
case 11: m_strValue = _T("dkVert"); break;
|
||||
case 12: m_strValue = _T("dnDiag"); break;
|
||||
case 13: m_strValue = _T("dotDmnd"); break;
|
||||
case 14: m_strValue = _T("dotGrid"); break;
|
||||
case 15: m_strValue = _T("horz"); break;
|
||||
case 16: m_strValue = _T("horzBrick"); break;
|
||||
case 17: m_strValue = _T("lgCheck"); break;
|
||||
case 18: m_strValue = _T("lgConfetti"); break;
|
||||
case 19: m_strValue = _T("lgGrid"); break;
|
||||
case 20: m_strValue = _T("ltDnDiag"); break;
|
||||
case 21: m_strValue = _T("ltHorz"); break;
|
||||
case 22: m_strValue = _T("ltUpDiag"); break;
|
||||
case 23: m_strValue = _T("ltVert"); break;
|
||||
case 24: m_strValue = _T("narHorz"); break;
|
||||
case 25: m_strValue = _T("narVert"); break;
|
||||
case 26: m_strValue = _T("openDmnd"); break;
|
||||
case 27: m_strValue = _T("pct10"); break;
|
||||
case 28: m_strValue = _T("pct20"); break;
|
||||
case 29: m_strValue = _T("pct25"); break;
|
||||
case 30: m_strValue = _T("pct30"); break;
|
||||
case 31: m_strValue = _T("pct40"); break;
|
||||
case 32: m_strValue = _T("pct5"); break;
|
||||
case 33: m_strValue = _T("pct50"); break;
|
||||
case 34: m_strValue = _T("pct60"); break;
|
||||
case 35: m_strValue = _T("pct70"); break;
|
||||
case 36: m_strValue = _T("pct75"); break;
|
||||
case 37: m_strValue = _T("pct80"); break;
|
||||
case 38: m_strValue = _T("pct90"); break;
|
||||
case 39: m_strValue = _T("plaid"); break;
|
||||
case 40: m_strValue = _T("shingle"); break;
|
||||
case 41: m_strValue = _T("smCheck"); break;
|
||||
case 42: m_strValue = _T("smConfetti"); break;
|
||||
case 43: m_strValue = _T("smGrid"); break;
|
||||
case 44: m_strValue = _T("solidDmnd"); break;
|
||||
case 45: m_strValue = _T("sphere"); break;
|
||||
case 46: m_strValue = _T("trellis"); break;
|
||||
case 47: m_strValue = _T("upDiag"); break;
|
||||
case 48: m_strValue = _T("vert"); break;
|
||||
case 49: m_strValue = _T("wave"); break;
|
||||
case 50: m_strValue = _T("wdDnDiag"); break;
|
||||
case 51: m_strValue = _T("wdUpDiag"); break;
|
||||
case 52: m_strValue = _T("weave"); break;
|
||||
case 53: m_strValue = _T("zigZag"); break;
|
||||
default:
|
||||
m_strValue = _T("cross");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PATTFILLVAL_INCLUDE_H_
|
||||
82
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PenAlign.h
Normal file
82
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PenAlign.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PENALIGN_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PENALIGN_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PenAlign : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PenAlign()
|
||||
{
|
||||
m_strValue = _T("ctr");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("ctr") == strValue) ||
|
||||
(_T("in") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("ctr") == m_strValue)
|
||||
return 0;
|
||||
if (_T("in") == m_strValue)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
if (1 == src)
|
||||
m_strValue = _T("in");
|
||||
else
|
||||
m_strValue = _T("ctr");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PENALIGN_INCLUDE_H_
|
||||
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PlaceholderSize.h
Normal file
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PlaceholderSize.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PLACEHOLDERSIZE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PLACEHOLDERSIZE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PlaceholderSize : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PlaceholderSize()
|
||||
{
|
||||
m_strValue = _T("full");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("full") == strValue) ||
|
||||
(_T("half") == strValue) ||
|
||||
(_T("quarter") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("full") == m_strValue)
|
||||
return 0;
|
||||
if (_T("half") == m_strValue)
|
||||
return 1;
|
||||
if (_T("quarter") == m_strValue)
|
||||
return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 1:
|
||||
m_strValue = _T("half");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("quarter");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("full");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PLACEHOLDERSIZE_INCLUDE_H_
|
||||
210
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PlaceholderType.h
Normal file
210
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PlaceholderType.h
Normal file
@@ -0,0 +1,210 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PLACEHOLDERTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PLACEHOLDERTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
AVSINLINE int GetPhType(const CString& strType)
|
||||
{
|
||||
if (_T("body") == strType)
|
||||
return 0;
|
||||
if (_T("chart") == strType)
|
||||
return 1;
|
||||
if (_T("clipArt") == strType)
|
||||
return 2;
|
||||
if (_T("ctrTitle") == strType)
|
||||
return 15;
|
||||
if (_T("dgm") == strType)
|
||||
return 4;
|
||||
if (_T("dt") == strType)
|
||||
return 5;
|
||||
if (_T("ftr") == strType)
|
||||
return 6;
|
||||
if (_T("hdr") == strType)
|
||||
return 7;
|
||||
if (_T("media") == strType)
|
||||
return 8;
|
||||
if (_T("obj") == strType)
|
||||
return 9;
|
||||
if (_T("pic") == strType)
|
||||
return 10;
|
||||
if (_T("sldImg") == strType)
|
||||
return 11;
|
||||
if (_T("sldNum") == strType)
|
||||
return 12;
|
||||
if (_T("subTitle") == strType)
|
||||
return 0;
|
||||
if (_T("tbl") == strType)
|
||||
return 14;
|
||||
if (_T("title") == strType)
|
||||
return 15;
|
||||
return 0;
|
||||
}
|
||||
|
||||
class PlaceholderType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PlaceholderType()
|
||||
{
|
||||
m_strValue = _T("obj");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("body") == strValue) ||
|
||||
(_T("chart") == strValue) ||
|
||||
(_T("clipArt") == strValue) ||
|
||||
(_T("ctrTitle") == strValue) ||
|
||||
(_T("dgm") == strValue) ||
|
||||
(_T("dt") == strValue) ||
|
||||
(_T("ftr") == strValue) ||
|
||||
(_T("hdr") == strValue) ||
|
||||
(_T("media") == strValue) ||
|
||||
(_T("obj") == strValue) ||
|
||||
(_T("pic") == strValue) ||
|
||||
(_T("sldImg") == strValue) ||
|
||||
(_T("sldNum") == strValue) ||
|
||||
(_T("subTitle") == strValue) ||
|
||||
(_T("tbl") == strValue) ||
|
||||
(_T("title") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("body") == m_strValue)
|
||||
return 0;
|
||||
if (_T("chart") == m_strValue)
|
||||
return 1;
|
||||
if (_T("clipArt") == m_strValue)
|
||||
return 2;
|
||||
if (_T("ctrTitle") == m_strValue)
|
||||
return 3;
|
||||
if (_T("dgm") == m_strValue)
|
||||
return 4;
|
||||
if (_T("dt") == m_strValue)
|
||||
return 5;
|
||||
if (_T("ftr") == m_strValue)
|
||||
return 6;
|
||||
if (_T("hdr") == m_strValue)
|
||||
return 7;
|
||||
if (_T("media") == m_strValue)
|
||||
return 8;
|
||||
if (_T("obj") == m_strValue)
|
||||
return 9;
|
||||
if (_T("pic") == m_strValue)
|
||||
return 10;
|
||||
if (_T("sldImg") == m_strValue)
|
||||
return 11;
|
||||
if (_T("sldNum") == m_strValue)
|
||||
return 12;
|
||||
if (_T("subTitle") == m_strValue)
|
||||
return 13;
|
||||
if (_T("tbl") == m_strValue)
|
||||
return 14;
|
||||
if (_T("title") == m_strValue)
|
||||
return 15;
|
||||
return 9;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("body");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("chart");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("clipArt");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("ctrTitle");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("dgm");
|
||||
break;
|
||||
case 5:
|
||||
m_strValue = _T("dt");
|
||||
break;
|
||||
case 6:
|
||||
m_strValue = _T("ftr");
|
||||
break;
|
||||
case 7:
|
||||
m_strValue = _T("hdr");
|
||||
break;
|
||||
case 8:
|
||||
m_strValue = _T("media");
|
||||
break;
|
||||
case 9:
|
||||
m_strValue = _T("obj");
|
||||
break;
|
||||
case 10:
|
||||
m_strValue = _T("pic");
|
||||
break;
|
||||
case 11:
|
||||
m_strValue = _T("sldImg");
|
||||
break;
|
||||
case 12:
|
||||
m_strValue = _T("sldNum");
|
||||
break;
|
||||
case 13:
|
||||
m_strValue = _T("subTitle");
|
||||
break;
|
||||
case 14:
|
||||
m_strValue = _T("tbl");
|
||||
break;
|
||||
case 15:
|
||||
m_strValue = _T("title");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("obj");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PLACEHOLDERTYPE_INCLUDE_H_
|
||||
130
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PresetShadowVal.h
Normal file
130
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PresetShadowVal.h
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PRESETSHADOWVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PRESETSHADOWVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PresetShadowVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PresetShadowVal()
|
||||
{
|
||||
m_strValue = _T("shdw1");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("shdw1") == strValue) ||
|
||||
(_T("shdw2") == strValue) ||
|
||||
(_T("shdw3") == strValue) ||
|
||||
(_T("shdw4") == strValue) ||
|
||||
(_T("shdw5") == strValue) ||
|
||||
(_T("shdw6") == strValue) ||
|
||||
(_T("shdw7") == strValue) ||
|
||||
(_T("shdw8") == strValue) ||
|
||||
(_T("shdw9") == strValue) ||
|
||||
(_T("shdw10") == strValue) ||
|
||||
(_T("shdw11") == strValue) ||
|
||||
(_T("shdw12") == strValue) ||
|
||||
(_T("shdw13") == strValue) ||
|
||||
(_T("shdw14") == strValue) ||
|
||||
(_T("shdw15") == strValue) ||
|
||||
(_T("shdw16") == strValue) ||
|
||||
(_T("shdw17") == strValue) ||
|
||||
(_T("shdw18") == strValue) ||
|
||||
(_T("shdw19") == strValue) ||
|
||||
(_T("shdw20") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("shdw1") == m_strValue)
|
||||
return 0;
|
||||
if (_T("shdw2") == m_strValue)
|
||||
return 1;
|
||||
if (_T("shdw3") == m_strValue)
|
||||
return 2;
|
||||
if (_T("shdw4") == m_strValue)
|
||||
return 3;
|
||||
if (_T("shdw5") == m_strValue)
|
||||
return 4;
|
||||
if (_T("shdw6") == m_strValue)
|
||||
return 5;
|
||||
if (_T("shdw7") == m_strValue)
|
||||
return 6;
|
||||
if (_T("shdw8") == m_strValue)
|
||||
return 7;
|
||||
if (_T("shdw9") == m_strValue)
|
||||
return 8;
|
||||
if (_T("shdw10") == m_strValue)
|
||||
return 9;
|
||||
if (_T("shdw11") == m_strValue)
|
||||
return 10;
|
||||
if (_T("shdw12") == m_strValue)
|
||||
return 11;
|
||||
if (_T("shdw13") == m_strValue)
|
||||
return 12;
|
||||
if (_T("shdw14") == m_strValue)
|
||||
return 13;
|
||||
if (_T("shdw15") == m_strValue)
|
||||
return 14;
|
||||
if (_T("shdw16") == m_strValue)
|
||||
return 15;
|
||||
if (_T("shdw17") == m_strValue)
|
||||
return 16;
|
||||
if (_T("shdw18") == m_strValue)
|
||||
return 17;
|
||||
if (_T("shdw19") == m_strValue)
|
||||
return 18;
|
||||
if (_T("shdw20") == m_strValue)
|
||||
return 19;
|
||||
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PRESETSHADOWVAL_INCLUDE_H_
|
||||
253
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PrstClrVal.h
Normal file
253
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PrstClrVal.h
Normal file
@@ -0,0 +1,253 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PRSTCLRVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PRSTCLRVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PrstClrVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PrstClrVal()
|
||||
{
|
||||
m_strValue = _T("black");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("aliceBlue") == strValue) ||
|
||||
(_T("antiqueWhite") == strValue) ||
|
||||
(_T("aqua") == strValue) ||
|
||||
(_T("aquamarine") == strValue) ||
|
||||
(_T("azure") == strValue) ||
|
||||
(_T("beige") == strValue) ||
|
||||
(_T("bisque") == strValue) ||
|
||||
(_T("black") == strValue) ||
|
||||
(_T("blanchedAlmond") == strValue) ||
|
||||
(_T("blue") == strValue) ||
|
||||
(_T("blueViolet") == strValue) ||
|
||||
(_T("brown") == strValue) ||
|
||||
(_T("burlyWood") == strValue) ||
|
||||
(_T("cadetBlue") == strValue) ||
|
||||
(_T("chartreuse") == strValue) ||
|
||||
(_T("chocolate") == strValue) ||
|
||||
(_T("coral") == strValue) ||
|
||||
(_T("cornflowerBlue") == strValue) ||
|
||||
(_T("cornsilk") == strValue) ||
|
||||
(_T("crimson") == strValue) ||
|
||||
(_T("cyan") == strValue) ||
|
||||
(_T("darkBlue") == strValue) ||
|
||||
(_T("darkCyan") == strValue) ||
|
||||
(_T("darkGoldenrod") == strValue) ||
|
||||
(_T("darkGray") == strValue) ||
|
||||
(_T("darkGreen") == strValue) ||
|
||||
(_T("darkGrey") == strValue) ||
|
||||
(_T("darkKhaki") == strValue) ||
|
||||
(_T("darkMagenta") == strValue) ||
|
||||
(_T("darkOliveGreen") == strValue) ||
|
||||
(_T("darkOrange") == strValue) ||
|
||||
(_T("darkOrchid") == strValue) ||
|
||||
(_T("darkRed") == strValue) ||
|
||||
(_T("darkSalmon") == strValue) ||
|
||||
(_T("darkSeaGreen") == strValue) ||
|
||||
(_T("darkSlateBlue") == strValue) ||
|
||||
(_T("darkSlateGray") == strValue) ||
|
||||
(_T("darkSlateGrey") == strValue) ||
|
||||
(_T("darkTurquoise") == strValue) ||
|
||||
(_T("darkViolet") == strValue) ||
|
||||
(_T("deepPink") == strValue) ||
|
||||
(_T("deepSkyBlue") == strValue) ||
|
||||
(_T("dimGray") == strValue) ||
|
||||
(_T("dimGrey") == strValue) ||
|
||||
(_T("dkBlue") == strValue) ||
|
||||
(_T("dkCyan") == strValue) ||
|
||||
(_T("dkGoldenrod") == strValue) ||
|
||||
(_T("dkGray") == strValue) ||
|
||||
(_T("dkGreen") == strValue) ||
|
||||
(_T("dkGrey") == strValue) ||
|
||||
(_T("dkKhaki") == strValue) ||
|
||||
(_T("dkMagenta") == strValue) ||
|
||||
(_T("dkOliveGreen") == strValue) ||
|
||||
(_T("dkOrange") == strValue) ||
|
||||
(_T("dkOrchid") == strValue) ||
|
||||
(_T("dkRed") == strValue) ||
|
||||
(_T("dkSalmon") == strValue) ||
|
||||
(_T("dkSeaGreen") == strValue) ||
|
||||
(_T("dkSlateBlue") == strValue) ||
|
||||
(_T("dkSlateGray") == strValue) ||
|
||||
(_T("dkSlateGrey") == strValue) ||
|
||||
(_T("dkTurquoise") == strValue) ||
|
||||
(_T("dkViolet") == strValue) ||
|
||||
(_T("dodgerBlue") == strValue) ||
|
||||
(_T("firebrick") == strValue) ||
|
||||
(_T("floralWhite") == strValue) ||
|
||||
(_T("forestGreen") == strValue) ||
|
||||
(_T("fuchsia") == strValue) ||
|
||||
(_T("gainsboro") == strValue) ||
|
||||
(_T("ghostWhite") == strValue) ||
|
||||
(_T("gold") == strValue) ||
|
||||
(_T("goldenrod") == strValue) ||
|
||||
(_T("gray") == strValue) ||
|
||||
(_T("green") == strValue) ||
|
||||
(_T("greenYellow") == strValue) ||
|
||||
(_T("grey") == strValue) ||
|
||||
(_T("honeydew") == strValue) ||
|
||||
(_T("hotPink") == strValue) ||
|
||||
(_T("indianRed") == strValue) ||
|
||||
(_T("indigo") == strValue) ||
|
||||
(_T("ivory") == strValue) ||
|
||||
(_T("khaki") == strValue) ||
|
||||
(_T("lavender") == strValue) ||
|
||||
(_T("lavenderBlush") == strValue) ||
|
||||
(_T("lawnGreen") == strValue) ||
|
||||
(_T("lemonChiffon") == strValue) ||
|
||||
(_T("lightBlue") == strValue) ||
|
||||
(_T("lightCoral") == strValue) ||
|
||||
(_T("lightCyan") == strValue) ||
|
||||
(_T("lightGoldenrodYellow") == strValue) ||
|
||||
(_T("lightGray") == strValue) ||
|
||||
(_T("lightGreen") == strValue) ||
|
||||
(_T("lightGrey") == strValue) ||
|
||||
(_T("lightPink") == strValue) ||
|
||||
(_T("lightSalmon") == strValue) ||
|
||||
(_T("lightSeaGreen") == strValue) ||
|
||||
(_T("lightSkyBlue") == strValue) ||
|
||||
(_T("lightSlateGray") == strValue) ||
|
||||
(_T("lightSlateGrey") == strValue) ||
|
||||
(_T("lightSteelBlue") == strValue) ||
|
||||
(_T("lightYellow") == strValue) ||
|
||||
(_T("lime") == strValue) ||
|
||||
(_T("limeGreen") == strValue) ||
|
||||
(_T("linen") == strValue) ||
|
||||
(_T("ltBlue") == strValue) ||
|
||||
(_T("ltCoral") == strValue) ||
|
||||
(_T("ltCyan") == strValue) ||
|
||||
(_T("ltGoldenrodYellow") == strValue) ||
|
||||
(_T("ltGray") == strValue) ||
|
||||
(_T("ltGreen") == strValue) ||
|
||||
(_T("ltGrey") == strValue) ||
|
||||
(_T("ltPink") == strValue) ||
|
||||
(_T("ltSalmon") == strValue) ||
|
||||
(_T("ltSeaGreen") == strValue) ||
|
||||
(_T("ltSkyBlue") == strValue) ||
|
||||
(_T("ltSlateGray") == strValue) ||
|
||||
(_T("ltSlateGrey") == strValue) ||
|
||||
(_T("ltSteelBlue") == strValue) ||
|
||||
(_T("ltYellow") == strValue) ||
|
||||
(_T("magenta") == strValue) ||
|
||||
(_T("maroon") == strValue) ||
|
||||
(_T("medAquamarine") == strValue) ||
|
||||
(_T("medBlue") == strValue) ||
|
||||
(_T("mediumAquamarine") == strValue) ||
|
||||
(_T("mediumBlue") == strValue) ||
|
||||
(_T("mediumOrchid") == strValue) ||
|
||||
(_T("mediumPurple") == strValue) ||
|
||||
(_T("mediumSeaGreen") == strValue) ||
|
||||
(_T("mediumSlateBlue") == strValue) ||
|
||||
(_T("mediumSpringGreen") == strValue) ||
|
||||
(_T("mediumTurquoise") == strValue) ||
|
||||
(_T("mediumVioletRed") == strValue) ||
|
||||
(_T("medOrchid") == strValue) ||
|
||||
(_T("medPurple") == strValue) ||
|
||||
(_T("medSeaGreen") == strValue) ||
|
||||
(_T("medSlateBlue") == strValue) ||
|
||||
(_T("medSpringGreen") == strValue) ||
|
||||
(_T("medTurquoise") == strValue) ||
|
||||
(_T("medVioletRed") == strValue) ||
|
||||
(_T("midnightBlue") == strValue) ||
|
||||
(_T("mintCream") == strValue) ||
|
||||
(_T("mistyRose") == strValue) ||
|
||||
(_T("moccasin") == strValue) ||
|
||||
(_T("navajoWhite") == strValue) ||
|
||||
(_T("navy") == strValue) ||
|
||||
(_T("oldLace") == strValue) ||
|
||||
(_T("olive") == strValue) ||
|
||||
(_T("oliveDrab") == strValue) ||
|
||||
(_T("orange") == strValue) ||
|
||||
(_T("orangeRed") == strValue) ||
|
||||
(_T("orchid") == strValue) ||
|
||||
(_T("paleGoldenrod") == strValue) ||
|
||||
(_T("paleGreen") == strValue) ||
|
||||
(_T("paleTurquoise") == strValue) ||
|
||||
(_T("paleVioletRed") == strValue) ||
|
||||
(_T("papayaWhip") == strValue) ||
|
||||
(_T("peachPuff") == strValue) ||
|
||||
(_T("peru") == strValue) ||
|
||||
(_T("pink") == strValue) ||
|
||||
(_T("plum") == strValue) ||
|
||||
(_T("powderBlue") == strValue) ||
|
||||
(_T("purple") == strValue) ||
|
||||
(_T("red") == strValue) ||
|
||||
(_T("rosyBrown") == strValue) ||
|
||||
(_T("royalBlue") == strValue) ||
|
||||
(_T("saddleBrown") == strValue) ||
|
||||
(_T("salmon") == strValue) ||
|
||||
(_T("sandyBrown") == strValue) ||
|
||||
(_T("seaGreen") == strValue) ||
|
||||
(_T("seaShell") == strValue) ||
|
||||
(_T("sienna") == strValue) ||
|
||||
(_T("silver") == strValue) ||
|
||||
(_T("skyBlue") == strValue) ||
|
||||
(_T("slateBlue") == strValue) ||
|
||||
(_T("slateGray") == strValue) ||
|
||||
(_T("slateGrey") == strValue) ||
|
||||
(_T("snow") == strValue) ||
|
||||
(_T("springGreen") == strValue) ||
|
||||
(_T("steelBlue") == strValue) ||
|
||||
(_T("tan") == strValue) ||
|
||||
(_T("teal") == strValue) ||
|
||||
(_T("thistle") == strValue) ||
|
||||
(_T("tomato") == strValue) ||
|
||||
(_T("turquoise") == strValue) ||
|
||||
(_T("violet") == strValue) ||
|
||||
(_T("wheat") == strValue) ||
|
||||
(_T("white") == strValue) ||
|
||||
(_T("whiteSmoke") == strValue) ||
|
||||
(_T("yellow") == strValue) ||
|
||||
(_T("yellowGreen") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PRSTCLRVAL_INCLUDE_H_
|
||||
101
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PrstDashVal.h
Normal file
101
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/PrstDashVal.h
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_PRSTDASHVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_PRSTDASHVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class PrstDashVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
PrstDashVal()
|
||||
{
|
||||
m_strValue = _T("solid");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("dash") == strValue) ||
|
||||
(_T("dashDot") == strValue) ||
|
||||
(_T("dot") == strValue) ||
|
||||
(_T("lgDash") == strValue) ||
|
||||
(_T("lgDashDot") == strValue) ||
|
||||
(_T("lgDashDotDot") == strValue) ||
|
||||
(_T("solid") == strValue) ||
|
||||
(_T("sysDash") == strValue) ||
|
||||
(_T("sysDashDot") == strValue) ||
|
||||
(_T("sysDashDotDot") == strValue) ||
|
||||
(_T("sysDot") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("dash") == m_strValue)
|
||||
return 0;
|
||||
if (_T("dashDot") == m_strValue)
|
||||
return 1;
|
||||
if (_T("dot") == m_strValue)
|
||||
return 2;
|
||||
if (_T("lgDash") == m_strValue)
|
||||
return 3;
|
||||
if (_T("lgDashDot") == m_strValue)
|
||||
return 4;
|
||||
if (_T("lgDashDotDot") == m_strValue)
|
||||
return 5;
|
||||
if (_T("solid") == m_strValue)
|
||||
return 6;
|
||||
if (_T("sysDash") == m_strValue)
|
||||
return 7;
|
||||
if (_T("sysDashDot") == m_strValue)
|
||||
return 8;
|
||||
if (_T("sysDashDotDot") == m_strValue)
|
||||
return 9;
|
||||
if (_T("sysDot") == m_strValue)
|
||||
return 10;
|
||||
return 6;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_PRSTDASHVAL_INCLUDE_H_
|
||||
95
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/RectAlign.h
Normal file
95
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/RectAlign.h
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_RECTALIGN_INCLUDE_H_
|
||||
#define PPTX_LIMIT_RECTALIGN_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class RectAlign : public BaseLimit
|
||||
{
|
||||
public:
|
||||
RectAlign()
|
||||
{
|
||||
m_strValue = _T("tl");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("b") == strValue) ||
|
||||
(_T("bl") == strValue) ||
|
||||
(_T("br") == strValue) ||
|
||||
(_T("ctr") == strValue) ||
|
||||
(_T("l") == strValue) ||
|
||||
(_T("r") == strValue) ||
|
||||
(_T("t") == strValue) ||
|
||||
(_T("tl") == strValue) ||
|
||||
(_T("tr") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("b") == m_strValue)
|
||||
return 0;
|
||||
if (_T("bl") == m_strValue)
|
||||
return 1;
|
||||
if (_T("br") == m_strValue)
|
||||
return 2;
|
||||
if (_T("ctr") == m_strValue)
|
||||
return 3;
|
||||
if (_T("l") == m_strValue)
|
||||
return 4;
|
||||
if (_T("r") == m_strValue)
|
||||
return 5;
|
||||
if (_T("t") == m_strValue)
|
||||
return 6;
|
||||
if (_T("tl") == m_strValue)
|
||||
return 7;
|
||||
if (_T("tr") == m_strValue)
|
||||
return 8;
|
||||
return 7;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_RECTALIGN_INCLUDE_H_
|
||||
124
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SchemeClrVal.h
Normal file
124
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SchemeClrVal.h
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SCHEMECLRVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SCHEMECLRVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class SchemeClrVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
SchemeClrVal()
|
||||
{
|
||||
m_strValue = _T("accent1");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("accent1") == strValue) ||
|
||||
(_T("accent2") == strValue) ||
|
||||
(_T("accent3") == strValue) ||
|
||||
(_T("accent4") == strValue) ||
|
||||
(_T("accent5") == strValue) ||
|
||||
(_T("accent6") == strValue) ||
|
||||
(_T("bg1") == strValue) ||
|
||||
(_T("bg2") == strValue) ||
|
||||
(_T("dk1") == strValue) ||
|
||||
(_T("dk2") == strValue) ||
|
||||
(_T("folHlink") == strValue) ||
|
||||
(_T("hlink") == strValue) ||
|
||||
(_T("lt1") == strValue) ||
|
||||
(_T("lt2") == strValue) ||
|
||||
(_T("phClr") == strValue) ||
|
||||
(_T("tx1") == strValue) ||
|
||||
(_T("tx2") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("accent1") == m_strValue)
|
||||
return 0;
|
||||
if (_T("accent2") == m_strValue)
|
||||
return 1;
|
||||
if (_T("accent3") == m_strValue)
|
||||
return 2;
|
||||
if (_T("accent4") == m_strValue)
|
||||
return 3;
|
||||
if (_T("accent5") == m_strValue)
|
||||
return 4;
|
||||
if (_T("accent6") == m_strValue)
|
||||
return 5;
|
||||
|
||||
if (_T("bg1") == m_strValue)
|
||||
return 6;
|
||||
if (_T("bg2") == m_strValue)
|
||||
return 7;
|
||||
|
||||
if (_T("dk1") == m_strValue)
|
||||
return 8;
|
||||
if (_T("dk2") == m_strValue)
|
||||
return 9;
|
||||
|
||||
if (_T("folHlink") == m_strValue)
|
||||
return 10;
|
||||
if (_T("hlink") == m_strValue)
|
||||
return 11;
|
||||
|
||||
if (_T("lt1") == m_strValue)
|
||||
return 12;
|
||||
if (_T("lt2") == m_strValue)
|
||||
return 13;
|
||||
if (_T("phClr") == m_strValue)
|
||||
return 14;
|
||||
if (_T("tx1") == m_strValue)
|
||||
return 15;
|
||||
if (_T("tx2") == m_strValue)
|
||||
return 16;
|
||||
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SCHEMECLRVAL_INCLUDE_H_
|
||||
250
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ShapeType.h
Normal file
250
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/ShapeType.h
Normal file
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SHAPETYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SHAPETYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class ShapeType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
ShapeType()
|
||||
{
|
||||
m_strValue = _T("rect");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("accentBorderCallout1") == strValue) ||
|
||||
(_T("accentBorderCallout2") == strValue) ||
|
||||
(_T("accentBorderCallout3") == strValue) ||
|
||||
(_T("accentCallout1") == strValue) ||
|
||||
(_T("accentCallout2") == strValue) ||
|
||||
(_T("accentCallout3") == strValue) ||
|
||||
(_T("actionButtonBackPrevious") == strValue) ||
|
||||
(_T("actionButtonBeginning") == strValue) ||
|
||||
(_T("actionButtonBlank") == strValue) ||
|
||||
(_T("actionButtonDocument") == strValue) ||
|
||||
(_T("actionButtonEnd") == strValue) ||
|
||||
(_T("actionButtonForwardNext") == strValue) ||
|
||||
(_T("actionButtonHelp") == strValue) ||
|
||||
(_T("actionButtonHome") == strValue) ||
|
||||
(_T("actionButtonInformation") == strValue) ||
|
||||
(_T("actionButtonMovie") == strValue) ||
|
||||
(_T("actionButtonReturn") == strValue) ||
|
||||
(_T("actionButtonSound") == strValue) ||
|
||||
(_T("arc") == strValue) ||
|
||||
(_T("bentArrow") == strValue) ||
|
||||
(_T("bentConnector2") == strValue) ||
|
||||
(_T("bentConnector3") == strValue) ||
|
||||
(_T("bentConnector4") == strValue) ||
|
||||
(_T("bentConnector5") == strValue) ||
|
||||
(_T("bentUpArrow") == strValue) ||
|
||||
(_T("bevel") == strValue) ||
|
||||
(_T("blockArc") == strValue) ||
|
||||
(_T("borderCallout1") == strValue) ||
|
||||
(_T("borderCallout2") == strValue) ||
|
||||
(_T("borderCallout3") == strValue) ||
|
||||
(_T("bracePair") == strValue) ||
|
||||
(_T("bracketPair") == strValue) ||
|
||||
(_T("callout1") == strValue) ||
|
||||
(_T("callout2") == strValue) ||
|
||||
(_T("callout3") == strValue) ||
|
||||
(_T("can") == strValue) ||
|
||||
(_T("chartPlus") == strValue) ||
|
||||
(_T("chartStar") == strValue) ||
|
||||
(_T("chartX") == strValue) ||
|
||||
(_T("chevron") == strValue) ||
|
||||
(_T("chord") == strValue) ||
|
||||
(_T("circularArrow") == strValue) ||
|
||||
(_T("cloud") == strValue) ||
|
||||
(_T("cloudCallout") == strValue) ||
|
||||
(_T("corner") == strValue) ||
|
||||
(_T("cornerTabs") == strValue) ||
|
||||
(_T("cube") == strValue) ||
|
||||
(_T("curvedConnector2") == strValue) ||
|
||||
(_T("curvedConnector3") == strValue) ||
|
||||
(_T("curvedConnector4") == strValue) ||
|
||||
(_T("curvedConnector5") == strValue) ||
|
||||
(_T("curvedDownArrow") == strValue) ||
|
||||
(_T("curvedLeftArrow") == strValue) ||
|
||||
(_T("curvedRightArrow") == strValue) ||
|
||||
(_T("curvedUpArrow") == strValue) ||
|
||||
(_T("decagon") == strValue) ||
|
||||
(_T("diagStripe") == strValue) ||
|
||||
(_T("diamond") == strValue) ||
|
||||
(_T("dodecagon") == strValue) ||
|
||||
(_T("donut") == strValue) ||
|
||||
(_T("doubleWave") == strValue) ||
|
||||
(_T("downArrow") == strValue) ||
|
||||
(_T("downArrowCallout") == strValue) ||
|
||||
(_T("ellipse") == strValue) ||
|
||||
(_T("ellipseRibbon") == strValue) ||
|
||||
(_T("ellipseRibbon2") == strValue) ||
|
||||
(_T("flowChartAlternateProcess") == strValue) ||
|
||||
(_T("flowChartCollate") == strValue) ||
|
||||
(_T("flowChartConnector") == strValue) ||
|
||||
(_T("flowChartDecision") == strValue) ||
|
||||
(_T("flowChartDelay") == strValue) ||
|
||||
(_T("flowChartDisplay") == strValue) ||
|
||||
(_T("flowChartDocument") == strValue) ||
|
||||
(_T("flowChartExtract") == strValue) ||
|
||||
(_T("flowChartInputOutput") == strValue) ||
|
||||
(_T("flowChartInternalStorage") == strValue) ||
|
||||
(_T("flowChartMagneticDisk") == strValue) ||
|
||||
(_T("flowChartMagneticDrum") == strValue) ||
|
||||
(_T("flowChartMagneticTape") == strValue) ||
|
||||
(_T("flowChartManualInput") == strValue) ||
|
||||
(_T("flowChartManualOperation") == strValue) ||
|
||||
(_T("flowChartMerge") == strValue) ||
|
||||
(_T("flowChartMultidocument") == strValue) ||
|
||||
(_T("flowChartOfflineStorage") == strValue) ||
|
||||
(_T("flowChartOffpageConnector") == strValue) ||
|
||||
(_T("flowChartOnlineStorage") == strValue) ||
|
||||
(_T("flowChartOr") == strValue) ||
|
||||
(_T("flowChartPredefinedProcess") == strValue) ||
|
||||
(_T("flowChartPreparation") == strValue) ||
|
||||
(_T("flowChartProcess") == strValue) ||
|
||||
(_T("flowChartPunchedCard") == strValue) ||
|
||||
(_T("flowChartPunchedTape") == strValue) ||
|
||||
(_T("flowChartSort") == strValue) ||
|
||||
(_T("flowChartSummingJunction") == strValue) ||
|
||||
(_T("flowChartTerminator") == strValue) ||
|
||||
(_T("foldedCorner") == strValue) ||
|
||||
(_T("frame") == strValue) ||
|
||||
(_T("funnel") == strValue) ||
|
||||
(_T("gear6") == strValue) ||
|
||||
(_T("gear9") == strValue) ||
|
||||
(_T("halfFrame") == strValue) ||
|
||||
(_T("heart") == strValue) ||
|
||||
(_T("heptagon") == strValue) ||
|
||||
(_T("hexagon") == strValue) ||
|
||||
(_T("homePlate") == strValue) ||
|
||||
(_T("horizontalScroll") == strValue) ||
|
||||
(_T("irregularSeal1") == strValue) ||
|
||||
(_T("irregularSeal2") == strValue) ||
|
||||
(_T("leftArrow") == strValue) ||
|
||||
(_T("leftArrowCallout") == strValue) ||
|
||||
(_T("leftBrace") == strValue) ||
|
||||
(_T("leftBracket") == strValue) ||
|
||||
(_T("leftCircularArrow") == strValue) ||
|
||||
(_T("leftRightArrow") == strValue) ||
|
||||
(_T("leftRightArrowCallout") == strValue) ||
|
||||
(_T("leftRightCircularArrow") == strValue) ||
|
||||
(_T("leftRightRibbon") == strValue) ||
|
||||
(_T("leftRightUpArrow") == strValue) ||
|
||||
(_T("leftUpArrow") == strValue) ||
|
||||
(_T("lightningBolt") == strValue) ||
|
||||
(_T("line") == strValue) ||
|
||||
(_T("lineInv") == strValue) ||
|
||||
(_T("mathDivide") == strValue) ||
|
||||
(_T("mathEqual") == strValue) ||
|
||||
(_T("mathMinus") == strValue) ||
|
||||
(_T("mathMultiply") == strValue) ||
|
||||
(_T("mathNotEqual") == strValue) ||
|
||||
(_T("mathPlus") == strValue) ||
|
||||
(_T("moon") == strValue) ||
|
||||
(_T("nonIsoscelesTrapezoid") == strValue) ||
|
||||
(_T("noSmoking") == strValue) ||
|
||||
(_T("notchedRightArrow") == strValue) ||
|
||||
(_T("octagon") == strValue) ||
|
||||
(_T("parallelogram") == strValue) ||
|
||||
(_T("pentagon") == strValue) ||
|
||||
(_T("pie") == strValue) ||
|
||||
(_T("pieWedge") == strValue) ||
|
||||
(_T("plaque") == strValue) ||
|
||||
(_T("plaqueTabs") == strValue) ||
|
||||
(_T("plus") == strValue) ||
|
||||
(_T("quadArrow") == strValue) ||
|
||||
(_T("quadArrowCallout") == strValue) ||
|
||||
(_T("rect") == strValue) ||
|
||||
(_T("ribbon") == strValue) ||
|
||||
(_T("ribbon2") == strValue) ||
|
||||
(_T("rightArrow") == strValue) ||
|
||||
(_T("rightArrowCallout") == strValue) ||
|
||||
(_T("rightBrace") == strValue) ||
|
||||
(_T("rightBracket") == strValue) ||
|
||||
(_T("round1Rect") == strValue) ||
|
||||
(_T("round2DiagRect") == strValue) ||
|
||||
(_T("round2SameRect") == strValue) ||
|
||||
(_T("roundRect") == strValue) ||
|
||||
(_T("rtTriangle") == strValue) ||
|
||||
(_T("smileyFace") == strValue) ||
|
||||
(_T("snip1Rect") == strValue) ||
|
||||
(_T("snip2DiagRect") == strValue) ||
|
||||
(_T("snip2SameRect") == strValue) ||
|
||||
(_T("snipRoundRect") == strValue) ||
|
||||
(_T("squareTabs") == strValue) ||
|
||||
(_T("star10") == strValue) ||
|
||||
(_T("star12") == strValue) ||
|
||||
(_T("star16") == strValue) ||
|
||||
(_T("star24") == strValue) ||
|
||||
(_T("star32") == strValue) ||
|
||||
(_T("star4") == strValue) ||
|
||||
(_T("star5") == strValue) ||
|
||||
(_T("star6") == strValue) ||
|
||||
(_T("star7") == strValue) ||
|
||||
(_T("star8") == strValue) ||
|
||||
(_T("straightConnector1") == strValue) ||
|
||||
(_T("stripedRightArrow") == strValue) ||
|
||||
(_T("sun") == strValue) ||
|
||||
(_T("swooshArrow") == strValue) ||
|
||||
(_T("teardrop") == strValue) ||
|
||||
(_T("trapezoid") == strValue) ||
|
||||
(_T("triangle") == strValue) ||
|
||||
(_T("upArrow") == strValue) ||
|
||||
(_T("upArrowCallout") == strValue) ||
|
||||
(_T("upDownArrow") == strValue) ||
|
||||
(_T("upDownArrowCallout") == strValue) ||
|
||||
(_T("uturnArrow") == strValue) ||
|
||||
(_T("verticalScroll") == strValue) ||
|
||||
(_T("wave") == strValue) ||
|
||||
(_T("wedgeEllipseCallout") == strValue) ||
|
||||
(_T("wedgeRectCallout") == strValue) ||
|
||||
(_T("wedgeRoundRectCallout") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SHAPETYPE_INCLUDE_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SIDEDIRECTIONVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SIDEDIRECTIONVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class SideDirectionVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
SideDirectionVal()
|
||||
{
|
||||
m_strValue = _T("l");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("d") == strValue) ||
|
||||
(_T("l") == strValue) ||
|
||||
(_T("r") == strValue) ||
|
||||
(_T("u") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SIDEDIRECTIONVAL_INCLUDE_H_
|
||||
141
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SlideLayoutType.h
Normal file
141
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SlideLayoutType.h
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SLIDELAYOUTTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SLIDELAYOUTTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class SlideLayoutType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
SlideLayoutType()
|
||||
{
|
||||
m_strValue = _T("blank");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("blank") == strValue) ||
|
||||
(_T("chart") == strValue) ||
|
||||
(_T("chartAndTx") == strValue) ||
|
||||
(_T("clipArtAndTx") == strValue) ||
|
||||
(_T("clipArtAndVertTx") == strValue) ||
|
||||
(_T("cust") == strValue) ||
|
||||
(_T("dgm") == strValue) ||
|
||||
(_T("fourObj") == strValue) ||
|
||||
(_T("mediaAndTx") == strValue) ||
|
||||
(_T("obj") == strValue) ||
|
||||
(_T("objAndTwoObj") == strValue) ||
|
||||
(_T("objAndTx") == strValue) ||
|
||||
(_T("objOnly") == strValue) ||
|
||||
(_T("objOverTx") == strValue) ||
|
||||
(_T("objTx") == strValue) ||
|
||||
(_T("picTx") == strValue) ||
|
||||
(_T("secHead") == strValue) ||
|
||||
(_T("tbl") == strValue) ||
|
||||
(_T("title") == strValue) ||
|
||||
(_T("titleOnly") == strValue) ||
|
||||
(_T("twoColTx") == strValue) ||
|
||||
(_T("twoObj") == strValue) ||
|
||||
(_T("twoObjAndObj") == strValue) ||
|
||||
(_T("twoObjAndTx") == strValue) ||
|
||||
(_T("twoObjOverTx") == strValue) ||
|
||||
(_T("twoTxTwoObj") == strValue) ||
|
||||
(_T("tx") == strValue) ||
|
||||
(_T("txAndChart") == strValue) ||
|
||||
(_T("txAndClipArt") == strValue) ||
|
||||
(_T("txAndMedia") == strValue) ||
|
||||
(_T("txAndObj") == strValue) ||
|
||||
(_T("txAndTwoObj") == strValue) ||
|
||||
(_T("txOverObj") == strValue) ||
|
||||
(_T("vertTitleAndTx") == strValue) ||
|
||||
(_T("vertTitleAndTxOverChart") == strValue) ||
|
||||
(_T("vertTx") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("blank") == m_strValue) return 0;
|
||||
if (_T("chart") == m_strValue) return 1;
|
||||
if (_T("chartAndTx") == m_strValue) return 2;
|
||||
if (_T("clipArtAndTx") == m_strValue) return 3;
|
||||
if (_T("clipArtAndVertTx") == m_strValue) return 4;
|
||||
if (_T("cust") == m_strValue) return 5;
|
||||
if (_T("dgm") == m_strValue) return 6;
|
||||
if (_T("fourObj") == m_strValue) return 7;
|
||||
if (_T("mediaAndTx") == m_strValue) return 8;
|
||||
if (_T("obj") == m_strValue) return 9;
|
||||
if (_T("objAndTwoObj") == m_strValue) return 10;
|
||||
if (_T("objAndTx") == m_strValue) return 11;
|
||||
if (_T("objOnly") == m_strValue) return 12;
|
||||
if (_T("objOverTx") == m_strValue) return 13;
|
||||
if (_T("objTx") == m_strValue) return 14;
|
||||
if (_T("picTx") == m_strValue) return 15;
|
||||
if (_T("secHead") == m_strValue) return 16;
|
||||
if (_T("tbl") == m_strValue) return 17;
|
||||
if (_T("title") == m_strValue) return 18;
|
||||
if (_T("titleOnly") == m_strValue) return 19;
|
||||
if (_T("twoColTx") == m_strValue) return 20;
|
||||
if (_T("twoObj") == m_strValue) return 21;
|
||||
if (_T("twoObjAndObj") == m_strValue) return 22;
|
||||
if (_T("twoObjAndTx") == m_strValue) return 23;
|
||||
if (_T("twoObjOverTx") == m_strValue) return 24;
|
||||
if (_T("twoTxTwoObj") == m_strValue) return 25;
|
||||
if (_T("tx") == m_strValue) return 26;
|
||||
if (_T("txAndChart") == m_strValue) return 27;
|
||||
if (_T("txAndClipArt") == m_strValue) return 28;
|
||||
if (_T("txAndMedia") == m_strValue) return 29;
|
||||
if (_T("txAndObj") == m_strValue) return 30;
|
||||
if (_T("txAndTwoObj") == m_strValue) return 31;
|
||||
if (_T("txOverObj") == m_strValue) return 32;
|
||||
if (_T("vertTitleAndTx") == m_strValue) return 33;
|
||||
if (_T("vertTitleAndTxOverChart") == m_strValue) return 34;
|
||||
if (_T("vertTx") == m_strValue) return 35;
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SLIDELAYOUTTYPE_INCLUDE_H_
|
||||
126
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SlideSize.h
Normal file
126
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SlideSize.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SLIDESIZE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SLIDESIZE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class SlideSize : public BaseLimit
|
||||
{
|
||||
public:
|
||||
SlideSize()
|
||||
{
|
||||
m_strValue = _T("screen4x3");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("35mm") == strValue) ||
|
||||
(_T("A3") == strValue) ||
|
||||
(_T("A4") == strValue) ||
|
||||
(_T("B4ISO") == strValue) ||
|
||||
(_T("B4JIS") == strValue) ||
|
||||
(_T("B5ISO") == strValue) ||
|
||||
(_T("B5JIS") == strValue) ||
|
||||
(_T("banner") == strValue) ||
|
||||
(_T("custom") == strValue) ||
|
||||
(_T("hagakiCard") == strValue) ||
|
||||
(_T("ledger") == strValue) ||
|
||||
(_T("letter") == strValue) ||
|
||||
(_T("overhead") == strValue) ||
|
||||
(_T("screen16x10") == strValue) ||
|
||||
(_T("screen16x9") == strValue) ||
|
||||
(_T("screen4x3") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("35mm") == m_strValue) return 0;
|
||||
if (_T("A3") == m_strValue) return 1;
|
||||
if (_T("A4") == m_strValue) return 2;
|
||||
if (_T("B4ISO") == m_strValue) return 3;
|
||||
if (_T("B4JIS") == m_strValue) return 4;
|
||||
if (_T("B5ISO") == m_strValue) return 5;
|
||||
if (_T("B5JIS") == m_strValue) return 6;
|
||||
if (_T("banner") == m_strValue) return 7;
|
||||
if (_T("custom") == m_strValue) return 8;
|
||||
if (_T("hagakiCard") == m_strValue) return 9;
|
||||
if (_T("ledger") == m_strValue) return 10;
|
||||
if (_T("letter") == m_strValue) return 11;
|
||||
if (_T("overhead") == m_strValue) return 12;
|
||||
if (_T("screen16x10") == m_strValue) return 13;
|
||||
if (_T("screen16x9") == m_strValue) return 14;
|
||||
if (_T("screen4x3") == m_strValue) return 15;
|
||||
|
||||
return 15;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 0: m_strValue = _T("35mm"); break;
|
||||
case 1: m_strValue = _T("A3"); break;
|
||||
case 2: m_strValue = _T("A4"); break;
|
||||
case 3: m_strValue = _T("B4ISO"); break;
|
||||
case 4: m_strValue = _T("B4JIS"); break;
|
||||
case 5: m_strValue = _T("B5ISO"); break;
|
||||
case 6: m_strValue = _T("B5JIS"); break;
|
||||
case 7: m_strValue = _T("banner"); break;
|
||||
case 8: m_strValue = _T("custom"); break;
|
||||
case 9: m_strValue = _T("hagakiCard"); break;
|
||||
case 10: m_strValue = _T("ledger"); break;
|
||||
case 11: m_strValue = _T("letter"); break;
|
||||
case 12: m_strValue = _T("overhead"); break;
|
||||
case 13: m_strValue = _T("screen16x10"); break;
|
||||
case 14: m_strValue = _T("screen16x9"); break;
|
||||
case 15: m_strValue = _T("screen4x3"); break;
|
||||
default:
|
||||
m_strValue = _T("screen4x3");
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SLIDESIZE_INCLUDE_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SPLITTER_BAR_STATE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SPLITTER_BAR_STATE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class SplitterBarState : public BaseLimit
|
||||
{
|
||||
public:
|
||||
SplitterBarState()
|
||||
{
|
||||
m_strValue = _T("restored");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("maximized") == strValue) ||
|
||||
(_T("minimized") == strValue) ||
|
||||
(_T("restored") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("maximized") == m_strValue)
|
||||
return 0;
|
||||
if (_T("minimized") == m_strValue)
|
||||
return 1;
|
||||
if (_T("restored") == m_strValue)
|
||||
return 2;
|
||||
return 2;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SPLITTER_BAR_STATE_INCLUDE_H_
|
||||
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SysClrVal.h
Normal file
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/SysClrVal.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_SYSCLRVAL_INCLUDE_H_
|
||||
#define PPTX_LIMIT_SYSCLRVAL_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class SysClrVal : public BaseLimit
|
||||
{
|
||||
public:
|
||||
SysClrVal()
|
||||
{
|
||||
m_strValue = _T("window");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("3dDkShadow") == strValue) ||
|
||||
(_T("3dLight") == strValue) ||
|
||||
(_T("activeBorder") == strValue) ||
|
||||
(_T("activeCaption") == strValue) ||
|
||||
(_T("appWorkspace") == strValue) ||
|
||||
(_T("background") == strValue) ||
|
||||
(_T("btnFace") == strValue) ||
|
||||
(_T("btnHighlight") == strValue) ||
|
||||
(_T("btnShadow") == strValue) ||
|
||||
(_T("btnText") == strValue) ||
|
||||
(_T("captionText") == strValue) ||
|
||||
(_T("gradientActiveCaption") == strValue) ||
|
||||
(_T("gradientInactiveCaption") == strValue) ||
|
||||
(_T("grayText") == strValue) ||
|
||||
(_T("highlight") == strValue) ||
|
||||
(_T("highlightText") == strValue) ||
|
||||
(_T("hotLight") == strValue) ||
|
||||
(_T("inactiveBorder") == strValue) ||
|
||||
(_T("inactiveCaption") == strValue) ||
|
||||
(_T("inactiveCaptionText") == strValue) ||
|
||||
(_T("infoBk") == strValue) ||
|
||||
(_T("infoText") == strValue) ||
|
||||
(_T("menu") == strValue) ||
|
||||
(_T("menuBar") == strValue) ||
|
||||
(_T("menuHighlight") == strValue) ||
|
||||
(_T("menuText") == strValue) ||
|
||||
(_T("scrollBar") == strValue) ||
|
||||
(_T("window") == strValue) ||
|
||||
(_T("windowFrame") == strValue) ||
|
||||
(_T("windowText") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_SYSCLRVAL_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLAccumulate.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLAccumulate.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLACCUMULATE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLACCUMULATE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLAccumulate : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLAccumulate()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("always") == strValue) ||
|
||||
(_T("none") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLACCUMULATE_INCLUDE_H_
|
||||
68
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLAdditive.h
Normal file
68
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLAdditive.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLADDITIVE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLADDITIVE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLAdditive : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLAdditive()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("base") == strValue) ||
|
||||
(_T("mult") == strValue) ||
|
||||
(_T("none") == strValue) ||
|
||||
(_T("repl") == strValue) ||
|
||||
(_T("sum") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLADDITIVE_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLCalcMode.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLCalcMode.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLCALCMODE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLCALCMODE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLCalcMode : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLCalcMode()
|
||||
{
|
||||
m_strValue = _T("lin");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("lin") == strValue) ||
|
||||
(_T("fmla") == strValue) ||
|
||||
(_T("discrete") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLCALCMODE_INCLUDE_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLCHARTSUBELEMENT_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLCHARTSUBELEMENT_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLChartSubElement : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLChartSubElement()
|
||||
{
|
||||
m_strValue = _T("series");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("category") == strValue) ||
|
||||
(_T("gridLegend") == strValue) ||
|
||||
(_T("ptInCategory") == strValue) ||
|
||||
(_T("ptInSeries") == strValue) ||
|
||||
(_T("series") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLCHARTSUBELEMENT_INCLUDE_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLCOLORDIRECTION_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLCOLORDIRECTION_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLColorDirection : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLColorDirection()
|
||||
{
|
||||
m_strValue = _T("cw");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("ccw") == strValue) ||
|
||||
(_T("cw") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLCOLORDIRECTION_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLColorSpace.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLColorSpace.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLCOLORSPACE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLCOLORSPACE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLColorSpace : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLColorSpace()
|
||||
{
|
||||
m_strValue = _T("rgb");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("rgb") == strValue) ||
|
||||
(_T("hsl") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLCOLORSPACE_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLCommandType.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLCommandType.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLCOMMANDTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLCOMMANDTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLCommandType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLCommandType()
|
||||
{
|
||||
m_strValue = _T("verb");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("call") == strValue) ||
|
||||
(_T("evt") == strValue) ||
|
||||
(_T("verb") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLCOMMANDTYPE_INCLUDE_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLMASTERRELATION_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLMASTERRELATION_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLMasterRelation : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLMasterRelation()
|
||||
{
|
||||
m_strValue = _T("sameClick");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("lastClick") == strValue) ||
|
||||
(_T("nextClick") == strValue) ||
|
||||
(_T("sameClick") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLMASTERRELATION_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLNextAc.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLNextAc.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLNEXTAC_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLNEXTAC_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLNextAc : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLNextAc()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("none") == strValue) ||
|
||||
(_T("seek") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLNEXTAC_INCLUDE_H_
|
||||
67
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLNodeFillType.h
Normal file
67
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLNodeFillType.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLNODEFILLTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLNODEFILLTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLNodeFillType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLNodeFillType()
|
||||
{
|
||||
m_strValue = _T("hold");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("freeze") == strValue) ||
|
||||
(_T("hold") == strValue) ||
|
||||
(_T("remove") == strValue) ||
|
||||
(_T("transition") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLNODEFILLTYPE_INCLUDE_H_
|
||||
72
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLNodeType.h
Normal file
72
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLNodeType.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLNODETYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLNODETYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLNodeType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLNodeType()
|
||||
{
|
||||
m_strValue = _T("tmRoot");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("afterEffect") == strValue) ||
|
||||
(_T("afterGroup") == strValue) ||
|
||||
(_T("clickEffect") == strValue) ||
|
||||
(_T("clickPar") == strValue) ||
|
||||
(_T("interactiveSeq") == strValue) ||
|
||||
(_T("mainSeq") == strValue) ||
|
||||
(_T("tmRoot") == strValue) ||
|
||||
(_T("withEffect") == strValue) ||
|
||||
(_T("withGroup") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLNODETYPE_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLOrigin.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLOrigin.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLORIGIN_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLORIGIN_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLOrigin : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLOrigin()
|
||||
{
|
||||
m_strValue = _T("parent");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("parent") == strValue) ||
|
||||
(_T("layout") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLORIGIN_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLOverride.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLOverride.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLOVERRIDE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLOVERRIDE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLOverride : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLOverride()
|
||||
{
|
||||
m_strValue = _T("normal");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("childStyle") == strValue) ||
|
||||
(_T("normal") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLOVERRIDE_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLPathEditMode.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLPathEditMode.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLPATHEDITMODE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLPATHEDITMODE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLPathEditMode : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLPathEditMode()
|
||||
{
|
||||
m_strValue = _T("relative");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("fixed") == strValue) ||
|
||||
(_T("relative") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLPATHEDITMODE_INCLUDE_H_
|
||||
69
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLPresetClass.h
Normal file
69
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLPresetClass.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLPRESETCLASS_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLPRESETCLASS_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLPresetClass : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLPresetClass()
|
||||
{
|
||||
m_strValue = _T("exit");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("emph") == strValue) ||
|
||||
(_T("entr") == strValue) ||
|
||||
(_T("exit") == strValue) ||
|
||||
(_T("mediacall") == strValue) ||
|
||||
(_T("path") == strValue) ||
|
||||
(_T("verb") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLPRESETCLASS_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLPrevAc.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLPrevAc.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLPREVAC_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLPREVAC_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLPrevAc : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLPrevAc()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("none") == strValue) ||
|
||||
(_T("skipTimed") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLPREVAC_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLRestart.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLRestart.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLRESTART_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLRESTART_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLRestart : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLRestart()
|
||||
{
|
||||
m_strValue = _T("never");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("always") == strValue) ||
|
||||
(_T("never") == strValue) ||
|
||||
(_T("whenNotActive") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLRESTART_INCLUDE_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLRUNTIMETRIGGER_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLRUNTIMETRIGGER_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLRuntimeTrigger : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLRuntimeTrigger()
|
||||
{
|
||||
m_strValue = _T("first");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("all") == strValue) ||
|
||||
(_T("first") == strValue) ||
|
||||
(_T("last") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLRUNTIMETRIGGER_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLSyncBehavior.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLSyncBehavior.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLSYNCBEHAVIOR_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLSYNCBEHAVIOR_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLSyncBehavior : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLSyncBehavior()
|
||||
{
|
||||
m_strValue = _T("canSlip");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("canSlip") == strValue) ||
|
||||
(_T("locked") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLSYNCBEHAVIOR_INCLUDE_H_
|
||||
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLTransform.h
Normal file
65
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLTransform.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLTRANSFORM_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLTRANSFORM_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLTransform : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLTransform()
|
||||
{
|
||||
m_strValue = _T("pt");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("img") == strValue) ||
|
||||
(_T("pt") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLTRANSFORM_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLTransition.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLTransition.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLTRANSITION_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLTRANSITION_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLTransition : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLTransition()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("in") == strValue) ||
|
||||
(_T("out") == strValue) ||
|
||||
(_T("none") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLTRANSITION_INCLUDE_H_
|
||||
74
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLTriggerEvent.h
Normal file
74
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLTriggerEvent.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLTRIGGEREVENT_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLTRIGGEREVENT_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLTriggerEvent : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLTriggerEvent()
|
||||
{
|
||||
m_strValue = _T("begin");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("begin") == strValue) ||
|
||||
(_T("end") == strValue) ||
|
||||
(_T("onBegin") == strValue) ||
|
||||
(_T("onClick") == strValue) ||
|
||||
(_T("onDblClick") == strValue) ||
|
||||
(_T("onEnd") == strValue) ||
|
||||
(_T("onMouseOut") == strValue) ||
|
||||
(_T("onMouseOver") == strValue) ||
|
||||
(_T("onNext") == strValue) ||
|
||||
(_T("onPrev") == strValue) ||
|
||||
(_T("onStopAudio") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLTRIGGEREVENT_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLValueType.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TLValueType.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TLVALUETYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TLVALUETYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TLValueType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TLValueType()
|
||||
{
|
||||
m_strValue = _T("num");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("num") == strValue) ||
|
||||
(_T("clr") == strValue) ||
|
||||
(_T("str") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TLVALUETYPE_INCLUDE_H_
|
||||
120
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextAlign.h
Normal file
120
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextAlign.h
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTALIGN_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTALIGN_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextAlign : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextAlign()
|
||||
{
|
||||
m_strValue = _T("l");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("ctr") == strValue) ||
|
||||
(_T("dist") == strValue) ||
|
||||
(_T("just") == strValue) ||
|
||||
(_T("justLow") == strValue) ||
|
||||
(_T("l") == strValue) ||
|
||||
(_T("r") == strValue) ||
|
||||
(_T("thaiDist") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("ctr") == m_strValue)
|
||||
return 0;
|
||||
if (_T("dist") == m_strValue)
|
||||
return 1;
|
||||
if (_T("just") == m_strValue)
|
||||
return 2;
|
||||
if (_T("justLow") == m_strValue)
|
||||
return 3;
|
||||
if (_T("l") == m_strValue)
|
||||
return 4;
|
||||
if (_T("r") == m_strValue)
|
||||
return 5;
|
||||
if (_T("thaiDist") == m_strValue)
|
||||
return 6;
|
||||
return 4;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& val)
|
||||
{
|
||||
switch (val)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("ctr");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("dist");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("just");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("justLow");
|
||||
break;
|
||||
case 4:
|
||||
m_strValue = _T("l");
|
||||
break;
|
||||
case 5:
|
||||
m_strValue = _T("r");
|
||||
break;
|
||||
case 6:
|
||||
m_strValue = _T("thaiDist");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("l");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTALIGN_INCLUDE_H_
|
||||
105
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextAnchor.h
Normal file
105
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextAnchor.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTANCHOR_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTANCHOR_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextAnchor : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextAnchor()
|
||||
{
|
||||
m_strValue = _T("t");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("b") == strValue) ||
|
||||
(_T("ctr") == strValue) ||
|
||||
(_T("dist") == strValue) ||
|
||||
(_T("just") == strValue) ||
|
||||
(_T("t") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("b") == m_strValue)
|
||||
return 0;
|
||||
if (_T("ctr") == m_strValue)
|
||||
return 1;
|
||||
if (_T("dist") == m_strValue)
|
||||
return 2;
|
||||
if (_T("just") == m_strValue)
|
||||
return 3;
|
||||
if (_T("t") == m_strValue)
|
||||
return 4;
|
||||
return 4;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("b");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("ctr");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("dist");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("just");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("t");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTANCHOR_INCLUDE_H_
|
||||
@@ -0,0 +1,201 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTAUTONUMBERSCHEME_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTAUTONUMBERSCHEME_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextAutonumberScheme : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextAutonumberScheme()
|
||||
{
|
||||
m_strValue = _T("arabicPlain");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("alphaLcParenBoth") == strValue) ||
|
||||
(_T("alphaLcParenR") == strValue) ||
|
||||
(_T("alphaLcPeriod") == strValue) ||
|
||||
(_T("alphaUcParenBoth") == strValue) ||
|
||||
(_T("alphaUcParenR") == strValue) ||
|
||||
(_T("alphaUcPeriod") == strValue) ||
|
||||
(_T("arabic1Minus") == strValue) ||
|
||||
(_T("arabic2Minus") == strValue) ||
|
||||
(_T("arabicDbPeriod") == strValue) ||
|
||||
(_T("arabicDbPlain") == strValue) ||
|
||||
(_T("arabicParenBoth") == strValue) ||
|
||||
(_T("arabicParenR") == strValue) ||
|
||||
(_T("arabicPeriod") == strValue) ||
|
||||
(_T("arabicPlain") == strValue) ||
|
||||
(_T("circleNumDbPlain") == strValue) ||
|
||||
(_T("circleNumWdBlackPlain") == strValue) ||
|
||||
(_T("circleNumWdWhitePlain") == strValue) ||
|
||||
(_T("ea1ChsPeriod") == strValue) ||
|
||||
(_T("ea1ChsPlain") == strValue) ||
|
||||
(_T("ea1ChtPeriod") == strValue) ||
|
||||
(_T("ea1ChtPlain") == strValue) ||
|
||||
(_T("ea1JpnChsDbPeriod") == strValue) ||
|
||||
(_T("ea1JpnKorPeriod") == strValue) ||
|
||||
(_T("ea1JpnKorPlain") == strValue) ||
|
||||
(_T("hebrew2Minus") == strValue) ||
|
||||
(_T("hindiAlpha1Period") == strValue) ||
|
||||
(_T("hindiAlphaPeriod") == strValue) ||
|
||||
(_T("hindiNumParenR") == strValue) ||
|
||||
(_T("hindiNumPeriod") == strValue) ||
|
||||
(_T("romanLcParenBoth") == strValue) ||
|
||||
(_T("romanLcParenR") == strValue) ||
|
||||
(_T("romanLcPeriod") == strValue) ||
|
||||
(_T("romanUcParenBoth") == strValue) ||
|
||||
(_T("romanUcParenR") == strValue) ||
|
||||
(_T("romanUcPeriod") == strValue) ||
|
||||
(_T("thaiAlphaParenBoth") == strValue) ||
|
||||
(_T("thaiAlphaParenR") == strValue) ||
|
||||
(_T("thaiAlphaPeriod") == strValue) ||
|
||||
(_T("thaiNumParenBoth") == strValue) ||
|
||||
(_T("thaiNumParenR") == strValue) ||
|
||||
(_T("thaiNumPeriod") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("alphaLcParenBoth") == m_strValue) return 0;
|
||||
if (_T("alphaLcParenR") == m_strValue) return 1;
|
||||
if (_T("alphaLcPeriod") == m_strValue) return 2;
|
||||
if (_T("alphaUcParenBoth") == m_strValue) return 3;
|
||||
if (_T("alphaUcParenR") == m_strValue) return 4;
|
||||
if (_T("alphaUcPeriod") == m_strValue) return 5;
|
||||
if (_T("arabic1Minus") == m_strValue) return 6;
|
||||
if (_T("arabic2Minus") == m_strValue) return 7;
|
||||
if (_T("arabicDbPeriod") == m_strValue) return 8;
|
||||
if (_T("arabicDbPlain") == m_strValue) return 9;
|
||||
if (_T("arabicParenBoth") == m_strValue) return 10;
|
||||
if (_T("arabicParenR") == m_strValue) return 11;
|
||||
if (_T("arabicPeriod") == m_strValue) return 12;
|
||||
if (_T("arabicPlain") == m_strValue) return 13;
|
||||
if (_T("circleNumDbPlain") == m_strValue) return 14;
|
||||
if (_T("circleNumWdBlackPlain") == m_strValue) return 15;
|
||||
if (_T("circleNumWdWhitePlain") == m_strValue) return 16;
|
||||
if (_T("ea1ChsPeriod") == m_strValue) return 17;
|
||||
if (_T("ea1ChsPlain") == m_strValue) return 18;
|
||||
if (_T("ea1ChtPeriod") == m_strValue) return 19;
|
||||
if (_T("ea1ChtPlain") == m_strValue) return 20;
|
||||
if (_T("ea1JpnChsDbPeriod") == m_strValue) return 21;
|
||||
if (_T("ea1JpnKorPeriod") == m_strValue) return 22;
|
||||
if (_T("ea1JpnKorPlain") == m_strValue) return 23;
|
||||
if (_T("hebrew2Minus") == m_strValue) return 24;
|
||||
if (_T("hindiAlpha1Period") == m_strValue) return 25;
|
||||
if (_T("hindiAlphaPeriod") == m_strValue) return 26;
|
||||
if (_T("hindiNumParenR") == m_strValue) return 27;
|
||||
if (_T("hindiNumPeriod") == m_strValue) return 28;
|
||||
if (_T("romanLcParenBoth") == m_strValue) return 29;
|
||||
if (_T("romanLcParenR") == m_strValue) return 30;
|
||||
if (_T("romanLcPeriod") == m_strValue) return 31;
|
||||
if (_T("romanUcParenBoth") == m_strValue) return 32;
|
||||
if (_T("romanUcParenR") == m_strValue) return 33;
|
||||
if (_T("romanUcPeriod") == m_strValue) return 34;
|
||||
if (_T("thaiAlphaParenBoth") == m_strValue) return 35;
|
||||
if (_T("thaiAlphaParenR") == m_strValue) return 36;
|
||||
if (_T("thaiAlphaPeriod") == m_strValue) return 37;
|
||||
if (_T("thaiNumParenBoth") == m_strValue) return 38;
|
||||
if (_T("thaiNumParenR") == m_strValue) return 39;
|
||||
if (_T("thaiNumPeriod") == m_strValue) return 40;
|
||||
return 13;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0: m_strValue = _T("alphaLcParenBoth"); break;
|
||||
case 1: m_strValue = _T("alphaLcParenR"); break;
|
||||
case 2: m_strValue = _T("alphaLcPeriod"); break;
|
||||
case 3: m_strValue = _T("alphaUcParenBoth"); break;
|
||||
case 4: m_strValue = _T("alphaUcParenR"); break;
|
||||
case 5: m_strValue = _T("alphaUcPeriod"); break;
|
||||
case 6: m_strValue = _T("arabic1Minus"); break;
|
||||
case 7: m_strValue = _T("arabic2Minus"); break;
|
||||
case 8: m_strValue = _T("arabicDbPeriod"); break;
|
||||
case 9: m_strValue = _T("arabicDbPlain"); break;
|
||||
case 10: m_strValue = _T("arabicParenBoth"); break;
|
||||
case 11: m_strValue = _T("arabicParenR"); break;
|
||||
case 12: m_strValue = _T("arabicPeriod"); break;
|
||||
case 13: m_strValue = _T("arabicPlain"); break;
|
||||
case 14: m_strValue = _T("circleNumDbPlain"); break;
|
||||
case 15: m_strValue = _T("circleNumWdBlackPlain"); break;
|
||||
case 16: m_strValue = _T("circleNumWdWhitePlain"); break;
|
||||
case 17: m_strValue = _T("ea1ChsPeriod"); break;
|
||||
case 18: m_strValue = _T("ea1ChsPlain"); break;
|
||||
case 19: m_strValue = _T("ea1ChtPeriod"); break;
|
||||
case 20: m_strValue = _T("ea1ChtPlain"); break;
|
||||
case 21: m_strValue = _T("ea1JpnChsDbPeriod"); break;
|
||||
case 22: m_strValue = _T("ea1JpnKorPeriod"); break;
|
||||
case 23: m_strValue = _T("ea1JpnKorPlain"); break;
|
||||
case 24: m_strValue = _T("hebrew2Minus"); break;
|
||||
case 25: m_strValue = _T("hindiAlpha1Period"); break;
|
||||
case 26: m_strValue = _T("hindiAlphaPeriod"); break;
|
||||
case 27: m_strValue = _T("hindiNumPeriod"); break;
|
||||
case 28: m_strValue = _T("hindiNumPeriod"); break;
|
||||
case 29: m_strValue = _T("romanLcParenBoth"); break;
|
||||
case 30: m_strValue = _T("romanLcParenR"); break;
|
||||
case 31: m_strValue = _T("romanLcPeriod"); break;
|
||||
case 32: m_strValue = _T("romanUcParenBoth"); break;
|
||||
case 33: m_strValue = _T("romanUcParenR"); break;
|
||||
case 34: m_strValue = _T("romanUcPeriod"); break;
|
||||
case 35: m_strValue = _T("thaiAlphaParenBoth"); break;
|
||||
case 36: m_strValue = _T("thaiAlphaParenR"); break;
|
||||
case 37: m_strValue = _T("thaiAlphaPeriod"); break;
|
||||
case 38: m_strValue = _T("thaiNumParenBoth"); break;
|
||||
case 39: m_strValue = _T("thaiNumParenR"); break;
|
||||
case 40: m_strValue = _T("thaiNumPeriod"); break;
|
||||
default:
|
||||
m_strValue = _T("arabicPlain");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTAUTONUMBERSCHEME_INCLUDE_H_
|
||||
91
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextCaps.h
Normal file
91
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextCaps.h
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTCAPS_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTCAPS_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextCaps : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextCaps()
|
||||
{
|
||||
m_strValue = _T("none");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("all") == strValue) ||
|
||||
(_T("none") == strValue) ||
|
||||
(_T("small") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("all") == m_strValue)
|
||||
return 0;
|
||||
if (_T("small") == m_strValue)
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("all");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("small");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("none");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTCAPS_INCLUDE_H_
|
||||
150
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextShapeType.h
Normal file
150
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextShapeType.h
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTSHAPETYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTSHAPETYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextShapeType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextShapeType()
|
||||
{
|
||||
m_strValue = _T("textNoShape");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("textArchDown") == strValue) ||
|
||||
(_T("textArchDownPour") == strValue) ||
|
||||
(_T("textArchUp") == strValue) ||
|
||||
(_T("textArchUpPour") == strValue) ||
|
||||
(_T("textButton") == strValue) ||
|
||||
(_T("textButtonPour") == strValue) ||
|
||||
(_T("textCanDown") == strValue) ||
|
||||
(_T("textCanUp") == strValue) ||
|
||||
(_T("textCascadeDown") == strValue) ||
|
||||
(_T("textCascadeUp") == strValue) ||
|
||||
(_T("textChevron") == strValue) ||
|
||||
(_T("textChevronInverted") == strValue) ||
|
||||
(_T("textCircle") == strValue) ||
|
||||
(_T("textCirclePour") == strValue) ||
|
||||
(_T("textCurveDown") == strValue) ||
|
||||
(_T("textCurveUp") == strValue) ||
|
||||
(_T("textDeflate") == strValue) ||
|
||||
(_T("textDeflateBottom") == strValue) ||
|
||||
(_T("textDeflateInflate") == strValue) ||
|
||||
(_T("textDeflateInflateDeflate") == strValue) ||
|
||||
(_T("textDeflateTop") == strValue) ||
|
||||
(_T("textDoubleWave1") == strValue) ||
|
||||
(_T("textFadeDown") == strValue) ||
|
||||
(_T("textFadeLeft") == strValue) ||
|
||||
(_T("textFadeRight") == strValue) ||
|
||||
(_T("textFadeUp") == strValue) ||
|
||||
(_T("textInflate") == strValue) ||
|
||||
(_T("textInflateBottom") == strValue) ||
|
||||
(_T("textInflateTop") == strValue) ||
|
||||
(_T("textNoShape") == strValue) ||
|
||||
(_T("textPlain") == strValue) ||
|
||||
(_T("textRingInside") == strValue) ||
|
||||
(_T("textRingOutside") == strValue) ||
|
||||
(_T("textSlantDown") == strValue) ||
|
||||
(_T("textSlantUp") == strValue) ||
|
||||
(_T("textStop") == strValue) ||
|
||||
(_T("textTriangle") == strValue) ||
|
||||
(_T("textTriangleInverted") == strValue) ||
|
||||
(_T("textWave1") == strValue) ||
|
||||
(_T("textWave2") == strValue) ||
|
||||
(_T("textWave4") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("textArchDown") == m_strValue) return 0;
|
||||
if (_T("textArchDownPour") == m_strValue) return 1;
|
||||
if (_T("textArchUp") == m_strValue) return 2;
|
||||
if (_T("textArchUpPour") == m_strValue) return 3;
|
||||
if (_T("textButton") == m_strValue) return 4;
|
||||
if (_T("textButtonPour") == m_strValue) return 5;
|
||||
if (_T("textCanDown") == m_strValue) return 6;
|
||||
if (_T("textCanUp") == m_strValue) return 7;
|
||||
if (_T("textCascadeDown") == m_strValue) return 8;
|
||||
if (_T("textCascadeUp") == m_strValue) return 9;
|
||||
if (_T("textChevron") == m_strValue) return 10;
|
||||
if (_T("textChevronInverted") == m_strValue) return 11;
|
||||
if (_T("textCircle") == m_strValue) return 12;
|
||||
if (_T("textCirclePour") == m_strValue) return 13;
|
||||
if (_T("textCurveDown") == m_strValue) return 14;
|
||||
if (_T("textCurveUp") == m_strValue) return 15;
|
||||
if (_T("textDeflate") == m_strValue) return 16;
|
||||
if (_T("textDeflateBottom") == m_strValue) return 17;
|
||||
if (_T("textDeflateInflate") == m_strValue) return 18;
|
||||
if (_T("textDeflateInflateDeflate") == m_strValue) return 19;
|
||||
if (_T("textDeflateTop") == m_strValue) return 20;
|
||||
if (_T("textDoubleWave1") == m_strValue) return 21;
|
||||
if (_T("textFadeDown") == m_strValue) return 22;
|
||||
if (_T("textFadeLeft") == m_strValue) return 23;
|
||||
if (_T("textFadeRight") == m_strValue) return 24;
|
||||
if (_T("textFadeUp") == m_strValue) return 25;
|
||||
if (_T("textInflate") == m_strValue) return 26;
|
||||
if (_T("textInflateBottom") == m_strValue) return 27;
|
||||
if (_T("textInflateTop") == m_strValue) return 28;
|
||||
if (_T("textNoShape") == m_strValue) return 29;
|
||||
if (_T("textPlain") == m_strValue) return 30;
|
||||
if (_T("textRingInside") == m_strValue) return 31;
|
||||
if (_T("textRingOutside") == m_strValue) return 32;
|
||||
if (_T("textSlantDown") == m_strValue) return 33;
|
||||
if (_T("textSlantUp") == m_strValue) return 34;
|
||||
if (_T("textStop") == m_strValue) return 35;
|
||||
if (_T("textTriangle") == m_strValue) return 36;
|
||||
if (_T("textTriangleInverted") == m_strValue) return 37;
|
||||
if (_T("textWave1") == m_strValue) return 38;
|
||||
if (_T("textWave2") == m_strValue) return 39;
|
||||
if (_T("textWave4") == m_strValue) return 40;
|
||||
return 29;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTSHAPETYPE_INCLUDE_H_
|
||||
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextStrike.h
Normal file
93
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextStrike.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTSTRIKE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTSTRIKE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextStrike : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextStrike()
|
||||
{
|
||||
m_strValue = _T("noStrike");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("dblStrike") == strValue) ||
|
||||
(_T("noStrike") == strValue) ||
|
||||
(_T("sngStrike") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("dblStrike") == m_strValue)
|
||||
return 0;
|
||||
if (_T("noStrike") == m_strValue)
|
||||
return 1;
|
||||
if (_T("sngStrike") == m_strValue)
|
||||
return 2;
|
||||
return 1;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("dblStrike");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("sngStrike");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("noStrike");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTSTRIKE_INCLUDE_H_
|
||||
102
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextTabAlignType.h
Normal file
102
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextTabAlignType.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTTABALIGNTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTTABALIGNTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextTabAlignType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextTabAlignType()
|
||||
{
|
||||
m_strValue = _T("r");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("ctr") == strValue) ||
|
||||
(_T("dec") == strValue) ||
|
||||
(_T("l") == strValue) ||
|
||||
(_T("r") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("ctr") == m_strValue)
|
||||
return 0;
|
||||
if (_T("dec") == m_strValue)
|
||||
return 1;
|
||||
if (_T("l") == m_strValue)
|
||||
return 2;
|
||||
if (_T("r") == m_strValue)
|
||||
return 3;
|
||||
return 2;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("ctr");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("dec");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("l");
|
||||
break;
|
||||
case 3:
|
||||
m_strValue = _T("r");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("l");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTTABALIGNTYPE_INCLUDE_H_
|
||||
150
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextUnderline.h
Normal file
150
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextUnderline.h
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTUNDERLINE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTUNDERLINE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextUnderline : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextUnderline()
|
||||
{
|
||||
m_strValue = _T("sng");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("dash") == strValue) ||
|
||||
(_T("dashHeavy") == strValue) ||
|
||||
(_T("dashLong") == strValue) ||
|
||||
(_T("dashLongHeavy") == strValue) ||
|
||||
(_T("dbl") == strValue) ||
|
||||
(_T("dotDash") == strValue) ||
|
||||
(_T("dotDashHeavy") == strValue) ||
|
||||
(_T("dotDotDash") == strValue) ||
|
||||
(_T("dotDotDashHeavy") == strValue) ||
|
||||
(_T("dotted") == strValue) ||
|
||||
(_T("dottedHeavy") == strValue) ||
|
||||
(_T("heavy") == strValue) ||
|
||||
(_T("none") == strValue) ||
|
||||
(_T("sng") == strValue) ||
|
||||
(_T("wavy") == strValue) ||
|
||||
(_T("wavyDbl") == strValue) ||
|
||||
(_T("wavyHeavy") == strValue) ||
|
||||
(_T("words") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("dash") == m_strValue)
|
||||
return 0;
|
||||
if (_T("dashHeavy") == m_strValue)
|
||||
return 1;
|
||||
if (_T("dashLong") == m_strValue)
|
||||
return 2;
|
||||
if (_T("dashLongHeavy") == m_strValue)
|
||||
return 3;
|
||||
if (_T("dbl") == m_strValue)
|
||||
return 4;
|
||||
if (_T("dotDash") == m_strValue)
|
||||
return 5;
|
||||
if (_T("dotDashHeavy") == m_strValue)
|
||||
return 6;
|
||||
if (_T("dotDotDash") == m_strValue)
|
||||
return 7;
|
||||
if (_T("dotDotDashHeavy") == m_strValue)
|
||||
return 8;
|
||||
if (_T("dotted") == m_strValue)
|
||||
return 9;
|
||||
if (_T("dottedHeavy") == m_strValue)
|
||||
return 10;
|
||||
if (_T("heavy") == m_strValue)
|
||||
return 11;
|
||||
if (_T("none") == m_strValue)
|
||||
return 12;
|
||||
if (_T("sng") == m_strValue)
|
||||
return 13;
|
||||
if (_T("wavy") == m_strValue)
|
||||
return 14;
|
||||
if (_T("wavyDbl") == m_strValue)
|
||||
return 15;
|
||||
if (_T("wavyHeavy") == m_strValue)
|
||||
return 16;
|
||||
if (_T("words") == m_strValue)
|
||||
return 17;
|
||||
return 13;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0: m_strValue = _T("dash"); break;
|
||||
case 1: m_strValue = _T("dashHeavy"); break;
|
||||
case 2: m_strValue = _T("dashLong"); break;
|
||||
case 3: m_strValue = _T("dashLongHeavy"); break;
|
||||
case 4: m_strValue = _T("dbl"); break;
|
||||
case 5: m_strValue = _T("dotDash"); break;
|
||||
case 6: m_strValue = _T("dotDashHeavy"); break;
|
||||
case 7: m_strValue = _T("dotDotDash"); break;
|
||||
case 8: m_strValue = _T("dotDotDashHeavy"); break;
|
||||
case 9: m_strValue = _T("dotted"); break;
|
||||
case 10: m_strValue = _T("dottedHeavy"); break;
|
||||
case 11: m_strValue = _T("heavy"); break;
|
||||
case 12: m_strValue = _T("none"); break;
|
||||
case 13: m_strValue = _T("sng"); break;
|
||||
case 14: m_strValue = _T("wavy"); break;
|
||||
case 15: m_strValue = _T("wavyDbl"); break;
|
||||
case 16: m_strValue = _T("wavyHeavy"); break;
|
||||
case 17: m_strValue = _T("words"); break;
|
||||
default:
|
||||
m_strValue = _T("sng");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTUNDERLINE_INCLUDE_H_
|
||||
106
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextVerticalType.h
Normal file
106
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextVerticalType.h
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTVERTICALTYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTVERTICALTYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextVerticalType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextVerticalType()
|
||||
{
|
||||
m_strValue = _T("horz");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("eaVert") == strValue) ||
|
||||
(_T("horz") == strValue) ||
|
||||
(_T("mongolianVert") == strValue) ||
|
||||
(_T("vert") == strValue) ||
|
||||
(_T("vert270") == strValue) ||
|
||||
(_T("wordArtVert") == strValue) ||
|
||||
(_T("wordArtVertRtl") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("eaVert") == m_strValue)
|
||||
return 0;
|
||||
if (_T("horz") == m_strValue)
|
||||
return 1;
|
||||
if (_T("mongolianVert") == m_strValue)
|
||||
return 2;
|
||||
if (_T("vert") == m_strValue)
|
||||
return 3;
|
||||
if (_T("vert270") == m_strValue)
|
||||
return 4;
|
||||
if (_T("wordArtVert") == m_strValue)
|
||||
return 5;
|
||||
if (_T("wordArtVertRtl") == m_strValue)
|
||||
return 6;
|
||||
return 1;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0: m_strValue = _T("eaVert"); break;
|
||||
case 1: m_strValue = _T("horz"); break;
|
||||
case 2: m_strValue = _T("mongolianVert"); break;
|
||||
case 3: m_strValue = _T("vert"); break;
|
||||
case 4: m_strValue = _T("vert270"); break;
|
||||
case 5: m_strValue = _T("wordArtVert"); break;
|
||||
case 6: m_strValue = _T("wordArtVertRtl"); break;
|
||||
default:
|
||||
m_strValue = _T("horz");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTVERTICALTYPE_INCLUDE_H_
|
||||
81
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextWrap.h
Normal file
81
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TextWrap.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TEXTWRAP_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TEXTWRAP_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TextWrap : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TextWrap()
|
||||
{
|
||||
m_strValue = _T("square");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("none") == strValue) ||
|
||||
(_T("square") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("none") == m_strValue)
|
||||
return 0;
|
||||
if (_T("square") == m_strValue)
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
if (0 == src)
|
||||
m_strValue = _T("none");
|
||||
else
|
||||
m_strValue = _T("square");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TEXTWRAP_INCLUDE_H_
|
||||
96
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TransitionSpeed.h
Normal file
96
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/TransitionSpeed.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_TRANSITIONSPEED_INCLUDE_H_
|
||||
#define PPTX_LIMIT_TRANSITIONSPEED_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class TransitionSpeed : public BaseLimit
|
||||
{
|
||||
public:
|
||||
TransitionSpeed()
|
||||
{
|
||||
m_strValue = _T("fast");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("fast") == strValue) ||
|
||||
(_T("med") == strValue) ||
|
||||
(_T("slow") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("fast") == m_strValue)
|
||||
return 0;
|
||||
if (_T("med") == m_strValue)
|
||||
return 1;
|
||||
if (_T("slow") == m_strValue)
|
||||
return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
switch (src)
|
||||
{
|
||||
case 0:
|
||||
m_strValue = _T("fast");
|
||||
break;
|
||||
case 1:
|
||||
m_strValue = _T("med");
|
||||
break;
|
||||
case 2:
|
||||
m_strValue = _T("slow");
|
||||
break;
|
||||
default:
|
||||
m_strValue = _T("fast");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_TRANSITIONSPEED_INCLUDE_H_
|
||||
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/VariantType.h
Normal file
66
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/VariantType.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_VARIANT_TYPE_INCLUDE_H_
|
||||
#define PPTX_LIMIT_VARIANT_TYPE_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class VariantType : public BaseLimit
|
||||
{
|
||||
public:
|
||||
VariantType()
|
||||
{
|
||||
m_strValue = _T("lpstr");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("lpstr") == strValue) ||
|
||||
(_T("i4") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_VARIANT_TYPE_INCLUDE_H_
|
||||
87
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/VertOverflow.h
Normal file
87
ActiveX/ASCOfficePPTXFile/PPTXFormat/Limit/VertOverflow.h
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* 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 Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* 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
|
||||
#ifndef PPTX_LIMIT_VERTOVERFLOW_INCLUDE_H_
|
||||
#define PPTX_LIMIT_VERTOVERFLOW_INCLUDE_H_
|
||||
|
||||
#include "BaseLimit.h"
|
||||
|
||||
|
||||
namespace PPTX
|
||||
{
|
||||
namespace Limit
|
||||
{
|
||||
class VertOverflow : public BaseLimit
|
||||
{
|
||||
public:
|
||||
VertOverflow()
|
||||
{
|
||||
m_strValue = _T("clip");
|
||||
}
|
||||
|
||||
_USE_STRING_OPERATOR
|
||||
|
||||
virtual void set(const CString& strValue)
|
||||
{
|
||||
if ((_T("clip") == strValue) ||
|
||||
(_T("ellipsis") == strValue) ||
|
||||
(_T("overflow") == strValue))
|
||||
{
|
||||
m_strValue = strValue;
|
||||
}
|
||||
}
|
||||
|
||||
virtual BYTE GetBYTECode() const
|
||||
{
|
||||
if (_T("clip") == m_strValue)
|
||||
return 0;
|
||||
if (_T("ellipsis") == m_strValue)
|
||||
return 1;
|
||||
if (_T("overflow") == m_strValue)
|
||||
return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void SetBYTECode(const BYTE& src)
|
||||
{
|
||||
if (2 == src)
|
||||
m_strValue = _T("overflow");
|
||||
else if (1 == src)
|
||||
m_strValue = _T("ellipsis");
|
||||
else
|
||||
m_strValue = _T("clip");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PPTX_LIMIT_VERTOVERFLOW_INCLUDE_H_
|
||||
Reference in New Issue
Block a user