Commit 58bf3546 authored by Ilya Kirillov's avatar Ilya Kirillov

Working on Remove function.

parent 47f34d0f
This diff is collapsed.
This diff is collapsed.
......@@ -400,6 +400,21 @@ CDocumentContentElementBase.prototype.AddInlineImage = function(W, H, Img, Chart
CDocumentContentElementBase.prototype.AddOleObject = function(W, H, nWidthPix, nHeightPix, Img, Data, sApplicationId)
{
};
CDocumentContentElementBase.prototype.Remove = function(nCount, bOnlyText, bRemoveOnlySelection, bOnAddText)
{
};
CDocumentContentElementBase.prototype.Set_ReviewType = function(ReviewType)
{
};
CDocumentContentElementBase.prototype.Get_ReviewType = function()
{
return reviewtype_Common;
};
CDocumentContentElementBase.prototype.Is_Empty = function()
{
return true;
};
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы с номерами страниц
//----------------------------------------------------------------------------------------------------------------------
......@@ -490,6 +505,22 @@ CDocumentContentElementBase.prototype.SetSelectionState2 = function(State)
{
return this.Set_SelectionState2(State);
};
CDocumentContentElementBase.prototype.IsSelectionEmpty = function(isCheckHidden)
{
return this.Selection_IsEmpty(isCheckHidden);
};
CDocumentContentElementBase.prototype.SetReviewType = function(ReviewType)
{
this.Set_ReviewType(ReviewType);
};
CDocumentContentElementBase.prototype.GetReviewType = function()
{
return this.Get_ReviewType();
};
CDocumentContentElementBase.prototype.IsEmpty = function()
{
return this.Is_Empty();
};
//--------------------------------------------------------export--------------------------------------------------------
window['AscCommonWord'] = window['AscCommonWord'] || {};
......
......@@ -7016,7 +7016,7 @@ Paragraph.prototype.Get_Paragraph_ParaPr = function()
/**
* Проверяем пустой ли параграф
*/
Paragraph.prototype.IsEmpty = function(Props)
Paragraph.prototype.Is_Empty = function(Props)
{
var Pr = {SkipEnd : true};
......@@ -7035,10 +7035,6 @@ Paragraph.prototype.IsEmpty = function(Props)
return true;
};
Paragraph.prototype.Is_Empty = function()
{
return this.IsEmpty();
};
/**
* Проверяем, попали ли мы в текст
*/
......
......@@ -315,6 +315,14 @@ CBlockLevelSdt.prototype.AddOleObject = function(W, H, nWidthPix, nHeightPix, Im
{
this.Content.AddOleObject(W, H, nWidthPix, nHeightPix, Img, Data, sApplicationId);
};
CBlockLevelSdt.prototype.Remove = function(nCount, bOnlyText, bRemoveOnlySelection, bOnAddText)
{
return this.Content.Remove(nCount, bOnlyText, bRemoveOnlySelection, bOnlyText);
};
CBlockLevelSdt.prototype.Is_Empty = function()
{
return this.Content.Is_Empty();
};
//----------------------------------------------------------------------------------------------------------------------
CBlockLevelSdt.prototype.Is_HdrFtr = function(bReturnHdrFtr)
{
......@@ -328,6 +336,10 @@ CBlockLevelSdt.prototype.Is_Cell = function()
{
return this.Parent.Is_TableCellContent();
};
CBlockLevelSdt.prototype.Is_DrawingShape = function()
{
return this.Parent.Is_DrawingShape();
};
CBlockLevelSdt.prototype.Get_Numbering = function()
{
return this.LogicDocument.Get_Numbering();
......
......@@ -12090,6 +12090,13 @@ CTable.prototype.CanUpdateTarget = function(CurPage)
return oCell.Content.CanUpdateTarget(CurPage - oCell.Content.Get_StartPage_Relative());
};
CTable.prototype.IsCellSelection = function()
{
if (true === this.IsSelectionUse() && table_Selection_Cell === this.Selection.Type)
return true;
return false;
};
//----------------------------------------------------------------------------------------------------------------------
// Класс CTableLook
//----------------------------------------------------------------------------------------------------------------------
......
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