mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
#pragma once
|
|
#ifndef PPTX_VIEWPROPS_NOTES_VIEW_PROPERTIES_INCLUDE_H_
|
|
#define PPTX_VIEWPROPS_NOTES_VIEW_PROPERTIES_INCLUDE_H_
|
|
|
|
#include "./../WrapperWritingElement.h"
|
|
#include "CSldViewPr.h"
|
|
|
|
namespace PPTX
|
|
{
|
|
namespace nsViewProps
|
|
{
|
|
class NotesViewPr : public WrapperWritingElement
|
|
{
|
|
public:
|
|
PPTX_LOGIC_BASE(NotesViewPr)
|
|
|
|
public:
|
|
virtual void fromXML(XmlUtils::CXmlNode& node)
|
|
{
|
|
CSldViewPr = node.ReadNode(_T("p:cSldViewPr"));
|
|
|
|
FillParentPointersForChilds();
|
|
}
|
|
virtual CString toXML() const
|
|
{
|
|
XmlUtils::CNodeValue oValue;
|
|
oValue.Write(CSldViewPr);
|
|
|
|
return XmlUtils::CreateNode(_T("p:notesViewPr"), oValue);
|
|
}
|
|
|
|
virtual void toPPTY(NSBinPptxRW::CBinaryFileWriter* pWriter) const
|
|
{
|
|
pWriter->WriteRecord1(0, CSldViewPr);
|
|
}
|
|
virtual void toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const
|
|
{
|
|
pWriter->StartNode(_T("p:notesViewPr"));
|
|
pWriter->EndAttributes();
|
|
|
|
CSldViewPr.toXmlWriter(pWriter);
|
|
|
|
pWriter->EndNode(_T("p:notesViewPr"));
|
|
}
|
|
|
|
public:
|
|
nsViewProps::CSldViewPr CSldViewPr;
|
|
protected:
|
|
virtual void FillParentPointersForChilds()
|
|
{
|
|
CSldViewPr.SetParentPointer(this);
|
|
}
|
|
};
|
|
} // namespace nsViewProps
|
|
} // namespace PPTX
|
|
|
|
#endif // PPTX_VIEWPROPS_NOTES_VIEW_PROPERTIES_INCLUDE_H_
|