#include <pager.h>
Inheritance diagram for cwidget::widgets::file_pager:
Public Member Functions | |
void | load_file (const std::string &filename, const char *encoding=NULL) |
Loads the given file into the pager. | |
void | load_file (const std::wstring &filename, const char *encoding) |
Attempts to convert the string to a multibyte representation and then load it; a nonconvertible string is treated as any other load failure would be. | |
void | load_file (const std::wstring &filename) |
Attempts to convert the string to a multibyte representation and then load it; a nonconvertible string is treated as any other load failure would be. | |
Static Public Member Functions | |
static util::ref_ptr< file_pager > | create () |
static util::ref_ptr< file_pager > | create (const std::string &filename, const char *encoding=NULL) |
Create a pager from a string. | |
static util::ref_ptr< file_pager > | create (const std::wstring &filename, const char *encoding=NULL) |
Attempts to convert the string to a multibyte representation and then load it; a nonconvertible string is treated as any other load failure would be. | |
static util::ref_ptr< file_pager > | create (const char *text, int len, const char *encoding=NULL) |
Create a pager from the given memory region. | |
Protected Member Functions | |
file_pager (const std::string &filename, const char *encoding=NULL) | |
file_pager (const std::wstring &filename, const char *encoding=NULL) | |
file_pager (const char *text, int len, const char *encoding=NULL) |
|
Create a pager from the given memory region.
Reimplemented from cwidget::widgets::pager. |
|
Create a pager from a string.
Reimplemented from cwidget::widgets::pager. |
|
Attempts to convert the string to a multibyte representation and then load it; a nonconvertible string is treated as any other load failure would be. The file is assumed to contain text in the encoding specified by LC_CTYPE.
|
|
Attempts to convert the string to a multibyte representation and then load it; a nonconvertible string is treated as any other load failure would be.
|
|
Loads the given file into the pager.
|