#include <iostream>
#include <string>
#include <vector>
#include "define.h"
#include "lzfu.h"
Include dependency graph for pst2dii.cpp:
Go to the source code of this file.
Data Structures | |
struct | file_ll |
Defines | |
#define | C_TIME_SIZE 500 |
Functions | |
void | open_png () |
void | close_png () |
void | version () |
void | usage () |
char * | removeCR (char *c) |
char * | skip_header_prologue (char *headers) |
void | check_filename (string &fname) |
string | write_separate_attachment (string fname, pst_item_attach *current_attach, int attach_num, pst_file *pst) |
void | print_pdf_short (const char *line, int len, int color) |
void | new_line () |
void | print_pdf_single (const char *line, int color) |
void | print_pdf_only (char *line, int color) |
void | print_pdf (char *line) |
void | open_pdf (char *line) |
void | close_pdf () |
void | write_simple (const char *tag, const char *value) |
void | write_simple (const char *tag, string value) |
void | write_simple (const char *tag, const char *value, const char *value2) |
string | extract_header (char *headers, const char *field) |
void | write_normal_email (file_ll &f, pst_item *item, pst_file *pst) |
void | create_enter_dir (file_ll &f, file_ll *parent, pst_item *item) |
void | close_enter_dir (file_ll &f) |
void | process (pst_item *outeritem, file_ll *parent, pst_desc_ll *d_ptr) |
int | main (int argc, char *const *argv) |
Variables | |
const char * | convert = "/usr/bin/convert" |
const char * | prog_name = NULL |
const char * | bates_prefix = "" |
int | bates_index = 0 |
const char * | output_directory = "." |
const char * | output_file = "load.dii" |
char * | font_file = NULL |
int | bates_color = 0xff0000 |
int | email_sequence = 0 |
char | pdf_name [PATH_MAX] |
FILE * | dii_file = NULL |
pst_file | pstfile |
bool | pdf_open = false |
char * | pst_folder |
int | page_sequence |
string | conversion |
vector< string > | png_names |
bool | png_open = false |
int | line_height |
int | char_width |
int | col_number |
int | col_max |
int | line_number |
int | line_max |
int | x_position |
int | y_position |
int | black |
int | red |
gdImagePtr | image |
const int | DPI = 300 |
const double | sz = 10.0 |
const int | margin = DPI/2 |
const int | LINE_SIZE = 2000 |
const int | PAGE_WIDTH = DPI*17/2 |
const int | PAGE_HEIGHT = DPI*11 |
|
Definition at line 74 of file pst2dii.cpp. Referenced by write_normal_email(). |
|
Definition at line 149 of file pst2dii.cpp. |
|
Definition at line 597 of file pst2dii.cpp. |
|
Definition at line 383 of file pst2dii.cpp. References close_png(), conversion, dii_file, pdf_name, and png_names. Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 350 of file pst2dii.cpp. References conversion, image, page_sequence, png_names, and png_open. Referenced by close_pdf(), and print_pdf_short(). |
|
Definition at line 586 of file pst2dii.cpp. References file_ll::email_count, pst_item::file_as, pst_item::folder, pst_item_folder::item_count, file_ll::name, file_ll::skip_count, file_ll::stored_count, pst_string::str, pst_item::type, and file_ll::type. |
|
Definition at line 420 of file pst2dii.cpp. Referenced by write_normal_email(). |
|
Definition at line 639 of file pst2dii.cpp. References bates_color, bates_index, bates_prefix, pst_desc_tree::child, pst_file::d_head, DEBUG_ENT, DEBUG_INIT, DEBUG_REGISTER_CLOSE, DEBUG_RET, DIE, dii_file, font_file, getopt(), pst_item::message_store, optarg, output_directory, output_file, process(), prog_name, pst_close(), pst_desc_ll, pst_freeItem(), pst_getTopOfFolders(), pst_load_extended_attributes(), pst_load_index(), pst_open(), pst_parse_item(), pstfile, RET_DERROR, usage(), and version(). |
Here is the call graph for this function:
|
Definition at line 258 of file pst2dii.cpp. References col_number, line_number, x_position, and y_position. Referenced by print_pdf_only(), and print_pdf_single(). |
|
Definition at line 369 of file pst2dii.cpp. References conversion, convert, dii_file, email_sequence, open_png(), output_directory, page_sequence, pdf_name, png_names, and pst_folder. Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 312 of file pst2dii.cpp. References bates_color, bates_index, bates_prefix, black, char_width, col_max, col_number, font_file, image, line_height, line_max, line_number, margin, PAGE_HEIGHT, PAGE_WIDTH, png_open, print_pdf_only(), pst_folder, red, sz, x_position, and y_position. Referenced by open_pdf(), and print_pdf_short(). |
Here is the call graph for this function:
|
Definition at line 305 of file pst2dii.cpp. References black, dii_file, print_pdf_only(), and pst_fwrite(). Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 290 of file pst2dii.cpp. References new_line(), and print_pdf_single(). Referenced by open_png(), print_pdf(), and write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 222 of file pst2dii.cpp. References close_png(), col_number, font_file, image, line_number, open_png(), sz, x_position, and y_position. Referenced by print_pdf_single(). |
Here is the call graph for this function:
|
Definition at line 268 of file pst2dii.cpp. References col_max, col_number, new_line(), and print_pdf_short(). Referenced by print_pdf_only(). |
Here is the call graph for this function:
|
|
|
Definition at line 116 of file pst2dii.cpp. |
|
Definition at line 137 of file pst2dii.cpp. Referenced by write_normal_email(). |
|
|
|
|
|
Here is the call graph for this function:
|
Definition at line 170 of file pst2dii.cpp. References check_filename(), pst_binary::data, pst_item_attach::data, DEBUG_EMAIL, DEBUG_ENT, DEBUG_RET, DIE, pst_item_attach::filename1, pst_item_attach::filename2, output_directory, pst_attach_to_file(), pst_fwrite(), pst_binary::size, pst_string::str, WARN, and xmalloc(). |
Here is the call graph for this function:
|
Definition at line 410 of file pst2dii.cpp. References dii_file. Referenced by write_normal_email(). |
|
Definition at line 403 of file pst2dii.cpp. References dii_file. |
|
Definition at line 396 of file pst2dii.cpp. References dii_file. |
|
Definition at line 43 of file pst2dii.cpp. Referenced by main(), and open_png(). |
|
Definition at line 39 of file pst2dii.cpp. Referenced by main(), open_png(), and write_normal_email(). |
|
Definition at line 38 of file pst2dii.cpp. Referenced by main(), and open_png(). |
|
Definition at line 63 of file pst2dii.cpp. Referenced by open_png(), print_pdf(), and write_normal_email(). |
|
Definition at line 59 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 60 of file pst2dii.cpp. Referenced by open_png(), and print_pdf_single(). |
|
Definition at line 60 of file pst2dii.cpp. Referenced by new_line(), open_png(), print_pdf_short(), and print_pdf_single(). |
|
Definition at line 53 of file pst2dii.cpp. Referenced by close_pdf(), close_png(), open_pdf(), and sbcs_conversion(). |
|
Definition at line 36 of file pst2dii.cpp. Referenced by open_pdf(). |
|
Definition at line 46 of file pst2dii.cpp. Referenced by close_pdf(), main(), open_pdf(), print_pdf(), write_normal_email(), and write_simple(). |
|
Definition at line 66 of file pst2dii.cpp. |
|
Definition at line 44 of file pst2dii.cpp. Referenced by open_pdf(). |
|
Definition at line 42 of file pst2dii.cpp. Referenced by main(), open_png(), and print_pdf_short(). |
|
Definition at line 64 of file pst2dii.cpp. Referenced by close_png(), open_png(), and print_pdf_short(). |
|
Definition at line 58 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 61 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 61 of file pst2dii.cpp. Referenced by new_line(), open_png(), and print_pdf_short(). |
|
Definition at line 69 of file pst2dii.cpp. Referenced by main(). |
|
Definition at line 68 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 40 of file pst2dii.cpp. Referenced by main(), open_pdf(), and write_separate_attachment(). |
|
Definition at line 41 of file pst2dii.cpp. Referenced by main(). |
|
Definition at line 71 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 52 of file pst2dii.cpp. Referenced by close_png(), and open_pdf(). |
|
Definition at line 70 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 45 of file pst2dii.cpp. Referenced by close_pdf(), and open_pdf(). |
|
Definition at line 50 of file pst2dii.cpp. |
|
Definition at line 54 of file pst2dii.cpp. Referenced by close_pdf(), close_png(), and open_pdf(). |
|
Definition at line 57 of file pst2dii.cpp. Referenced by close_png(), and open_png(). |
|
Definition at line 37 of file pst2dii.cpp. |
|
Definition at line 51 of file pst2dii.cpp. Referenced by open_pdf(), and open_png(). |
|
Definition at line 47 of file pst2dii.cpp. |
|
Definition at line 63 of file pst2dii.cpp. Referenced by open_png(). |
|
Definition at line 67 of file pst2dii.cpp. Referenced by open_png(), and print_pdf_short(). |
|
Definition at line 62 of file pst2dii.cpp. Referenced by new_line(), open_png(), and print_pdf_short(). |
|
Definition at line 62 of file pst2dii.cpp. Referenced by new_line(), open_png(), and print_pdf_short(). |