All public fields replaced with properties.

This commit is contained in:
Kolan Sh 2014-10-30 16:58:23 +03:00
parent 625b25f494
commit 72bba0d2a9
11 changed files with 43 additions and 43 deletions

View File

@ -13,7 +13,7 @@ namespace LAview {
* Possible values: [0-9]+{bp,cc,cm,dd,em,ex,in,mm,pc,pt,sp} <<BR>> * Possible values: [0-9]+{bp,cc,cm,dd,em,ex,in,mm,pc,pt,sp} <<BR>>
* or [0-9]+.[0-9][0-9]{\textwidth,columnwidth,paperwidth,linewidth,textheight,paperheight} * or [0-9]+.[0-9][0-9]{\textwidth,columnwidth,paperwidth,linewidth,textheight,paperheight}
*/ */
public string height = ""; public string height { get; set; default = ""; }
/** /**
* Constructs a new ``AddSpace`` based on value. * Constructs a new ``AddSpace`` based on value.

View File

@ -26,7 +26,7 @@ namespace LAview {
/** /**
* Style of the {@link AddSpace}/{@link Subtable}. * Style of the {@link AddSpace}/{@link Subtable}.
*/ */
public Style style = Style.DEFAULT; public Style style { get; set; default = Style.DEFAULT; }
/** /**
* Constructs a new empty ``AddSpaces``. * Constructs a new empty ``AddSpaces``.

View File

@ -10,49 +10,49 @@ namespace LAview {
/** /**
* Number of occupied cells. * Number of occupied cells.
*/ */
public uint ncells = 1; public uint ncells { get; set; default = 1; }
/** /**
* Cell's alignment. * Cell's alignment.
* *
* Possible values: "c", "r", "l", ">{\centering}p{0.07\paperwidth}", etc. * Possible values: "c", "r", "l", ">{\centering}p{0.07\paperwidth}", etc.
*/ */
public string align = ""; public string align { get; set; default = ""; }
/** /**
* Number of left lines. * Number of left lines.
*/ */
public uint nllines; public uint nllines { get; set; }
/** /**
* Number of right lines. * Number of right lines.
*/ */
public uint nrlines; public uint nrlines { get; set; }
/** /**
* Number of top lines. * Number of top lines.
*/ */
public uint noverlines; public uint noverlines { get; set; }
/** /**
* Number of bottom lines. * Number of bottom lines.
*/ */
public uint nunderlines; public uint nunderlines { get; set; }
/** /**
* Contents of the cell. * Contents of the cell.
*/ */
public Glob contents = new Glob (); public Glob contents { get; set; default = new Glob (); }
/** /**
* Any text before the cell. * Any text before the cell.
*/ */
public string before = ""; public string before { get; set; default = ""; }
/** /**
* Any text after the cell. * Any text after the cell.
*/ */
public string after = ""; public string after { get; set; default = ""; }
/** /**
* Type of a cell indicates how much columns/rows does it occupy. * Type of a cell indicates how much columns/rows does it occupy.

View File

@ -12,17 +12,17 @@ namespace LAview {
* *
* Possible values: "c", "r", "l", ">{\centering}p{0.07\paperwidth}", etc. * Possible values: "c", "r", "l", ">{\centering}p{0.07\paperwidth}", etc.
*/ */
public string align = "c"; public string align { get; set; default = "c"; }
/** /**
* Number of left lines. * Number of left lines.
*/ */
public uint nllines = 1; public uint nllines { get; set; default = 1; }
/** /**
* Number of right lines. * Number of right lines.
*/ */
public uint nrlines; public uint nrlines { get; set; }
/** /**
* Constructs a new ``ColParam`` by it's properties. * Constructs a new ``ColParam`` by it's properties.

View File

@ -10,19 +10,19 @@ namespace LAview {
/** /**
* All unknown parameters. * All unknown parameters.
*/ */
public string rest_params = ""; public string rest_params { get; set; default = ""; }
/** /**
* Path to the image on the disk. * Path to the image on the disk.
*/ */
public string path = ""; public string path { get; set; default = ""; }
/** /**
* Width of the image. * Width of the image.
* *
* For ex: 3.22, 128 * For ex: 3.22, 128
*/ */
public double width; public double width { get; set; }
/** /**
* Width units of the image. * Width units of the image.
@ -31,14 +31,14 @@ namespace LAview {
* or \textwidth, \columnwidth, \pagewidth, * or \textwidth, \columnwidth, \pagewidth,
* \linewidth, \textwidth, \paperwidth * \linewidth, \textwidth, \paperwidth
*/ */
public string width_unit = ""; public string width_unit { get; set; default = ""; }
/** /**
* Height of the image. * Height of the image.
* *
* For ex: 3.22, 128 * For ex: 3.22, 128
*/ */
public double height; public double height { get; set; }
/** /**
* Height units of the image. * Height units of the image.
@ -47,7 +47,7 @@ namespace LAview {
* or \textwidth, \columnwidth, \pagewidth, * or \textwidth, \columnwidth, \pagewidth,
* \linewidth, \textwidth, \paperwidth * \linewidth, \textwidth, \paperwidth
*/ */
public string height_unit = ""; public string height_unit { get; set; default = ""; }
/** /**
* Constructs a new ``Graphics`` by it's properties. * Constructs a new ``Graphics`` by it's properties.

View File

@ -6,9 +6,9 @@ namespace LAview {
class Link { class Link {
public string[] begin; public string[] begin { get; set; }
public string[] end; public string[] end { get; set; }
public unowned ParserDelegate create; public unowned ParserDelegate create { get; set; }
public Link (string[] begin, string[] end, ParserDelegate? create = null) { public Link (string[] begin, string[] end, ParserDelegate? create = null) {
this.begin = begin; this.end = end; this.create = create; this.begin = begin; this.end = end; this.create = create;
@ -17,7 +17,7 @@ namespace LAview {
class ParserFactory { class ParserFactory {
public Array<Link> group = new Array<Link> (); public Array<Link> group { get; set; default = new Array<Link> (); }
public virtual TextParser make_text_parser (Array<Link> links) { public virtual TextParser make_text_parser (Array<Link> links) {
return new TextParser (links); return new TextParser (links);

View File

@ -88,28 +88,28 @@ namespace LAview {
/** /**
* Any text before the ``Row``. * Any text before the ``Row``.
*/ */
public string before = ""; public string before { get; set; default = ""; }
/** /**
* Style of any operation on {@link ATable}/{@link Subtable} or ``Row`` * Style of any operation on {@link ATable}/{@link Subtable} or ``Row``
* for lines preserving/creation. * for lines preserving/creation.
*/ */
public Style style; public Style style { get; set; }
/** /**
* Top vertical spaces. * Top vertical spaces.
*/ */
public AddSpaces top = new AddSpaces (); public AddSpaces top { get; set; default = new AddSpaces (); }
/** /**
* Bottom vertical spaces. * Bottom vertical spaces.
*/ */
public AddSpace bottom = new AddSpace.with_params (""); public AddSpace bottom { get; set; default = new AddSpace.with_params (""); }
/** /**
* Vertical spaces inside the {@link Subtable} * Vertical spaces inside the {@link Subtable}
*/ */
public AddSpaces between = new AddSpaces (); public AddSpaces between { get; set; default = new AddSpaces (); }
/** /**
* Type of horizontal lines for the ``Row``. * Type of horizontal lines for the ``Row``.

View File

@ -10,22 +10,22 @@ namespace LAview {
/** /**
* Caption of the table. * Caption of the table.
*/ */
public string caption = ""; public string caption { get; set; default = ""; }
/** /**
* Any text before the ``Subtable``. * Any text before the ``Subtable``.
*/ */
public string before = ""; public string before { get; set; default = ""; }
/** /**
* Any text after the ``Subtable``. * Any text after the ``Subtable``.
*/ */
public string after = ""; public string after { get; set; default = ""; }
/** /**
* Style of the table (Default/Formal). * Style of the table (Default/Formal).
*/ */
public AddSpaces.Style style; public AddSpaces.Style style { get; set; }
protected override ADocList create_default_instance () { return new Subtable (); } protected override ADocList create_default_instance () { return new Subtable (); }

View File

@ -36,42 +36,42 @@ namespace LAview {
* *
* Possible values: 't', 'b'. * Possible values: 't', 'b'.
*/ */
public char align; public char align { get; set; }
/** /**
* Style of the {@link AddSpace}/{@link Subtable}. * Style of the {@link AddSpace}/{@link Subtable}.
*/ */
public AddSpaces.Style style; public AddSpaces.Style style { get; set; }
/** /**
* Parameters of columns. * Parameters of columns.
*/ */
public ColParams params = new ColParams (); public ColParams params { get; set; default = new ColParams (); }
/** /**
* Main sutable. * Main sutable.
*/ */
public Subtable table = new Subtable (); public Subtable table { get; set; default = new Subtable (); }
/** /**
* First Header. * First Header.
*/ */
public Subtable first_header = new Subtable (); public Subtable first_header { get; set; default = new Subtable (); }
/** /**
* Header. * Header.
*/ */
public Subtable header = new Subtable (); public Subtable header { get; set; default = new Subtable (); }
/** /**
* Footer. * Footer.
*/ */
public Subtable footer = new Subtable (); public Subtable footer { get; set; default = new Subtable (); }
/** /**
* Last Footer. * Last Footer.
*/ */
public Subtable last_footer = new Subtable (); public Subtable last_footer { get; set; default = new Subtable (); }
protected ATable () {} protected ATable () {}

View File

@ -21,7 +21,7 @@ namespace LAview {
* \textwidth,\columnwidth,\pagewidth,\linewidth, * \textwidth,\columnwidth,\pagewidth,\linewidth,
* \textheight,\columnheight,\pageheight,\lineheight}. * \textheight,\columnheight,\pageheight,\lineheight}.
*/ */
public string width = ""; public string width { get; set; default = ""; }
/** /**
* Gets a copy of the ``Tabular``. * Gets a copy of the ``Tabular``.

View File

@ -8,7 +8,7 @@ namespace LAview {
/** /**
* Plain text in UTF-8 string. * Plain text in UTF-8 string.
*/ */
public string text = ""; public string text { get; set; default = ""; }
/** /**
* Constructs a new ``Text``. * Constructs a new ``Text``.