LibreOffice Module extensions (master) 1
|
#import <zlib.h>
#import "OOoSpotlightImporter.h"
#import "OOoMetaDataParser.h"
#import "OOoContentDataParser.h"
Go to the source code of this file.
Classes | |
struct | LocalFileHeader |
struct | CentralDirectoryEntry |
struct | CentralDirectoryEnd |
Macros | |
#define | CDIR_ENTRY_SIG (0x02014b50) |
#define | LOC_FILE_HEADER_SIG (0x04034b50) |
#define | CDIR_END_SIG (0x06054b50) |
Functions | |
static unsigned char | readByte (NSFileHandle *file) |
static unsigned short | readShort (NSFileHandle *file) |
static unsigned | readInt (NSFileHandle *file) |
static bool | readCentralDirectoryEnd (NSFileHandle *file, CentralDirectoryEnd *end) |
static bool | readCentralDirectoryEntry (NSFileHandle *file, CentralDirectoryEntry *entry) |
static bool | readLocalFileHeader (NSFileHandle *file, LocalFileHeader *header) |
static bool | areHeadersConsistent (const LocalFileHeader *header, const CentralDirectoryEntry *entry) |
static bool | findCentralDirectoryEnd (NSFileHandle *file) |
static bool | isZipFile (NSFileHandle *file) |
static bool | findDataStream (NSFileHandle *file, CentralDirectoryEntry *entry, NSString *name) |
static NSData * | getUncompressedData (NSFileHandle *file, NSString *name) |
Variables | |
static NSDictionary * | uti2kind |
#define CDIR_END_SIG (0x06054b50) |
Definition at line 79 of file OOoSpotlightImporter.m.
#define CDIR_ENTRY_SIG (0x02014b50) |
Definition at line 77 of file OOoSpotlightImporter.m.
#define LOC_FILE_HEADER_SIG (0x04034b50) |
Definition at line 78 of file OOoSpotlightImporter.m.
|
static |
Definition at line 182 of file OOoSpotlightImporter.m.
References CentralDirectoryEntry::compressed_size, CentralDirectoryEntry::compression, CentralDirectoryEntry::crc32, CentralDirectoryEntry::general_flag, header, CentralDirectoryEntry::min_version, and CentralDirectoryEntry::uncompressed_size.
Referenced by findDataStream(), and isZipFile().
|
static |
Definition at line 202 of file OOoSpotlightImporter.m.
References CDIR_END_SIG, and readInt().
Referenced by findDataStream(), and isZipFile().
|
static |
Definition at line 260 of file OOoSpotlightImporter.m.
References areHeadersConsistent(), compare(), end, CentralDirectoryEntry::filename, findCentralDirectoryEnd(), header, name, readCentralDirectoryEnd(), readCentralDirectoryEntry(), and readLocalFileHeader().
Referenced by getUncompressedData().
|
static |
Definition at line 289 of file OOoSpotlightImporter.m.
References CentralDirectoryEntry::compression, findDataStream(), name, and CentralDirectoryEntry::uncompressed_size.
|
static |
Definition at line 240 of file OOoSpotlightImporter.m.
References areHeadersConsistent(), end, findCentralDirectoryEnd(), header, readCentralDirectoryEnd(), readCentralDirectoryEntry(), and readLocalFileHeader().
|
static |
Definition at line 81 of file OOoSpotlightImporter.m.
References d.
Referenced by readInt(), and readShort().
|
static |
Definition at line 110 of file OOoSpotlightImporter.m.
References CDIR_END_SIG, end, readInt(), and readShort().
Referenced by findDataStream(), and isZipFile().
|
static |
Definition at line 128 of file OOoSpotlightImporter.m.
References CDIR_ENTRY_SIG, CentralDirectoryEntry::compressed_size, CentralDirectoryEntry::compression, CentralDirectoryEntry::crc32, CentralDirectoryEntry::creator_version, CentralDirectoryEntry::disk_num, CentralDirectoryEntry::external_attr, CentralDirectoryEntry::extra_field, CentralDirectoryEntry::extra_field_size, CentralDirectoryEntry::file_comment, CentralDirectoryEntry::file_comment_size, CentralDirectoryEntry::filename, CentralDirectoryEntry::filename_size, CentralDirectoryEntry::general_flag, CentralDirectoryEntry::internal_attr, CentralDirectoryEntry::lastmod_date, CentralDirectoryEntry::lastmod_time, CentralDirectoryEntry::min_version, CentralDirectoryEntry::offset, readInt(), readShort(), and CentralDirectoryEntry::uncompressed_size.
Referenced by findDataStream(), and isZipFile().
|
static |
Definition at line 101 of file OOoSpotlightImporter.m.
References readByte().
Referenced by findCentralDirectoryEnd(), readCentralDirectoryEnd(), readCentralDirectoryEntry(), and readLocalFileHeader().
|
static |
Definition at line 159 of file OOoSpotlightImporter.m.
References header, LOC_FILE_HEADER_SIG, readInt(), and readShort().
Referenced by findDataStream(), and isZipFile().
|
static |
Definition at line 94 of file OOoSpotlightImporter.m.
References readByte().
Referenced by readCentralDirectoryEnd(), readCentralDirectoryEntry(), and readLocalFileHeader().
|
static |
Definition at line 27 of file OOoSpotlightImporter.m.