mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65763 954022d7-b5bf-4e40-9824-e11837661b57
72 lines
1.2 KiB
C++
72 lines
1.2 KiB
C++
#pragma once
|
|
#include "Attributes.h"
|
|
|
|
#if !defined(_WIN32) && !defined(_WIN64)
|
|
#include "../../../DesktopEditor/common/ASCVariant.h"
|
|
#endif
|
|
|
|
namespace NSPresentationEditor
|
|
{
|
|
class CTextRange
|
|
{
|
|
public:
|
|
int m_lStart;
|
|
int m_lEnd;
|
|
|
|
public:
|
|
CTextRange()
|
|
{
|
|
m_lStart = 0;
|
|
m_lEnd = 0;
|
|
}
|
|
CTextRange& operator=(const CTextRange& oSrc)
|
|
{
|
|
m_lStart = oSrc.m_lStart;
|
|
m_lEnd = oSrc.m_lEnd;
|
|
|
|
return *this;
|
|
}
|
|
CTextRange(const CTextRange& oSrc)
|
|
{
|
|
*this = oSrc;
|
|
}
|
|
};
|
|
|
|
class CInteractiveInfo
|
|
{
|
|
private:
|
|
long m_lType;
|
|
VARIANT m_varParameter;
|
|
|
|
public:
|
|
bool m_bPresent;
|
|
|
|
std::vector<CTextRange> m_arRanges;
|
|
|
|
public:
|
|
CInteractiveInfo()
|
|
{
|
|
m_bPresent = false;
|
|
}
|
|
~CInteractiveInfo()
|
|
{
|
|
}
|
|
|
|
CInteractiveInfo& operator=(const CInteractiveInfo& oSrc)
|
|
{
|
|
m_lType = oSrc.m_lType;
|
|
m_varParameter = oSrc.m_varParameter;
|
|
|
|
m_bPresent = oSrc.m_bPresent;
|
|
|
|
m_arRanges.insert(m_arRanges.end(), oSrc.m_arRanges.begin(), oSrc.m_arRanges.end());
|
|
|
|
return *this;
|
|
}
|
|
CInteractiveInfo(const CInteractiveInfo& oSrc)
|
|
{
|
|
*this = oSrc;
|
|
}
|
|
};
|
|
}
|