-#include "item.hh"
#include "spanner.hh"
+#include "paper-column.hh"
-// thanks to GDBs wonderful casting abilities, we need these:
-Item*
-to_item (Graphical_element* g)
-{
- return dynamic_cast<Item*>(g);
-}
-Spanner*
-to_spanner (Graphical_element*g)
-{
- return dynamic_cast<Spanner*>(g);
+extern "C" {
+ // thanks to GDBs wonderful casting abilities, we need these:
+ Item *
+ to_item (Grob *g)
+ {
+ return dynamic_cast<Item *> (g);
+ }
+ Spanner *
+ to_spanner (Grob *g)
+ {
+ return dynamic_cast<Spanner *> (g);
+ }
+
+ Paper_column *
+ to_pc (Grob *g)
+ {
+ return dynamic_cast<Paper_column *> (g);
+ }
}