src/doclets/htmlhelpers/taglets/table/Makefile
src/doclets/htmlhelpers/taglets/right/Makefile
src/doclets/htmlhelpers/taglets/image/Makefile
+ src/doclets/htmlhelpers/taglets/paragraph/Makefile
src/doclets/htmlhelpers/taglets/throws/Makefile
src/doclets/htmlhelpers/taglets/string/Makefile
src/doclets/htmlhelpers/taglets/center/Makefile
src/doclets/valadoc.org/doclet/Makefile
src/doclets/valadoc.org/taglets/Makefile
src/doclets/valadoc.org/taglets/see/Makefile
+ src/doclets/valadoc.org/taglets/paragraph/Makefile
src/doclets/valadoc.org/taglets/link/Makefile
src/doclets/valadoc.org/taglets/constants/Makefile
src/doclets/valadoc.org/taglets/list/Makefile
list \
listelement \
notification \
+ paragraph \
parameter \
return \
right \
private string title;
private int lvl;
- public override bool parse ( owned string title, int lvl ) {
+ public override bool parse (string title, int lvl) {
this.title = title;
this.lvl = lvl;
return true;
}
- public override bool write ( void* res, int max, int index ) {
+ public override bool write (void* res, int max, int index) {
weak GLib.FileStream file = (GLib.FileStream)res;
- file.printf ("\n\n<h%d>%s</h%d>\n", this.lvl, this.title, this.lvl );
+ file.printf ("\n\n<h%d>%s</h%d>\n", this.lvl, this.title, this.lvl);
return true;
}
}
[ModuleInit]
-public GLib.Type register_plugin ( Gee.HashMap<string, Type> taglets ) {
- return typeof ( Valadoc.Html.HeadlineDocElement );
+public GLib.Type register_plugin (Gee.HashMap<string, Type> taglets) {
+ return typeof (Valadoc.Html.HeadlineDocElement);
}
--- /dev/null
+NULL =
+
+
+AM_CFLAGS = -g \
+ -I ../../../../libvaladoc/ \
+ -I ../../doclet/ \
+ $(GLIB_CFLAGS) \
+ $(LIBVALA_CFLAGS) \
+ $(NULL)
+
+
+BUILT_SOURCES = libtagletparagraph.vala.stamp
+
+
+tagletparagraphdir = $(libdir)/valadoc/plugins/htmlhelpers/taglets/
+
+
+tagletparagraph_LTLIBRARIES = \
+ libtagletparagraph.la \
+ $(NULL)
+
+
+libtagletparagraph_la_VALASOURCES = \
+ taglet.vala \
+ $(NULL)
+
+
+libtagletparagraph_la_SOURCES = \
+ libtagletparagraph.vala.stamp \
+ $(libtagletparagraph_la_VALASOURCES:.vala=.c) \
+ $(NULL)
+
+
+libtagletparagraph.vala.stamp: $(libtagletparagraph_la_VALASOURCES)
+ $(VALAC) -C --vapidir ../../../../vapi --pkg valadoc-1.0 --vapidir ../../doclet/ --pkg libhtmlhelpers-1.0 --basedir . $^
+ touch $@
+
+
+libtagletparagraph_la_LDFLAGS = -module -avoid-version
+
+
+libtagletparagraph_la_LIBADD = \
+ ../../../../libvaladoc/libvaladoc.la \
+ $(LIBGVC_LIBS) \
+ $(LIBVALA_LIBS) \
+ $(GLIB_LIBS) \
+ $(NULL)
+
+
+EXTRA_DIST = $(libtagletparagraph_la_VALASOURCES) libtagletparagraph.vala.stamp
+
+
+MAINTAINERCLEANFILES = \
+ $(libtagletparagraph_la_VALASOURCES:.vala=.c) \
+ $(NULL)
+
--- /dev/null
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2008 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+
+using GLib;
+using Gee;
+
+
+namespace Valadoc.Html {
+ public class ParagraphDocElement : Valadoc.ParagraphDocElement {
+ private ArrayList<DocElement> content;
+
+ public override bool parse (ArrayList<DocElement> content) {
+ this.content = content;
+ return true;
+ }
+
+ public override bool write (void* res, int max, int index) {
+ weak GLib.FileStream file = (GLib.FileStream)res;
+ int _max = this.content.size;
+ int _index = 0;
+
+ file.printf ("<p>");
+
+ foreach (DocElement element in this.content) {
+ element.write (res, _max, _index);
+ _index++;
+ }
+
+ file.printf ("</p>");
+ return true;
+ }
+ }
+}
+
+
+[ModuleInit]
+public GLib.Type register_plugin (Gee.HashMap<string, Type> taglets) {
+ return typeof (Valadoc.Html.ParagraphDocElement);
+}
+
private int srclines;
private string src;
- public override bool parse ( owned string src, Language lang ) {
- this.src = (owned)src;
+ public override bool parse (string src, Language lang) {
+ this.src = src;
this.lang = lang;
this.srclines=0;
for (weak string str=this.src; str.get_char()!='\0'; str=str.next_char()) {
- if ( str.get_char () == '\n' ) {
+ if (str.get_char () == '\n') {
this.srclines++;
}
}
return true;
}
- public override bool write ( void* res, int max, int index ) {
+ public override bool write (void* res, int max, int index) {
weak GLib.FileStream file = (GLib.FileStream)res;
- file.printf ( "\n\n\t<pre class=\"%s\">", css_source_sample );
- file.puts ( src );
- file.puts ( "</pre>\n\n" );
+ file.printf ("\n\n\t<pre class=\"%s\">", css_source_sample);
+ file.puts (src);
+ file.puts ("</pre>\n\n");
return true;
}
}
[ModuleInit]
-public GLib.Type register_plugin ( Gee.HashMap<string, Type> taglets ) {
- return typeof ( Valadoc.Html.SourceCodeDocElement );
+public GLib.Type register_plugin (Gee.HashMap<string, Type> taglets) {
+ return typeof (Valadoc.Html.SourceCodeDocElement);
}
list \
return \
source \
+ paragraph \
parameter \
listelement \
notification \
private string title;
private int lvl;
- public override bool parse (owned string title, int lvl) {
+ public override bool parse (string title, int lvl) {
this.title = title;
this.lvl = lvl;
return true;
--- /dev/null
+NULL =
+
+
+AM_CFLAGS = -g \
+ -I ../../../../libvaladoc/ \
+ -I ../../doclet/ \
+ $(GLIB_CFLAGS) \
+ $(LIBVALA_CFLAGS) \
+ $(NULL)
+
+
+BUILT_SOURCES = libtagletparagraph.vala.stamp
+
+
+tagletparagraphdir = $(libdir)/valadoc/plugins/valadoc.org/taglets/
+
+
+tagletparagraph_LTLIBRARIES = \
+ libtagletparagraph.la \
+ $(NULL)
+
+
+libtagletparagraph_la_VALASOURCES = \
+ taglet.vala \
+ $(NULL)
+
+
+libtagletparagraph_la_SOURCES = \
+ libtagletparagraph.vala.stamp \
+ $(libtagletparagraph_la_VALASOURCES:.vala=.c) \
+ $(NULL)
+
+
+libtagletparagraph.vala.stamp: $(libtagletparagraph_la_VALASOURCES)
+ $(VALAC) -C --vapidir ../../../../vapi --pkg valadoc-1.0 --basedir . $^
+ touch $@
+
+
+libtagletparagraph_la_LDFLAGS = -module -avoid-version
+
+
+libtagletparagraph_la_LIBADD = \
+ ../../../../libvaladoc/libvaladoc.la \
+ $(LIBGVC_LIBS) \
+ $(LIBVALA_LIBS) \
+ $(GLIB_LIBS) \
+ $(NULL)
+
+
+EXTRA_DIST = $(libtagletparagraph_la_VALASOURCES) libtagletparagraph.vala.stamp
+
+
+MAINTAINERCLEANFILES = \
+ $(libtagletparagraph_la_VALASOURCES:.vala=.c) \
+ $(NULL)
+
--- /dev/null
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2008 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+
+using GLib;
+using Gee;
+
+
+namespace Valadoc.ValdocOrg {
+ public class ParagraphDocElement : Valadoc.ParagraphDocElement {
+ private ArrayList<DocElement> content;
+
+ public override bool parse (ArrayList<DocElement> content) {
+ this.content = content;
+ return true;
+ }
+
+ public override bool write (void* res, int max, int index) {
+ weak GLib.FileStream file = (GLib.FileStream)res;
+ int _max = this.content.size;
+ int _index = 0;
+
+ foreach (DocElement element in this.content) {
+ element.write (res, _max, _index);
+ _index++;
+ }
+
+ file.printf ("\n\n");
+ return true;
+ }
+ }
+}
+
+
+[ModuleInit]
+public GLib.Type register_plugin (Gee.HashMap<string, Type> taglets) {
+ return typeof (Valadoc.ValdocOrg.ParagraphDocElement);
+}
+
private int srclines;
private string src;
- public override bool parse (owned string src, Language lang) {
- this.src = (owned)src;
+ public override bool parse (string src, Language lang) {
+ this.src = src;
this.lang = lang;
this.srclines=0;
}
-/* deprecated */
public interface Valadoc.Documentation : Object {
public abstract string? get_filename ();
}
-
public abstract class Valadoc.DocElement : Object {
public abstract bool write (void* res, int max, int index);
}
}
public abstract class Valadoc.MainTaglet : Taglet {
- // remove
+ // deprecated
protected string? get_data_type (DocumentedElement me) {
if (me is Valadoc.Class)
return "class";
public abstract class Valadoc.StringTaglet : Taglet {
+ // deprecated
public string content {
protected set; get;
}
public abstract bool parse (string content);
}
+public abstract class Valadoc.ParagraphDocElement : DocElement {
+ public abstract bool parse (ArrayList<DocElement> paragraph);
+}
+
public abstract class Valadoc.HeadlineDocElement : DocElement {
- public abstract bool parse (owned string title, int lvl);
+ public abstract bool parse (string title, int lvl);
}
public abstract class Valadoc.ImageDocElement : DocElement {
}
public abstract class Valadoc.SourceCodeDocElement : DocElement {
- public abstract bool parse (owned string src, Language lang);
+ public abstract bool parse (string src, Language lang);
}
public abstract class Valadoc.ListEntryDocElement : DocElement {
public class Valadoc.ModuleLoader : Object {
- public Doclet doclet; //rm
+ public Doclet doclet;
public Gee.HashMap<string, GLib.Type> taglets;
public GLib.Type bold;
public GLib.Type right;
public GLib.Type source;
public GLib.Type source_inline;
- public GLib.Type @string; //
+ public GLib.Type @string;
public GLib.Type table;
public GLib.Type table_cell;
public GLib.Type underline;
-
+ public GLib.Type paragraph;
private Module docletmodule;
private Type doclettype;
case "libtagletcodeconstant":
this.source_inline = type;
break;
+ case "libtagletparagraph":
+ this.source_inline = type;
+ break;
}
modules.add ( module );
}