Sidebar-Office.js 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401
  1. (function()
  2. {
  3. // Adds mockup shapes
  4. Sidebar.prototype.addOfficePalette = function()
  5. {
  6. this.setCurrentSearchEntryLibrary('office', 'officeClouds');
  7. this.addOfficeCloudsPalette();
  8. this.setCurrentSearchEntryLibrary('office', 'officeCommunications');
  9. this.addOfficeCommunicationsPalette();
  10. this.setCurrentSearchEntryLibrary('office', 'officeConcepts');
  11. this.addOfficeConceptsPalette();
  12. this.setCurrentSearchEntryLibrary('office', 'officeDatabases');
  13. this.addOfficeDatabasesPalette();
  14. this.setCurrentSearchEntryLibrary('office', 'officeDevices');
  15. this.addOfficeDevicesPalette();
  16. this.setCurrentSearchEntryLibrary('office', 'officeSecurity');
  17. this.addOfficeSecurityPalette();
  18. this.setCurrentSearchEntryLibrary('office', 'officeServers');
  19. this.addOfficeServersPalette();
  20. this.setCurrentSearchEntryLibrary('office', 'officeServices');
  21. this.addOfficeServicesPalette();
  22. this.setCurrentSearchEntryLibrary('office', 'officeSites');
  23. this.addOfficeSitesPalette();
  24. this.setCurrentSearchEntryLibrary('office', 'officeUsers');
  25. this.addOfficeUsersPalette();
  26. this.setCurrentSearchEntryLibrary();
  27. };
  28. Sidebar.prototype.addOfficeCloudsPalette = function()
  29. {
  30. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.';
  31. var s2 = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.';
  32. // Space savers
  33. var sb = this;
  34. var gn = 'mxgraph.office.clouds';
  35. var dt = 'office cloud ';
  36. var w = 1.0;
  37. var h = 1.0;
  38. var fns =
  39. [
  40. this.createVertexTemplateEntry(s + 'azure;',
  41. w * 103, h * 66, '', 'Azure', null, null, this.getTagsForStencil(gn, 'azure', dt).join(' ')),
  42. this.createVertexTemplateEntry(s + 'cloud;',
  43. w * 94, h * 55, '', 'Cloud', null, null, this.getTagsForStencil(gn, 'cloud', dt).join(' ')),
  44. this.createVertexTemplateEntry(s + 'cloud_disaster;',
  45. w * 94, h * 74, '', 'Cloud Disaster', null, null, this.getTagsForStencil(gn, 'cloud disaster', dt).join(' ')),
  46. this.createVertexTemplateEntry(s2 + 'cloud_disaster;fillColor=#ff0000;',
  47. w * 94, h * 74, '', 'Cloud Disaster (Red)', null, null, this.getTagsForStencil(gn, 'cloud disaster', dt).join(' ')),
  48. this.createVertexTemplateEntry(s + 'cloud_exchange_online;',
  49. w * 100, h * 61, '', 'Cloud Exchange Online', null, null, this.getTagsForStencil(gn, 'cloud exchange online', dt).join(' ')),
  50. this.createVertexTemplateEntry(s + 'cloud_service_request;',
  51. w * 102, h * 80, '', 'Cloud Service Request', null, null, this.getTagsForStencil(gn, 'cloud service request', dt).join(' ')),
  52. this.createVertexTemplateEntry(s + 'cloud_sharepoint;',
  53. w * 101, h * 61, '', 'Cloud SharePoint', null, null, this.getTagsForStencil(gn, 'cloud sharepoint', dt).join(' ')),
  54. this.createVertexTemplateEntry(s + 'office_365;',
  55. w * 101, h * 61, '', 'Office 365', null, null, this.getTagsForStencil(gn, 'office 365', dt).join(' ')),
  56. this.createVertexTemplateEntry(s + 'online_backup;',
  57. w * 94, h * 101, '', 'Online Backup', null, null, this.getTagsForStencil(gn, 'online backup', dt).join(' ')),
  58. this.createVertexTemplateEntry(s + 'online_user;',
  59. w * 93, h * 74, '', 'Online User', null, null, this.getTagsForStencil(gn, 'online user', dt).join(' ')),
  60. this.createVertexTemplateEntry(s + 'private_cloud;',
  61. w * 94, h * 55, '', 'Private Cloud', null, null, this.getTagsForStencil(gn, 'private cloud', dt).join(' ')),
  62. this.createVertexTemplateEntry(s + 'public_cloud;',
  63. w * 101, h * 81, '', 'Public Cloud', null, null, this.getTagsForStencil(gn, 'public cloud', dt).join(' ')),
  64. this.createVertexTemplateEntry(s + 'public_im_cloud_service;',
  65. w * 102, h * 99, '', 'Public IM Cloud Service', null, null, this.getTagsForStencil(gn, 'public im instant message cloud service', dt).join(' '))
  66. ];
  67. this.addPalette('officeClouds', 'Office / Clouds', false, mxUtils.bind(this, function(content)
  68. {
  69. for (var i = 0; i < fns.length; i++)
  70. {
  71. content.appendChild(fns[i](content));
  72. }
  73. }));
  74. };
  75. Sidebar.prototype.addOfficeCommunicationsPalette = function()
  76. {
  77. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.communications.';
  78. // Space savers
  79. var sb = this;
  80. var gn = 'mxgraph.office.communications';
  81. var dt = 'office communication ';
  82. var w = 1.0;
  83. var h = 1.0;
  84. var fns =
  85. [
  86. this.createVertexTemplateEntry(s + '3rd_party_call_center_solution;',
  87. w * 98, h * 101, '', '3rd Party Call Center Solution', null, null, this.getTagsForStencil(gn, '3rd party call center solution', dt).join(' ')),
  88. this.createVertexTemplateEntry(s + '3rd_party_integration;',
  89. w * 54, h * 55, '', '3rd Party Integration', null, null, this.getTagsForStencil(gn, '3rd party integration', dt).join(' ')),
  90. this.createVertexTemplateEntry(s + '3rd_party_service;',
  91. w * 53, h * 54, '', '3rd Party Service', null, null, this.getTagsForStencil(gn, '3rd party service', dt).join(' ')),
  92. this.createVertexTemplateEntry(s + 'application_sharing_workload;',
  93. w * 57, h * 49, '', 'Application Sharing Workload', null, null, this.getTagsForStencil(gn, 'application sharing workload', dt).join(' ')),
  94. this.createVertexTemplateEntry(s + 'audio_conferencing_application;',
  95. w * 59, h * 46, '', 'Audio Conferencing Application', null, null, this.getTagsForStencil(gn, 'audio_conferencing_application', dt).join(' ')),
  96. this.createVertexTemplateEntry(s + 'central_management_service;',
  97. w * 52, h * 55, '', 'Central Management Service', null, null, this.getTagsForStencil(gn, 'central management service', dt).join(' ')),
  98. this.createVertexTemplateEntry(s + 'chat_room;',
  99. w * 46, h * 48, '', 'Chat Room', null, null, this.getTagsForStencil(gn, 'chat room', dt).join(' ')),
  100. this.createVertexTemplateEntry(s + 'conference_announcement_service;',
  101. w * 60, h * 60, '', 'Conference Announcement Service', null, null, this.getTagsForStencil(gn, 'conference announcement service', dt).join(' ')),
  102. this.createVertexTemplateEntry(s + 'disconnected_mailbox;',
  103. w * 60, h * 55, '', 'Disconnected Mailbox', null, null, this.getTagsForStencil(gn, 'disconnected mailbox', dt).join(' ')),
  104. this.createVertexTemplateEntry(s + 'discovery_search_mailbox;',
  105. w * 55, h * 49, '', 'Discovery Search Mailbox', null, null, this.getTagsForStencil(gn, 'discovery search mailbox', dt).join(' ')),
  106. this.createVertexTemplateEntry(s + 'dynamic_distribution_group;',
  107. w * 58, h * 59, '', 'Dynamic Distribution Group', null, null, this.getTagsForStencil(gn, 'dynamic distribution group', dt).join(' ')),
  108. this.createVertexTemplateEntry(s + 'edge_subscription;',
  109. w * 57, h * 59, '', 'Edge Subscription', null, null, this.getTagsForStencil(gn, 'edge subscription', dt).join(' ')),
  110. this.createVertexTemplateEntry(s + 'email_workloaad;',
  111. w * 57, h * 47, '', 'Email Workloaad', null, null, this.getTagsForStencil(gn, 'email workloaad', dt).join(' ')),
  112. this.createVertexTemplateEntry(s + 'equipment_mailbox;',
  113. w * 59, h * 59, '', 'Equipment Mailbox', null, null, this.getTagsForStencil(gn, 'equipment mailbox', dt).join(' ')),
  114. this.createVertexTemplateEntry(s + 'exchange_active_sync;',
  115. w * 49, h * 49, '', 'Exchange Active Sync', null, null, this.getTagsForStencil(gn, 'exchange_active_sync', dt).join(' ')),
  116. this.createVertexTemplateEntry(s + 'exchange_active_sync;fillColor=#2072B8;',
  117. w * 49, h * 49, '', 'Exchange Active Sync - Blue', null, null, this.getTagsForStencil(gn, 'exchange_active_sync', dt).join(' ')),
  118. this.createVertexTemplateEntry(s + 'fax_partner;',
  119. w * 45, h * 56, '', 'Fax Partner', null, null, this.getTagsForStencil(gn, 'fax partner', dt).join(' ')),
  120. this.createVertexTemplateEntry(s + 'global_address_list;',
  121. w * 59, h * 53, '', 'Global Address List', null, null, this.getTagsForStencil(gn, 'global address list', dt).join(' ')),
  122. this.createVertexTemplateEntry(s + 'hybrid_voip_gateway;',
  123. w * 59, h * 38, '', 'Hybrid VOIP Gateway', null, null, this.getTagsForStencil(gn, 'hybrid voip gateway', dt).join(' ')),
  124. this.createVertexTemplateEntry(s + 'im_workload;',
  125. w * 56, h * 54, '', 'IM Workload', null, null, this.getTagsForStencil(gn, 'im workload instant message', dt).join(' ')),
  126. this.createVertexTemplateEntry(s + 'journaling_rule;',
  127. w * 52, h * 58, '', 'Journaling Rule', null, null, this.getTagsForStencil(gn, 'journaling rule', dt).join(' ')),
  128. this.createVertexTemplateEntry(s + 'local_move_request;',
  129. w * 57, h * 57, '', 'Local Move Request', null, null, this.getTagsForStencil(gn, 'local move request', dt).join(' ')),
  130. this.createVertexTemplateEntry(s + 'lync_control_panel;',
  131. w * 69, h * 58, '', 'Lync Control Panel', null, null, this.getTagsForStencil(gn, 'lync control panel', dt).join(' ')),
  132. this.createVertexTemplateEntry(s + 'lync_phone_edition;',
  133. w * 80, h * 45, '', 'Lync Phone Edition', null, null, this.getTagsForStencil(gn, 'lync phone edition', dt).join(' ')),
  134. this.createVertexTemplateEntry(s + 'lync_room_system;',
  135. w * 80, h * 42, '', 'Lync Room System', null, null, this.getTagsForStencil(gn, 'lync room system', dt).join(' ')),
  136. this.createVertexTemplateEntry(s + 'lync_server_management_tool;',
  137. w * 75, h * 47, '', 'Lync Server Management Tool', null, null, this.getTagsForStencil(gn, 'lync server management tool', dt).join(' ')),
  138. this.createVertexTemplateEntry(s + 'lync_storage_service;',
  139. w * 66, h * 59, '', 'Lync Storage Service', null, null, this.getTagsForStencil(gn, 'lync storage service', dt).join(' ')),
  140. this.createVertexTemplateEntry(s + 'lync_web_app_client;',
  141. w * 83, h * 50, '', 'Lync Web App Client', null, null, this.getTagsForStencil(gn, 'lync web app client', dt).join(' ')),
  142. this.createVertexTemplateEntry(s + 'mail_enabled_public_folder;',
  143. w * 58, h * 52, '', 'Mail-Enabled Public Folder', null, null, this.getTagsForStencil(gn, 'mail enabled public folder', dt).join(' ')),
  144. this.createVertexTemplateEntry(s + 'mailbox_assistant;',
  145. w * 59, h * 57, '', 'Mailbox Assistant', null, null, this.getTagsForStencil(gn, 'mailbox assistant', dt).join(' ')),
  146. this.createVertexTemplateEntry(s + 'messages_queued;',
  147. w * 59, h * 57, '', 'Messages Queued', null, null, this.getTagsForStencil(gn, 'messages queued', dt).join(' ')),
  148. this.createVertexTemplateEntry(s + 'offline_address_book;',
  149. w * 59, h * 53, '', 'Offline Address Book', null, null, this.getTagsForStencil(gn, 'offline address book', dt).join(' ')),
  150. this.createVertexTemplateEntry(s + 'personal_archive_mailbox;',
  151. w * 59, h * 58, '', 'Personal Archive Mailbox', null, null, this.getTagsForStencil(gn, 'personal archive mailbox', dt).join(' ')),
  152. this.createVertexTemplateEntry(s + 'public_im_cloud_service;',
  153. w * 60, h * 58, '', 'Public IM Cloud Service', null, null, this.getTagsForStencil(gn, 'public im cloud service instant message', dt).join(' ')),
  154. this.createVertexTemplateEntry(s + 'push_notification_service;',
  155. w * 50, h * 58, '', 'Push Notification Service', null, null, this.getTagsForStencil(gn, 'push notification service', dt).join(' ')),
  156. this.createVertexTemplateEntry(s + 'queue_viewer;',
  157. w * 59, h * 57, '', 'Queue Viewer', null, null, this.getTagsForStencil(gn, 'queue viewer', dt).join(' ')),
  158. this.createVertexTemplateEntry(s + 'remote_mailbox;',
  159. w * 59, h * 57, '', 'Remote Mailbox', null, null, this.getTagsForStencil(gn, 'remote mailbox', dt).join(' ')),
  160. this.createVertexTemplateEntry(s + 'remote_move_request;',
  161. w * 60, h * 57, '', 'Remote Move Request', null, null, this.getTagsForStencil(gn, 'remote move request', dt).join(' ')),
  162. this.createVertexTemplateEntry(s + 'response_group;',
  163. w * 58, h * 54, '', 'Response Group', null, null, this.getTagsForStencil(gn, 'response group', dt).join(' ')),
  164. this.createVertexTemplateEntry(s + 'room_mailbox;',
  165. w * 60, h * 57, '', 'Room Mailbox', null, null, this.getTagsForStencil(gn, 'room mailbox', dt).join(' ')),
  166. this.createVertexTemplateEntry(s + 'shared_mailbox;',
  167. w * 60, h * 55, '', 'Shared Mailbox', null, null, this.getTagsForStencil(gn, 'shared mailbox', dt).join(' ')),
  168. this.createVertexTemplateEntry(s + 'sip_uri_um_dial_plan;',
  169. w * 55, h * 56, '', 'SIP URI UM Dial Plan', null, null, this.getTagsForStencil(gn, 'sip uri um dial plan', dt).join(' ')),
  170. this.createVertexTemplateEntry(s + 'site_mailbox;',
  171. w * 59, h * 54, '', 'Site Mailbox', null, null, this.getTagsForStencil(gn, 'site mailbox', dt).join(' ')),
  172. this.createVertexTemplateEntry(s + 'skype_for_business_control_panel;',
  173. w * 65, h * 59, '', 'Skype for Business Control Panel', null, null, this.getTagsForStencil(gn, 'skype for business control panel', dt).join(' ')),
  174. this.createVertexTemplateEntry(s + 'skype_for_business_phone_edition;',
  175. w * 76, h * 45, '', 'Skype for Business Phone Edition', null, null, this.getTagsForStencil(gn, 'skype for business phone edition', dt).join(' ')),
  176. this.createVertexTemplateEntry(s + 'skype_for_business_room_system;',
  177. w * 74, h * 41, '', 'Skype for Business Room System', null, null, this.getTagsForStencil(gn, 'skype for business room system', dt).join(' ')),
  178. this.createVertexTemplateEntry(s + 'skype_for_business_server_management_tool;',
  179. w * 72, h * 48, '', 'Skype for Business Server Management Tool', null, null, this.getTagsForStencil(gn, 'skype for business server management tool', dt).join(' ')),
  180. this.createVertexTemplateEntry(s + 'skype_for_business_storage_service;',
  181. w * 62, h * 58, '', 'Skype for Business Storage Service', null, null, this.getTagsForStencil(gn, 'skype for business storage service', dt).join(' ')),
  182. this.createVertexTemplateEntry(s + 'skype_for_business_web_app_client;',
  183. w * 80, h * 51, '', 'Skype for Business Web App Client', null, null, this.getTagsForStencil(gn, 'skype for business web app client', dt).join(' ')),
  184. this.createVertexTemplateEntry(s + 'sms_gateway;',
  185. w * 59, h * 37, '', 'SMS Gateway', null, null, this.getTagsForStencil(gn, 'sms gateway', dt).join(' ')),
  186. this.createVertexTemplateEntry(s + 'smtp_connector;',
  187. w * 47, h * 49, '', 'SMTP Connector', null, null, this.getTagsForStencil(gn, 'smtp connector', dt).join(' ')),
  188. this.createVertexTemplateEntry(s + 'system_mailbox;',
  189. w * 58, h * 55, '', 'System Mailbox', null, null, this.getTagsForStencil(gn, 'system mailbox', dt).join(' ')),
  190. this.createVertexTemplateEntry(s + 'tdm_pbx;',
  191. w * 59, h * 46, '', 'TDM PBX', null, null, this.getTagsForStencil(gn, 'tdm pbx', dt).join(' ')),
  192. this.createVertexTemplateEntry(s + 'telephone_extension_dial_plan;',
  193. w * 55, h * 56, '', 'Telephone Extension Dial Plan', null, null, this.getTagsForStencil(gn, 'telephone extension dial plan', dt).join(' ')),
  194. this.createVertexTemplateEntry(s + 'transport_rule;',
  195. w * 56, h * 57, '', 'Transport Rule', null, null, this.getTagsForStencil(gn, 'transport rule', dt).join(' ')),
  196. this.createVertexTemplateEntry(s + 'ucma_application;',
  197. w * 53, h * 40, '', 'UCMA Application', null, null, this.getTagsForStencil(gn, 'ucma application', dt).join(' ')),
  198. this.createVertexTemplateEntry(s + 'ucwa_application;',
  199. w * 53, h * 40, '', 'UCWA Application', null, null, this.getTagsForStencil(gn, 'ucwa application', dt).join(' ')),
  200. this.createVertexTemplateEntry(s + 'um_auto_attendant;',
  201. w * 57, h * 57, '', 'UM Auto Attendant', null, null, this.getTagsForStencil(gn, 'um auto attendant', dt).join(' ')),
  202. this.createVertexTemplateEntry(s + 'um_dial_plan_e164;',
  203. w * 55, h * 56, '', 'UM Dial Plan E164', null, null, this.getTagsForStencil(gn, 'um dial plan e164', dt).join(' ')),
  204. this.createVertexTemplateEntry(s + 'um_dial_plan_secondary;',
  205. w * 55, h * 56, '', 'UM Dial Plan Secondary', null, null, this.getTagsForStencil(gn, 'um dial plan secondary', dt).join(' ')),
  206. this.createVertexTemplateEntry(s + 'um_enabled_mailbox;',
  207. w * 59, h * 57, '', 'UM Enabled Mailbox', null, null, this.getTagsForStencil(gn, 'um enabled mailbox', dt).join(' ')),
  208. this.createVertexTemplateEntry(s + 'um_hunt_group;',
  209. w * 59, h * 48, '', 'UM Hunt Group', null, null, this.getTagsForStencil(gn, 'um hunt group', dt).join(' ')),
  210. this.createVertexTemplateEntry(s + 'um_ip_gateway;',
  211. w * 59, h * 38, '', 'UM IP Gateway', null, null, this.getTagsForStencil(gn, 'um ip gateway internet protocol', dt).join(' ')),
  212. this.createVertexTemplateEntry(s + 'user_mailbox;',
  213. w * 59, h * 55, '', 'User Mailbox', null, null, this.getTagsForStencil(gn, 'user mailbox', dt).join(' ')),
  214. this.createVertexTemplateEntry(s + 'video_workload;',
  215. w * 57, h * 50, '', 'Video Workload', null, null, this.getTagsForStencil(gn, 'video workload', dt).join(' ')),
  216. this.createVertexTemplateEntry(s + 'voice_mail_preview;',
  217. w * 46, h * 56, '', 'Voice Mail Preview', null, null, this.getTagsForStencil(gn, 'voice mail preview', dt).join(' ')),
  218. this.createVertexTemplateEntry(s + 'voice_workload;',
  219. w * 58, h * 51, '', 'Voice Workload', null, null, this.getTagsForStencil(gn, 'voice workload', dt).join(' ')),
  220. this.createVertexTemplateEntry(s + 'voip_gateway;',
  221. w * 51, h * 15, '', 'VoIP Gateway', null, null, this.getTagsForStencil(gn, 'voip gateway voice over ip internet protocol', dt).join(' ')),
  222. this.createVertexTemplateEntry(s + 'watcher_node;',
  223. w * 52, h * 56, '', 'Watcher Node', null, null, this.getTagsForStencil(gn, 'watcher node', dt).join(' ')),
  224. this.createVertexTemplateEntry(s + 'xmpp_service;',
  225. w * 58, h * 52, '', 'XMPP Service', null, null, this.getTagsForStencil(gn, 'xmpp service', dt).join(' '))
  226. ];
  227. this.addPalette('officeCommunications', 'Office / Communications', false, mxUtils.bind(this, function(content)
  228. {
  229. for (var i = 0; i < fns.length; i++)
  230. {
  231. content.appendChild(fns[i](content));
  232. }
  233. }));
  234. };
  235. Sidebar.prototype.addOfficeConceptsPalette = function()
  236. {
  237. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.concepts.';
  238. var s2 = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.concepts.';
  239. // Space savers
  240. var sb = this;
  241. var gn = 'mxgraph.office.concepts';
  242. var dt = 'office concept ';
  243. var w = 1.0;
  244. var h = 1.0;
  245. var fns =
  246. [
  247. this.createVertexTemplateEntry(s + 'address_book;',
  248. w * 55, h * 44, '', 'Address Book', null, null, this.getTagsForStencil(gn, 'address book', dt).join(' ')),
  249. this.createVertexTemplateEntry(s + 'address_book;',
  250. w * 40, h * 31, '', 'Address Book (small)', null, null, this.getTagsForStencil(gn, 'address book small', dt).join(' ')),
  251. this.createVertexTemplateEntry(s + 'anti_spam;',
  252. w * 55, h * 47, '', 'Anti-Spam', null, null, this.getTagsForStencil(gn, 'anti spam', dt).join(' ')),
  253. this.createVertexTemplateEntry(s + 'application_android;',
  254. w * 60, h * 51, '', 'Application Android', null, null, this.getTagsForStencil(gn, 'application android', dt).join(' ')),
  255. this.createVertexTemplateEntry(s + 'application_generic;',
  256. w * 53, h * 40, '', 'Application Generic', null, null, this.getTagsForStencil(gn, 'application generic', dt).join(' ')),
  257. this.createVertexTemplateEntry(s + 'application_generic;',
  258. w * 40, h * 30, '', 'Application Generic (small)', null, null, this.getTagsForStencil(gn, 'application generic small', dt).join(' ')),
  259. this.createVertexTemplateEntry(s + 'application_hybrid;',
  260. w * 59, h * 44, '', 'Application Hybrid', null, null, this.getTagsForStencil(gn, 'application hybrid', dt).join(' ')),
  261. this.createVertexTemplateEntry(s + 'application_ios;',
  262. w * 59, h * 49, '', 'Application iOS', null, null, this.getTagsForStencil(gn, 'application ios', dt).join(' ')),
  263. this.createVertexTemplateEntry(s + 'application_web;',
  264. w * 56, h * 49, '', 'Application Web', null, null, this.getTagsForStencil(gn, 'application web', dt).join(' ')),
  265. this.createVertexTemplateEntry(s + 'application_windows;',
  266. w * 59, h * 47, '', 'Application Windows', null, null, this.getTagsForStencil(gn, 'application windows', dt).join(' ')),
  267. this.createVertexTemplateEntry(s + 'app_for_office;',
  268. w * 53, h * 40, '', 'App for Office', null, null, this.getTagsForStencil(gn, 'app for office', dt).join(' ')),
  269. this.createVertexTemplateEntry(s + 'app_for_sharepoint;',
  270. w * 53, h * 40, '', 'App For SharePoint', null, null, this.getTagsForStencil(gn, 'app for sharepoint', dt).join(' ')),
  271. this.createVertexTemplateEntry(s + 'app_part;',
  272. w * 46, h * 45, '', 'App Part', null, null, this.getTagsForStencil(gn, 'app part', dt).join(' ')),
  273. this.createVertexTemplateEntry(s + 'archive;',
  274. w * 35, h * 55, '', 'Archive', null, null, this.getTagsForStencil(gn, 'archive', dt).join(' ')),
  275. this.createVertexTemplateEntry(s + 'attachment;',
  276. w * 22, h * 44, '', 'Attachment', null, null, this.getTagsForStencil(gn, 'attachment', dt).join(' ')),
  277. this.createVertexTemplateEntry(s + 'backup_local;',
  278. w * 48, h * 44, '', 'Backup Local', null, null, this.getTagsForStencil(gn, 'backup local', dt).join(' ')),
  279. this.createVertexTemplateEntry(s + 'backup_online;',
  280. w * 55, h * 60, '', 'Backup Online', null, null, this.getTagsForStencil(gn, 'backup online', dt).join(' ')),
  281. this.createVertexTemplateEntry(s + 'bandwidth;',
  282. w * 45, h * 45, '', 'Bandwidth', null, null, this.getTagsForStencil(gn, 'bandwidth', dt).join(' ')),
  283. this.createVertexTemplateEntry(s + 'bandwidth_calculator;',
  284. w * 49, h * 53, '', 'Bandwidth Calculator', null, null, this.getTagsForStencil(gn, 'bandwidth calculator', dt).join(' ')),
  285. this.createVertexTemplateEntry(s + 'best_practices;',
  286. w * 53, h * 53, '', 'Best Practices', null, null, this.getTagsForStencil(gn, 'best practices', dt).join(' ')),
  287. this.createVertexTemplateEntry(s + 'book_journal;',
  288. w * 41, h * 49, '', 'Book, Journal', null, null, this.getTagsForStencil(gn, 'book journal', dt).join(' ')),
  289. this.createVertexTemplateEntry(s + 'calculator;',
  290. w * 32, h * 46, '', 'Calculator', null, null, this.getTagsForStencil(gn, 'calculator', dt).join(' ')),
  291. this.createVertexTemplateEntry(s + 'calendar;',
  292. w * 53, h * 49, '', 'Calendar', null, null, this.getTagsForStencil(gn, 'calendar', dt).join(' ')),
  293. this.createVertexTemplateEntry(s + 'clipboard;',
  294. w * 40, h * 52, '', 'Clipboard', null, null, this.getTagsForStencil(gn, 'clipboard', dt).join(' ')),
  295. this.createVertexTemplateEntry(s + 'clipboard;',
  296. w * 30, h * 39, '', 'Clipboard (small)', null, null, this.getTagsForStencil(gn, 'clipboard small', dt).join(' ')),
  297. this.createVertexTemplateEntry(s + 'clock;',
  298. w * 45, h * 45, '', 'Clock', null, null, this.getTagsForStencil(gn, 'clock', dt).join(' ')),
  299. this.createVertexTemplateEntry(s + 'clock;',
  300. w * 35, h * 35, '', 'Clock (small)', null, null, this.getTagsForStencil(gn, 'clock small', dt).join(' ')),
  301. this.createVertexTemplateEntry(s + 'column;',
  302. w * 52, h * 43, '', 'Column', null, null, this.getTagsForStencil(gn, 'column', dt).join(' ')),
  303. this.createVertexTemplateEntry(s + 'connector;',
  304. w * 44, h * 32, '', 'Connector', null, null, this.getTagsForStencil(gn, 'connector', dt).join(' ')),
  305. this.createVertexTemplateEntry(s + 'connector;',
  306. w * 33, h * 24, '', 'Connector (small)', null, null, this.getTagsForStencil(gn, 'connector', dt).join(' ')),
  307. this.createVertexTemplateEntry(s + 'contacts;',
  308. w * 53, h * 39, '', 'Contacts', null, null, this.getTagsForStencil(gn, 'contacts', dt).join(' ')),
  309. this.createVertexTemplateEntry(s + 'content_type;',
  310. w * 53, h * 40, '', 'Content Type', null, null, this.getTagsForStencil(gn, 'content type', dt).join(' ')),
  311. this.createVertexTemplateEntry(s + 'credit_card;',
  312. w * 55, h * 36, '', 'Credit Card', null, null, this.getTagsForStencil(gn, 'credit card', dt).join(' ')),
  313. this.createVertexTemplateEntry(s + 'document;',
  314. w * 40, h * 47, '', 'Document', null, null, this.getTagsForStencil(gn, 'document', dt).join(' ')),
  315. this.createVertexTemplateEntry(s + 'document;',
  316. w * 30, h * 35, '', 'Document (small)', null, null, this.getTagsForStencil(gn, 'document', dt).join(' ')),
  317. this.createVertexTemplateEntry(s + 'documents;',
  318. w * 46, h * 54, '', 'Documents', null, null, this.getTagsForStencil(gn, 'documents', dt).join(' ')),
  319. this.createVertexTemplateEntry(s + 'documents_shared;',
  320. w * 58, h * 59, '', 'Documents Shared', null, null, this.getTagsForStencil(gn, 'documents shared', dt).join(' ')),
  321. this.createVertexTemplateEntry(s + 'document_blank;',
  322. w * 40, h * 47, '', 'Document Blank', null, null, this.getTagsForStencil(gn, 'document blank', dt).join(' ')),
  323. this.createVertexTemplateEntry(s + 'document_blank;',
  324. w * 30, h * 35, '', 'Document Blank (small)', null, null, this.getTagsForStencil(gn, 'document blank', dt).join(' ')),
  325. this.createVertexTemplateEntry(s + 'document_shared;',
  326. w * 52, h * 53, '', 'Document Shared', null, null, this.getTagsForStencil(gn, 'document shared', dt).join(' ')),
  327. this.createVertexTemplateEntry(s + 'download;',
  328. w * 48, h * 56, '', 'Download', null, null, this.getTagsForStencil(gn, 'download', dt).join(' ')),
  329. this.createVertexTemplateEntry(s + 'email;',
  330. w * 47, h * 36, '', 'Email', null, null, this.getTagsForStencil(gn, 'email', dt).join(' ')),
  331. this.createVertexTemplateEntry(s + 'email;',
  332. w * 31, h * 24, '', 'Email (small)', null, null, this.getTagsForStencil(gn, 'email', dt).join(' ')),
  333. this.createVertexTemplateEntry(s + 'email_approved;',
  334. w * 56, h * 46, '', 'Email Approved', null, null, this.getTagsForStencil(gn, 'email approved', dt).join(' ')),
  335. this.createVertexTemplateEntry(s + 'email_expired;',
  336. w * 56, h * 46, '', 'Email Expired', null, null, this.getTagsForStencil(gn, 'email expired', dt).join(' ')),
  337. this.createVertexTemplateEntry(s + 'email_rejected;',
  338. w * 55, h * 45, '', 'Email Rejected', null, null, this.getTagsForStencil(gn, 'email rejected', dt).join(' ')),
  339. this.createVertexTemplateEntry(s + 'file_key;',
  340. w * 48, h * 53, '', 'File Key', null, null, this.getTagsForStencil(gn, 'file key', dt).join(' ')),
  341. this.createVertexTemplateEntry(s + 'firewall;',
  342. w * 47, h * 43, '', 'Firewall', null, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')),
  343. this.createVertexTemplateEntry(s2 + 'firewall;fillColor=#2072B8;',
  344. w * 47, h * 43, '', 'Firewall (blue)', null, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')),
  345. this.createVertexTemplateEntry(s2 + 'firewall;fillColor=#DA4026;',
  346. w * 47, h * 43, '', 'Firewall (orange)', null, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')),
  347. this.createVertexTemplateEntry(s2 + 'firewall;fillColor=#7FBA42;',
  348. w * 47, h * 43, '', 'Firewall (green)', null, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')),
  349. this.createVertexTemplateEntry(s2 + 'firewall;fillColor=#CCCBCB;',
  350. w * 47, h * 43, '', 'Firewall (ghosted)', null, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')),
  351. this.createVertexTemplateEntry(s + 'folder;',
  352. w * 50, h * 45, '', 'Folder', null, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')),
  353. this.createVertexTemplateEntry(s2 + 'folder;fillColor=#2072B8;',
  354. w * 50, h * 45, '', 'Folder (blue)', null, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')),
  355. this.createVertexTemplateEntry(s2 + 'folder;fillColor=#DA4026;',
  356. w * 50, h * 45, '', 'Folder (orange)', null, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')),
  357. this.createVertexTemplateEntry(s2 + 'folder;fillColor=#7FBA42;',
  358. w * 50, h * 45, '', 'Folder (green)', null, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')),
  359. this.createVertexTemplateEntry(s2 + 'folder;fillColor=#CCCBCB;',
  360. w * 50, h * 45, '', 'Folder (ghosted)', null, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')),
  361. this.createVertexTemplateEntry(s + 'folder;',
  362. w * 33, h * 30, '', 'Folder (small)', null, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')),
  363. this.createVertexTemplateEntry(s + 'folders;',
  364. w * 57, h * 53, '', 'Folders', null, null, this.getTagsForStencil(gn, 'folders', dt).join(' ')),
  365. this.createVertexTemplateEntry(s + 'folder_open;',
  366. w * 56, h * 43, '', 'Folder, Open', null, null, this.getTagsForStencil(gn, 'folder open', dt).join(' ')),
  367. this.createVertexTemplateEntry(s + 'folder_public;',
  368. w * 58, h * 52, '', 'Folder, Public', null, null, this.getTagsForStencil(gn, 'folder public', dt).join(' ')),
  369. this.createVertexTemplateEntry(s + 'folder_shared;',
  370. w * 54, h * 52, '', 'Folder, Shared', null, null, this.getTagsForStencil(gn, 'folder shared', dt).join(' ')),
  371. this.createVertexTemplateEntry(s + 'form;',
  372. w * 56, h * 49, '', 'Form', null, null, this.getTagsForStencil(gn, 'form', dt).join(' ')),
  373. this.createVertexTemplateEntry(s + 'get_started;',
  374. w * 42, h * 52, '', 'Get Started', null, null, this.getTagsForStencil(gn, 'get started', dt).join(' ')),
  375. this.createVertexTemplateEntry(s + 'globe_internet;',
  376. w * 49, h * 49, '', 'Globe, Internet', null, null, this.getTagsForStencil(gn, 'globe internet', dt).join(' ')),
  377. this.createVertexTemplateEntry(s + 'help;',
  378. w * 49, h * 49, '', 'Help', null, null, this.getTagsForStencil(gn, 'help', dt).join(' ')),
  379. this.createVertexTemplateEntry(s + 'help;',
  380. w * 38, h * 38, '', 'Help (small)', null, null, this.getTagsForStencil(gn, 'help', dt).join(' ')),
  381. this.createVertexTemplateEntry(s + 'home;',
  382. w * 51, h * 50, '', 'Home', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
  383. this.createVertexTemplateEntry(s2 + 'home;fillColor=#2072B8;',
  384. w * 51, h * 50, '', 'Home (blue)', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
  385. this.createVertexTemplateEntry(s2 + 'home;fillColor=#DA4026;',
  386. w * 51, h * 50, '', 'Home (orange)', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
  387. this.createVertexTemplateEntry(s2 + 'home;fillColor=#7FBA42;',
  388. w * 51, h * 50, '', 'Home (green)', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
  389. this.createVertexTemplateEntry(s2 + 'home;fillColor=#CCCBCB;',
  390. w * 51, h * 50, '', 'Home (ghosted)', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
  391. this.createVertexTemplateEntry(s + 'home;',
  392. w * 39, h * 38, '', 'Home (small)', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
  393. this.createVertexTemplateEntry(s + 'home_page;',
  394. w * 53, h * 43, '', 'Home Page', null, null, this.getTagsForStencil(gn, 'home page', dt).join(' ')),
  395. this.createVertexTemplateEntry(s2 + 'home_page;fillColor=#2072B8;',
  396. w * 53, h * 43, '', 'Home Page (blue)', null, null, this.getTagsForStencil(gn, 'home page', dt).join(' ')),
  397. this.createVertexTemplateEntry(s2 + 'home_page;fillColor=#DA4026;',
  398. w * 53, h * 43, '', 'Home Page (orange)', null, null, this.getTagsForStencil(gn, 'home page', dt).join(' ')),
  399. this.createVertexTemplateEntry(s2 + 'home_page;fillColor=#7FBA42;',
  400. w * 53, h * 43, '', 'Home Page (green)', null, null, this.getTagsForStencil(gn, 'home page', dt).join(' ')),
  401. this.createVertexTemplateEntry(s2 + 'home_page;fillColor=#CCCBCB;',
  402. w * 53, h * 43, '', 'Home Page (ghosted)', null, null, this.getTagsForStencil(gn, 'home page', dt).join(' ')),
  403. this.createVertexTemplateEntry(s + 'hybrid;',
  404. w * 58, h * 52, '', 'Hybrid', null, null, this.getTagsForStencil(gn, 'hybrid', dt).join(' ')),
  405. this.createVertexTemplateEntry(s + 'input_output_filter;',
  406. w * 46, h * 46, '', 'Input Output Filter', null, null, this.getTagsForStencil(gn, 'input output filter', dt).join(' ')),
  407. this.createVertexTemplateEntry(s + 'install;',
  408. w * 45, h * 52, '', 'Install', null, null, this.getTagsForStencil(gn, 'install', dt).join(' ')),
  409. this.createVertexTemplateEntry(s + 'integration;',
  410. w * 44, h * 43, '', 'Integration', null, null, this.getTagsForStencil(gn, 'integration', dt).join(' ')),
  411. this.createVertexTemplateEntry(s + 'lab;',
  412. w * 47, h * 50, '', 'Lab', null, null, this.getTagsForStencil(gn, 'lab', dt).join(' ')),
  413. this.createVertexTemplateEntry(s + 'learn;',
  414. w * 56, h * 57, '', 'Learn', null, null, this.getTagsForStencil(gn, 'learn', dt).join(' ')),
  415. this.createVertexTemplateEntry(s + 'license;',
  416. w * 45, h * 52, '', 'License', null, null, this.getTagsForStencil(gn, 'license', dt).join(' ')),
  417. this.createVertexTemplateEntry(s + 'link;',
  418. w * 61, h * 21, '', 'Link', null, null, this.getTagsForStencil(gn, 'link', dt).join(' ')),
  419. this.createVertexTemplateEntry(s + 'list_library;',
  420. w * 52, h * 48, '', 'List Library', null, null, this.getTagsForStencil(gn, 'list library', dt).join(' ')),
  421. this.createVertexTemplateEntry(s + 'mailbox;',
  422. w * 53, h * 49, '', 'Mailbox', null, null, this.getTagsForStencil(gn, 'mailbox', dt).join(' ')),
  423. this.createVertexTemplateEntry(s + 'mailbox;',
  424. w * 40, h * 38, '', 'Mailbox (small)', null, null, this.getTagsForStencil(gn, 'mailbox', dt).join(' ')),
  425. this.createVertexTemplateEntry(s + 'mailbox2;',
  426. w * 53, h * 49, '', 'Mailbox', null, null, this.getTagsForStencil(gn, 'mailbox2', dt).join(' ')),
  427. this.createVertexTemplateEntry(s + 'mailbox2;',
  428. w * 40, h * 38, '', 'Mailbox (small)', null, null, this.getTagsForStencil(gn, 'mailbox2', dt).join(' ')),
  429. this.createVertexTemplateEntry(s + 'maintenance;',
  430. w * 39, h * 56, '', 'Maintenance', null, null, this.getTagsForStencil(gn, 'maintenance', dt).join(' ')),
  431. this.createVertexTemplateEntry(s + 'marketplace_shopping_bag;',
  432. w * 36, h * 46, '', 'Marketplace, Shopping Bag', null, null, this.getTagsForStencil(gn, 'marketplace shopping bag', dt).join(' ')),
  433. this.createVertexTemplateEntry(s + 'meets_requirements;',
  434. w * 56, h * 53, '', 'Meets Requirements', null, null, this.getTagsForStencil(gn, 'meets requirements', dt).join(' ')),
  435. this.createVertexTemplateEntry(s + 'migration;',
  436. w * 59, h * 34, '', 'Migration', null, null, this.getTagsForStencil(gn, 'migration', dt).join(' ')),
  437. this.createVertexTemplateEntry(s + 'moes;',
  438. w * 40, h * 47, '', 'MOEs', null, null, this.getTagsForStencil(gn, 'moes', dt).join(' ')),
  439. this.createVertexTemplateEntry(s + 'navigation;',
  440. w * 53, h * 40, '', 'Navigation', null, null, this.getTagsForStencil(gn, 'navigation', dt).join(' ')),
  441. this.createVertexTemplateEntry(s + 'node_generic;',
  442. w * 46, h * 52, '', 'Node, Generic', null, null, this.getTagsForStencil(gn, 'node generic', dt).join(' ')),
  443. this.createVertexTemplateEntry(s2 + 'node_generic;fillColor=#2072B8;',
  444. w * 46, h * 52, '', 'Node, Generic (blue)', null, null, this.getTagsForStencil(gn, 'node generic', dt).join(' ')),
  445. this.createVertexTemplateEntry(s2 + 'node_generic;fillColor=#DA4026;',
  446. w * 46, h * 52, '', 'Node, Generic (orange)', null, null, this.getTagsForStencil(gn, 'node generic', dt).join(' ')),
  447. this.createVertexTemplateEntry(s2 + 'node_generic;fillColor=#7FBA42;',
  448. w * 46, h * 52, '', 'Node, Generic (green)', null, null, this.getTagsForStencil(gn, 'node generic', dt).join(' ')),
  449. this.createVertexTemplateEntry(s2 + 'node_generic;fillColor=#CCCBCB;',
  450. w * 46, h * 52, '', 'Node, Generic (ghosted)', null, null, this.getTagsForStencil(gn, 'node generic', dt).join(' ')),
  451. this.createVertexTemplateEntry(s + 'office_installed;',
  452. w * 58, h * 48, '', 'Office Installed', null, null, this.getTagsForStencil(gn, 'office installed', dt).join(' ')),
  453. this.createVertexTemplateEntry(s + 'on_premises;',
  454. w * 34, h * 55, '', 'On Premises', null, null, this.getTagsForStencil(gn, 'on premises', dt).join(' ')),
  455. this.createVertexTemplateEntry(s + 'on_premises_directory;',
  456. w * 50, h * 59, '', 'On Premises Directory', null, null, this.getTagsForStencil(gn, 'on premises directory', dt).join(' ')),
  457. this.createVertexTemplateEntry(s + 'phishing;',
  458. w * 59, h * 47, '', 'Phishing', null, null, this.getTagsForStencil(gn, 'phishing', dt).join(' ')),
  459. this.createVertexTemplateEntry(s + 'pin;',
  460. w * 24, h * 44, '', 'Pin', null, null, this.getTagsForStencil(gn, 'pin', dt).join(' ')),
  461. this.createVertexTemplateEntry(s + 'platform_options;',
  462. w * 58, h * 52, '', 'Platform Options', null, null, this.getTagsForStencil(gn, 'platform options', dt).join(' ')),
  463. this.createVertexTemplateEntry(s + 'powershell;',
  464. w * 45, h * 45, '', 'PowerShell', null, null, this.getTagsForStencil(gn, 'powershell', dt).join(' ')),
  465. this.createVertexTemplateEntry(s + 'properties;',
  466. w * 50, h * 49, '', 'Properties', null, null, this.getTagsForStencil(gn, 'properties', dt).join(' ')),
  467. this.createVertexTemplateEntry(s + 'publish;',
  468. w * 57, h * 48, '', 'Publish', null, null, this.getTagsForStencil(gn, 'publish', dt).join(' ')),
  469. this.createVertexTemplateEntry(s + 'remote_access;',
  470. w * 59, h * 41, '', 'Remote Access', null, null, this.getTagsForStencil(gn, 'remote access', dt).join(' ')),
  471. this.createVertexTemplateEntry(s + 'script;',
  472. w * 53, h * 49, '', 'Script', null, null, this.getTagsForStencil(gn, 'script', dt).join(' ')),
  473. this.createVertexTemplateEntry(s + 'search;',
  474. w * 49, h * 49, '', 'Search', null, null, this.getTagsForStencil(gn, 'search', dt).join(' ')),
  475. this.createVertexTemplateEntry(s + 'search;',
  476. w * 35, h * 35, '', 'Search (small)', null, null, this.getTagsForStencil(gn, 'search', dt).join(' ')),
  477. this.createVertexTemplateEntry(s + 'service_application;',
  478. w * 59, h * 48, '', 'Service Application', null, null, this.getTagsForStencil(gn, 'service application', dt).join(' ')),
  479. this.createVertexTemplateEntry(s + 'settings;',
  480. w * 48, h * 48, '', 'Settings', null, null, this.getTagsForStencil(gn, 'settings', dt).join(' ')),
  481. this.createVertexTemplateEntry(s + 'settings_office_365;',
  482. w * 48, h * 48, '', 'Settings, Office 365', null, null, this.getTagsForStencil(gn, 'settings office 365', dt).join(' ')),
  483. this.createVertexTemplateEntry(s + 'settings_office_365;',
  484. w * 31, h * 31, '', 'Settings, Office 365 (small)', null, null, this.getTagsForStencil(gn, 'settings office 365', dt).join(' ')),
  485. this.createVertexTemplateEntry(s + 'sign_up;',
  486. w * 51, h * 47, '', 'Sign Up', null, null, this.getTagsForStencil(gn, 'sign up', dt).join(' ')),
  487. this.createVertexTemplateEntry(s + 'sound_file;',
  488. w * 40, h * 50, '', 'Sound File', null, null, this.getTagsForStencil(gn, 'sound file', dt).join(' ')),
  489. this.createVertexTemplateEntry(s + 'tasks;',
  490. w * 40, h * 52, '', 'Tasks', null, null, this.getTagsForStencil(gn, 'tasks', dt).join(' ')),
  491. this.createVertexTemplateEntry(s + 'technical_diagram;',
  492. w * 50, h * 56, '', 'Technical Diagram', null, null, this.getTagsForStencil(gn, 'technical diagram', dt).join(' ')),
  493. this.createVertexTemplateEntry(s + 'upgrade_application;',
  494. w * 58, h * 42, '', 'Upgrade Application', null, null, this.getTagsForStencil(gn, 'upgrade application', dt).join(' ')),
  495. this.createVertexTemplateEntry(s + 'upgrade_server;',
  496. w * 39, h * 52, '', 'Upgrade Server', null, null, this.getTagsForStencil(gn, 'upgrade server', dt).join(' ')),
  497. this.createVertexTemplateEntry(s + 'upgrade_site;',
  498. w * 59, h * 48, '', 'Upgrade Site', null, null, this.getTagsForStencil(gn, 'upgrade site', dt).join(' ')),
  499. this.createVertexTemplateEntry(s + 'upload;',
  500. w * 48, h * 55, '', 'Upload', null, null, this.getTagsForStencil(gn, 'upload', dt).join(' ')),
  501. this.createVertexTemplateEntry(s + 'video_form;',
  502. w * 58, h * 49, '', 'Video Form', null, null, this.getTagsForStencil(gn, 'video form', dt).join(' ')),
  503. this.createVertexTemplateEntry(s + 'video_play;',
  504. w * 50, h * 40, '', 'Video Play', null, null, this.getTagsForStencil(gn, 'video play', dt).join(' ')),
  505. this.createVertexTemplateEntry(s + 'voicemail;',
  506. w * 53, h * 34, '', 'Voicemail', null, null, this.getTagsForStencil(gn, 'voicemail', dt).join(' ')),
  507. this.createVertexTemplateEntry(s + 'voicemail_preview;',
  508. w * 57, h * 52, '', 'Voicemail Preview', null, null, this.getTagsForStencil(gn, 'voicemail preview', dt).join(' ')),
  509. this.createVertexTemplateEntry(s + 'walkthrough;',
  510. w * 41, h * 58, '', 'Walkthrough', null, null, this.getTagsForStencil(gn, 'walkthrough', dt).join(' ')),
  511. this.createVertexTemplateEntry(s + 'website;',
  512. w * 59, h * 49, '', 'Website', null, null, this.getTagsForStencil(gn, 'website', dt).join(' ')),
  513. this.createVertexTemplateEntry(s + 'web_conferencing;',
  514. w * 60, h * 56, '', 'Web Conferencing', null, null, this.getTagsForStencil(gn, 'web conferencing', dt).join(' ')),
  515. this.createVertexTemplateEntry(s + 'web_page;',
  516. w * 50, h * 54, '', 'Web Page', null, null, this.getTagsForStencil(gn, 'web page', dt).join(' ')),
  517. this.createVertexTemplateEntry(s + 'web_part;',
  518. w * 45, h * 52, '', 'Web Part', null, null, this.getTagsForStencil(gn, 'web part', dt).join(' ')),
  519. this.createVertexTemplateEntry(s + 'web_services;',
  520. w * 60, h * 56, '', 'Web Services', null, null, this.getTagsForStencil(gn, 'web services', dt).join(' ')),
  521. this.createVertexTemplateEntry(s + 'whats_new;',
  522. w * 55, h * 38, '', 'Whats New', null, null, this.getTagsForStencil(gn, 'whats new', dt).join(' ')),
  523. this.createVertexTemplateEntry(s + 'writing_pen;',
  524. w * 54, h * 54, '', 'Writing, Pen', null, null, this.getTagsForStencil(gn, 'writing pen', dt).join(' ')),
  525. this.createVertexTemplateEntry(s + 'writing_pencil;',
  526. w * 50, h * 50, '', 'Writing, Pencil', null, null, this.getTagsForStencil(gn, 'writing pencil', dt).join(' '))
  527. ];
  528. this.addPalette('officeConcepts', 'Office / Concepts', false, mxUtils.bind(this, function(content)
  529. {
  530. for (var i = 0; i < fns.length; i++)
  531. {
  532. content.appendChild(fns[i](content));
  533. }
  534. }));
  535. };
  536. Sidebar.prototype.addOfficeDatabasesPalette = function()
  537. {
  538. var s = 'sketch=0;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.databases.';
  539. var s2 = 'sketch=0;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.databases.';
  540. // Space savers
  541. var sb = this;
  542. var gn = 'mxgraph.office.databases';
  543. var dt = 'office database db ';
  544. var w = 1.0;
  545. var h = 1.0;
  546. var fns =
  547. [
  548. this.createVertexTemplateEntry(s + 'address_book_store;',
  549. w * 50, h * 54, '', 'Address Book Store', null, null, this.getTagsForStencil(gn, 'address_book_store', dt).join(' ')),
  550. this.createVertexTemplateEntry(s + 'application_store;',
  551. w * 49, h * 53, '', 'Application Store', null, null, this.getTagsForStencil(gn, 'application store', dt).join(' ')),
  552. this.createVertexTemplateEntry(s + 'database;',
  553. w * 35, h * 49, '', 'Database', null, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  554. this.createVertexTemplateEntry(s2 + 'database;fillColor=#2072B8;',
  555. w * 35, h * 49, '', 'Database (blue)', null, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  556. this.createVertexTemplateEntry(s2 + 'database;fillColor=#DA4026;',
  557. w * 35, h * 49, '', 'Database (orange)', null, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  558. this.createVertexTemplateEntry(s2 + 'database;fillColor=#7FBA42;',
  559. w * 35, h * 49, '', 'Database (green)', null, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  560. this.createVertexTemplateEntry(s2 + 'database;fillColor=#CCCBCB;',
  561. w * 35, h * 49, '', 'Database (ghosted)', null, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  562. this.createVertexTemplateEntry(s + 'database;',
  563. w * 28, h * 38, '', 'Database (small)', null, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  564. this.createVertexTemplateEntry(s + 'database_availability_group;',
  565. w * 59, h * 59, '', 'Database Availability Group', null, null, this.getTagsForStencil(gn, 'availability group', dt).join(' ')),
  566. this.createVertexTemplateEntry(s + 'database_cube;',
  567. w * 47, h * 52, '', 'Database Cube', null, null, this.getTagsForStencil(gn, 'cube', dt).join(' ')),
  568. this.createVertexTemplateEntry(s2 + 'database_cube;fillColor=#2072B8;',
  569. w * 47, h * 52, '', 'Database Cube (blue)', null, null, this.getTagsForStencil(gn, 'cube', dt).join(' ')),
  570. this.createVertexTemplateEntry(s2 + 'database_cube;fillColor=#DA4026;',
  571. w * 47, h * 52, '', 'Database Cube (orange)', null, null, this.getTagsForStencil(gn, 'cube', dt).join(' ')),
  572. this.createVertexTemplateEntry(s2 + 'database_cube;fillColor=#7FBA42;',
  573. w * 47, h * 52, '', 'Database Cube (green)', null, null, this.getTagsForStencil(gn, 'cube', dt).join(' ')),
  574. this.createVertexTemplateEntry(s2 + 'database_cube;fillColor=#CCCBCB;',
  575. w * 47, h * 52, '', 'Database Cube (ghosted)', null, null, this.getTagsForStencil(gn, 'cube', dt).join(' ')),
  576. this.createVertexTemplateEntry(s + 'database_mini_1;',
  577. w * 35, h * 27, '', 'Database, Mini', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  578. this.createVertexTemplateEntry(s2 + 'database_mini_1;fillColor=#2072B8;',
  579. w * 35, h * 27, '', 'Database, Mini (blue)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  580. this.createVertexTemplateEntry(s2 + 'database_mini_1;fillColor=#DA4026;',
  581. w * 35, h * 27, '', 'Database, Mini (orange)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  582. this.createVertexTemplateEntry(s2 + 'database_mini_1;fillColor=#7FBA42;',
  583. w * 35, h * 27, '', 'Database, Mini (green)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  584. this.createVertexTemplateEntry(s2 + 'database_mini_1;fillColor=#CCCBCB;',
  585. w * 35, h * 27, '', 'Database, Mini (ghosted)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  586. this.createVertexTemplateEntry(s + 'database_mini_2;',
  587. w * 35, h * 42, '', 'Database, Mini', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  588. this.createVertexTemplateEntry(s2 + 'database_mini_2;fillColor=#2072B8;',
  589. w * 35, h * 42, '', 'Database, Mini (blue)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  590. this.createVertexTemplateEntry(s2 + 'database_mini_2;fillColor=#DA4026;',
  591. w * 35, h * 42, '', 'Database, Mini (orange)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  592. this.createVertexTemplateEntry(s2 + 'database_mini_2;fillColor=#7FBA42;',
  593. w * 35, h * 42, '', 'Database, Mini (green)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  594. this.createVertexTemplateEntry(s2 + 'database_mini_2;fillColor=#CCCBCB;',
  595. w * 35, h * 42, '', 'Database, Mini (ghosted)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  596. this.createVertexTemplateEntry(s + 'database_mini_3;',
  597. w * 35, h * 57, '', 'Database, Mini', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  598. this.createVertexTemplateEntry(s2 + 'database_mini_3;fillColor=#2072B8;',
  599. w * 35, h * 57, '', 'Database, Mini (blue)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  600. this.createVertexTemplateEntry(s2 + 'database_mini_3;fillColor=#DA4026;',
  601. w * 35, h * 57, '', 'Database, Mini (orange)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  602. this.createVertexTemplateEntry(s2 + 'database_mini_3;fillColor=#7FBA42;',
  603. w * 35, h * 57, '', 'Database, Mini (green)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  604. this.createVertexTemplateEntry(s2 + 'database_mini_3;fillColor=#CCCBCB;',
  605. w * 35, h * 57, '', 'Database, Mini (ghosted)', null, null, this.getTagsForStencil(gn, 'Mini', dt).join(' ')),
  606. this.createVertexTemplateEntry(s + 'database_mirror;',
  607. w * 60, h * 59, '', 'Database Mirror', null, null, this.getTagsForStencil(gn, 'mirror', dt).join(' ')),
  608. this.createVertexTemplateEntry(s + 'database_mirror_witness_node;',
  609. w * 60, h * 59, '', 'Database Mirror Witness Node', null, null, this.getTagsForStencil(gn, 'mirror witness node', dt).join(' ')),
  610. this.createVertexTemplateEntry(s + 'database_partition_2;',
  611. w * 57, h * 59, '', 'Database Partition', null, null, this.getTagsForStencil(gn, 'partition', dt).join(' ')),
  612. this.createVertexTemplateEntry(s + 'database_partition_3;',
  613. w * 57, h * 59, '', 'Database Partition', null, null, this.getTagsForStencil(gn, 'partition', dt).join(' ')),
  614. this.createVertexTemplateEntry(s + 'database_partition_4;',
  615. w * 57, h * 59, '', 'Database Partition', null, null, this.getTagsForStencil(gn, 'partition', dt).join(' ')),
  616. this.createVertexTemplateEntry(s + 'database_partition_5;',
  617. w * 57, h * 59, '', 'Database Partition', null, null, this.getTagsForStencil(gn, 'partition', dt).join(' ')),
  618. this.createVertexTemplateEntry(s + 'database_public_folder;',
  619. w * 53, h * 54, '', 'Database Public Folder', null, null, this.getTagsForStencil(gn, 'public folder', dt).join(' ')),
  620. this.createVertexTemplateEntry(s + 'database_server;',
  621. w * 43, h * 57, '', 'Database Server', null, null, this.getTagsForStencil(gn, 'server', dt).join(' ')),
  622. this.createVertexTemplateEntry(s + 'database_server_blue;',
  623. w * 43, h * 57, '', 'Database Server (blue)', null, null, this.getTagsForStencil(gn, 'server blue', dt).join(' ')),
  624. this.createVertexTemplateEntry(s + 'database_server_orange;',
  625. w * 43, h * 57, '', 'Database Server (orange)', null, null, this.getTagsForStencil(gn, 'server blue', dt).join(' ')),
  626. this.createVertexTemplateEntry(s + 'database_server_green;',
  627. w * 43, h * 57, '', 'Database Server (green)', null, null, this.getTagsForStencil(gn, 'server blue', dt).join(' ')),
  628. this.createVertexTemplateEntry(s + 'database_server_ghosted;',
  629. w * 43, h * 57, '', 'Database Server (ghosted)', null, null, this.getTagsForStencil(gn, 'server blue', dt).join(' ')),
  630. this.createVertexTemplateEntry(s + 'mailbox_database;',
  631. w * 53, h * 55, '', 'Mailbox Database', null, null, this.getTagsForStencil(gn, 'mailbox', dt).join(' ')),
  632. this.createVertexTemplateEntry(s + 'monitoring_store;',
  633. w * 58, h * 58, '', 'Monitoring Store', null, null, this.getTagsForStencil(gn, 'monitoring store', dt).join(' ')),
  634. this.createVertexTemplateEntry(s + 'unified_contact_store;',
  635. w * 54, h * 55, '', 'Unified Contact Store', null, null, this.getTagsForStencil(gn, 'unified contact store', dt).join(' ')),
  636. this.createVertexTemplateEntry(s + 'web_store;',
  637. w * 50, h * 54, '', 'Web Store', null, null, this.getTagsForStencil(gn, 'web store', dt).join(' '))
  638. ];
  639. this.addPalette('officeDatabases', 'Office / Databases', false, mxUtils.bind(this, function(content)
  640. {
  641. for (var i = 0; i < fns.length; i++)
  642. {
  643. content.appendChild(fns[i](content));
  644. }
  645. }));
  646. };
  647. Sidebar.prototype.addOfficeDevicesPalette = function()
  648. {
  649. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.devices.';
  650. // Space savers
  651. var sb = this;
  652. var gn = 'mxgraph.office.devices';
  653. var dt = 'office device ';
  654. var w = 1.0;
  655. var h = 1.0;
  656. var fns =
  657. [
  658. this.createVertexTemplateEntry(s + 'bluetooth;',
  659. w * 56, h * 57, '', 'Bluetooth', null, null, this.getTagsForStencil(gn, 'bluetooth', dt).join(' ')),
  660. this.createVertexTemplateEntry(s + 'cd_dvd;',
  661. w * 49, h * 49, '', 'CD, DVD', null, null, this.getTagsForStencil(gn, 'cd dvd compact disc digital video drive', dt).join(' ')),
  662. this.createVertexTemplateEntry(s + 'cell_phone_android_proportional;',
  663. w * 17, h * 31, '', 'Cell Phone, Android, Proportional', null, null, this.getTagsForStencil(gn, 'cell phone android proportional', dt).join(' ')),
  664. this.createVertexTemplateEntry(s + 'cell_phone_android_standalone;',
  665. w * 24, h * 44, '', 'Cell Phone, Android, Standalone', null, null, this.getTagsForStencil(gn, 'cell phone android standalone', dt).join(' ')),
  666. this.createVertexTemplateEntry(s + 'cell_phone_generic;',
  667. w * 26, h * 47, '', 'Cell Phone, Generic', null, null, this.getTagsForStencil(gn, 'cell phone generic', dt).join(' ')),
  668. this.createVertexTemplateEntry(s + 'cell_phone_generic;',
  669. w * 21, h * 37, '', 'Cell Phone, Generic (small)', null, null, this.getTagsForStencil(gn, 'cell phone generic small', dt).join(' ')),
  670. this.createVertexTemplateEntry(s + 'cell_phone_iphone_proportional;',
  671. w * 17, h * 29, '', 'Cell Phone, iPhone, Proportional', null, null, this.getTagsForStencil(gn, 'cell phone iphone proportional', dt).join(' ')),
  672. this.createVertexTemplateEntry(s + 'cell_phone_iphone_standalone;',
  673. w * 25, h * 42, '', 'Cell Phone, iPhone, Standalone', null, null, this.getTagsForStencil(gn, 'cell phone iphone standalone', dt).join(' ')),
  674. this.createVertexTemplateEntry(s + 'cell_phone_windows_phone_proportional;',
  675. w * 16, h * 29, '', 'Cell Phone, Windows Phone, Proportional', null, null, this.getTagsForStencil(gn, 'cell phone windows phone proportional', dt).join(' ')),
  676. this.createVertexTemplateEntry(s + 'cell_phone_windows_phone_standalone;',
  677. w * 24, h * 42, '', 'Cell Phone, Windows Phone, Standalone', null, null, this.getTagsForStencil(gn, 'cell phone windows standalone', dt).join(' ')),
  678. this.createVertexTemplateEntry(s + 'data_jack;',
  679. w * 47, h * 47, '', 'Data Jack', null, null, this.getTagsForStencil(gn, 'data jack', dt).join(' ')),
  680. this.createVertexTemplateEntry(s + 'device_update_service;',
  681. w * 50, h * 54, '', 'Device Update Service', null, null, this.getTagsForStencil(gn, 'device update service', dt).join(' ')),
  682. this.createVertexTemplateEntry(s + 'fax;',
  683. w * 57, h * 47, '', 'Fax', null, null, this.getTagsForStencil(gn, 'fax', dt).join(' ')),
  684. this.createVertexTemplateEntry(s + 'hard_disk;',
  685. w * 40, h * 54, '', 'Hard Disk', null, null, this.getTagsForStencil(gn, 'hard disk hdd drive', dt).join(' ')),
  686. this.createVertexTemplateEntry(s + 'headset;',
  687. w * 36, h * 48, '', 'Headset', null, null, this.getTagsForStencil(gn, 'headset', dt).join(' ')),
  688. this.createVertexTemplateEntry(s + 'ipad_mini;',
  689. w * 33, h * 47, '', 'iPad, Mini', null, null, this.getTagsForStencil(gn, 'ipad mini', dt).join(' ')),
  690. this.createVertexTemplateEntry(s + 'ip_gateway;',
  691. w * 59, h * 40, '', 'IP Gateway', null, null, this.getTagsForStencil(gn, 'ip gateway', dt).join(' ')),
  692. this.createVertexTemplateEntry(s + 'ip_pbx;',
  693. w * 59, h * 39, '', 'IP PBX', null, null, this.getTagsForStencil(gn, 'ip pbx', dt).join(' ')),
  694. this.createVertexTemplateEntry(s + 'laptop;',
  695. w * 58, h * 34, '', 'Laptop', null, null, this.getTagsForStencil(gn, 'laptop', dt).join(' ')),
  696. this.createVertexTemplateEntry(s + 'lcd_monitor;',
  697. w * 58, h * 48, '', 'LCD Monitor', null, null, this.getTagsForStencil(gn, 'lcd monitor', dt).join(' ')),
  698. this.createVertexTemplateEntry(s + 'lcd_monitor;',
  699. w * 39, h * 32, '', 'LCD Monitor (small)', null, null, this.getTagsForStencil(gn, 'lcd monitor small', dt).join(' ')),
  700. this.createVertexTemplateEntry(s + 'load_balancer;',
  701. w * 59, h * 39, '', 'Load Balancer', null, null, this.getTagsForStencil(gn, 'load balancer', dt).join(' ')),
  702. this.createVertexTemplateEntry(s + 'mac_client;',
  703. w * 58, h * 48, '', 'Mac Client', null, null, this.getTagsForStencil(gn, 'mac client', dt).join(' ')),
  704. this.createVertexTemplateEntry(s + 'management_console;',
  705. w * 58, h * 48, '', 'Management Console', null, null, this.getTagsForStencil(gn, 'management console', dt).join(' ')),
  706. this.createVertexTemplateEntry(s + 'microphone;',
  707. w * 53, h * 37, '', 'Microphone', null, null, this.getTagsForStencil(gn, 'microphone', dt).join(' ')),
  708. this.createVertexTemplateEntry(s + 'modem;',
  709. w * 54, h * 34, '', 'Modem', null, null, this.getTagsForStencil(gn, 'modem', dt).join(' ')),
  710. this.createVertexTemplateEntry(s + 'nic;',
  711. w * 57, h * 38, '', 'NIC', null, null, this.getTagsForStencil(gn, 'nic', dt).join(' ')),
  712. this.createVertexTemplateEntry(s + 'phone_digital;',
  713. w * 49, h * 42, '', 'Phone, Digital', null, null, this.getTagsForStencil(gn, 'phone digital', dt).join(' ')),
  714. this.createVertexTemplateEntry(s + 'phone_traditional;',
  715. w * 48, h * 40, '', 'Phone, Traditional', null, null, this.getTagsForStencil(gn, 'phone traditional', dt).join(' ')),
  716. this.createVertexTemplateEntry(s + 'phone_usb;',
  717. w * 58, h * 51, '', 'Phone, USB', null, null, this.getTagsForStencil(gn, 'phone usb', dt).join(' ')),
  718. this.createVertexTemplateEntry(s + 'phone_voip;',
  719. w * 57, h * 51, '', 'Phone, VoIP', null, null, this.getTagsForStencil(gn, 'phone voip voice over internet protocol', dt).join(' ')),
  720. this.createVertexTemplateEntry(s + 'printer;',
  721. w * 56, h * 47, '', 'Printer', null, null, this.getTagsForStencil(gn, 'printer', dt).join(' ')),
  722. this.createVertexTemplateEntry(s + 'roundtable;',
  723. w * 50, h * 58, '', 'Roundtable', null, null, this.getTagsForStencil(gn, 'roundtable', dt).join(' ')),
  724. this.createVertexTemplateEntry(s + 'router;',
  725. w * 55, h * 56, '', 'Router', null, null, this.getTagsForStencil(gn, 'router', dt).join(' ')),
  726. this.createVertexTemplateEntry(s + 'session_border_controller;',
  727. w * 59, h * 52, '', 'Session Border Controller', null, null, this.getTagsForStencil(gn, 'session border controller', dt).join(' ')),
  728. this.createVertexTemplateEntry(s + 'shadowed_router;',
  729. w * 59, h * 59, '', 'Shadowed Router', null, null, this.getTagsForStencil(gn, 'shadowed router', dt).join(' ')),
  730. this.createVertexTemplateEntry(s + 'stylus;',
  731. w * 57, h * 57, '', 'Stylus', null, null, this.getTagsForStencil(gn, 'stylus', dt).join(' ')),
  732. this.createVertexTemplateEntry(s + 'switch;',
  733. w * 55, h * 18, '', 'Switch', null, null, this.getTagsForStencil(gn, 'switch', dt).join(' ')),
  734. this.createVertexTemplateEntry(s + 'tablet_android;',
  735. w * 56, h * 37, '', 'Tablet, Android', null, null, this.getTagsForStencil(gn, 'tablet android', dt).join(' ')),
  736. this.createVertexTemplateEntry(s + 'tablet_ipad;',
  737. w * 39, h * 52, '', 'Tablet, iPad', null, null, this.getTagsForStencil(gn, 'tablet ipad', dt).join(' ')),
  738. this.createVertexTemplateEntry(s + 'tablet_windows_7inch;',
  739. w * 34, h * 47, '', 'Tablet, Windows, 7inch', null, null, this.getTagsForStencil(gn, 'tablet windows seven inch', dt).join(' ')),
  740. this.createVertexTemplateEntry(s + 'tablet_windows_8;',
  741. w * 56, h * 35, '', 'Tablet, Windows 8', null, null, this.getTagsForStencil(gn, 'tablet windows eight', dt).join(' ')),
  742. this.createVertexTemplateEntry(s + 'tv;',
  743. w * 59, h * 45, '', 'TV', null, null, this.getTagsForStencil(gn, 'tv television', dt).join(' ')),
  744. this.createVertexTemplateEntry(s + 'video_camera;',
  745. w * 52, h * 25, '', 'Video Camera', null, null, this.getTagsForStencil(gn, 'video camera', dt).join(' ')),
  746. this.createVertexTemplateEntry(s + 'video_gateway;',
  747. w * 59, h * 41, '', 'Video Gateway', null, null, this.getTagsForStencil(gn, 'video gateway', dt).join(' ')),
  748. this.createVertexTemplateEntry(s + 'webcam;',
  749. w * 40, h * 50, '', 'Webcam', null, null, this.getTagsForStencil(gn, 'webcam', dt).join(' ')),
  750. this.createVertexTemplateEntry(s + 'webcam_hd;',
  751. w * 56, h * 59, '', 'Webcam, HD', null, null, this.getTagsForStencil(gn, 'webcam hd high definition', dt).join(' ')),
  752. this.createVertexTemplateEntry(s + 'workstation;',
  753. w * 53, h * 56, '', 'Workstation', null, null, this.getTagsForStencil(gn, 'workstation', dt).join(' ')),
  754. this.createVertexTemplateEntry(s + 'workstation_pc;',
  755. w * 53, h * 59, '', 'Workstation, PC', null, null, this.getTagsForStencil(gn, 'workstation pc personal computer', dt).join(' ')),
  756. this.createVertexTemplateEntry(s + 'workstation_visual_studio;',
  757. w * 53, h * 59, '', 'Workstation, Visual Studio', null, null, this.getTagsForStencil(gn, 'workstation visual studio', dt).join(' '))
  758. ];
  759. this.addPalette('officeDevices', 'Office / Devices', false, mxUtils.bind(this, function(content)
  760. {
  761. for (var i = 0; i < fns.length; i++)
  762. {
  763. content.appendChild(fns[i](content));
  764. }
  765. }));
  766. };
  767. Sidebar.prototype.addOfficeSecurityPalette = function()
  768. {
  769. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.security.';
  770. var s2 = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.security.';
  771. // Space savers
  772. var sb = this;
  773. var gn = 'mxgraph.office.security';
  774. var dt = 'office security ';
  775. var w = 1.0;
  776. var h = 1.0;
  777. var fns =
  778. [
  779. this.createVertexTemplateEntry(s + 'active_directory;',
  780. w * 53, h * 46, '', 'Active Directory', null, null, this.getTagsForStencil(gn, 'active directory', dt).join(' ')),
  781. this.createVertexTemplateEntry(s + 'address_book_policies;',
  782. w * 55, h * 53, '', 'Address Book Policies', null, null, this.getTagsForStencil(gn, 'address book policies', dt).join(' ')),
  783. this.createVertexTemplateEntry(s + 'certificate;',
  784. w * 58, h * 50, '', 'Certificate', null, null, this.getTagsForStencil(gn, 'certificate', dt).join(' ')),
  785. this.createVertexTemplateEntry(s + 'certificate;',
  786. w * 39, h * 33, '', 'Certificate (small)', null, null, this.getTagsForStencil(gn, 'certificate small', dt).join(' ')),
  787. this.createVertexTemplateEntry(s + 'credentials;',
  788. w * 56, h * 58, '', 'Credentials', null, null, this.getTagsForStencil(gn, 'credentials', dt).join(' ')),
  789. this.createVertexTemplateEntry(s + 'domain;',
  790. w * 53, h * 46, '', 'Domain', null, null, this.getTagsForStencil(gn, 'domain', dt).join(' ')),
  791. this.createVertexTemplateEntry(s + 'domain;',
  792. w * 41, h * 36, '', 'Domain (small)', null, null, this.getTagsForStencil(gn, 'domain', dt).join(' ')),
  793. this.createVertexTemplateEntry(s + 'email_address_policy;',
  794. w * 55, h * 53, '', 'Email Address Policy', null, null, this.getTagsForStencil(gn, 'email address policy', dt).join(' ')),
  795. this.createVertexTemplateEntry(s + 'federation_service;',
  796. w * 58, h * 59, '', 'Federation Service', null, null, this.getTagsForStencil(gn, 'federation service', dt).join(' ')),
  797. this.createVertexTemplateEntry(s + 'federation_trust;',
  798. w * 58, h * 59, '', 'Federation Trust', null, null, this.getTagsForStencil(gn, 'federation trust', dt).join(' ')),
  799. this.createVertexTemplateEntry(s + 'irm_protected_message;',
  800. w * 56, h * 50, '', 'IRM-Protected Message', null, null, this.getTagsForStencil(gn, 'irm protected message', dt).join(' ')),
  801. this.createVertexTemplateEntry(s + 'key_permissions;',
  802. w * 25, h * 53, '', 'Key, Permissions', null, null, this.getTagsForStencil(gn, 'key permissions', dt).join(' ')),
  803. this.createVertexTemplateEntry(s2 + 'key_permissions;fillColor=#2072B8;',
  804. w * 25, h * 53, '', 'Key, Permissions (blue)', null, null, this.getTagsForStencil(gn, 'key permissions', dt).join(' ')),
  805. this.createVertexTemplateEntry(s2 + 'key_permissions;fillColor=#DA4026;',
  806. w * 25, h * 53, '', 'Key, Permissions (orange)', null, null, this.getTagsForStencil(gn, 'key permissions', dt).join(' ')),
  807. this.createVertexTemplateEntry(s2 + 'key_permissions;fillColor=#7FBA42;',
  808. w * 25, h * 53, '', 'Key, Permissions (green)', null, null, this.getTagsForStencil(gn, 'key permissions', dt).join(' ')),
  809. this.createVertexTemplateEntry(s2 + 'key_permissions;fillColor=#CCCBCB;',
  810. w * 25, h * 53, '', 'Key, Permissions (ghosted)', null, null, this.getTagsForStencil(gn, 'key permissions', dt).join(' ')),
  811. this.createVertexTemplateEntry(s + 'key_permissions;',
  812. w * 19, h * 40, '', 'Key, Permissions (small)', null, null, this.getTagsForStencil(gn, 'key permissions small', dt).join(' ')),
  813. this.createVertexTemplateEntry(s + 'lock_protected;',
  814. w * 38, h * 52, '', 'Lock, Protected', null, null, this.getTagsForStencil(gn, 'lock protected', dt).join(' ')),
  815. this.createVertexTemplateEntry(s2 + 'lock_protected;fillColor=#2072B8;',
  816. w * 38, h * 52, '', 'Lock, Protected (blue)', null, null, this.getTagsForStencil(gn, 'lock protected', dt).join(' ')),
  817. this.createVertexTemplateEntry(s2 + 'lock_protected;fillColor=#DA4026;',
  818. w * 38, h * 52, '', 'Lock, Protected (orange)', null, null, this.getTagsForStencil(gn, 'lock protected', dt).join(' ')),
  819. this.createVertexTemplateEntry(s2 + 'lock_protected;fillColor=#7FBA42;',
  820. w * 38, h * 52, '', 'Lock, Protected (green)', null, null, this.getTagsForStencil(gn, 'lock protected', dt).join(' ')),
  821. this.createVertexTemplateEntry(s2 + 'lock_protected;fillColor=#CCCBCB;',
  822. w * 38, h * 52, '', 'Lock, Protected (ghosted)', null, null, this.getTagsForStencil(gn, 'lock protected', dt).join(' ')),
  823. this.createVertexTemplateEntry(s + 'lock_protected;',
  824. w * 28, h * 37, '', 'Lock, Protected (small)', null, null, this.getTagsForStencil(gn, 'lock protected small', dt).join(' ')),
  825. this.createVertexTemplateEntry(s + 'lock_unprotected;',
  826. w * 38, h * 55, '', 'Lock, Unprotected', null, null, this.getTagsForStencil(gn, 'lock unprotected', dt).join(' ')),
  827. this.createVertexTemplateEntry(s2 + 'lock_unprotected;fillColor=#2072B8;',
  828. w * 38, h * 55, '', 'Lock, Unprotected (blue)', null, null, this.getTagsForStencil(gn, 'lock unprotected', dt).join(' ')),
  829. this.createVertexTemplateEntry(s2 + 'lock_unprotected;fillColor=#DA4026;',
  830. w * 38, h * 55, '', 'Lock, Unprotected (orange)', null, null, this.getTagsForStencil(gn, 'lock unprotected', dt).join(' ')),
  831. this.createVertexTemplateEntry(s2 + 'lock_unprotected;fillColor=#7FBA42;',
  832. w * 38, h * 55, '', 'Lock, Unprotected (green)', null, null, this.getTagsForStencil(gn, 'lock unprotected', dt).join(' ')),
  833. this.createVertexTemplateEntry(s2 + 'lock_unprotected;fillColor=#CCCBCB;',
  834. w * 38, h * 55, '', 'Lock, Unprotected (ghosted)', null, null, this.getTagsForStencil(gn, 'lock unprotected', dt).join(' ')),
  835. this.createVertexTemplateEntry(s + 'lock_unprotected;',
  836. w * 28, h * 40, '', 'Lock, Unprotected (small)', null, null, this.getTagsForStencil(gn, 'lock unprotected small', dt).join(' ')),
  837. this.createVertexTemplateEntry(s + 'lock_with_key_security;',
  838. w * 47, h * 58, '', 'Lock With Key, Security', null, null, this.getTagsForStencil(gn, 'lock with key security', dt).join(' ')),
  839. this.createVertexTemplateEntry(s + 'lock_with_key_security_blue;',
  840. w * 47, h * 58, '', 'Lock With Key, Security (blue)', null, null, this.getTagsForStencil(gn, 'lock with key security', dt).join(' ')),
  841. this.createVertexTemplateEntry(s + 'lock_with_key_security_orange;',
  842. w * 47, h * 58, '', 'Lock With Key, Security (orange)', null, null, this.getTagsForStencil(gn, 'lock with key security', dt).join(' ')),
  843. this.createVertexTemplateEntry(s + 'lock_with_key_security_green;',
  844. w * 47, h * 58, '', 'Lock With Key, Security (green)', null, null, this.getTagsForStencil(gn, 'lock with key security', dt).join(' ')),
  845. this.createVertexTemplateEntry(s + 'lock_with_key_security_ghosted;',
  846. w * 47, h * 58, '', 'Lock With Key, Security (ghosted)', null, null, this.getTagsForStencil(gn, 'lock with key security', dt).join(' ')),
  847. this.createVertexTemplateEntry(s + 'management_role;',
  848. w * 45, h * 45, '', 'Management Role', null, null, this.getTagsForStencil(gn, 'management role', dt).join(' ')),
  849. this.createVertexTemplateEntry(s + 'policy;',
  850. w * 53, h * 49, '', 'Policy', null, null, this.getTagsForStencil(gn, 'policy', dt).join(' ')),
  851. this.createVertexTemplateEntry(s + 'policy;',
  852. w * 39, h * 36, '', 'Policy (small)', null, null, this.getTagsForStencil(gn, 'policy small', dt).join(' ')),
  853. this.createVertexTemplateEntry(s + 'protected_voice_mail;',
  854. w * 59, h * 51, '', 'Protected Voice Mail', null, null, this.getTagsForStencil(gn, 'protected voice mail', dt).join(' ')),
  855. this.createVertexTemplateEntry(s + 'retention_policy;',
  856. w * 54, h * 55, '', 'Retention Policy', null, null, this.getTagsForStencil(gn, 'retention policy', dt).join(' ')),
  857. this.createVertexTemplateEntry(s + 'retention_policy_tag;',
  858. w * 56, h * 58, '', 'Retention Policy Tag', null, null, this.getTagsForStencil(gn, 'retention policy tag', dt).join(' ')),
  859. this.createVertexTemplateEntry(s + 'role_assignment_policy;',
  860. w * 55, h * 54, '', 'Role Assignment Policy', null, null, this.getTagsForStencil(gn, 'role assignment policy', dt).join(' ')),
  861. this.createVertexTemplateEntry(s + 'role_group;',
  862. w * 59, h * 56, '', 'Role Group', null, null, this.getTagsForStencil(gn, 'role group', dt).join(' ')),
  863. this.createVertexTemplateEntry(s + 'secure_messaging;',
  864. w * 55, h * 46, '', 'Secure Messaging', null, null, this.getTagsForStencil(gn, 'secure messaging', dt).join(' ')),
  865. this.createVertexTemplateEntry(s + 'security_access_portal;',
  866. w * 64, h * 55, '', 'Security Access Portal', null, null, this.getTagsForStencil(gn, 'security access portal', dt).join(' ')),
  867. this.createVertexTemplateEntry(s + 'sharing_policy;',
  868. w * 56, h * 53, '', 'Sharing Policy', null, null, this.getTagsForStencil(gn, 'sharing policy', dt).join(' ')),
  869. this.createVertexTemplateEntry(s + 'split_domain_user;',
  870. w * 59, h * 55, '', 'Split-Domain User', null, null, this.getTagsForStencil(gn, 'split domain user', dt).join(' ')),
  871. this.createVertexTemplateEntry(s + 'token;',
  872. w * 41, h * 52, '', 'Token', null, null, this.getTagsForStencil(gn, 'token', dt).join(' ')),
  873. this.createVertexTemplateEntry(s + 'token;',
  874. w * 29, h * 37, '', 'Token (small)', null, null, this.getTagsForStencil(gn, 'token small', dt).join(' ')),
  875. this.createVertexTemplateEntry(s + 'token_service;',
  876. w * 60, h * 56, '', 'Token Service', null, null, this.getTagsForStencil(gn, 'token service', dt).join(' ')),
  877. this.createVertexTemplateEntry(s + 'trusted_application_server;',
  878. w * 46, h * 57, '', 'Trusted Application Server', null, null, this.getTagsForStencil(gn, 'trusted application server', dt).join(' ')),
  879. this.createVertexTemplateEntry(s + 'um_mailbox_policy;',
  880. w * 55, h * 53, '', 'UM Mailbox Policy', null, null, this.getTagsForStencil(gn, 'um mailbox policy', dt).join(' ')),
  881. this.createVertexTemplateEntry(s + 'universal_security_group;',
  882. w * 58, h * 58, '', 'Universal Security Group', null, null, this.getTagsForStencil(gn, 'universal security group', dt).join(' '))
  883. ];
  884. this.addPalette('officeSecurity', 'Office / Security', false, mxUtils.bind(this, function(content)
  885. {
  886. for (var i = 0; i < fns.length; i++)
  887. {
  888. content.appendChild(fns[i](content));
  889. }
  890. }));
  891. };
  892. Sidebar.prototype.addOfficeServersPalette = function()
  893. {
  894. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.servers.';
  895. var s2 = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.servers.';
  896. // Space savers
  897. var sb = this;
  898. var gn = 'mxgraph.office.servers';
  899. var dt = 'office server ';
  900. var w = 1.0;
  901. var h = 1.0;
  902. var fns =
  903. [
  904. this.createVertexTemplateEntry(s + '3rd_party_mail_server;',
  905. w * 47, h * 59, '', '3rd Party Mail Server', null, null, this.getTagsForStencil(gn, '3rd party mail server', dt).join(' ')),
  906. this.createVertexTemplateEntry(s + 'active_directory_federation_services_proxy;',
  907. w * 44, h * 55, '', 'Active Directory Federation Services Proxy', null, null, this.getTagsForStencil(gn, 'active directory federation services proxy', dt).join(' ')),
  908. this.createVertexTemplateEntry(s + 'active_directory_federation_services_server;',
  909. w * 45, h * 56, '', 'Active Directory Federation Services Server', null, null, this.getTagsForStencil(gn, 'active directory federation services server', dt).join(' ')),
  910. this.createVertexTemplateEntry(s + 'active_directory_federation_services_server_blue;',
  911. w * 45, h * 56, '', 'Active Directory Federation Services Server (blue)', null, null, this.getTagsForStencil(gn, 'active directory federation services server', dt).join(' ')),
  912. this.createVertexTemplateEntry(s + 'active_directory_federation_services_server_orange;',
  913. w * 45, h * 56, '', 'Active Directory Federation Services Server (orange)', null, null, this.getTagsForStencil(gn, 'active directory federation services server', dt).join(' ')),
  914. this.createVertexTemplateEntry(s + 'active_directory_federation_services_server_green;',
  915. w * 45, h * 56, '', 'Active Directory Federation Services Server (green)', null, null, this.getTagsForStencil(gn, 'active directory federation services server', dt).join(' ')),
  916. this.createVertexTemplateEntry(s + 'active_directory_federation_services_server_ghosted;',
  917. w * 45, h * 56, '', 'Active Directory Federation Services Server (ghosted)', null, null, this.getTagsForStencil(gn, 'active directory federation services server', dt).join(' ')),
  918. this.createVertexTemplateEntry(s + 'application_server;',
  919. w * 46, h * 56, '', 'Application Server', null, null, this.getTagsForStencil(gn, 'application server', dt).join(' ')),
  920. this.createVertexTemplateEntry(s + 'application_server_blue;',
  921. w * 46, h * 56, '', 'Application Server (blue)', null, null, this.getTagsForStencil(gn, 'application server', dt).join(' ')),
  922. this.createVertexTemplateEntry(s + 'application_server_orange;',
  923. w * 46, h * 56, '', 'Application Server (orange)', null, null, this.getTagsForStencil(gn, 'application server', dt).join(' ')),
  924. this.createVertexTemplateEntry(s + 'application_server_green;',
  925. w * 46, h * 56, '', 'Application Server (green)', null, null, this.getTagsForStencil(gn, 'application server', dt).join(' ')),
  926. this.createVertexTemplateEntry(s + 'application_server_ghosted;',
  927. w * 46, h * 56, '', 'Application Server (ghosted)', null, null, this.getTagsForStencil(gn, 'application server', dt).join(' ')),
  928. this.createVertexTemplateEntry(s + 'call_admission_control_service;',
  929. w * 50, h * 60, '', 'Call Admission Control Service', null, null, this.getTagsForStencil(gn, 'call admission control service', dt).join(' ')),
  930. this.createVertexTemplateEntry(s + 'certificate_authority;',
  931. w * 46, h * 59, '', 'Certificate Authority', null, null, this.getTagsForStencil(gn, 'certificate authority', dt).join(' ')),
  932. this.createVertexTemplateEntry(s + 'cluster_server;',
  933. w * 49, h * 59, '', 'Cluster Server', null, null, this.getTagsForStencil(gn, 'cluster_server', dt).join(' ')),
  934. this.createVertexTemplateEntry(s + 'database_server;',
  935. w * 43, h * 56, '', 'Database Server', null, null, this.getTagsForStencil(gn, 'database_server', dt).join(' ')),
  936. this.createVertexTemplateEntry(s + 'database_server_blue;',
  937. w * 43, h * 56, '', 'Database Server (blue)', null, null, this.getTagsForStencil(gn, 'database_server', dt).join(' ')),
  938. this.createVertexTemplateEntry(s + 'database_server_orange;',
  939. w * 43, h * 56, '', 'Database Server (orange)', null, null, this.getTagsForStencil(gn, 'database_server', dt).join(' ')),
  940. this.createVertexTemplateEntry(s + 'database_server_green;',
  941. w * 43, h * 56, '', 'Database Server (green)', null, null, this.getTagsForStencil(gn, 'database_server', dt).join(' ')),
  942. this.createVertexTemplateEntry(s + 'database_server_ghosted;',
  943. w * 43, h * 56, '', 'Database Server (ghosted)', null, null, this.getTagsForStencil(gn, 'database_server', dt).join(' ')),
  944. this.createVertexTemplateEntry(s + 'datacenter;',
  945. w * 53, h * 53, '', 'Datacenter', null, null, this.getTagsForStencil(gn, 'datacenter', dt).join(' ')),
  946. this.createVertexTemplateEntry(s + 'dirsync_server;',
  947. w * 47, h * 56, '', 'DirSync Server', null, null, this.getTagsForStencil(gn, 'dirsync server', dt).join(' ')),
  948. this.createVertexTemplateEntry(s + 'domain_controller;',
  949. w * 45, h * 55, '', 'Domain Controller', null, null, this.getTagsForStencil(gn, 'domain controller', dt).join(' ')),
  950. this.createVertexTemplateEntry(s + 'excahnge_client_access_server_role;',
  951. w * 52, h * 59, '', 'Exchange Client Access Server Role', null, null, this.getTagsForStencil(gn, 'excahnge client access server role', dt).join(' ')),
  952. this.createVertexTemplateEntry(s + 'exchange_edge_transport_server_role;',
  953. w * 52, h * 55, '', 'Exchange Edge Transport Server Role', null, null, this.getTagsForStencil(gn, 'exchange edge transport server role', dt).join(' ')),
  954. this.createVertexTemplateEntry(s + 'exchange_hub_transport_server_role;',
  955. w * 52, h * 59, '', 'Exchange Hub Transport Server Role', null, null, this.getTagsForStencil(gn, 'exchange hub transport server role', dt).join(' ')),
  956. this.createVertexTemplateEntry(s + 'exchange_mailbox_server_role;',
  957. w * 52, h * 59, '', 'Exchange Mailbox Server Role', null, null, this.getTagsForStencil(gn, 'exchange mailbox server role', dt).join(' ')),
  958. this.createVertexTemplateEntry(s + 'exchange_um_server_role;',
  959. w * 52, h * 59, '', 'Exchange UM Server Role', null, null, this.getTagsForStencil(gn, 'exchange um server role', dt).join(' ')),
  960. this.createVertexTemplateEntry(s + 'exchange_client_access_server;',
  961. w * 57, h * 59, '', 'Exchange Client Access Server', null, null, this.getTagsForStencil(gn, 'exchange client access server', dt).join(' ')),
  962. this.createVertexTemplateEntry(s + 'exchange_edge_transport_server;',
  963. w * 57, h * 55, '', 'Exchange Edge Transport Server', null, null, this.getTagsForStencil(gn, 'exchange edge transport server', dt).join(' ')),
  964. this.createVertexTemplateEntry(s + 'exchange_mailbox_server;',
  965. w * 57, h * 59, '', 'Exchange Mailbox Server', null, null, this.getTagsForStencil(gn, 'exchange mailbox server', dt).join(' ')),
  966. this.createVertexTemplateEntry(s + 'exchange_server;',
  967. w * 57, h * 55, '', 'Exchange Server', null, null, this.getTagsForStencil(gn, 'exchange server', dt).join(' ')),
  968. this.createVertexTemplateEntry(s + 'file_server;',
  969. w * 45, h * 56, '', 'File Server', null, null, this.getTagsForStencil(gn, 'file server', dt).join(' ')),
  970. this.createVertexTemplateEntry(s + 'hybrid_server;',
  971. w * 59, h * 52, '', 'Hybrid Server', null, null, this.getTagsForStencil(gn, 'hybrid server', dt).join(' ')),
  972. this.createVertexTemplateEntry(s + 'mainframe;',
  973. w * 58, h * 42, '', 'Mainframe', null, null, this.getTagsForStencil(gn, 'mainframe', dt).join(' ')),
  974. this.createVertexTemplateEntry(s + 'mainframe_host;',
  975. w * 44, h * 42, '', 'Mainframe Host', null, null, this.getTagsForStencil(gn, 'mainframe host', dt).join(' ')),
  976. this.createVertexTemplateEntry(s + 'monitoring_sql_reporting_services;',
  977. w * 50, h * 59, '', 'Monitoring SQL Reporting Services', null, null, this.getTagsForStencil(gn, 'monitoring sql reporting services', dt).join(' ')),
  978. this.createVertexTemplateEntry(s + 'network;',
  979. w * 34, h * 57, '', 'Network', null, null, this.getTagsForStencil(gn, 'network', dt).join(' ')),
  980. this.createVertexTemplateEntry(s + 'office_web_apps_server;',
  981. w * 52, h * 56, '', 'Office Web Apps Server', null, null, this.getTagsForStencil(gn, 'office web apps server', dt).join(' ')),
  982. this.createVertexTemplateEntry(s + 'on_premises_server;',
  983. w * 44, h * 58, '', 'On Premises Server', null, null, this.getTagsForStencil(gn, 'on premises server', dt).join(' ')),
  984. this.createVertexTemplateEntry(s2 + 'physical_host;fillColor=#2072B8;',
  985. w * 27, h * 52, '', 'Physical Host', null, null, this.getTagsForStencil(gn, 'physical host', dt).join(' ')),
  986. this.createVertexTemplateEntry(s2 + 'physical_host_farm;fillColor=#2072B8;',
  987. w * 56, h * 49, '', 'Physical Host Farm', null, null, this.getTagsForStencil(gn, 'physical host farm', dt).join(' ')),
  988. this.createVertexTemplateEntry(s + 'reverse_proxy;',
  989. w * 41, h * 53, '', 'Reverse Proxy', null, null, this.getTagsForStencil(gn, 'reverse proxy', dt).join(' ')),
  990. this.createVertexTemplateEntry(s + 'scom;',
  991. w * 56, h * 53, '', 'SCOM', null, null, this.getTagsForStencil(gn, 'scom', dt).join(' ')),
  992. this.createVertexTemplateEntry(s + 'server_disaster;',
  993. w * 46, h * 57, '', 'Server Disaster', null, null, this.getTagsForStencil(gn, 'server disaster', dt).join(' ')),
  994. this.createVertexTemplateEntry(s + 'server_farm;',
  995. w * 56, h * 49, '', 'Server Farm', null, null, this.getTagsForStencil(gn, 'server_farm', dt).join(' ')),
  996. this.createVertexTemplateEntry(s + 'server_farm;fillColor=#2072B8;',
  997. w * 56, h * 49, '', 'Server Farm (blue)', null, null, this.getTagsForStencil(gn, 'server_farm', dt).join(' ')),
  998. this.createVertexTemplateEntry(s + 'server_farm;fillColor=#DA4026;',
  999. w * 56, h * 49, '', 'Server Farm (orange)', null, null, this.getTagsForStencil(gn, 'server_farm', dt).join(' ')),
  1000. this.createVertexTemplateEntry(s + 'server_farm;fillColor=#7FBA42;',
  1001. w * 56, h * 49, '', 'Server Farm (green)', null, null, this.getTagsForStencil(gn, 'server_farm', dt).join(' ')),
  1002. this.createVertexTemplateEntry(s + 'server_farm;fillColor=#CCCBCB;',
  1003. w * 56, h * 49, '', 'Server Farm (ghosted)', null, null, this.getTagsForStencil(gn, 'server_farm', dt).join(' ')),
  1004. this.createVertexTemplateEntry(s + 'server_generic;',
  1005. w * 27, h * 52, '', 'Server, Generic', null, null, this.getTagsForStencil(gn, 'server generic', dt).join(' ')),
  1006. this.createVertexTemplateEntry(s2 + 'server_generic;fillColor=#2072B8;',
  1007. w * 27, h * 52, '', 'Server, Generic (blue)', null, null, this.getTagsForStencil(gn, 'server generic', dt).join(' ')),
  1008. this.createVertexTemplateEntry(s2 + 'server_generic;fillColor=#DA4026;',
  1009. w * 27, h * 52, '', 'Server, Generic (orange)', null, null, this.getTagsForStencil(gn, 'server generic', dt).join(' ')),
  1010. this.createVertexTemplateEntry(s2 + 'server_generic;fillColor=#7FBA42;',
  1011. w * 27, h * 52, '', 'Server, Generic (green)', null, null, this.getTagsForStencil(gn, 'server generic', dt).join(' ')),
  1012. this.createVertexTemplateEntry(s2 + 'server_generic;fillColor=#CCCBCB;',
  1013. w * 27, h * 52, '', 'Server, Generic (ghosted)', null, null, this.getTagsForStencil(gn, 'server generic', dt).join(' ')),
  1014. this.createVertexTemplateEntry(s + 'server_generic;',
  1015. w * 20, h * 39, '', 'Server, Generic (small)', null, null, this.getTagsForStencil(gn, 'server generic small', dt).join(' ')),
  1016. this.createVertexTemplateEntry(s + 'server_side_code;',
  1017. w * 49, h * 56, '', 'Server Side Code', null, null, this.getTagsForStencil(gn, 'server side code', dt).join(' ')),
  1018. this.createVertexTemplateEntry(s + 'sharepoint_server;',
  1019. w * 56, h * 55, '', 'Sharepoint Server', null, null, this.getTagsForStencil(gn, 'sharepoint server', dt).join(' ')),
  1020. this.createVertexTemplateEntry(s + 'skype_for_business_back_end_server;',
  1021. w * 54, h * 60, '', 'Skype for Business Back End Server', null, null, this.getTagsForStencil(gn, 'skype for business back end server', dt).join(' ')),
  1022. this.createVertexTemplateEntry(s + 'skype_for_business_back_end_server_mirror;',
  1023. w * 54, h * 60, '', 'Skype for Business Back End Server Mirror', null, null, this.getTagsForStencil(gn, 'skype for business back end server mirror', dt).join(' ')),
  1024. this.createVertexTemplateEntry(s + 'skype_for_business_director;',
  1025. w * 54, h * 55, '', 'Skype for Business Director', null, null, this.getTagsForStencil(gn, 'skype for business director', dt).join(' ')),
  1026. this.createVertexTemplateEntry(s + 'skype_for_business_director_array;',
  1027. w * 70, h * 60, '', 'Skype for Business Director Array', null, null, this.getTagsForStencil(gn, 'skype for business director array', dt).join(' ')),
  1028. this.createVertexTemplateEntry(s + 'skype_for_business_edge_server;',
  1029. w * 54, h * 55, '', 'Skype for Business Edge Server', null, null, this.getTagsForStencil(gn, 'skype for business edge server', dt).join(' ')),
  1030. this.createVertexTemplateEntry(s + 'skype_for_business_edge_server_pool;',
  1031. w * 70, h * 60, '', 'Skype for Business Edge Server Pool', null, null, this.getTagsForStencil(gn, 'skype for business edge server pool', dt).join(' ')),
  1032. this.createVertexTemplateEntry(s + 'skype_for_business_front_end_pool;',
  1033. w * 70, h * 60, '', 'Skype for Business Front End Pool', null, null, this.getTagsForStencil(gn, 'skype for business front end pool', dt).join(' ')),
  1034. this.createVertexTemplateEntry(s + 'skype_for_business_front_end_server;',
  1035. w * 54, h * 60, '', 'Skype for Business Front End Server', null, null, this.getTagsForStencil(gn, 'skype for business front end server', dt).join(' ')),
  1036. this.createVertexTemplateEntry(s + 'skype_for_business_mediation_server;',
  1037. w * 54, h * 60, '', 'Skype for Business Mediation Server', null, null, this.getTagsForStencil(gn, 'skype for business mediation server', dt).join(' ')),
  1038. this.createVertexTemplateEntry(s + 'skype_for_business_monitoring_server;',
  1039. w * 54, h * 60, '', 'Skype for Business Monitoring Server', null, null, this.getTagsForStencil(gn, 'skype for business monitoring server', dt).join(' ')),
  1040. this.createVertexTemplateEntry(s + 'skype_for_business_persistent_chat_server;',
  1041. w * 54, h * 58, '', 'Skype for Business Persistent Chat Server', null, null, this.getTagsForStencil(gn, 'skype for business persistent chat server', dt).join(' ')),
  1042. this.createVertexTemplateEntry(s + 'skype_for_business_server;',
  1043. w * 54, h * 55, '', 'Skype for Business Server', null, null, this.getTagsForStencil(gn, 'skype for business server', dt).join(' ')),
  1044. this.createVertexTemplateEntry(s + 'sql_server;',
  1045. w * 43, h * 56, '', 'SQL Server', null, null, this.getTagsForStencil(gn, 'sql server', dt).join(' ')),
  1046. this.createVertexTemplateEntry(s + 'survivable_branch_appliance;',
  1047. w * 37, h * 59, '', 'Survivable Branch Appliance', null, null, this.getTagsForStencil(gn, 'survivable branch appliance', dt).join(' ')),
  1048. this.createVertexTemplateEntry(s + 'survivable_branch_server;',
  1049. w * 42, h * 58, '', 'Survivable Branch Server', null, null, this.getTagsForStencil(gn, 'survivable branch server', dt).join(' ')),
  1050. this.createVertexTemplateEntry(s + 'topology_builder;',
  1051. w * 59, h * 59, '', 'Topology Builder', null, null, this.getTagsForStencil(gn, 'topology builder', dt).join(' ')),
  1052. this.createVertexTemplateEntry(s + 'trusted_application_pool;',
  1053. w * 59, h * 59, '', 'Trusted Application Pool', null, null, this.getTagsForStencil(gn, 'trusted application pool', dt).join(' ')),
  1054. this.createVertexTemplateEntry(s + 'trusted_application_server;',
  1055. w * 43, h * 52, '', 'Trusted Application Server', null, null, this.getTagsForStencil(gn, 'trusted application server', dt).join(' ')),
  1056. this.createVertexTemplateEntry(s + 'tunnel_angled;',
  1057. w * 55, h * 35, '', 'Tunnel Angled', null, null, this.getTagsForStencil(gn, 'tunnel angled', dt).join(' ')),
  1058. this.createVertexTemplateEntry(s + 'tunnel_straight;',
  1059. w * 59, h * 10, '', 'Tunnel Straight', null, null, this.getTagsForStencil(gn, 'tunnel straight', dt).join(' ')),
  1060. this.createVertexTemplateEntry(s + 'universal_security_group;',
  1061. w * 58, h * 58, '', 'Universal Security Group', null, null, this.getTagsForStencil(gn, 'universal security group', dt).join(' ')),
  1062. this.createVertexTemplateEntry(s + 'video_interop_server;',
  1063. w * 54, h * 60, '', 'Video Interop Server', null, null, this.getTagsForStencil(gn, 'video interop server', dt).join(' ')),
  1064. this.createVertexTemplateEntry(s + 'virtual_application_server;',
  1065. w * 48, h * 55, '', 'Virtual Application Server', null, null, this.getTagsForStencil(gn, 'virtual application server', dt).join(' ')),
  1066. this.createVertexTemplateEntry(s2 + 'virtual_application_server;fillColor=#2072B8;',
  1067. w * 48, h * 55, '', 'Virtual Application Server (blue)', null, null, this.getTagsForStencil(gn, 'virtual application server', dt).join(' ')),
  1068. this.createVertexTemplateEntry(s + 'virtual_database_server;',
  1069. w * 41, h * 56, '', 'Virtual Database Server', null, null, this.getTagsForStencil(gn, 'virtual database server', dt).join(' ')),
  1070. this.createVertexTemplateEntry(s2 + 'virtual_database_server;fillColor=#2072B8;',
  1071. w * 41, h * 56, '', 'Virtual Database Server (blue)', null, null, this.getTagsForStencil(gn, 'virtual database server', dt).join(' ')),
  1072. this.createVertexTemplateEntry(s + 'virtual_server;',
  1073. w * 28, h * 52, '', 'Virtual Server', null, null, this.getTagsForStencil(gn, 'virtual server', dt).join(' ')),
  1074. this.createVertexTemplateEntry(s2 + 'virtual_server;fillColor=#2072B8;',
  1075. w * 28, h * 52, '', 'Virtual Server (blue)', null, null, this.getTagsForStencil(gn, 'virtual server', dt).join(' ')),
  1076. this.createVertexTemplateEntry(s + 'virtual_server;',
  1077. w * 20, h * 37, '', 'Virtual Server (small)', null, null, this.getTagsForStencil(gn, 'virtual server small', dt).join(' ')),
  1078. this.createVertexTemplateEntry(s + 'virtual_web_server;',
  1079. w * 44, h * 55, '', 'Virtual Web Server', null, null, this.getTagsForStencil(gn, 'virtual web server', dt).join(' ')),
  1080. this.createVertexTemplateEntry(s2 + 'virtual_web_server;fillColor=#2072B8;',
  1081. w * 44, h * 55, '', 'Virtual Web Server (blue)', null, null, this.getTagsForStencil(gn, 'virtual web server', dt).join(' ')),
  1082. this.createVertexTemplateEntry(s + 'vociemail_preview_partner;',
  1083. w * 46, h * 56, '', 'Vociemail Preview Partner', null, null, this.getTagsForStencil(gn, 'vociemail preview partner', dt).join(' ')),
  1084. this.createVertexTemplateEntry(s + 'web_server;',
  1085. w * 48, h * 57, '', 'Web Server', null, null, this.getTagsForStencil(gn, 'web server', dt).join(' ')),
  1086. this.createVertexTemplateEntry(s + 'web_server_blue;',
  1087. w * 48, h * 57, '', 'Web Server (blue)', null, null, this.getTagsForStencil(gn, 'web server', dt).join(' ')),
  1088. this.createVertexTemplateEntry(s + 'web_server_orange;',
  1089. w * 48, h * 57, '', 'Web Server (orange)', null, null, this.getTagsForStencil(gn, 'web server', dt).join(' ')),
  1090. this.createVertexTemplateEntry(s + 'web_server_green;',
  1091. w * 48, h * 57, '', 'Web Server (green)', null, null, this.getTagsForStencil(gn, 'web server', dt).join(' ')),
  1092. this.createVertexTemplateEntry(s + 'web_server_ghosted;',
  1093. w * 48, h * 57, '', 'Web Server (ghosted)', null, null, this.getTagsForStencil(gn, 'web server', dt).join(' ')),
  1094. this.createVertexTemplateEntry(s + 'windows_router;',
  1095. w * 52, h * 59, '', 'Windows Router', null, null, this.getTagsForStencil(gn, 'windows router', dt).join(' ')),
  1096. this.createVertexTemplateEntry(s + 'windows_server;',
  1097. w * 52, h * 55, '', 'Windows Server', null, null, this.getTagsForStencil(gn, 'windows server', dt).join(' '))
  1098. ];
  1099. this.addPalette('officeServers', 'Office / Servers', false, mxUtils.bind(this, function(content)
  1100. {
  1101. for (var i = 0; i < fns.length; i++)
  1102. {
  1103. content.appendChild(fns[i](content));
  1104. }
  1105. }));
  1106. };
  1107. Sidebar.prototype.addOfficeServicesPalette = function()
  1108. {
  1109. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.services.';
  1110. // Space savers
  1111. var sb = this;
  1112. var gn = 'mxgraph.office.services';
  1113. var dt = 'office service ';
  1114. var w = 1.0;
  1115. var h = 1.0;
  1116. var fns =
  1117. [
  1118. this.createVertexTemplateEntry(s + '3rd_party_service;',
  1119. w * 53, h * 54, '', '3rd Party Service', null, null, this.getTagsForStencil(gn, '3rd party service', dt).join(' ')),
  1120. this.createVertexTemplateEntry(s + 'access_services;',
  1121. w * 59, h * 49, '', 'Access Services', null, null, this.getTagsForStencil(gn, 'access services', dt).join(' ')),
  1122. this.createVertexTemplateEntry(s + 'business_connectivity_services;',
  1123. w * 34, h * 51, '', 'Business Connectivity Services', null, null, this.getTagsForStencil(gn, 'business connectivity services', dt).join(' ')),
  1124. this.createVertexTemplateEntry(s + 'call_admission_control_service;',
  1125. w * 50, h * 59, '', 'Call Admission Control Service', null, null, this.getTagsForStencil(gn, 'call admission control service', dt).join(' ')),
  1126. this.createVertexTemplateEntry(s + 'central_management_service;',
  1127. w * 51, h * 54, '', 'Central Management Service', null, null, this.getTagsForStencil(gn, 'central management service', dt).join(' ')),
  1128. this.createVertexTemplateEntry(s + 'conference_announcement_service;',
  1129. w * 59, h * 59, '', 'Conference Announcement Service', null, null, this.getTagsForStencil(gn, 'conference announcement service', dt).join(' ')),
  1130. this.createVertexTemplateEntry(s + 'device_update_service;',
  1131. w * 50, h * 54, '', 'Device Update Service', null, null, this.getTagsForStencil(gn, 'device update service', dt).join(' ')),
  1132. this.createVertexTemplateEntry(s + 'email_service;',
  1133. w * 58, h * 48, '', 'Email Service', null, null, this.getTagsForStencil(gn, 'email service', dt).join(' ')),
  1134. this.createVertexTemplateEntry(s + 'excel_services;',
  1135. w * 60, h * 49, '', 'Excel Services', null, null, this.getTagsForStencil(gn, 'excel services', dt).join(' ')),
  1136. this.createVertexTemplateEntry(s + 'federation_service;',
  1137. w * 58, h * 59, '', 'Federation Service', null, null, this.getTagsForStencil(gn, 'federation service', dt).join(' ')),
  1138. this.createVertexTemplateEntry(s + 'lync_storage_service;',
  1139. w * 65, h * 58, '', 'Lync Storage Service', null, null, this.getTagsForStencil(gn, 'lync storage service', dt).join(' ')),
  1140. this.createVertexTemplateEntry(s + 'lync_web_app_client;',
  1141. w * 83, h * 51, '', 'Lync Web App Client', null, null, this.getTagsForStencil(gn, 'lync web app client', dt).join(' ')),
  1142. this.createVertexTemplateEntry(s + 'mobility_service;',
  1143. w * 45, h * 53, '', 'Mobility Service', null, null, this.getTagsForStencil(gn, 'mobility service', dt).join(' ')),
  1144. this.createVertexTemplateEntry(s + 'network_file_share_service;',
  1145. w * 55, h * 53, '', 'Network File Share Service', null, null, this.getTagsForStencil(gn, 'network file share service', dt).join(' ')),
  1146. this.createVertexTemplateEntry(s + 'online_hosted_services;',
  1147. w * 56, h * 52, '', 'Online Hosted Services', null, null, this.getTagsForStencil(gn, 'online hosted services', dt).join(' ')),
  1148. this.createVertexTemplateEntry(s + 'outlook_web_app;',
  1149. w * 83, h * 51, '', 'Outlook Web App', null, null, this.getTagsForStencil(gn, 'outlook web app', dt).join(' ')),
  1150. this.createVertexTemplateEntry(s + 'powerpoint_automation_services;',
  1151. w * 59, h * 49, '', 'PowerPoint Automation Services', null, null, this.getTagsForStencil(gn, 'powerpoint automation services', dt).join(' ')),
  1152. this.createVertexTemplateEntry(s + 'push_notification_service;',
  1153. w * 50, h * 58, '', 'Push Notification Service', null, null, this.getTagsForStencil(gn, 'push notification service', dt).join(' ')),
  1154. this.createVertexTemplateEntry(s + 'registrar_service;',
  1155. w * 56, h * 52, '', 'Registrar Service', null, null, this.getTagsForStencil(gn, 'registrar service', dt).join(' ')),
  1156. this.createVertexTemplateEntry(s + 'response_group_service;',
  1157. w * 58, h * 54, '', 'Response Group Service', null, null, this.getTagsForStencil(gn, 'response group service', dt).join(' ')),
  1158. this.createVertexTemplateEntry(s + 'skype_for_business_storage_service;',
  1159. w * 62, h * 58, '', 'Skype for Business Storage Service', null, null, this.getTagsForStencil(gn, 'skype for business storage service', dt).join(' ')),
  1160. this.createVertexTemplateEntry(s + 'user_services;',
  1161. w * 59, h * 59, '', 'User Services', null, null, this.getTagsForStencil(gn, 'user services', dt).join(' ')),
  1162. this.createVertexTemplateEntry(s + 'verification_service;',
  1163. w * 57, h * 59, '', 'Verification Service', null, null, this.getTagsForStencil(gn, 'verification service', dt).join(' ')),
  1164. this.createVertexTemplateEntry(s + 'web_services;',
  1165. w * 60, h * 56, '', 'Web Services', null, null, this.getTagsForStencil(gn, 'web services', dt).join(' ')),
  1166. this.createVertexTemplateEntry(s + 'word_automation_services;',
  1167. w * 60, h * 49, '', 'Word Automation Services', null, null, this.getTagsForStencil(gn, 'word automation services', dt).join(' ')),
  1168. this.createVertexTemplateEntry(s + 'xmpp_service;',
  1169. w * 58, h * 52, '', 'XMPP Service', null, null, this.getTagsForStencil(gn, 'xmpp service', dt).join(' '))
  1170. ];
  1171. this.addPalette('officeServices', 'Office / Services', false, mxUtils.bind(this, function(content)
  1172. {
  1173. for (var i = 0; i < fns.length; i++)
  1174. {
  1175. content.appendChild(fns[i](content));
  1176. }
  1177. }));
  1178. };
  1179. Sidebar.prototype.addOfficeSitesPalette = function()
  1180. {
  1181. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.sites.';
  1182. var s2 = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.sites.';
  1183. // Space savers
  1184. var sb = this;
  1185. var gn = 'mxgraph.office.sites';
  1186. var dt = 'office site ';
  1187. var w = 1.0;
  1188. var h = 1.0;
  1189. var fns =
  1190. [
  1191. this.createVertexTemplateEntry(s + 'access_services;',
  1192. w * 59, h * 49, '', 'Access Services', null, null, this.getTagsForStencil(gn, 'access services', dt).join(' ')),
  1193. this.createVertexTemplateEntry(s + 'blog_site;',
  1194. w * 56, h * 49, '', 'Blog Site', null, null, this.getTagsForStencil(gn, 'blog site', dt).join(' ')),
  1195. this.createVertexTemplateEntry(s + 'business_connectivity_services;',
  1196. w * 34, h * 51, '', 'Business Connectivity Services', null, null, this.getTagsForStencil(gn, 'business connectivity services', dt).join(' ')),
  1197. this.createVertexTemplateEntry(s + 'excel_services;',
  1198. w * 60, h * 49, '', 'Excel Services', null, null, this.getTagsForStencil(gn, 'excel services', dt).join(' ')),
  1199. this.createVertexTemplateEntry(s + 'meeting_workspace_site;',
  1200. w * 58, h * 50, '', 'Meeting Workspace Site', null, null, this.getTagsForStencil(gn, 'meeting workspace site', dt).join(' ')),
  1201. this.createVertexTemplateEntry(s + 'my_site;',
  1202. w * 58, h * 49, '', 'My Site', null, null, this.getTagsForStencil(gn, 'my site', dt).join(' ')),
  1203. this.createVertexTemplateEntry(s + 'powerpoint_automation_services;',
  1204. w * 59, h * 49, '', 'PowerPoint Automation Services', null, null, this.getTagsForStencil(gn, 'powerpoint automation services', dt).join(' ')),
  1205. this.createVertexTemplateEntry(s + 'publish;',
  1206. w * 57, h * 48, '', 'Publish', null, null, this.getTagsForStencil(gn, 'publish', dt).join(' ')),
  1207. this.createVertexTemplateEntry(s + 'site_collection;',
  1208. w * 52, h * 40, '', 'Site Collection', null, null, this.getTagsForStencil(gn, 'site collection', dt).join(' ')),
  1209. this.createVertexTemplateEntry(s + 'site_shared;',
  1210. w * 56, h * 50, '', 'Site Shared', null, null, this.getTagsForStencil(gn, 'site shared', dt).join(' ')),
  1211. this.createVertexTemplateEntry(s + 'site_team;',
  1212. w * 60, h * 49, '', 'Site, Team', null, null, this.getTagsForStencil(gn, 'site team', dt).join(' ')),
  1213. this.createVertexTemplateEntry(s + 'subsite;',
  1214. w * 53, h * 40, '', 'Subsite', null, null, this.getTagsForStencil(gn, 'substitute', dt).join(' ')),
  1215. this.createVertexTemplateEntry(s2 + 'subsite;fillColor=#2072B8;',
  1216. w * 53, h * 40, '', 'Subsite (blue)', null, null, this.getTagsForStencil(gn, 'substitute', dt).join(' ')),
  1217. this.createVertexTemplateEntry(s2 + 'subsite;fillColor=#DA4026;',
  1218. w * 53, h * 40, '', 'Subsite (orange)', null, null, this.getTagsForStencil(gn, 'substitute', dt).join(' ')),
  1219. this.createVertexTemplateEntry(s2 + 'subsite;fillColor=#7FBA42;',
  1220. w * 53, h * 40, '', 'Subsite (green)', null, null, this.getTagsForStencil(gn, 'substitute', dt).join(' ')),
  1221. this.createVertexTemplateEntry(s2 + 'subsite;fillColor=#CCCBCB;',
  1222. w * 53, h * 40, '', 'Subsite (ghosted)', null, null, this.getTagsForStencil(gn, 'substitute', dt).join(' ')),
  1223. this.createVertexTemplateEntry(s + 'subsite;',
  1224. w * 38, h * 29, '', 'Subsite (small)', null, null, this.getTagsForStencil(gn, 'substitute small', dt).join(' ')),
  1225. this.createVertexTemplateEntry(s + 'upgrade_site;',
  1226. w * 59, h * 48, '', 'Upgrade Site', null, null, this.getTagsForStencil(gn, 'upgrade site', dt).join(' ')),
  1227. this.createVertexTemplateEntry(s + 'website;',
  1228. w * 59, h * 49, '', 'Website', null, null, this.getTagsForStencil(gn, 'website', dt).join(' ')),
  1229. this.createVertexTemplateEntry(s + 'website_public;',
  1230. w * 58, h * 48, '', 'Website, Public', null, null, this.getTagsForStencil(gn, 'website public', dt).join(' ')),
  1231. this.createVertexTemplateEntry(s + 'wiki_site;',
  1232. w * 59, h * 50, '', 'Wiki Site', null, null, this.getTagsForStencil(gn, 'wiki_site', dt).join(' ')),
  1233. this.createVertexTemplateEntry(s + 'word_automation_services;',
  1234. w * 60, h * 49, '', 'Word Automation Services', null, null, this.getTagsForStencil(gn, 'word automation services', dt).join(' '))
  1235. ];
  1236. this.addPalette('officeSites', 'Office / Sites', false, mxUtils.bind(this, function(content)
  1237. {
  1238. for (var i = 0; i < fns.length; i++)
  1239. {
  1240. content.appendChild(fns[i](content));
  1241. }
  1242. }));
  1243. };
  1244. Sidebar.prototype.addOfficeUsersPalette = function()
  1245. {
  1246. var s = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.users.';
  1247. var s2 = 'sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.users.';
  1248. // Space savers
  1249. var sb = this;
  1250. var gn = 'mxgraph.office.users';
  1251. var dt = 'office user ';
  1252. var w = 1.0;
  1253. var h = 1.0;
  1254. var fns =
  1255. [
  1256. this.createVertexTemplateEntry(s + 'administrator;',
  1257. w * 58, h * 56, '', 'Administrator', null, null, this.getTagsForStencil(gn, 'administrator', dt).join(' ')),
  1258. this.createVertexTemplateEntry(s + 'approver;',
  1259. w * 59, h * 55, '', 'Approver', null, null, this.getTagsForStencil(gn, 'approver', dt).join(' ')),
  1260. this.createVertexTemplateEntry(s + 'call_center_agent;',
  1261. w * 46, h * 55, '', 'Call Center Agent', null, null, this.getTagsForStencil(gn, 'call center agent', dt).join(' ')),
  1262. this.createVertexTemplateEntry(s + 'communications;',
  1263. w * 54, h * 58, '', 'Communications', null, null, this.getTagsForStencil(gn, 'communications', dt).join(' ')),
  1264. this.createVertexTemplateEntry(s + 'conferencing_attendant;',
  1265. w * 53, h * 59, '', 'Conferencing Attendant', null, null, this.getTagsForStencil(gn, 'conferencing attendant', dt).join(' ')),
  1266. this.createVertexTemplateEntry(s + 'credentials;',
  1267. w * 56, h * 58, '', 'Credentials', null, null, this.getTagsForStencil(gn, 'credentials', dt).join(' ')),
  1268. this.createVertexTemplateEntry(s + 'csv_file;',
  1269. w * 59, h * 43, '', 'CSV File', null, null, this.getTagsForStencil(gn, 'csv comma separated value file', dt).join(' ')),
  1270. this.createVertexTemplateEntry(s + 'distribution_group;',
  1271. w * 58, h * 59, '', 'Distribution Group', null, null, this.getTagsForStencil(gn, 'distribution group', dt).join(' ')),
  1272. this.createVertexTemplateEntry(s + 'dynamic_distribution_group;',
  1273. w * 58, h * 59, '', 'Dynamic Distribution Group', null, null, this.getTagsForStencil(gn, 'dynamic distribution group', dt).join(' ')),
  1274. this.createVertexTemplateEntry(s + 'mail_user;',
  1275. w * 58, h * 59, '', 'Mail User', null, null, this.getTagsForStencil(gn, 'mail user', dt).join(' ')),
  1276. this.createVertexTemplateEntry(s + 'meeting;',
  1277. w * 59, h * 38, '', 'Meeting', null, null, this.getTagsForStencil(gn, 'meeting', dt).join(' ')),
  1278. this.createVertexTemplateEntry(s + 'mobile_user;',
  1279. w * 59, h * 56, '', 'Mobile User', null, null, this.getTagsForStencil(gn, 'mobile user', dt).join(' ')),
  1280. this.createVertexTemplateEntry(s + 'online_user;',
  1281. w * 54, h * 43, '', 'Online User', null, null, this.getTagsForStencil(gn, 'online user', dt).join(' ')),
  1282. this.createVertexTemplateEntry(s + 'on_premises_user;',
  1283. w * 49, h * 59, '', 'On-Premises User', null, null, this.getTagsForStencil(gn, 'on premises user', dt).join(' ')),
  1284. this.createVertexTemplateEntry(s + 'outlook_user;',
  1285. w * 63, h * 55, '', 'Outlook User', null, null, this.getTagsForStencil(gn, 'outlook user', dt).join(' ')),
  1286. this.createVertexTemplateEntry(s + 'response_group;',
  1287. w * 58, h * 54, '', 'Response Group', null, null, this.getTagsForStencil(gn, 'response group', dt).join(' ')),
  1288. this.createVertexTemplateEntry(s + 'role_group;',
  1289. w * 59, h * 56, '', 'Role Group', null, null, this.getTagsForStencil(gn, 'role group', dt).join(' ')),
  1290. this.createVertexTemplateEntry(s + 'skype_commercial_user;',
  1291. w * 59, h * 56, '', 'Skype Commercial User', null, null, this.getTagsForStencil(gn, 'skype commercial user', dt).join(' ')),
  1292. this.createVertexTemplateEntry(s + 'skype_for_business_user;',
  1293. w * 59, h * 56, '', 'Skype for Business User', null, null, this.getTagsForStencil(gn, 'skype for business user', dt).join(' ')),
  1294. this.createVertexTemplateEntry(s + 'tenant_admin;',
  1295. w * 56, h * 58, '', 'Tenant Admin', null, null, this.getTagsForStencil(gn, 'tenant admin', dt).join(' ')),
  1296. this.createVertexTemplateEntry(s + 'um_enabled_user;',
  1297. w * 58, h * 59, '', 'UM-Enabled User', null, null, this.getTagsForStencil(gn, 'um enabled user', dt).join(' ')),
  1298. this.createVertexTemplateEntry(s + 'universal_security_group;',
  1299. w * 58, h * 58, '', 'Universal Security Group', null, null, this.getTagsForStencil(gn, 'universal security group', dt).join(' ')),
  1300. this.createVertexTemplateEntry(s + 'user;',
  1301. w * 46, h * 50, '', 'User', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
  1302. this.createVertexTemplateEntry(s2 + 'user;fillColor=#2072B8;',
  1303. w * 46, h * 50, '', 'User (blue)', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
  1304. this.createVertexTemplateEntry(s2 + 'user;fillColor=#DA4026;',
  1305. w * 46, h * 50, '', 'User (orange)', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
  1306. this.createVertexTemplateEntry(s2 + 'user;fillColor=#7FBA42;',
  1307. w * 46, h * 50, '', 'User (green)', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
  1308. this.createVertexTemplateEntry(s2 + 'user;fillColor=#CCCBCB;',
  1309. w * 46, h * 50, '', 'User (ghosted)', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
  1310. this.createVertexTemplateEntry(s + 'user;',
  1311. w * 32, h * 35, '', 'User (small)', null, null, this.getTagsForStencil(gn, 'user small', dt).join(' ')),
  1312. this.createVertexTemplateEntry(s + 'users;',
  1313. w * 46, h * 50, '', 'Users', null, null, this.getTagsForStencil(gn, 'users', dt).join(' ')),
  1314. this.createVertexTemplateEntry(s2 + 'users;fillColor=#2072B8;',
  1315. w * 46, h * 50, '', 'Users (blue)', null, null, this.getTagsForStencil(gn, 'users', dt).join(' ')),
  1316. this.createVertexTemplateEntry(s2 + 'users;fillColor=#DA4026;',
  1317. w * 46, h * 50, '', 'Users (orange)', null, null, this.getTagsForStencil(gn, 'users', dt).join(' ')),
  1318. this.createVertexTemplateEntry(s2 + 'users;fillColor=#7FBA42;',
  1319. w * 46, h * 50, '', 'Users (green)', null, null, this.getTagsForStencil(gn, 'users', dt).join(' ')),
  1320. this.createVertexTemplateEntry(s2 + 'users;fillColor=#CCCBCB;',
  1321. w * 46, h * 50, '', 'Users (ghosted)', null, null, this.getTagsForStencil(gn, 'users', dt).join(' ')),
  1322. this.createVertexTemplateEntry(s + 'users_two;',
  1323. w * 57, h * 43, '', 'Users, Two', null, null, this.getTagsForStencil(gn, 'users two', dt).join(' ')),
  1324. this.createVertexTemplateEntry(s + 'users_two;fillColor=#2072B8;',
  1325. w * 57, h * 43, '', 'Users, Two (blue)', null, null, this.getTagsForStencil(gn, 'users two', dt).join(' ')),
  1326. this.createVertexTemplateEntry(s + 'users_two;fillColor=#DA4026;',
  1327. w * 57, h * 43, '', 'Users, Two (orange)', null, null, this.getTagsForStencil(gn, 'users two', dt).join(' ')),
  1328. this.createVertexTemplateEntry(s + 'users_two;fillColor=#7FBA42;',
  1329. w * 57, h * 43, '', 'Users, Two (green)', null, null, this.getTagsForStencil(gn, 'users two', dt).join(' ')),
  1330. this.createVertexTemplateEntry(s + 'users_two;fillColor=#CCCBCB;',
  1331. w * 57, h * 43, '', 'Users, Two (ghosted)', null, null, this.getTagsForStencil(gn, 'users two', dt).join(' ')),
  1332. this.createVertexTemplateEntry(s + 'user_accounts;',
  1333. w * 59, h * 59, '', 'User Accounts', null, null, this.getTagsForStencil(gn, 'user accounts', dt).join(' ')),
  1334. this.createVertexTemplateEntry(s + 'user_external;',
  1335. w * 59, h * 50, '', 'User External', null, null, this.getTagsForStencil(gn, 'user external', dt).join(' ')),
  1336. this.createVertexTemplateEntry(s + 'user_services;',
  1337. w * 59, h * 59, '', 'User Services', null, null, this.getTagsForStencil(gn, 'user services', dt).join(' ')),
  1338. this.createVertexTemplateEntry(s + 'user_store;',
  1339. w * 50, h * 55, '', 'User Store', null, null, this.getTagsForStencil(gn, 'user store', dt).join(' ')),
  1340. this.createVertexTemplateEntry(s + 'writer;',
  1341. w * 54, h * 59, '', 'Writer', null, null, this.getTagsForStencil(gn, 'writer', dt).join(' '))
  1342. ];
  1343. this.addPalette('officeUsers', 'Office / Users', false, mxUtils.bind(this, function(content)
  1344. {
  1345. for (var i = 0; i < fns.length; i++)
  1346. {
  1347. content.appendChild(fns[i](content));
  1348. }
  1349. }));
  1350. };
  1351. })();