Commit 7eb4f5d0 authored by Alexey.Musinov's avatar Alexey.Musinov

mobile-coautoring

parent 1ffc2893
......@@ -2708,4 +2708,52 @@ namespace NSEditorApi
};
}
namespace NSEditorApi
{
class CAscUser : public IMenuEventDataBase
{
public:
CAscUser()
{
}
virtual ~CAscUser()
{
}
LINK_PROPERTY_STRING_JS(Id)
LINK_PROPERTY_STRING_JS(FirstName)
LINK_PROPERTY_STRING_JS(LastName)
LINK_PROPERTY_STRING_JS(UserName)
LINK_PROPERTY_BOOL_JS(IsView)
LINK_PROPERTY_OBJECT_JS(CAscColor, Color)
private:
js_wrapper<std::wstring> m_sId;
js_wrapper<std::wstring> m_sFirstName;
js_wrapper<std::wstring> m_sLastName;
js_wrapper<std::wstring> m_sUserName;
js_wrapper<bool> m_bIsView;
js_wrapper<CAscColor> m_oColor;
};
class CAscUsers : public IMenuEventDataBase
{
public:
CAscUsers()
{
}
virtual ~CAscUsers()
{
}
inline std::vector<CAscUser>& GetUsers() {return m_oUsers;}
inline void AddUser(const CAscUser& oSheet) {m_oUsers.push_back(oSheet);}
private:
std::vector<CAscUser> m_oUsers;
};
}
#endif //_BUILD_EDITOR_API_CROSSPLATFORM_H_
......@@ -748,5 +748,7 @@
#define ASC_MENU_EVENT_TYPE_COLOR_SCHEMES 2404 // CAscColorSchemes
#define ASC_MENU_EVENT_TYPE_CHANGE_COLOR_SCHEME 2415 // SET(int)
#define ASC_MENU_EVENT_TYPE_AUTH_PARTICIPANTS_CHANGED 2416
#endif //_BUILD_EDITOR_DEFINES_CROSSPLATFORM_H_
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