Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htclipboard.cc File Reference

#include "htclipboard.h"
#include "htctrl.h"
#include "htsearch.h"
#include "htstring.h"
#include "snprintf.h"
#include "tools.h"
#include <stdlib.h>
#include <time.h>

Go to the source code of this file.

Classes

class  ht_clipboard_copy_history

Defines

#define CLIPBOARD_TRANSFER_BUF_SIZE   32*1024

Functions

void clipboard_add_copy_history_entry (char *source, dword start, dword size, time_t time)
int clipboard_copy (char *source_desc, void *buf, dword len)
int clipboard_copy (char *source_desc, ht_streamfile *file, dword offset, dword len)
int clipboard_paste (void *buf, dword maxlen)
int clipboard_paste (ht_streamfile *file, dword offset)
int clipboard_clear ()
dword clipboard_getsize ()
bool init_clipboard ()
void done_clipboard ()

Variables

ht_clipboardclipboard


Define Documentation

#define CLIPBOARD_TRANSFER_BUF_SIZE   32*1024
 

Definition at line 201 of file htclipboard.cc.

Referenced by clipboard_copy(), and clipboard_paste().


Function Documentation

void clipboard_add_copy_history_entry char *  source,
dword  start,
dword  size,
time_t  time
 

Definition at line 191 of file htclipboard.cc.

References clipboard, ht_clipboard::copy_history, ht_strdup(), ht_list::insert(), ht_clipboard_copy_history::size, size, ht_clipboard_copy_history::source, ht_clipboard_copy_history::start, and ht_clipboard_copy_history::time.

Referenced by clipboard_copy().

int clipboard_clear  ) 
 

Definition at line 279 of file htclipboard.cc.

References ht_clipboard::clear(), and clipboard.

Referenced by ht_app::handlemsg().

int clipboard_copy char *  source_desc,
ht_streamfile file,
dword  offset,
dword  len
 

Definition at line 218 of file htclipboard.cc.

References buf, byte, clipboard, clipboard_add_copy_history_entry(), CLIPBOARD_TRANSFER_BUF_SIZE, dword, file, ht_mem_file::get_size(), len, malloc(), ht_mem_file::seek(), ht_clipboard::select_len, ht_clipboard::select_start, size, and ht_clipboard::write().

Referenced by ht_text_viewer::clipboard_copy_cmd(), ht_app::handlemsg(), ht_strinputfield::handlemsg(), and ht_uformat_viewer::handlemsg().

int clipboard_copy char *  source_desc,
void *  buf,
dword  len
 

Definition at line 204 of file htclipboard.cc.

dword clipboard_getsize  ) 
 

Definition at line 285 of file htclipboard.cc.

References clipboard, dword, and ht_clipboard::select_len.

Referenced by ht_text_editor::clipboard_paste_cmd(), ht_strinputfield::handlemsg(), and ht_app::handlemsg().

int clipboard_paste ht_streamfile file,
dword  offset
 

Definition at line 255 of file htclipboard.cc.

References buf, byte, clipboard, CLIPBOARD_TRANSFER_BUF_SIZE, dword, file, len, malloc(), ht_mem_file::read(), ht_mem_file::seek(), ht_clipboard::select_len, and ht_clipboard::select_start.

Referenced by ht_text_editor::clipboard_paste_cmd(), ht_app::handlemsg(), ht_strinputfield::handlemsg(), and ht_uformat_viewer::handlemsg().

int clipboard_paste void *  buf,
dword  maxlen
 

Definition at line 249 of file htclipboard.cc.

void done_clipboard  ) 
 

Definition at line 305 of file htclipboard.cc.

References clipboard, and ht_clipboard::done().

bool init_clipboard  ) 
 

Definition at line 294 of file htclipboard.cc.

References clipboard, and ht_clipboard::init().


Variable Documentation

ht_clipboard* clipboard
 

Definition at line 31 of file htclipboard.cc.

Referenced by clipboard_add_copy_history_entry(), clipboard_clear(), clipboard_copy(), clipboard_getsize(), clipboard_paste(), ht_app::create_window_clipboard(), done_clipboard(), ht_clipboard_viewer::handlemsg(), ht_clipboard_viewer::init(), init_clipboard(), ht_clipboard_viewer::selection_changed(), and ht_clipboard_viewer::update_content().


Generated on Fri May 7 21:15:48 2004 by doxygen 1.3.5