init repo

This commit is contained in:
nikolay ivanov
2014-07-05 18:22:49 +00:00
commit a8be6b9e72
17348 changed files with 9229832 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_CORNERDIRECTION_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_CORNERDIRECTION_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/CornerDirectionVal.h"
namespace PPTX
{
namespace Logic
{
class CornerDirectionTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(CornerDirectionTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
name = XmlUtils::GetNameNoNS(node.GetName());
node.ReadAttributeBase(L"dir", dir);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.WriteLimitNullable(_T("dir"), dir);
return XmlUtils::CreateNode(_T("p:") + name, oAttr);
}
public:
CString name;
nullable_limit<Limit::CornerDirectionVal> dir;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_CORNERDIRECTION_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,72 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_EIGHTDIRECTION_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_EIGHTDIRECTION_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/EightDirectionVal.h"
namespace PPTX
{
namespace Logic
{
class EightDirectionTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(EightDirectionTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
name = XmlUtils::GetNameNoNS(node.GetName());
node.ReadAttributeBase(L"dir", dir);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.WriteLimitNullable(_T("dir"), dir);
return XmlUtils::CreateNode(_T("p:") + name, oAttr);
}
public:
CString name;
nullable_limit<Limit::EightDirectionVal> dir;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_EIGHTDIRECTION_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,66 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_EMPTY_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_EMPTY_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
namespace PPTX
{
namespace Logic
{
class EmptyTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(EmptyTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
name = XmlUtils::GetNameNoNS(node.GetName());
}
virtual CString toXML() const
{
return _T("<p:") + name + _T("/>");
}
public:
CString name;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_EMPTY_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,71 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_OPTIONALBLACK_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_OPTIONALBLACK_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
namespace PPTX
{
namespace Logic
{
class OptionalBlackTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(OptionalBlackTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
name = XmlUtils::GetNameNoNS(node.GetName());
node.ReadAttributeBase(L"thruBlk", thruBlk);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.Write(_T("thruBlk"), thruBlk);
return XmlUtils::CreateNode(_T("p:") + name, oAttr);
}
public:
CString name;
nullable_bool thruBlk;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_OPTIONALBLACK_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,72 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_ORIENTATION_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_ORIENTATION_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/Orient.h"
namespace PPTX
{
namespace Logic
{
class OrientationTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(OrientationTransition)
public:
void fromXML(XmlUtils::CXmlNode& node)
{
name = XmlUtils::GetNameNoNS(node.GetName());
node.ReadAttributeBase(L"dir", dir);
}
CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.WriteLimitNullable(_T("dir"), dir);
return XmlUtils::CreateNode(_T("p:") + name, oAttr);
}
public:
CString name;
nullable_limit<Limit::Orient> dir;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_ORIENTATION_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,72 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_SIDEDIRECTION_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_SIDEDIRECTION_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/SideDirectionVal.h"
namespace PPTX
{
namespace Logic
{
class SideDirectionTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(SideDirectionTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
name = XmlUtils::GetNameNoNS(node.GetName());
node.ReadAttributeBase(L"dir", dir);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.WriteLimitNullable(_T("dir"), dir);
return XmlUtils::CreateNode(_T("p:") + name, oAttr);
}
public:
CString name;
nullable_limit<Limit::SideDirectionVal> dir;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_SIDEDIRECTION_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,77 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_SLIDES_SNDAC_INCLUDE_H_
#define PPTX_SLIDES_SNDAC_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "StSnd.h"
namespace PPTX
{
namespace Logic
{
class SndAc : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(SndAc)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
stSnd = node.ReadNode(_T("p:stSnd"));
FillParentPointersForChilds();
}
virtual CString toXML() const
{
if(stSnd.IsInit())
{
return XmlUtils::CreateNode(_T("p:sndAc"), stSnd->toXML());
}
return _T("<p:sndAc><p:endSnd/></p:sndAc>");
}
public:
nullable<StSnd> stSnd;
protected:
virtual void FillParentPointersForChilds()
{
if(stSnd.IsInit())
stSnd->SetParentPointer(this);
}
};
}
}
#endif // PPTX_SLIDES_SNDAC_INCLUDE_H_

View File

@@ -0,0 +1,74 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_SPLIT_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_SPLIT_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/InOutDirectionVal.h"
#include "./../../Limit/Orient.h"
namespace PPTX
{
namespace Logic
{
class SplitTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(SplitTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
node.ReadAttributeBase(L"dir", dir);
node.ReadAttributeBase(L"orient", orient);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.WriteLimitNullable(_T("dir"), dir);
oAttr.WriteLimitNullable(_T("orient"), orient);
return XmlUtils::CreateNode(_T("p:split"), oAttr);
}
public:
nullable_limit<Limit::InOutDirectionVal> dir;
nullable_limit<Limit::Orient> orient;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_SPLIT_TRANSITION_INCLUDE_H_

View 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
*
*/
#pragma once
#ifndef PPTX_SLIDES_STSND_INCLUDE_H_
#define PPTX_SLIDES_STSND_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "../../DocxFormat/RId.h"
namespace PPTX
{
namespace Logic
{
class StSnd : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(StSnd)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
node.ReadAttributeBase(L"loop", loop);
XmlUtils::CXmlNode oNode;
node.GetNode(_T("p:snd"), oNode);
oNode.ReadAttributeBase(L"r:embed", embed);
oNode.ReadAttributeBase(L"name", name);
FillParentPointersForChilds();
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr1;
oAttr1.Write(_T("loop"), loop);
XmlUtils::CAttribute oAttr2;
oAttr2.Write(_T("r:embed"), embed.ToString());
oAttr2.Write(_T("name"), name);
return XmlUtils::CreateNode(_T("p:stSnd"), oAttr1, XmlUtils::CreateNode(_T("p:snd"), oAttr2));
}
public:
OOX::RId embed;
nullable_string name;
nullable_bool loop;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_SLIDES_STSND_INCLUDE_H_

View File

@@ -0,0 +1,208 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/TransitionSpeed.h"
#include "SndAc.h"
#include "TransitionBase.h"
namespace PPTX
{
namespace Logic
{
class Transition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(Transition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
node.ReadAttributeBase(L"advClick", advClick);
node.ReadAttributeBase(L"advTm", advTm);
node.ReadAttributeBase(L"p14:dur", dur);
node.ReadAttributeBase(L"spd", spd);
base.GetTransitionTypeFrom(node);
trSerialize.GetTransitionTypeFrom(node);
sndAc = node.ReadNode(_T("p:sndAc"));
FillParentPointersForChilds();
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.Write(_T("advClick"), advClick);
oAttr.Write(_T("advTm"), advTm);
oAttr.WriteLimitNullable(_T("spd"), spd);
oAttr.Write(_T("dur"), dur);
XmlUtils::CNodeValue oValue;
oValue.Write(base);
oValue.WriteNullable(sndAc);
return XmlUtils::CreateNode(_T("p:transition"), oAttr, oValue);
}
virtual void toPPTY(NSBinPptxRW::CBinaryFileWriter* pWriter) const
{
if (_T("") != trSerialize.m_strNodeName)
{
pWriter->WriteBYTE(NSBinPptxRW::g_nodeAttributeStart);
pWriter->WriteBool2(0, advClick);
pWriter->WriteInt2(1, advTm);
pWriter->WriteInt2(2, dur);
pWriter->WriteLimit2(3, spd);
pWriter->WriteBYTE(NSBinPptxRW::g_nodeAttributeEnd);
pWriter->WriteRecord1(0, trSerialize);
}
}
virtual void fromPPTY(NSBinPptxRW::CBinaryFileReader* pReader)
{
LONG end = pReader->GetPos() + pReader->GetLong() + 4;
pReader->Skip(1);
while (true)
{
BYTE _at = pReader->GetUChar();
if (_at == NSBinPptxRW::g_nodeAttributeEnd)
break;
if (0 == _at)
advClick = pReader->GetBool();
else if (1 == _at)
advTm = pReader->GetLong();
else if (2 == _at)
dur = pReader->GetLong();
else if (3 == _at)
{
spd = new Limit::TransitionSpeed();
spd->SetBYTECode(pReader->GetUChar());
}
}
while (pReader->GetPos() < end)
{
BYTE _rec = pReader->GetUChar();
switch (_rec)
{
case 0:
{
trSerialize.fromPPTY(pReader);
break;
}
default:
{
pReader->SkipRecord();
break;
}
}
}
pReader->Seek(end);
}
virtual void toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const
{
if (_T("") == trSerialize.m_strNodeName)
return;
pWriter->WriteString(_T("<mc:AlternateContent xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\">\
<mc:Choice xmlns:p14=\"http://schemas.microsoft.com/office/powerpoint/2010/main\" Requires=\"p14\">"));
pWriter->StartNode(_T("p:transition"));
pWriter->StartAttributes();
pWriter->WriteAttribute(_T("spd"), spd);
pWriter->WriteAttribute(_T("p14:dur"), dur);
pWriter->WriteAttribute(_T("advClick"), advClick);
pWriter->WriteAttribute(_T("advTm"), advTm);
pWriter->EndAttributes();
if (trSerialize.m_strNodeName != _T(""))
trSerialize.toXmlWriter(pWriter);
pWriter->EndNode(_T("p:transition"));
pWriter->WriteString(_T("</mc:Choice><mc:Fallback>"));
pWriter->StartNode(_T("p:transition"));
pWriter->StartAttributes();
pWriter->WriteAttribute(_T("spd"), spd);
pWriter->WriteAttribute(_T("advClick"), advClick);
pWriter->WriteAttribute(_T("advTm"), advTm);
pWriter->EndAttributes();
if (trSerialize.m_strNodeName != _T(""))
trSerialize.toXmlWriterOld(pWriter);
pWriter->EndNode(_T("p:transition"));
pWriter->WriteString(_T("</mc:Fallback></mc:AlternateContent>"));
}
public:
TransitionBase base;
nullable<SndAc> sndAc;
TransitionSerialize trSerialize;
nullable_bool advClick;
nullable_int advTm;
nullable_int dur;
nullable_limit<Limit::TransitionSpeed> spd;
protected:
virtual void FillParentPointersForChilds()
{
if(base.is_init())
base.SetParentPointer(this);
if(sndAc.IsInit())
sndAc->SetParentPointer(this);
}
AVSINLINE void Normalize()
{
advTm.normalize_positive();
}
};
}
}
#endif // PPTX_LOGIC_TRANSITION_INCLUDE_H_

View File

@@ -0,0 +1,216 @@
/*
* (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 "./stdafx.h"
#include "TransitionBase.h"
#include "EmptyTransition.h"
#include "OrientationTransition.h"
#include "EightDirectionTransition.h"
#include "OptionalBlackTransition.h"
#include "SideDirectionTransition.h"
#include "CornerDirectionTransition.h"
#include "WheelTransition.h"
#include "SplitTransition.h"
#include "ZoomTransition.h"
namespace PPTX
{
namespace Logic
{
TransitionBase::TransitionBase()
{
}
TransitionBase::~TransitionBase()
{
}
TransitionBase::TransitionBase(XmlUtils::CXmlNode& node)
{
fromXML(node);
}
const TransitionBase& TransitionBase::operator =(XmlUtils::CXmlNode& node)
{
fromXML(node);
return *this;
}
void TransitionBase::fromXML(XmlUtils::CXmlNode& node)
{
CString name = XmlUtils::GetNameNoNS(node.GetName());
if (name == _T("random"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("circle"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("dissolve"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("diamond"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("newsflash"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("plus"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("wedge"))
base.reset(new Logic::EmptyTransition(node));
else if (name == _T("blinds"))
base.reset(new Logic::OrientationTransition(node));
else if (name == _T("checker"))
base.reset(new Logic::OrientationTransition(node));
else if (name == _T("comb"))
base.reset(new Logic::OrientationTransition(node));
else if (name == _T("randomBar"))
base.reset(new Logic::OrientationTransition(node));
else if (name == _T("cover"))
base.reset(new Logic::EightDirectionTransition(node));
else if (name == _T("pull"))
base.reset(new Logic::EightDirectionTransition(node));
else if (name == _T("cut"))
base.reset(new Logic::OptionalBlackTransition(node));
else if (name == _T("fade"))
base.reset(new Logic::OptionalBlackTransition(node));
else if (name == _T("push"))
base.reset(new Logic::SideDirectionTransition(node));
else if (name == _T("wipe"))
base.reset(new Logic::SideDirectionTransition(node));
else if (name == _T("strips"))
base.reset(new Logic::CornerDirectionTransition(node));
else if (name == _T("wheel"))
base.reset(new Logic::WheelTransition(node));
else if (name == _T("split"))
base.reset(new Logic::SplitTransition(node));
else if (name == _T("zoom"))
base.reset(new Logic::ZoomTransition(node));
else base.reset();
}
void TransitionBase::GetTransitionTypeFrom(XmlUtils::CXmlNode& element)
{
XmlUtils::CXmlNode oNode;
if(element.GetNode(_T("p:random"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:circle"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:dissolve"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:diamond"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:newsflash"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:plus"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:wedge"), oNode))
base.reset(new Logic::EmptyTransition(oNode));
else if(element.GetNode(_T("p:blinds"), oNode))
base.reset(new Logic::OrientationTransition(oNode));
else if(element.GetNode(_T("p:checker"), oNode))
base.reset(new Logic::OrientationTransition(oNode));
else if(element.GetNode(_T("p:comb"), oNode))
base.reset(new Logic::OrientationTransition(oNode));
else if(element.GetNode(_T("p:randomBar"), oNode))
base.reset(new Logic::OrientationTransition(oNode));
else if(element.GetNode(_T("p:cover"), oNode))
base.reset(new Logic::EightDirectionTransition(oNode));
else if(element.GetNode(_T("p:pull"), oNode))
base.reset(new Logic::EightDirectionTransition(oNode));
else if(element.GetNode(_T("p:cut"), oNode))
base.reset(new Logic::OptionalBlackTransition(oNode));
else if(element.GetNode(_T("p:fade"), oNode))
base.reset(new Logic::OptionalBlackTransition(oNode));
else if(element.GetNode(_T("p:push"), oNode))
base.reset(new Logic::SideDirectionTransition(oNode));
else if(element.GetNode(_T("p:wipe"), oNode))
base.reset(new Logic::SideDirectionTransition(oNode));
else if(element.GetNode(_T("p:strips"), oNode))
base.reset(new Logic::CornerDirectionTransition(oNode));
else if(element.GetNode(_T("p:wheel"), oNode))
base.reset(new Logic::WheelTransition(oNode));
else if(element.GetNode(_T("p:split"), oNode))
base.reset(new Logic::SplitTransition(oNode));
else if(element.GetNode(_T("p:zoom"), oNode))
base.reset(new Logic::ZoomTransition(oNode));
else base.reset();
}
CString TransitionBase::toXML() const
{
if (base.IsInit())
return base->toXML();
return _T("");
}
TransitionSerialize::TransitionSerialize(XmlUtils::CXmlNode& node)
{
fromXML(node);
}
const TransitionSerialize& TransitionSerialize::operator =(XmlUtils::CXmlNode& node)
{
fromXML(node);
return *this;
}
void TransitionSerialize::fromXML(XmlUtils::CXmlNode& node)
{
m_strNodeName = node.GetName();
node.ReadAllAttributes(m_strAttributesNames, m_strAttributesValues);
}
void TransitionSerialize::GetTransitionTypeFrom(XmlUtils::CXmlNode& element)
{
XmlUtils::CXmlNodes oNodes;
element.GetNodes(_T("*"), oNodes);
if (!oNodes.IsValid())
return;
int nCount = oNodes.GetCount();
if (1 == nCount)
{
XmlUtils::CXmlNode oNode;
oNodes.GetAt(0, oNode);
m_strNodeName = oNode.GetName();
oNode.ReadAllAttributes(m_strAttributesNames, m_strAttributesValues);
}
}
CString TransitionSerialize::toXML() const
{
return _T("");
}
}
} // namespace PPTX

View File

@@ -0,0 +1,251 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_TRANSITIONBASE_INCLUDE_H_
#define PPTX_LOGIC_TRANSITIONBASE_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
namespace PPTX
{
namespace Logic
{
class TransitionBase : public WrapperWritingElement
{
public:
TransitionBase();
virtual ~TransitionBase();
explicit TransitionBase(XmlUtils::CXmlNode& node);
const TransitionBase& operator =(XmlUtils::CXmlNode& node);
public:
virtual void fromXML(XmlUtils::CXmlNode& node);
virtual void GetTransitionTypeFrom(XmlUtils::CXmlNode& element);
virtual bool is_init()const{return (base.IsInit());};
template<class T> const bool is() const { return base.is<T>(); }
template<class T> T& as() { return base.as<T>(); }
template<class T> const T& as() const { return base.as<T>(); }
virtual CString toXML() const;
private:
smart_ptr<WrapperWritingElement> base;
protected:
virtual void FillParentPointersForChilds(){};
public:
virtual void SetParentPointer(const WrapperWritingElement* pParent)
{
if(is_init())
base->SetParentPointer(pParent);
}
};
class TransitionSerialize : public WrapperWritingElement
{
public:
TransitionSerialize()
{
m_strNodeName = _T("");
}
virtual ~TransitionSerialize()
{
}
explicit TransitionSerialize(XmlUtils::CXmlNode& node);
const TransitionSerialize& operator =(XmlUtils::CXmlNode& node);
TransitionSerialize& operator =(const TransitionSerialize& src)
{
return *this;
}
public:
virtual void fromXML(XmlUtils::CXmlNode& node);
virtual void GetTransitionTypeFrom(XmlUtils::CXmlNode& element);
virtual CString toXML() const;
virtual void fromPPTY(NSBinPptxRW::CBinaryFileReader* pReader)
{
LONG _end_rec = pReader->GetPos() + pReader->GetLong() + 4;
pReader->Skip(1);
while (true)
{
BYTE _at = pReader->GetUChar();
if (_at == NSBinPptxRW::g_nodeAttributeEnd)
break;
switch (_at)
{
case 0:
{
m_strNodeName = pReader->GetString2();
break;
}
case 1:
{
m_strAttributesNames.AddTail(pReader->GetString2());
break;
}
case 2:
{
m_strAttributesValues.AddTail(pReader->GetString2());
break;
}
default:
break;
}
}
pReader->Seek(_end_rec);
}
virtual void toPPTY(NSBinPptxRW::CBinaryFileWriter* pWriter) const
{
pWriter->WriteBYTE(NSBinPptxRW::g_nodeAttributeStart);
pWriter->WriteString1(0, m_strNodeName);
POSITION pos = m_strAttributesNames.GetHeadPosition();
while (NULL != pos)
{
const CString& s = m_strAttributesNames.GetNext(pos);
pWriter->WriteString1(1, s);
}
pos = m_strAttributesValues.GetHeadPosition();
while (NULL != pos)
{
const CString& s = m_strAttributesValues.GetNext(pos);
pWriter->WriteString1(2, s);
}
pWriter->WriteBYTE(NSBinPptxRW::g_nodeAttributeEnd);
}
virtual void toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const
{
pWriter->StartNode(m_strNodeName);
pWriter->StartAttributes();
size_t c1 = m_strAttributesNames.GetCount();
size_t c2 = m_strAttributesValues.GetCount();
if (c1 == c2)
{
POSITION pos1 = m_strAttributesNames.GetHeadPosition();
POSITION pos2 = m_strAttributesValues.GetHeadPosition();
while (pos1 != NULL && pos2 != NULL)
{
const CString& s1 = m_strAttributesNames.GetNext(pos1);
const CString& s2 = m_strAttributesValues.GetNext(pos2);
pWriter->WriteAttribute(s1, s2);
}
}
pWriter->EndAttributes();
pWriter->EndNode(m_strNodeName);
}
virtual void toXmlWriterOld(NSBinPptxRW::CXmlWriter* pWriter) const
{
CString name = m_strNodeName;
if ((name != _T("p:random")) &&
(name != _T("p:circle")) &&
(name != _T("p:dissolve")) &&
(name != _T("p:diamond")) &&
(name != _T("p:newsflash")) &&
(name != _T("p:plus")) &&
(name != _T("p:wedge")) &&
(name != _T("p:blinds")) &&
(name != _T("p:checker")) &&
(name != _T("p:comb")) &&
(name != _T("p:randomBar")) &&
(name != _T("p:cover")) &&
(name != _T("p:pull")) &&
(name != _T("p:cut")) &&
(name != _T("p:fade")) &&
(name != _T("p:push")) &&
(name != _T("p:wipe")) &&
(name != _T("p:strips")) &&
(name != _T("p:wheel")) &&
(name != _T("p:split")) &&
(name != _T("p:zoom")))
{
pWriter->WriteString(_T("<p:fade/>"));
return;
}
pWriter->StartNode(name);
pWriter->StartAttributes();
size_t c1 = m_strAttributesNames.GetCount();
size_t c2 = m_strAttributesValues.GetCount();
if (c1 == c2)
{
POSITION pos1 = m_strAttributesNames.GetHeadPosition();
POSITION pos2 = m_strAttributesValues.GetHeadPosition();
while (pos1 != NULL && pos2 != NULL)
{
const CString& s1 = m_strAttributesNames.GetNext(pos1);
const CString& s2 = m_strAttributesValues.GetNext(pos2);
pWriter->WriteAttribute(s1, s2);
}
}
pWriter->EndAttributes();
pWriter->EndNode(name);
}
public:
CString m_strNodeName;
CAtlList<CString> m_strAttributesNames;
CAtlList<CString> m_strAttributesValues;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_TRANSITIONBASE_INCLUDE_H

View File

@@ -0,0 +1,74 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_WHEEL_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_WHEEL_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
namespace PPTX
{
namespace Logic
{
class WheelTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(WheelTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
node.ReadAttributeBase(L"spokes", spokes);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.Write(_T("spokes"), spokes);
return XmlUtils::CreateNode(_T("p:wheel"), oAttr);
}
public:
nullable_int spokes;
protected:
virtual void FillParentPointersForChilds(){};
AVSINLINE void Normalize()
{
spokes.normalize_positive();
}
};
}
}
#endif // PPTX_LOGIC_WHEEL_TRANSITION_INCLUDE_H

View File

@@ -0,0 +1,70 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef PPTX_LOGIC_ZOOM_TRANSITION_INCLUDE_H_
#define PPTX_LOGIC_ZOOM_TRANSITION_INCLUDE_H_
#include "./../../WrapperWritingElement.h"
#include "./../../Limit/InOutDirectionVal.h"
namespace PPTX
{
namespace Logic
{
class ZoomTransition : public WrapperWritingElement
{
public:
PPTX_LOGIC_BASE(ZoomTransition)
public:
virtual void fromXML(XmlUtils::CXmlNode& node)
{
node.ReadAttributeBase(L"dir", dir);
}
virtual CString toXML() const
{
XmlUtils::CAttribute oAttr;
oAttr.WriteLimitNullable(_T("dir"), dir);
return XmlUtils::CreateNode(_T("p:zoom"), oAttr);
}
public:
nullable_limit<Limit::InOutDirectionVal> dir;
protected:
virtual void FillParentPointersForChilds(){};
};
}
}
#endif // PPTX_LOGIC_Zoom_TRANSITION_INCLUDE_H