コード例 #1
0
Gobby::OperationExportHtml::OperationExportHtml(
	Operations& operations, TextSessionView& view,
	const Glib::RefPtr<Gio::File>& file)
:
	Operation(operations), m_title(view.get_title()), m_file(file),
	m_xml(export_html(view)), m_index(0)
{
}
コード例 #2
0
Gobby::TaskExportHtml::TaskExportHtml(FileCommands& file_commands,
                                      TextSessionView& view):
	Task(file_commands),
	m_file_dialog(get_file_chooser(), get_parent(),
		Glib::ustring::compose(
			_("Choose a location to export document \"%1\" to"),
			view.get_title()),
		Gtk::FILE_CHOOSER_ACTION_SAVE),
	m_view(&view), m_running(false)
{
	get_folder().signal_document_removed().connect(
		sigc::mem_fun(*this, &TaskExportHtml::on_document_removed));
}