3
* Copyright (C) 2001-2006 Murray Cumming
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* General Public License for more details.
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
21
#ifndef GLOM_DATASTRUCTURE_LAYOUTITEM_LINE_H
22
#define GLOM_DATASTRUCTURE_LAYOUTITEM_LINE_H
24
#include "layoutitem.h"
25
#include <libgdamm/value.h>
30
/// This is only used on print layouts.
36
LayoutItem_Line(const LayoutItem_Line& src);
37
LayoutItem_Line& operator=(const LayoutItem_Line& src);
38
virtual ~LayoutItem_Line();
40
virtual LayoutItem* clone() const;
42
bool operator==(const LayoutItem_Line& src) const;
44
virtual Glib::ustring get_part_type_name() const;
45
virtual Glib::ustring get_report_part_id() const;
47
/** Get the coordinates.
49
void get_coordinates(double& start_x, double& start_y, double& end_x, double& end_y) const;
51
/** Set the coordinates.
53
void set_coordinates(double start_x, double start_y, double end_x, double end_y);
57
double m_start_x, m_start_y, m_end_x, m_end_y;
62
#endif //GLOM_DATASTRUCTURE_LAYOUTITEM_LINE_H