mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 06:22:44 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62550 954022d7-b5bf-4e40-9824-e11837661b57
56 lines
996 B
C++
56 lines
996 B
C++
#ifndef _PDF_READER_ARRAY_H
|
|
#define _PDF_READER_ARRAY_H
|
|
|
|
#include "Object.h"
|
|
|
|
namespace PdfReader
|
|
{
|
|
class Object;
|
|
class XRef;
|
|
|
|
//------------------------------------------------------------------------
|
|
// Array
|
|
//------------------------------------------------------------------------
|
|
|
|
class Array
|
|
{
|
|
public:
|
|
|
|
Array(XRef *pXRef);
|
|
|
|
~Array();
|
|
|
|
int AddRef()
|
|
{
|
|
return ++m_nRef;
|
|
}
|
|
int Release()
|
|
{
|
|
return --m_nRef;
|
|
}
|
|
|
|
|
|
int GetCount()
|
|
{
|
|
return m_nCount;
|
|
}
|
|
|
|
|
|
void Add(Object *pItem);
|
|
|
|
Object *Get(int nIndex, Object *pObject);
|
|
Object *GetCopy(int nIndex, Object *pObject);
|
|
|
|
private:
|
|
|
|
XRef *m_pXRef; // Таблица Xref для данного PDF документа
|
|
Object *m_arrItems; // Массив элементов
|
|
int m_nItemSize; // Размер элемента
|
|
int m_nCount; // Чилсо элементов в массиве
|
|
|
|
int m_nRef; // Счетчик ссылок
|
|
};
|
|
}
|
|
|
|
#endif // _PDF_READER_ARRAY_H
|