mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 04:33:31 +08:00
27 lines
437 B
C++
27 lines
437 B
C++
#pragma once
|
|
#ifndef TXT_EVENT_INCLUDE_H_
|
|
#define TXT_EVENT_INCLUDE_H_
|
|
|
|
namespace Txt
|
|
{
|
|
class ITxtEvent
|
|
{
|
|
public:
|
|
ITxtEvent()
|
|
{
|
|
m_lPercent = 0;
|
|
}
|
|
virtual bool Progress(long ID, long Percent) = 0;
|
|
virtual long GetPercent()
|
|
{
|
|
return m_lPercent;
|
|
}
|
|
virtual void AddPercent(long addition)
|
|
{
|
|
m_lPercent += addition;
|
|
}
|
|
protected:
|
|
long m_lPercent;
|
|
};
|
|
}
|
|
#endif // TXT_EVENT_INCLUDE_H_
|