Commit 72e1c7fa authored by Ilya Kirillov's avatar Ilya Kirillov

Added functions for getting new default styles for footnotes.

parent 1b921a09
......@@ -4233,36 +4233,39 @@ function CStyles(bCreateDefault)
// Добавляем данный класс в таблицу Id (обязательно в конце конструктора)
g_oTableId.Add( this, this.Id );
}
else
{
this.Default =
{
ParaPr : new CParaPr(),
TextPr : new CTextPr(),
TablePr : new CTablePr(),
TableRowPr : new CTableRowPr(),
TableCellPr : new CTableCellPr(),
Paragraph : null,
Character : null,
Numbering : null,
Table : null,
TableGrid : null,
Headings : [],
ParaList : null,
Header : null,
Footer : null,
Hyperlink : null
};
else
{
this.Default = {
ParaPr : new CParaPr(),
TextPr : new CTextPr(),
TablePr : new CTablePr(),
TableRowPr : new CTableRowPr(),
TableCellPr : new CTableCellPr(),
// Заполняем значения по умолчанию
this.Default.ParaPr.Init_Default();
this.Default.TextPr.Init_Default();
this.Default.TablePr.Init_Default();
this.Default.TableRowPr.Init_Default();
this.Default.TableCellPr.Init_Default();
Paragraph : null,
Character : null,
Numbering : null,
Table : null,
TableGrid : null,
Headings : [],
ParaList : null,
Header : null,
Footer : null,
Hyperlink : null,
FootnoteText : null,
FootnoteTextChar : null,
FootnoteReference : null
};
this.Style = [];
}
// Заполняем значения по умолчанию
this.Default.ParaPr.Init_Default();
this.Default.TextPr.Init_Default();
this.Default.TablePr.Init_Default();
this.Default.TableRowPr.Init_Default();
this.Default.TableCellPr.Init_Default();
this.Style = [];
}
this.LogicDocument = null;
}
......@@ -5191,6 +5194,18 @@ CStyles.prototype =
}
}
};
CStyles.prototype.GetDefaultFootnoteText = function()
{
return this.Default.FootnoteText;
};
CStyles.prototype.GetDefaultFootnoteTextChar = function()
{
return this.Default.FootnoteTextChar;
};
CStyles.prototype.GetDefaultFootnoteReference = function()
{
return this.Default.FootnoteReference;
};
function CDocumentColor(r,g,b, Auto)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment