2
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; version 2 of the
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19
#ifndef _TABLE_FIGURE_IDEF1X_H_
20
#define _TABLE_FIGURE_IDEF1X_H_
22
#include "table_figure.h"
26
class Separator : public mdc::Figure
29
Separator(mdc::Layer *layer) : mdc::Figure(layer) { _top_empty= false; _bottom_empty= false; }
31
virtual void draw_contents(mdc::CairoCtx *cr);
33
virtual MySQL::Geometry::Size calc_min_size();
34
void set_top_empty(bool flag);
35
void set_bottom_empty(bool flag);
44
class Idef1xTable : public Table
47
Idef1xTable(mdc::Layer *layer, FigureEventHub *hub, const model_ObjectRef &self);
49
virtual void set_color(const MySQL::Drawing::Color &color);
50
virtual void set_dependant(bool flag);
52
virtual ItemList::iterator begin_columns_sync();
54
virtual ItemList::iterator sync_next_column(ItemList::iterator iter,
55
const std::string &id,
57
const std::string &text);
59
virtual void end_columns_sync(ItemList::iterator iter);
62
virtual ItemList::iterator begin_indexes_sync() { return ItemList::iterator(); }
63
virtual ItemList::iterator sync_next_index(ItemList::iterator iter,
64
const std::string &id,
65
const std::string &text) { return ItemList::iterator(); }
66
virtual void end_indexes_sync(ItemList::iterator iter) { }
69
virtual ItemList::iterator begin_triggers_sync() { return ItemList::iterator(); }
70
virtual ItemList::iterator sync_next_trigger(ItemList::iterator iter,
71
const std::string &id,
72
const std::string &text) { return ItemList::iterator(); }
73
virtual void end_triggers_sync(ItemList::iterator iter) { }
75
virtual ItemList *get_columns() { return &_columns; }
79
std::set<std::string> _unique_oids;
84
virtual void end_sync(mdc::Box &box, ItemList &list, ItemList::iterator iter);
89
#endif /* _TABLE_FIGURE_IDEF1X_H_ */