Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::Extension::Internal::TemplatePresetFile Class Reference

#include <template-from-file.h>

Inheritance diagram for Inkscape::Extension::Internal::TemplatePresetFile:
Inkscape::Extension::TemplatePreset

Public Member Functions

 TemplatePresetFile (Template *mod, std::string const &filename)
 A file based template preset.
 
- Public Member Functions inherited from Inkscape::Extension::TemplatePreset
 TemplatePreset (Template *mod, const Inkscape::XML::Node *repr, TemplatePrefs prefs={}, int priority=0)
 Parse the inx xml node for preset information.
 
 ~TemplatePreset ()
 
std::string const & get_key () const
 
std::string const & get_icon () const
 
std::string const & get_category () const
 
std::string const & get_name () const
 
std::string const & get_label () const
 
std::string const & get_description () const
 
int get_sort_priority () const
 
int get_visibility () const
 
bool is_visible (TemplateShow mode)
 
std::unique_ptr< SPDocumentnew_from_template (TemplatePrefs const &others={})
 Generate a new document from this preset.
 
void resize_to_template (SPDocument *doc, SPPage *page, const TemplatePrefs &others={})
 Resize the given page to however the page format requires it to be.
 
bool match_size (double width, double height, const TemplatePrefs &others={})
 Reverse match for templates, allowing page duplication and labeling.
 
std::string get_icon_path () const
 

Private Member Functions

void _load_data (const Inkscape::XML::Node *root)
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::Extension::TemplatePreset
std::string _get_icon_path (std::string const &name) const
 
bool setup_prefs (const TemplatePrefs &others={})
 Setup the preferences and ask the user to fill in the remaineder.
 
void _add_prefs (const TemplatePrefs &prefs)
 Called by setup_prefs to save the given prefs into this extension.
 
- Protected Attributes inherited from Inkscape::Extension::TemplatePreset
std::string _key
 
std::string _icon
 
std::string _name
 
std::string _label
 
std::string _desc
 
std::string _category
 
int _priority
 
int _visibility
 
TemplatePrefs _prefs
 

Detailed Description

Definition at line 26 of file template-from-file.h.

Constructor & Destructor Documentation

◆ TemplatePresetFile()

Member Function Documentation

◆ _load_data()


The documentation for this class was generated from the following files: