sp-polygon.h revision d74e415b7dd25ccb70d40a9f11ec99f23b57ed63
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#ifndef __SP_POLYGON_H__
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#define __SP_POLYGON_H__
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos/*
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos * SVG <polygon> implementation
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos *
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos * Authors:
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos * Lauris Kaplinski <lauris@kaplinski.com>
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos *
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos * Copyright (C) 1999-2002 Lauris Kaplinski
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos * Copyright (C) 2000-2001 Ximian, Inc.
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos *
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos * Released under GNU GPL, read the file 'COPYING' for more information
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos */
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#include "sp-shape.h"
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#define SP_POLYGON(obj) ((SPPolygon*)obj)
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#define SP_IS_POLYGON(obj) (dynamic_cast<const SPPolygon*>((SPObject*)obj) != NULL)
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosclass SPPolygon : public SPShape {
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kospublic:
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos SPPolygon();
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos virtual ~SPPolygon();
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos virtual void build(SPDocument *document, Inkscape::XML::Node *repr);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos virtual void set(unsigned int key, gchar const* value);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos virtual gchar* description();
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos};
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos// made 'public' so that SPCurve can set it as friend:
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kosvoid sp_polygon_set(SPObject *object, unsigned int key, const gchar *value);
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos
7de6e3534fd61c7619ed34a6b1afe7230b5e6504Ondrej Kos#endif
a81e80c817808f4bb41d5219b04dbf73c943821eNikolai Kondrashov