Sidebar-Office.js 107 KB

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