attribute-rel-util.h revision d0d9dc8846169ff203ce93b6fd6bf331e663a7cd
#ifndef __SP_ATTRIBUTE_REL_UTIL_H__
#define __SP_ATTRIBUTE_REL_UTIL_H__
/*
*
* Created on: Sep 8, 2011
* Author: tavmjong
*/
#include "xml/sp-css-attr.h"
/**
* Utility functions for cleaning XML tree.
*/
/**
* Enum for preferences
*/
enum SPAttrClean {
};
/**
* Get preferences
*/
unsigned int sp_attribute_clean_get_prefs();
/**
* Remove or warn about inappropriate attributes and useless style properties.
* repr: the root node in a document or any other node.
*/
/**
* Recursively clean.
* repr: the root node in a document or any other node.
* pref_attr, pref_style, pref_defaults: ignore, delete, or warn.
*/
/**
* Clean one element (attributes and style properties).
*/
/**
* Clean style properties for one element.
*/
/**
* Clean style properties for one style string.
*/
/**
* Clean style properties for one CSS.
*/
/**
* Check one attribute on an element
*/
bool sp_attribute_check_attribute(Glib::ustring element, Glib::ustring id, Glib::ustring attribute, bool warn);
#endif /* __SP_ATTRIBUTE_REL_UTIL_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :