// SPDX-License-Identifier: GPL-2.0-or-later /* * Contain internal sizes of paper which can be used in various * functions to make and size pages. * * Authors: * Martin Owens * * Copyright (C) 2022 Authors * * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ #include "template-other.h" #include "clear-n_.h" namespace Inkscape { namespace Extension { namespace Internal { /** * Return the width and height of the new page, the default is a fixed orientation. */ Geom::Point TemplateOther::get_template_size(Inkscape::Extension::Template *tmod) const { auto size = tmod->get_param_float("size"); return Geom::Point(size, size); } void TemplateOther::init() { // clang-format off Inkscape::Extension::build_from_mem( "" "org.inkscape.template.other" "" N_("Other Sizes") "" "" N_("Miscellaneous document formats") "" "" NC_("TemplateCategory", "Other") "" "px" "32.0" "" "" , new TemplateOther()); // clang-format on } } // namespace Internal } // namespace Extension } // namespace Inkscape /* 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 :