Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
a2016d3f
Commit
a2016d3f
authored
Jul 13, 2016
by
alexey.musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color schemas event
parent
3764e14b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
DesktopEditor/Word_Api/Editor_Api.h
DesktopEditor/Word_Api/Editor_Api.h
+54
-0
DesktopEditor/Word_Api/Editor_Defines.h
DesktopEditor/Word_Api/Editor_Defines.h
+5
-0
No files found.
DesktopEditor/Word_Api/Editor_Api.h
View file @
a2016d3f
...
...
@@ -2476,6 +2476,60 @@ namespace NSEditorApi
{
}
};
class
CAscSColorScheme
:
public
IMenuEventDataBase
{
public:
CAscSColorScheme
()
{
}
virtual
~
CAscSColorScheme
()
{
for
(
std
::
vector
<
CAscColor
*>::
iterator
i
=
m_arColors
.
begin
();
i
!=
m_arColors
.
end
();
++
i
)
{
CAscColor
*
data
=
*
i
;
if
(
NULL
!=
data
)
data
->
Release
();
}
}
LINK_PROPERTY_STRING_JS
(
Name
);
inline
std
::
vector
<
CAscColor
*>&
GetColors
()
{
return
m_arColors
;}
inline
void
AddColor
(
CAscColor
*
color
)
{
m_arColors
.
push_back
(
color
);}
private:
js_wrapper
<
std
::
wstring
>
m_sName
;
std
::
vector
<
CAscColor
*>
m_arColors
;
};
class
CAscColorSchemes
:
public
IMenuEventDataBase
{
public:
CAscColorSchemes
()
{
}
virtual
~
CAscColorSchemes
()
{
for
(
std
::
vector
<
CAscSColorScheme
*>::
iterator
i
=
m_arSchemes
.
begin
();
i
!=
m_arSchemes
.
end
();
++
i
)
{
CAscSColorScheme
*
data
=
*
i
;
if
(
NULL
!=
data
)
data
->
Release
();
}
}
inline
std
::
vector
<
CAscSColorScheme
*>&
GetSchemes
()
{
return
m_arSchemes
;}
inline
void
AddScheme
(
CAscSColorScheme
*
oScheme
)
{
m_arSchemes
.
push_back
(
oScheme
);}
private:
std
::
vector
<
CAscSColorScheme
*>
m_arSchemes
;
};
}
namespace
NSEditorApi
...
...
DesktopEditor/Word_Api/Editor_Defines.h
View file @
a2016d3f
...
...
@@ -738,4 +738,9 @@
#define ASC_MENU_EVENT_TYPE_ERROR 500
#define ASC_MENU_EVENT_TYPE_COLOR_SCHEMES 2404 // CAscColorSchemes
#define ASC_MENU_EVENT_TYPE_CHANGE_COLOR_SCHEME 2415 // SET(int)
#endif //_BUILD_EDITOR_DEFINES_CROSSPLATFORM_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment