Commit 44f714e2 authored by Ilya Kirillov's avatar Ilya Kirillov

Рефакторинг и первоначальная реализация для сносок функций выставления...

Рефакторинг и первоначальная реализация для сносок функций выставления настроек картинок и таблиц и получения настроек параграфа и текста.
parent 9cb5bf3b
This diff is collapsed.
...@@ -441,7 +441,36 @@ CDocumentControllerBase.prototype.IncreaseOrDecreaseParagraphFontSize = function ...@@ -441,7 +441,36 @@ CDocumentControllerBase.prototype.IncreaseOrDecreaseParagraphFontSize = function
* @param {boolean} bIncrease * @param {boolean} bIncrease
*/ */
CDocumentControllerBase.prototype.IncreaseOrDecreaseParagraphIndent = function(bIncrease){}; CDocumentControllerBase.prototype.IncreaseOrDecreaseParagraphIndent = function(bIncrease){};
/**
* Устанавливаем настройки для изображений.
* @param Props
*/
CDocumentControllerBase.prototype.SetImageProps = function(Props){};
/**
* Устанавливаем настройки для таблиц.
* @param Props
*/
CDocumentControllerBase.prototype.SetTableProps = function(Props){};
/**
* Получаем текущие настройки параграфа.
* @returns {CParaPr}
*/
CDocumentControllerBase.prototype.GetCurrentParaPr = function(){var oParaPr = new CParaPr(); oParaPr.Init_Default(); return oParaPr};
/**
* Получаем текущие настройки текста.
* @returns {CTextPr}
*/
CDocumentControllerBase.prototype.GetCurrentTextPr = function(){var oTextPr = new CTextPr(); oTextPr.Init_Default(); return oTextPr};
/**
* Получаем прямые настройки параграфа.
* @returns {CParaPr}
*/
CDocumentControllerBase.prototype.GetDirectParaPr = function(){var oParaPr = new CParaPr(); oParaPr.Init_Default(); return oParaPr};
/**
* Получаем прямые настройки текста.
* @returns {CTextPr}
*/
CDocumentControllerBase.prototype.GetDirectTextPr = function(){var oTextPr = new CTextPr(); oTextPr.Init_Default(); return oTextPr};
/** /**
* Добавляем элемент в параграф. * Добавляем элемент в параграф.
* @param oItem * @param oItem
......
...@@ -237,6 +237,30 @@ CDrawingsController.prototype.IncreaseOrDecreaseParagraphIndent = function(bIncr ...@@ -237,6 +237,30 @@ CDrawingsController.prototype.IncreaseOrDecreaseParagraphIndent = function(bIncr
this.DrawingObjects.paragraphIncDecIndent(bIncrease); this.DrawingObjects.paragraphIncDecIndent(bIncrease);
} }
}; };
CDrawingsController.prototype.SetImageProps = function(Props)
{
this.DrawingObjects.setProps(Props);
};
CDrawingsController.prototype.SetTableProps = function(Props)
{
this.DrawingObjects.setTableProps(Props);
};
CDrawingsController.prototype.GetCurrentParaPr = function()
{
return this.DrawingObjects.getParagraphParaPr();
};
CDrawingsController.prototype.GetCurrentTextPr = function()
{
return this.DrawingObjects.getParagraphTextPr();
};
CDrawingsController.prototype.GetDirectParaPr = function()
{
return this.DrawingObjects.getParagraphParaPrCopy();
};
CDrawingsController.prototype.GetDirectTextPr = function()
{
return this.DrawingObjects.getParagraphTextPrCopy();
};
CDrawingsController.prototype.AddToParagraph = function(oItem, bRecalculate) CDrawingsController.prototype.AddToParagraph = function(oItem, bRecalculate)
{ {
......
...@@ -715,6 +715,86 @@ CFootnotesController.prototype.IncreaseOrDecreaseParagraphIndent = function(bInc ...@@ -715,6 +715,86 @@ CFootnotesController.prototype.IncreaseOrDecreaseParagraphIndent = function(bInc
this.CurFootnote.Paragraph_IncDecIndent(bIncrease); this.CurFootnote.Paragraph_IncDecIndent(bIncrease);
} }
}; };
CFootnotesController.prototype.SetImageProps = function(Props)
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
this.CurFootnote.Set_ImageProps(Props);
}
};
CFootnotesController.prototype.SetTableProps = function(Props)
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
this.CurFootnote.Set_TableProps(Props);
}
};
CFootnotesController.prototype.GetCurrentParaPr = function()
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
return this.CurFootnote.Get_Paragraph_ParaPr();
}
return null;
};
CFootnotesController.prototype.GetCurrentTextPr = function()
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
return this.CurFootnote.Get_Paragraph_ParaPr();
}
return null;
};
CFootnotesController.prototype.GetDirectParaPr = function()
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
return this.CurFootnote.Get_Paragraph_ParaPr_Copy();
}
return null;
};
CFootnotesController.prototype.GetDirectTextPr = function()
{
// TODO: Доделать селект и курсор
if (true === this.Selection.Use)
{
}
else
{
if (null !== this.CurFootnote)
return this.CurFootnote.Get_Paragraph_TextPr_Copy();
}
return null;
};
CFootnotesController.prototype.AddToParagraph = function(oItem, bRecalculate) CFootnotesController.prototype.AddToParagraph = function(oItem, bRecalculate)
{ {
...@@ -729,6 +809,7 @@ CFootnotesController.prototype.AddToParagraph = function(oItem, bRecalculate) ...@@ -729,6 +809,7 @@ CFootnotesController.prototype.AddToParagraph = function(oItem, bRecalculate)
} }
}; };
function CFootEndnotePage() function CFootEndnotePage()
{ {
this.X = 0; this.X = 0;
......
...@@ -193,6 +193,30 @@ CHdrFtrController.prototype.IncreaseOrDecreaseParagraphIndent = function(bIncrea ...@@ -193,6 +193,30 @@ CHdrFtrController.prototype.IncreaseOrDecreaseParagraphIndent = function(bIncrea
{ {
this.HdrFtr.Paragraph_IncDecIndent(bIncrease); this.HdrFtr.Paragraph_IncDecIndent(bIncrease);
}; };
CHdrFtrController.prototype.SetImageProps = function(Props)
{
this.HdrFtr.Set_ImageProps(Props);
};
CHdrFtrController.prototype.SetTableProps = function(Props)
{
this.HdrFtr.Set_TableProps(Props);
};
CHdrFtrController.prototype.GetCurrentParaPr = function()
{
return this.HdrFtr.Get_Paragraph_ParaPr();
};
CHdrFtrController.prototype.GetCurrentTextPr = function()
{
return this.HdrFtr.Get_Paragraph_TextPr();
};
CHdrFtrController.prototype.GetDirectParaPr = function()
{
return this.HdrFtr.Get_Paragraph_ParaPr_Copy();
};
CHdrFtrController.prototype.GetDirectTextPr = function()
{
return this.HdrFtr.Get_Paragraph_TextPr_Copy();
};
CHdrFtrController.prototype.AddToParagraph = function(oItem, bRecalculate) CHdrFtrController.prototype.AddToParagraph = function(oItem, bRecalculate)
......
...@@ -169,6 +169,30 @@ CLogicDocumentController.prototype.IncreaseOrDecreaseParagraphIndent = function( ...@@ -169,6 +169,30 @@ CLogicDocumentController.prototype.IncreaseOrDecreaseParagraphIndent = function(
{ {
this.LogicDocument.controller_IncreaseOrDecreaseParagraphIndent(bIncrease); this.LogicDocument.controller_IncreaseOrDecreaseParagraphIndent(bIncrease);
}; };
CLogicDocumentController.prototype.SetImageProps = function(Props)
{
this.LogicDocument.controller_SetImageProps(Props);
};
CLogicDocumentController.prototype.SetTableProps = function(Props)
{
this.LogicDocument.controller_SetTableProps(Props);
};
CLogicDocumentController.prototype.GetCurrentParaPr = function()
{
return this.LogicDocument.controller_GetCurrentParaPr();
};
CLogicDocumentController.prototype.GetCurrentTextPr = function()
{
return this.LogicDocument.controller_GetCurrentTextPr();
};
CLogicDocumentController.prototype.GetDirectParaPr = function()
{
return this.LogicDocument.controller_GetDirectParaPr();
};
CLogicDocumentController.prototype.GetDirectTextPr = function()
{
return this.LogicDocument.controller_GetDirectTextPr();
};
CLogicDocumentController.prototype.AddToParagraph = function(oItem) CLogicDocumentController.prototype.AddToParagraph = function(oItem)
......
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