Ejemplo n.º 1
0
QDomElement
Filter::saveSettings(ProjectWriter const& writer, QDomDocument& doc) const
{
    using namespace boost::lambda;

    QDomElement filter_el(doc.createElement("deskew"));
    writer.enumPages(
        bind(
            &Filter::writePageSettings,
            this, boost::ref(doc), var(filter_el), _1, _2
        )
    );

    return filter_el;
}
Ejemplo n.º 2
0
QDomElement
Filter::saveSettings(
	ProjectWriter const& writer, QDomDocument& doc) const
{
	using namespace boost::lambda;
	
	QDomElement filter_el(doc.createElement("fix-orientation"));
	writer.enumImages(
		boost::lambda::bind(
			&Filter::writeImageSettings,
			this, boost::ref(doc), var(filter_el), boost::lambda::_1, boost::lambda::_2
		)
	);
	
	return filter_el;
}
Ejemplo n.º 3
0
QDomElement
Filter::saveSettings(
	ProjectWriter const& writer, QDomDocument& doc) const
{
	using namespace boost::lambda;
	
	QDomElement filter_el(doc.createElement("page-split"));
	filter_el.setAttribute(
		"defaultLayoutType",
		layoutTypeToString(m_ptrSettings->defaultLayoutType())
	);
	
	writer.enumImages(
		bind(
			&Filter::writeImageSettings,
			this, boost::ref(doc), var(filter_el), _1, _2
		)
	);
	
	return filter_el;
}