Commit 5deccbfa authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

ChartStyleManager для презентаций

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49603 954022d7-b5bf-4e40-9824-e11837661b57
parent a8c2b0db
...@@ -52,7 +52,7 @@ function ChartStyleManager() { ...@@ -52,7 +52,7 @@ function ChartStyleManager() {
// Methods // Methods
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
_this.init = function() { _this.init = function(theme, colorScheme) {
_this.colorMap = []; _this.colorMap = [];
var api_doc = window["editor"]; var api_doc = window["editor"];
...@@ -64,8 +64,8 @@ function ChartStyleManager() { ...@@ -64,8 +64,8 @@ function ChartStyleManager() {
themeColors = getDocColors(api_doc); themeColors = getDocColors(api_doc);
function getDocColors(api) { function getDocColors(api) {
var _theme = api.WordControl.m_oLogicDocument.theme; var _theme = theme ? theme : api.WordControl.m_oLogicDocument.theme;
var _clrMap = api.WordControl.m_oLogicDocument.clrSchemeMap.color_map; var _clrMap = colorScheme ? colorScheme : api.WordControl.m_oLogicDocument.clrSchemeMap.color_map;
var arr_colors = new Array(10); var arr_colors = new Array(10);
var rgba = {R:0, G:0, B:0, A:255}; var rgba = {R:0, G:0, B:0, A:255};
......
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