Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-string.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_SP_STRING_H
11#define SEEN_SP_STRING_H
12
13/*
14 * string elements
15 * extracted from sp-text
16 */
17
18#include <glibmm/ustring.h>
19
20#include "sp-object.h"
21
22class SPString final : public SPObject {
23public:
24 SPString();
25 ~SPString() override;
26 int tag() const override { return tag_of<decltype(*this)>; }
27
28 Glib::ustring string;
29
30 void build(SPDocument* doc, Inkscape::XML::Node* repr) override;
31 void release() override;
32
33 void read_content() override;
34
35 void update(SPCtx* ctx, unsigned int flags) override;
36};
37
38#endif
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition cast.h:26
Interface for refcounted XML nodes.
Definition node.h:80
Typed SVG document implementation.
Definition document.h:101
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Inkscape::XML::Node * repr
Definition sp-object.h:193
int tag() const override
Definition sp-string.h:26
void read_content() override
Definition sp-string.cpp:54
void update(SPCtx *ctx, unsigned int flags) override
~SPString() override
void release() override
Definition sp-string.cpp:49
Glib::ustring string
Definition sp-string.h:28
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
Definition sp-string.cpp:42
Unused.
Definition sp-object.h:94