Files
core/ASCOfficeOdfFileW/source/OdfFormat/mediaitems.h
Elen.Subbotina 33ef5b4404 OdfFile Reader & Writer рефакторинг (не собирались вместе - конфликты)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62950 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:08:02 +03:00

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_;
};
}
}