mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 07:23:34 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62950 954022d7-b5bf-4e40-9824-e11837661b57
52 lines
910 B
C++
52 lines
910 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace cpdoccore {
|
|
namespace odf_writer {
|
|
|
|
class rels;
|
|
|
|
class _mediaitems
|
|
{
|
|
public:
|
|
enum Type { typeUnknown = 0, typeImage, typeAudio, typeVideo};
|
|
//oleObject ???
|
|
|
|
_mediaitems()
|
|
{
|
|
count_image =0;
|
|
count_media =0;
|
|
}
|
|
|
|
struct item
|
|
{
|
|
item(
|
|
std::wstring const & _oox_ref,
|
|
Type _type,
|
|
std::wstring const & _odf_ref);
|
|
|
|
std::wstring oox_ref;
|
|
Type type;
|
|
std::wstring odf_ref;
|
|
};
|
|
typedef std::vector< item > items_array;
|
|
|
|
size_t count_image;
|
|
size_t count_media;
|
|
|
|
void add_or_find(const std::wstring & oox_ref, Type type, std::wstring & odf_ref);
|
|
|
|
void dump_rels(rels & Rels, std::wstring local_path = L"");
|
|
items_array & items() { return items_; }
|
|
|
|
private:
|
|
items_array items_;
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
|