Commit 36c17c9b authored by SergeyLuzyanin's avatar SergeyLuzyanin

notes

parent 37458723
...@@ -42,7 +42,7 @@ var History = AscCommon.History; ...@@ -42,7 +42,7 @@ var History = AscCommon.History;
DrawingObjectsController.prototype.getTheme = function() DrawingObjectsController.prototype.getTheme = function()
{ {
return this.drawingObjects.Layout.Master.Theme; return this.drawingObjects.getTheme();
}; };
DrawingObjectsController.prototype.getDrawingArray = function() DrawingObjectsController.prototype.getDrawingArray = function()
...@@ -81,6 +81,13 @@ DrawingObjectsController.prototype.getColorMap = function() ...@@ -81,6 +81,13 @@ DrawingObjectsController.prototype.getColorMap = function()
} }
} }
} }
else if(this.drawingObjects.Master )
{
if(this.drawingObjects.Master.clrMap)
{
return this.drawingObjects.Master.clrMap;
}
}
} }
return AscFormat.G_O_DEFAULT_COLOR_MAP; return AscFormat.G_O_DEFAULT_COLOR_MAP;
}; };
...@@ -157,11 +164,6 @@ DrawingObjectsController.prototype.getDrawingDocument = function() ...@@ -157,11 +164,6 @@ DrawingObjectsController.prototype.getDrawingDocument = function()
{ {
return editor.WordControl.m_oDrawingDocument; return editor.WordControl.m_oDrawingDocument;
}; };
DrawingObjectsController.prototype.getTheme = function()
{
return this.drawingObjects.Layout.Master.Theme;
};
DrawingObjectsController.prototype.onMouseDown = function(e, x, y) DrawingObjectsController.prototype.onMouseDown = function(e, x, y)
{ {
...@@ -299,6 +301,9 @@ DrawingObjectsController.prototype.editChart = function(binary) ...@@ -299,6 +301,9 @@ DrawingObjectsController.prototype.editChart = function(binary)
DrawingObjectsController.prototype.handleSlideComments = function(e, x, y, pageIndex) DrawingObjectsController.prototype.handleSlideComments = function(e, x, y, pageIndex)
{ {
if(!this.drawingObjects.slideComments){
return;
}
var comments = this.drawingObjects.slideComments.comments, i, index_selected = -1; var comments = this.drawingObjects.slideComments.comments, i, index_selected = -1;
var ret = {result: null, selectedIndex: -1}; var ret = {result: null, selectedIndex: -1};
if(this.handleEventMode === HANDLE_EVENT_MODE_HANDLE) if(this.handleEventMode === HANDLE_EVENT_MODE_HANDLE)
......
...@@ -178,6 +178,15 @@ ...@@ -178,6 +178,15 @@
} }
}; };
CNotes.prototype.getDrawingDocument = function()
{
return editor.WordControl.m_oDrawingDocument;
};
CNotes.prototype.getTheme = function(){
return this.Master.Theme;
};
function CreateNotes(){ function CreateNotes(){
var oN = new CNotes(); var oN = new CNotes();
var oSp = new AscFormat.CShape(); var oSp = new AscFormat.CShape();
......
This diff is collapsed.
...@@ -1102,6 +1102,10 @@ Slide.prototype = ...@@ -1102,6 +1102,10 @@ Slide.prototype =
} }
}, },
getTheme: function(){
return this.Layout.Master.Theme;
},
drawSelect: function(_type) drawSelect: function(_type)
{ {
if (_type === undefined) if (_type === undefined)
......
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