init repo
This commit is contained in:
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "BevelT.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
BevelT::BevelT()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BevelT::~BevelT()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BevelT::BevelT(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const BevelT& BevelT::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void BevelT::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_w = element.attribute("w").value();
|
||||
m_h = element.attribute("h").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode BevelT::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* (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 OOX_THEME_BEVELT_INCLUDE_H_
|
||||
#define OOX_THEME_BEVELT_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class BevelT : public WritingElement
|
||||
{
|
||||
public:
|
||||
BevelT();
|
||||
virtual ~BevelT();
|
||||
explicit BevelT(const XML::XNode& node);
|
||||
const BevelT& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_w;
|
||||
int m_h;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_BEVELT_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "BgFillStyleLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
BgFillStyleLst::BgFillStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BgFillStyleLst::~BgFillStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BgFillStyleLst::BgFillStyleLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const BgFillStyleLst& BgFillStyleLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void BgFillStyleLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_solidFill = element.element("solidFill");
|
||||
XML::Fill(m_gradFills, element, "gradFill");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode BgFillStyleLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_BG_FILL_STYLE_LST_INCLUDE_H_
|
||||
#define OOX_THEME_BG_FILL_STYLE_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "SolidFill.h"
|
||||
#include <vector>
|
||||
#include "GradFill.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class BgFillStyleLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
BgFillStyleLst();
|
||||
virtual ~BgFillStyleLst();
|
||||
explicit BgFillStyleLst(const XML::XNode& node);
|
||||
const BgFillStyleLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
SolidFill m_solidFill;
|
||||
std::vector<GradFill> m_gradFills;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_BG_FILL_STYLE_LST_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Camera.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Camera::Camera()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Camera::~Camera()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Camera::Camera(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Camera& Camera::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Camera::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_prst = element.attribute("prst").value();
|
||||
m_rot = element.element("rot");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Camera::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* (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 OOX_THEME_CAMERA_INCLUDE_H_
|
||||
#define OOX_THEME_CAMERA_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "Rot.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Camera : public WritingElement
|
||||
{
|
||||
public:
|
||||
Camera();
|
||||
virtual ~Camera();
|
||||
explicit Camera(const XML::XNode& node);
|
||||
const Camera& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_prst;
|
||||
Rot m_rot;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_CAMERA_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "ClrScheme.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
ClrScheme::ClrScheme()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ClrScheme::~ClrScheme()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ClrScheme::ClrScheme(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const ClrScheme& ClrScheme::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void ClrScheme::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
name = element.attribute("name").value();
|
||||
XML::Fill(clrSchemeItems, element);
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode ClrScheme::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_CLR_SCHEME_INCLUDE_H_
|
||||
#define OOX_THEME_CLR_SCHEME_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "ClrSchemeItem.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class ClrScheme : public WritingElement
|
||||
{
|
||||
public:
|
||||
ClrScheme();
|
||||
virtual ~ClrScheme();
|
||||
explicit ClrScheme(const XML::XNode& node);
|
||||
const ClrScheme& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
nullable_property<std::string> name;
|
||||
property<std::vector<ClrSchemeItem>> clrSchemeItems;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_CLR_SCHEME_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "ClrSchemeItem.h"
|
||||
#include "SysClr.h"
|
||||
#include "SrgbClr.h"
|
||||
#include "./../FormatError.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
ClrSchemeItem::ClrSchemeItem()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ClrSchemeItem::~ClrSchemeItem()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ClrSchemeItem::ClrSchemeItem(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const ClrSchemeItem& ClrSchemeItem::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void ClrSchemeItem::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
name = element.XName->Name;
|
||||
|
||||
if (element.element("sysClr").exist())
|
||||
item->reset(new SysClr(element.element("sysClr")));
|
||||
else if (element.element("srgbClr").exist())
|
||||
item->reset(new SrgbClr(element.element("srgbClr")));
|
||||
else
|
||||
throw FormatError("unknow element " + *name);
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode ClrSchemeItem::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* (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 OOX_THEME_CLR_SCHEME_ITEM_INCLUDE_H_
|
||||
#define OOX_THEME_CLR_SCHEME_ITEM_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
|
||||
#include "../../../../../Common/DocxFormat/Source/Base/SmartPtr.h"
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class ClrSchemeItem : public WritingElement
|
||||
{
|
||||
public:
|
||||
ClrSchemeItem();
|
||||
virtual ~ClrSchemeItem();
|
||||
explicit ClrSchemeItem(const XML::XNode& node);
|
||||
const ClrSchemeItem& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
property<std::string> name;
|
||||
property<NSCommon::smart_ptr<WritingElement>> item;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_CLR_SCHEME_ITEM_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "EffectLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
EffectLst::EffectLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
EffectLst::~EffectLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
EffectLst::EffectLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const EffectLst& EffectLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void EffectLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_outerShdw = element.element("outerShdw");
|
||||
m_scene3d = element.element("scene3d");
|
||||
m_sp3d = element.element("sp3d");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode EffectLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_EFFECT_LST_INCLUDE_H_
|
||||
#define OOX_THEME_EFFECT_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "OuterShdw.h"
|
||||
#include "Scene3d.h"
|
||||
#include "Sp3d.h"
|
||||
#include "property.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class EffectLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
EffectLst();
|
||||
virtual ~EffectLst();
|
||||
explicit EffectLst(const XML::XNode& node);
|
||||
const EffectLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
OuterShdw m_outerShdw;
|
||||
nullable__<Scene3d> m_scene3d;
|
||||
nullable__<Sp3d> m_sp3d;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_EFFECT_LST_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "EffectStyle.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
EffectStyle::EffectStyle()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
EffectStyle::~EffectStyle()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
EffectStyle::EffectStyle(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const EffectStyle& EffectStyle::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void EffectStyle::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_effestLst = element.element("effectLst");
|
||||
m_scene3d = element.element("scene3d");
|
||||
m_sp3d = element.element("sp3d");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode EffectStyle::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_EFFECT_STYLE_INCLUDE_H_
|
||||
#define OOX_THEME_EFFECT_STYLE_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "EffectLst.h"
|
||||
#include "Scene3d.h"
|
||||
#include "Sp3d.h"
|
||||
#include "property.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class EffectStyle : public WritingElement
|
||||
{
|
||||
public:
|
||||
EffectStyle();
|
||||
virtual ~EffectStyle();
|
||||
explicit EffectStyle(const XML::XNode& node);
|
||||
const EffectStyle& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
EffectLst m_effestLst;
|
||||
nullable__<Scene3d> m_scene3d;
|
||||
nullable__<Sp3d> m_sp3d;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_EFFECT_STYLE_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "EffectStyleLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
EffectStyleLst::EffectStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
EffectStyleLst::~EffectStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
EffectStyleLst::EffectStyleLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const EffectStyleLst& EffectStyleLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void EffectStyleLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
XML::Fill(m_effectStyles, element);
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode EffectStyleLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_THEME_EFFECT_STYLE_LST_INCLUDE_H_
|
||||
#define OOX_THEME_EFFECT_STYLE_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <vector>
|
||||
#include "EffectStyle.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class EffectStyleLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
EffectStyleLst();
|
||||
virtual ~EffectStyleLst();
|
||||
explicit EffectStyleLst(const XML::XNode& node);
|
||||
const EffectStyleLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::vector<EffectStyle> m_effectStyles;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_EFFECT_STYLE_LST_INCLUDE_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "ExtraClrSchemeLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
ExtraClrSchemeLst::ExtraClrSchemeLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ExtraClrSchemeLst::~ExtraClrSchemeLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ExtraClrSchemeLst::ExtraClrSchemeLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const ExtraClrSchemeLst& ExtraClrSchemeLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void ExtraClrSchemeLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode ExtraClrSchemeLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* (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 OOX_THEME_EXTRA_CLR_SCHEME_LST_INCLUDE_H_
|
||||
#define OOX_THEME_EXTRA_CLR_SCHEME_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class ExtraClrSchemeLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
ExtraClrSchemeLst();
|
||||
virtual ~ExtraClrSchemeLst();
|
||||
explicit ExtraClrSchemeLst(const XML::XNode& node);
|
||||
const ExtraClrSchemeLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_EXTRA_CLR_SCHEME_LST_INCLUDE_H_
|
||||
125
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/File.cpp
Normal file
125
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/File.cpp
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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "File.h"
|
||||
#include "./../FileTypes.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
File::File()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
File::File(const OOX::CPath& filename)
|
||||
{
|
||||
read(filename);
|
||||
}
|
||||
|
||||
|
||||
File::~File()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void File::read(const OOX::CPath& filename)
|
||||
{
|
||||
const XML::XDocument document(filename);
|
||||
|
||||
name = document.Root.attribute("name").value();
|
||||
themeElements = document.Root.element("themeElements");
|
||||
objectDefaults = document.Root.element("objectDefaults");
|
||||
extraClrSchemeLst = document.Root.element("extraClrSchemeLst");
|
||||
}
|
||||
|
||||
|
||||
void File::write(const OOX::CPath& filename, const OOX::CPath& directory, ContentTypes::File& content) const
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
const FileType File::type() const
|
||||
{
|
||||
return FileTypes::Theme;
|
||||
}
|
||||
|
||||
|
||||
const OOX::CPath File::DefaultDirectory() const
|
||||
{
|
||||
return type().DefaultDirectory();
|
||||
}
|
||||
|
||||
|
||||
const OOX::CPath File::DefaultFileName() const
|
||||
{
|
||||
return type().DefaultFileName();
|
||||
}
|
||||
|
||||
|
||||
const std::string File::GetMajorFont() const
|
||||
{
|
||||
if (themeElements.is_init()
|
||||
&& themeElements->fontScheme.is_init()
|
||||
&& themeElements->fontScheme->majorFont.is_init())
|
||||
return themeElements->fontScheme->majorFont->latin.get_value_or("Times New Roman");
|
||||
else
|
||||
return "Times New Roman";
|
||||
}
|
||||
|
||||
|
||||
const std::string File::GetMinorFont() const
|
||||
{
|
||||
if (themeElements.is_init()
|
||||
&& themeElements->fontScheme.is_init()
|
||||
&& themeElements->fontScheme->minorFont.is_init())
|
||||
return themeElements->fontScheme->minorFont->latin.get_value_or("Times New Roman");
|
||||
else
|
||||
return "Times New Roman";
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
75
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/File.h
Normal file
75
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/File.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* (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 OOX_THEME_FILE_INCLUDE_H_
|
||||
#define OOX_THEME_FILE_INCLUDE_H_
|
||||
|
||||
#include "./../File.h"
|
||||
#include "ThemeElements.h"
|
||||
#include "ObjectDefaults.h"
|
||||
#include "ExtraClrSchemeLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class File : public OOX::File
|
||||
{
|
||||
public:
|
||||
File();
|
||||
File(const OOX::CPath& filename);
|
||||
virtual ~File();
|
||||
|
||||
public:
|
||||
virtual void read(const OOX::CPath& filename);
|
||||
virtual void write(const OOX::CPath& filename, const OOX::CPath& directory, ContentTypes::File& content) const;
|
||||
|
||||
public:
|
||||
virtual const FileType type() const;
|
||||
virtual const OOX::CPath DefaultDirectory() const;
|
||||
virtual const OOX::CPath DefaultFileName() const;
|
||||
|
||||
public:
|
||||
const std::string GetMajorFont() const;
|
||||
const std::string GetMinorFont() const;
|
||||
|
||||
public:
|
||||
nullable_property<std::string> name;
|
||||
nullable_property<ThemeElements> themeElements;
|
||||
nullable_property<ObjectDefaults> objectDefaults;
|
||||
nullable_property<ExtraClrSchemeLst> extraClrSchemeLst;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_FILE_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "FillStyleLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
FillStyleLst::FillStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FillStyleLst::~FillStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FillStyleLst::FillStyleLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const FillStyleLst& FillStyleLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void FillStyleLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_solidFill = element.element("solidFill");
|
||||
XML::Fill(m_gradFills, element, "gradFill");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode FillStyleLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_FILL_STYLE_LST_INCLUDE_H_
|
||||
#define OOX_THEME_FILL_STYLE_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "SolidFill.h"
|
||||
#include <vector>
|
||||
#include "GradFill.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class FillStyleLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
FillStyleLst();
|
||||
virtual ~FillStyleLst();
|
||||
explicit FillStyleLst(const XML::XNode& node);
|
||||
const FillStyleLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
SolidFill m_solidFill;
|
||||
std::vector<GradFill> m_gradFills;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "FillToRect.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
FillToRect::FillToRect()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FillToRect::~FillToRect()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FillToRect::FillToRect(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const FillToRect& FillToRect::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void FillToRect::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_l = element.attribute("l").value();
|
||||
m_t = element.attribute("t").value();
|
||||
m_r = element.attribute("r").value();
|
||||
m_b = element.attribute("b").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode FillToRect::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_FILL_TO_RECT_INCLUDE_H_
|
||||
#define OOX_THEME_FILL_TO_RECT_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "nullable.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class FillToRect : public WritingElement
|
||||
{
|
||||
public:
|
||||
FillToRect();
|
||||
virtual ~FillToRect();
|
||||
explicit FillToRect(const XML::XNode& node);
|
||||
const FillToRect& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
nullable__<int> m_l;
|
||||
nullable__<int> m_t;
|
||||
nullable__<int> m_r;
|
||||
nullable__<int> m_b;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_FILL_TO_RECT_INCLUDE_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "FmtScheme.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
FmtScheme::FmtScheme()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FmtScheme::~FmtScheme()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FmtScheme::FmtScheme(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const FmtScheme& FmtScheme::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void FmtScheme::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
name = element.attribute("name").value();
|
||||
fillStyleLst = element.element("fillStyleLst");
|
||||
lnStyleLst = element.element("lnStyleLst");
|
||||
effectStyleLst = element.element("effectStyleLst");
|
||||
bgFillStyleLst = element.element("bgFillStyleLst");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode FmtScheme::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_FMT_SCHEME_INCLUDE_H_
|
||||
#define OOX_THEME_FMT_SCHEME_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "FillStyleLst.h"
|
||||
#include "LnStyleLst.h"
|
||||
#include "EffectStyleLst.h"
|
||||
#include "BgFillStyleLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class FmtScheme : public WritingElement
|
||||
{
|
||||
public:
|
||||
FmtScheme();
|
||||
virtual ~FmtScheme();
|
||||
explicit FmtScheme(const XML::XNode& node);
|
||||
const FmtScheme& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
nullable_property<std::string> name;
|
||||
nullable_property<FillStyleLst> fillStyleLst;
|
||||
nullable_property<LnStyleLst> lnStyleLst;
|
||||
nullable_property<EffectStyleLst> effectStyleLst;
|
||||
nullable_property<BgFillStyleLst> bgFillStyleLst;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Font.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Font::Font()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Font::~Font()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Font::Font(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Font& Font::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Font::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_script = element.attribute("script").value();
|
||||
m_typeface = element.attribute("typeface").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Font::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Font.h
Normal file
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Font.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_THEME_FONT_INCLUDE_H_
|
||||
#define OOX_THEME_FONT_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Font : public WritingElement
|
||||
{
|
||||
public:
|
||||
Font();
|
||||
virtual ~Font();
|
||||
explicit Font(const XML::XNode& node);
|
||||
const Font& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_script;
|
||||
std::string m_typeface;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_FONT_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "FontScheme.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
FontScheme::FontScheme()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FontScheme::~FontScheme()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FontScheme::FontScheme(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const FontScheme& FontScheme::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void FontScheme::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
name = element.attribute("name").value();
|
||||
majorFont = element.element("majorFont");
|
||||
minorFont = element.element("minorFont");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode FontScheme::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_FONT_SCHEME_INCLUDE_H_
|
||||
#define OOX_THEME_FONT_SCHEME_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "MajorFont.h"
|
||||
#include "MinorFont.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class FontScheme : public WritingElement
|
||||
{
|
||||
public:
|
||||
FontScheme();
|
||||
virtual ~FontScheme();
|
||||
explicit FontScheme(const XML::XNode& node);
|
||||
const FontScheme& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
nullable_property<std::string> name;
|
||||
nullable_property<MajorFont> majorFont;
|
||||
nullable_property<MinorFont> minorFont;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_FONT_SCHEME_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "GradFill.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
GradFill::GradFill()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
GradFill::~GradFill()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
GradFill::GradFill(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const GradFill& GradFill::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void GradFill::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_rotWithShape = element.attribute("rotWithShape").value();
|
||||
m_gsLst = element.element("gsLst");
|
||||
m_lin = element.element("lin");
|
||||
m_path = element.element("path");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode GradFill::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_STYLES_GRAD_FILL_INCLUDE_H_
|
||||
#define OOX_STYLES_GRAD_FILL_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "GsLst.h"
|
||||
#include "Lin.h"
|
||||
#include "Path.h"
|
||||
#include "property.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class GradFill : public WritingElement
|
||||
{
|
||||
public:
|
||||
GradFill();
|
||||
virtual ~GradFill();
|
||||
explicit GradFill(const XML::XNode& node);
|
||||
const GradFill& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_rotWithShape;
|
||||
GsLst m_gsLst;
|
||||
nullable__<Lin> m_lin;
|
||||
nullable__<Path> m_path;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_STYLES_GRAD_FILL_INCLUDE_H_
|
||||
81
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Gs.cpp
Normal file
81
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Gs.cpp
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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Gs.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Gs::Gs()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Gs::~Gs()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Gs::Gs(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Gs& Gs::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Gs::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_pos = element.attribute("pos").value();
|
||||
m_schemeClr = element.element("schemeClr");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Gs::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Gs.h
Normal file
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Gs.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_STYLES_GS_INCLUDE_H_
|
||||
#define OOX_STYLES_GS_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "SchemeClr.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Gs : public WritingElement
|
||||
{
|
||||
public:
|
||||
Gs();
|
||||
virtual ~Gs();
|
||||
explicit Gs(const XML::XNode& node);
|
||||
const Gs& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_pos;
|
||||
SchemeClr m_schemeClr;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_STYLES_GS_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "GsLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
GsLst::GsLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
GsLst::~GsLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
GsLst::GsLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const GsLst& GsLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void GsLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
XML::Fill(m_gss, element);
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode GsLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/GsLst.h
Normal file
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/GsLst.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_STYLES_GS_LST_INCLUDE_H_
|
||||
#define OOX_STYLES_GS_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <vector>
|
||||
#include "Gs.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class GsLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
GsLst();
|
||||
virtual ~GsLst();
|
||||
explicit GsLst(const XML::XNode& node);
|
||||
const GsLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::vector<Gs> m_gss;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_STYLES_GS_LST_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "LightRig.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
LightRig::LightRig()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
LightRig::~LightRig()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
LightRig::LightRig(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const LightRig& LightRig::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void LightRig::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_rig = element.attribute("rig").value();
|
||||
m_dir = element.attribute("dir").value();
|
||||
m_rot = element.element("rot");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode LightRig::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_LIGHT_RIG_INCLUDE_H_
|
||||
#define OOX_THEME_LIGHT_RIG_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "Rot.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class LightRig : public WritingElement
|
||||
{
|
||||
public:
|
||||
LightRig();
|
||||
virtual ~LightRig();
|
||||
explicit LightRig(const XML::XNode& node);
|
||||
const LightRig& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_rig;
|
||||
std::string m_dir;
|
||||
Rot m_rot;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_LIGHT_RIG_INCLUDE_H_
|
||||
81
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Lin.cpp
Normal file
81
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Lin.cpp
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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Lin.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Lin::Lin()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Lin::~Lin()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Lin::Lin(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Lin& Lin::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Lin::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_ang = element.attribute("ang").value();
|
||||
m_scaled = element.attribute("scaled").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Lin::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
62
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Lin.h
Normal file
62
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Lin.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* (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 OOX_STYLES_LIN_INCLUDE_H_
|
||||
#define OOX_STYLES_LIN_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Lin : public WritingElement
|
||||
{
|
||||
public:
|
||||
Lin();
|
||||
virtual ~Lin();
|
||||
explicit Lin(const XML::XNode& node);
|
||||
const Lin& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_ang;
|
||||
int m_scaled;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_STYLES_LIN_INCLUDE_H_
|
||||
85
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Ln.cpp
Normal file
85
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Ln.cpp
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Ln.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Ln::Ln()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Ln::~Ln()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Ln::Ln(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Ln& Ln::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Ln::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_w = element.attribute("w").value();
|
||||
m_cap = element.attribute("cap").value();
|
||||
m_cmpd = element.attribute("cmpd").value();
|
||||
m_algn = element.attribute("algn").value();
|
||||
m_solidFill = element.element("solidFill");
|
||||
m_prstDash = element.element("prstDash").attribute("val").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Ln::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
68
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Ln.h
Normal file
68
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Ln.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 OOX_THEME_LN_INCLUDE_H_
|
||||
#define OOX_THEME_LN_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "SolidFill.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Ln : public WritingElement
|
||||
{
|
||||
public:
|
||||
Ln();
|
||||
virtual ~Ln();
|
||||
explicit Ln(const XML::XNode& node);
|
||||
const Ln& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_w;
|
||||
std::string m_cap;
|
||||
std::string m_cmpd;
|
||||
std::string m_algn;
|
||||
SolidFill m_solidFill;
|
||||
std::string m_prstDash;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_LN_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "LnStyleLst.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
LnStyleLst::LnStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
LnStyleLst::~LnStyleLst()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
LnStyleLst::LnStyleLst(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const LnStyleLst& LnStyleLst::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void LnStyleLst::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
XML::Fill(m_lns, element);
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode LnStyleLst::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_STYLES_LN_STYLE_LST_INCLUDE_H_
|
||||
#define OOX_STYLES_LN_STYLE_LST_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <vector>
|
||||
#include "Ln.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class LnStyleLst : public WritingElement
|
||||
{
|
||||
public:
|
||||
LnStyleLst();
|
||||
virtual ~LnStyleLst();
|
||||
explicit LnStyleLst(const XML::XNode& node);
|
||||
const LnStyleLst& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::vector<Ln> m_lns;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_STYLES_LN_STYLE_LST_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "MajorFont.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
MajorFont::MajorFont()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MajorFont::~MajorFont()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MajorFont::MajorFont(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const MajorFont& MajorFont::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void MajorFont::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
latin = element.element("latin").attribute("typeface").value();
|
||||
ea = element.element("ea").attribute("typeface").value();
|
||||
cs = element.element("cs").attribute("typeface").value();
|
||||
XML::Fill(fonts, element, "font");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode MajorFont::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_MAJOR_FONT_INCLUDE_H_
|
||||
#define OOX_THEME_MAJOR_FONT_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "Font.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class MajorFont : public WritingElement
|
||||
{
|
||||
public:
|
||||
MajorFont();
|
||||
virtual ~MajorFont();
|
||||
explicit MajorFont(const XML::XNode& node);
|
||||
const MajorFont& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
nullable_property<std::string> latin;
|
||||
nullable_property<std::string> ea;
|
||||
nullable_property<std::string> cs;
|
||||
property<std::vector<Font>> fonts;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_MAJOR_FONT_INCLUDE_H
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "MinorFont.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
MinorFont::MinorFont()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MinorFont::~MinorFont()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MinorFont::MinorFont(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const MinorFont& MinorFont::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void MinorFont::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
latin = element.element("latin").attribute("typeface").value();
|
||||
ea = element.element("ea").attribute("typeface").value();
|
||||
cs = element.element("cs").attribute("typeface").value();
|
||||
XML::Fill(fonts, element, "font");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode MinorFont::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_MINOR_FONT_INCLUDE_H_
|
||||
#define OOX_THEME_MINIR_FONT_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "Font.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class MinorFont : public WritingElement
|
||||
{
|
||||
public:
|
||||
MinorFont();
|
||||
virtual ~MinorFont();
|
||||
explicit MinorFont(const XML::XNode& node);
|
||||
const MinorFont& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
nullable_property<std::string> latin;
|
||||
nullable_property<std::string> ea;
|
||||
nullable_property<std::string> cs;
|
||||
property<std::vector<Font>> fonts;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_MINOR_FONT_INCLUDE_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "ObjectDefaults.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
ObjectDefaults::ObjectDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ObjectDefaults::~ObjectDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ObjectDefaults::ObjectDefaults(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const ObjectDefaults& ObjectDefaults::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void ObjectDefaults::fromXML(const XML::XNode& node)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode ObjectDefaults::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* (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 OOX_THEME_OBJECT_DEFAULTS_INCLUDE_H_
|
||||
#define OOX_THEME_OBJECT_DEFAULTS_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class ObjectDefaults : public WritingElement
|
||||
{
|
||||
public:
|
||||
ObjectDefaults();
|
||||
virtual ~ObjectDefaults();
|
||||
explicit ObjectDefaults(const XML::XNode& node);
|
||||
const ObjectDefaults& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_OBJECT_DEFAULTS_INCLUDE_H_
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "OuterShdw.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
OuterShdw::OuterShdw()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
OuterShdw::~OuterShdw()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
OuterShdw::OuterShdw(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const OuterShdw& OuterShdw::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void OuterShdw::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_blurRad = element.attribute("blurRad").value();
|
||||
m_dist = element.attribute("dist").value();
|
||||
m_dir = element.attribute("dir").value();
|
||||
m_rotWithShare = element.attribute("rotWithShape").value();
|
||||
m_srgbClr = element.element("srgbClr");
|
||||
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode OuterShdw::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_OUTER_SHDW_INCLUDE_H_
|
||||
#define OOX_THEME_OUTER_SHDW_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "SrgbClr.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class OuterShdw : public WritingElement
|
||||
{
|
||||
public:
|
||||
OuterShdw();
|
||||
virtual ~OuterShdw();
|
||||
explicit OuterShdw(const XML::XNode& node);
|
||||
const OuterShdw& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_blurRad;
|
||||
int m_dist;
|
||||
int m_dir;
|
||||
int m_rotWithShare;
|
||||
SrgbClr m_srgbClr;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_OUTER_SHDW_INCLUDE_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* (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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Path.h"
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
Path::Path()
|
||||
{
|
||||
}
|
||||
|
||||
Path::~Path()
|
||||
{
|
||||
}
|
||||
|
||||
Path::Path(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
const Path& Path::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Path::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_path = element.attribute("path").value();
|
||||
|
||||
if (element.element("fillToRect").exist())
|
||||
m_fillToRect = element.element("fillToRect");
|
||||
}
|
||||
|
||||
const XML::XNode Path::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
65
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Path.h
Normal file
65
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Path.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 OOX_THEME_PATH_INCLUDE_H_
|
||||
#define OOX_THEME_PATH_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "FillToRect.h"
|
||||
#include "nullable.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Path : public WritingElement
|
||||
{
|
||||
public:
|
||||
Path();
|
||||
virtual ~Path();
|
||||
explicit Path(const XML::XNode& node);
|
||||
const Path& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_path;
|
||||
nullable__<FillToRect> m_fillToRect;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_PATH_INCLUDE_H_
|
||||
82
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Rot.cpp
Normal file
82
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Rot.cpp
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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Rot.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Rot::Rot()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Rot::~Rot()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Rot::Rot(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Rot& Rot::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Rot::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_lat = element.attribute("lat").value();
|
||||
m_lon = element.attribute("lon").value();
|
||||
m_rev = element.attribute("rev").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Rot::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Rot.h
Normal file
63
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Rot.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_THEME_ROT_INCLUDE_H_
|
||||
#define OOX_THEME_ROT_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Rot : public WritingElement
|
||||
{
|
||||
public:
|
||||
Rot();
|
||||
virtual ~Rot();
|
||||
explicit Rot(const XML::XNode& node);
|
||||
const Rot& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
int m_lat;
|
||||
int m_lon;
|
||||
int m_rev;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_ROT_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Scene3d.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Scene3d::Scene3d()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Scene3d::~Scene3d()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Scene3d::Scene3d(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Scene3d& Scene3d::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Scene3d::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_camera = element.element("camera");
|
||||
m_lightRig = element.element("lightRig");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Scene3d::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* (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 OOX_THEME_SCENE3D_INCLUDE_H_
|
||||
#define OOX_THEME_SCENE3D_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "Camera.h"
|
||||
#include "LightRig.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Scene3d : public WritingElement
|
||||
{
|
||||
public:
|
||||
Scene3d();
|
||||
virtual ~Scene3d();
|
||||
explicit Scene3d(const XML::XNode& node);
|
||||
const Scene3d& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
Camera m_camera;
|
||||
LightRig m_lightRig;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_SCENE3D_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "SchemeClr.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
SchemeClr::SchemeClr()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SchemeClr::~SchemeClr()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SchemeClr::SchemeClr(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const SchemeClr& SchemeClr::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void SchemeClr::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_value = element.attribute("val").value();
|
||||
m_tint = element.element("tint").attribute("val").value();
|
||||
m_shade = element.element("shade").attribute("val").value();
|
||||
m_satMod = element.element("satMod").attribute("val").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode SchemeClr::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_SCHEME_CLR_INCLUDE_H_
|
||||
#define OOX_THEME_SCHEME_CLR_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "nullable.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class SchemeClr : public WritingElement
|
||||
{
|
||||
public:
|
||||
SchemeClr();
|
||||
virtual ~SchemeClr();
|
||||
explicit SchemeClr(const XML::XNode& node);
|
||||
const SchemeClr& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_value;
|
||||
nullable__<int> m_tint;
|
||||
nullable__<int> m_shade;
|
||||
nullable__<int> m_satMod;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_SCHEME_CLR_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "SolidFill.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
SolidFill::SolidFill()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SolidFill::~SolidFill()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SolidFill::SolidFill(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const SolidFill& SolidFill::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void SolidFill::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_schemeClr = element.element("schemeClr");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode SolidFill::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* (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 OOX_STYLES_SOLID_FILL_INCLUDE_H_
|
||||
#define OOX_STYLES_SOLID_FILL_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "SchemeClr.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class SolidFill : public WritingElement
|
||||
{
|
||||
public:
|
||||
SolidFill();
|
||||
virtual ~SolidFill();
|
||||
explicit SolidFill(const XML::XNode& node);
|
||||
const SolidFill& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
SchemeClr m_schemeClr;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_STYLES_SOLID_FILL_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "Sp3d.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
Sp3d::Sp3d()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Sp3d::~Sp3d()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Sp3d::Sp3d(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const Sp3d& Sp3d::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Sp3d::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_bevelT = element.element("bevelT");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode Sp3d::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
62
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Sp3d.h
Normal file
62
ActiveX/Common/ASCDocxFormat/Source/DocxFormat/Theme/Sp3d.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* (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 OOX_THEME_SP3D_INCLUDE_H_
|
||||
#define OOX_THEME_SP3D_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "BevelT.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class Sp3d : public WritingElement
|
||||
{
|
||||
public:
|
||||
Sp3d();
|
||||
virtual ~Sp3d();
|
||||
explicit Sp3d(const XML::XNode& node);
|
||||
const Sp3d& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
BevelT m_bevelT;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_SP3D_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "SrgbClr.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
SrgbClr::SrgbClr()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SrgbClr::~SrgbClr()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SrgbClr::SrgbClr(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const SrgbClr& SrgbClr::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void SrgbClr::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_value = element.attribute("val").value();
|
||||
m_alpha = element.element("alpha").attribute("val").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode SrgbClr::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* (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 OOX_THEME_SRGBCLR_INCLUDE_H_
|
||||
#define OOX_THEME_SRGBCLR_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
#include "nullable.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class SrgbClr : public WritingElement
|
||||
{
|
||||
public:
|
||||
SrgbClr();
|
||||
virtual ~SrgbClr();
|
||||
explicit SrgbClr(const XML::XNode& node);
|
||||
const SrgbClr& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_value;
|
||||
nullable__<int> m_alpha;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_SRGBCLR_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "SysClr.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
SysClr::SysClr()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SysClr::~SysClr()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SysClr::SysClr(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const SysClr& SysClr::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void SysClr::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
m_value = element.attribute("val").value();
|
||||
m_lastClr = element.attribute("lastClr").value();
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode SysClr::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* (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 OOX_THEME_SYSCLR_INCLUDE_H_
|
||||
#define OOX_THEME_SYSCLR_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class SysClr : public WritingElement
|
||||
{
|
||||
public:
|
||||
SysClr();
|
||||
virtual ~SysClr();
|
||||
explicit SysClr(const XML::XNode& node);
|
||||
const SysClr& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
private:
|
||||
std::string m_value;
|
||||
std::string m_lastClr;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_SYSCLR_INCLUDE_H_
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
#include "precompiled_docxformat.h"
|
||||
|
||||
|
||||
#include "ThemeElements.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
|
||||
ThemeElements::ThemeElements()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ThemeElements::~ThemeElements()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ThemeElements::ThemeElements(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
}
|
||||
|
||||
|
||||
const ThemeElements& ThemeElements::operator =(const XML::XNode& node)
|
||||
{
|
||||
fromXML(node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void ThemeElements::fromXML(const XML::XNode& node)
|
||||
{
|
||||
const XML::XElement element(node);
|
||||
clrScheme = element.element("clrScheme");
|
||||
fontScheme = element.element("fontScheme");
|
||||
fmtScheme = element.element("fmtScheme");
|
||||
}
|
||||
|
||||
|
||||
const XML::XNode ThemeElements::toXML() const
|
||||
{
|
||||
return XML::XElement();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace OOX
|
||||
@@ -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 OOX_THEME_THEME_ELEMENTS_INCLUDE_H_
|
||||
#define OOX_THEME_THEME_ELEMENTS_INCLUDE_H_
|
||||
|
||||
#include "./../WritingElement.h"
|
||||
#include "ClrScheme.h"
|
||||
#include "FontScheme.h"
|
||||
#include "FmtScheme.h"
|
||||
|
||||
|
||||
namespace OOX
|
||||
{
|
||||
namespace Theme
|
||||
{
|
||||
class ThemeElements : public WritingElement
|
||||
{
|
||||
public:
|
||||
ThemeElements();
|
||||
virtual ~ThemeElements();
|
||||
explicit ThemeElements(const XML::XNode& node);
|
||||
const ThemeElements& operator =(const XML::XNode& node);
|
||||
|
||||
public:
|
||||
virtual void fromXML(const XML::XNode& node);
|
||||
virtual const XML::XNode toXML() const;
|
||||
|
||||
public:
|
||||
nullable_property<ClrScheme> clrScheme;
|
||||
nullable_property<FontScheme> fontScheme;
|
||||
nullable_property<FmtScheme> fmtScheme;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OOX_THEME_THEME_ELEMENTS_INCLUDE_H_
|
||||
Reference in New Issue
Block a user