15#include <glibmm/convert.h>
16#include <glibmm/miscutils.h>
17#include <glibmm/ustring.h>
42 auto const tmpfile_next = tmpfile +
".next";
44 std::rename(tmpfile_next.c_str(), tmpfile.c_str());
52 return Glib::build_filename(g_get_user_cache_dir(),
"inkscape-active_desktop_commands.xml");
59 std::cerr <<
data << std::endl;
61 std::cout <<
data << std::endl;
77 txtnode->setContent(
data.c_str());
89 show_output(
"get_document_and_selection: No document!");
95 show_output(
"get_document_and_selection: No selection!");
static bool use_active_window
void show_output(Glib::ustring const &data, bool const is_cerr)
std::string get_active_desktop_commands_location()
void active_window_start_helper()
static Inkscape::XML::Document * active_window_data
void active_window_end_helper()
bool get_document_and_selection(InkscapeApplication *app, SPDocument **document, Inkscape::Selection **selection)
SPDocument * get_active_document()
Inkscape::Selection * get_active_selection()
The set of selected SPObjects for a given document and layer model.
Interface for refcounted XML nodes.
virtual void appendChild(Node *child)=0
Append a node as the last child of this node.
virtual Node * root()=0
Get the root node of this node's document.
Typed SVG document implementation.
Inkscape::XML::Node * node
static R & release(R &r)
Decrements the reference count of a anchored object.
bool sp_repr_save_file(Document *doc, gchar const *const filename, gchar const *default_ns)
Returns true iff file successfully saved.
Inkscape::XML::Document * sp_repr_document_new(char const *rootname)
Returns new document having as first child a node named rootname.
C facade to Inkscape::XML::Node.
Interface for XML documents.
virtual Node * createTextNode(char const *content)=0
virtual Node * createElement(char const *name)=0
Interface for XML documents.