[DE] Fix doubling of smart arts

This commit is contained in:
JuliaSvinareva 2022-09-27 17:32:22 +03:00
parent 238cc71760
commit e99f6b494e
3 changed files with 312 additions and 251 deletions

View file

@ -1517,251 +1517,310 @@ define(function(){ 'use strict';
textPictureFrame: 'PictureFrame',
textTabList: 'Tab List',
getSmartArtGroupData: function(headername) {
return [
{id: 'menu-smart-art-group-list', caption: this.textList, icon: 'smart-list', groupName: Asc.c_oAscSmartArtSectionNames.List},
{id: 'menu-smart-art-group-process', caption: this.textProcess, icon: 'smart-process', groupName: Asc.c_oAscSmartArtSectionNames.Process},
{id: 'menu-smart-art-group-cycle', caption: this.textCycle, icon: 'smart-cycle', groupName: Asc.c_oAscSmartArtSectionNames.Cycle},
{id: 'menu-smart-art-group-hierarchy', caption: this.textHierarchy, icon: 'smart-hierarchy', groupName: Asc.c_oAscSmartArtSectionNames.Hierarchy},
{id: 'menu-smart-art-group-relationship', caption: this.textRelationship, icon: 'smart-relationship', groupName: Asc.c_oAscSmartArtSectionNames.Relationship},
{id: 'menu-smart-art-group-matrix', caption: this.textMatrix, icon: 'smart-matrix', groupName: Asc.c_oAscSmartArtSectionNames.Matrix},
{id: 'menu-smart-art-group-pyramid', caption: this.textPyramid, icon: 'smart-pyramid', groupName: Asc.c_oAscSmartArtSectionNames.Pyramid},
{id: 'menu-smart-art-group-picture', caption: this.textPicture, icon: 'btn-menu-image', groupName: Asc.c_oAscSmartArtSectionNames.Picture},
{id: 'menu-smart-art-group-office', caption: this.textOffice, icon: '', groupName: Asc.c_oAscSmartArtSectionNames.OfficeCom},
];
},
getSmartArtData: function() {
return [
// list
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.BasicBlockList, tip: this.textBasicBlockList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.AlternatingHexagonList, tip: this.textAlternatingHexagons},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.PictureCaptionList, tip: this.textPictureCaptionList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.LinedList, tip: this.textLinedList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalBulletList, tip: this.textVerticalBulletList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalBoxList, tip: this.textVerticalBoxList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalBracketList, tip: this.textVerticalBracketList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VaryingWidthList, tip: this.textVaryingWidthList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.TabList, tip: this.textTabList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.HorizontalBulletList, tip: this.textHorizontalBulletList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.SquareAccentList, tip: this.textSquareAccentList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.PictureAccentList, tip: this.textPictureAccentList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.BendingPictureAccentList, tip: this.textBendingPictureAccentList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.StackedList, tip: this.textStackedList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.IncreasingCircleProcess, tip: this.textIncreasingCircleProcess},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.PieProcess, tip: this.textPieProcess},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.DetailedProcess, tip: this.textDetailedProcess},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.GroupedList, tip: this.textGroupedList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.HorizontalPictureList, tip: this.textHorizontalPictureList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.PictureStrips, tip: this.textPictureStrips},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalPictureList, tip: this.textVerticalPictureList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.AlternatingPictureBlocks, tip: this.textAlternatingPictureBlocks},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalPictureAccentList, tip: this.textVerticalPictureAccentList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.TitledPictureAccentList, tip: this.textTitledPictureAccentList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalBlockList, tip: this.textVerticalBlockList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalChevronList, tip: this.textVerticalChevronList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalAccentList, tip: this.textVerticalAccentList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalArrowList, tip: this.textVerticalArrowList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.TrapezoidList, tip: this.textTrapezoidList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.DescendingBlockList, tip: this.textDescendingBlockList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.TableList, tip: this.textTableList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.SegmentedProcess, tip: this.textSegmentedProcess},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalCurvedList, tip: this.textVerticalCurvedList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.PyramidList, tip: this.textPyramidList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.TargetList, tip: this.textTargetList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.HierarchyList, tip: this.textHierarchyList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.VerticalCircleList, tip: this.textVerticalCircleList},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.TableHierarchy, tip: this.textTableHierarchy},
{ group: 'menu-smart-art-group-list', type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{
id: 'menu-smart-art-group-list',
sectionId: Asc.c_oAscSmartArtSectionNames.List,
caption: this.textList,
icon: 'smart-list',
items: [
{ type: Asc.c_oAscSmartArtTypes.BasicBlockList, tip: this.textBasicBlockList},
{ type: Asc.c_oAscSmartArtTypes.AlternatingHexagonList, tip: this.textAlternatingHexagons},
{ type: Asc.c_oAscSmartArtTypes.PictureCaptionList, tip: this.textPictureCaptionList},
{ type: Asc.c_oAscSmartArtTypes.LinedList, tip: this.textLinedList},
{ type: Asc.c_oAscSmartArtTypes.VerticalBulletList, tip: this.textVerticalBulletList},
{ type: Asc.c_oAscSmartArtTypes.VerticalBoxList, tip: this.textVerticalBoxList},
{ type: Asc.c_oAscSmartArtTypes.VerticalBracketList, tip: this.textVerticalBracketList},
{ type: Asc.c_oAscSmartArtTypes.VaryingWidthList, tip: this.textVaryingWidthList},
{ type: Asc.c_oAscSmartArtTypes.TabList, tip: this.textTabList},
{ type: Asc.c_oAscSmartArtTypes.HorizontalBulletList, tip: this.textHorizontalBulletList},
{ type: Asc.c_oAscSmartArtTypes.SquareAccentList, tip: this.textSquareAccentList},
{ type: Asc.c_oAscSmartArtTypes.PictureAccentList, tip: this.textPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.BendingPictureAccentList, tip: this.textBendingPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.StackedList, tip: this.textStackedList},
{ type: Asc.c_oAscSmartArtTypes.IncreasingCircleProcess, tip: this.textIncreasingCircleProcess},
{ type: Asc.c_oAscSmartArtTypes.PieProcess, tip: this.textPieProcess},
{ type: Asc.c_oAscSmartArtTypes.DetailedProcess, tip: this.textDetailedProcess},
{ type: Asc.c_oAscSmartArtTypes.GroupedList, tip: this.textGroupedList},
{ type: Asc.c_oAscSmartArtTypes.HorizontalPictureList, tip: this.textHorizontalPictureList},
{ type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ type: Asc.c_oAscSmartArtTypes.PictureStrips, tip: this.textPictureStrips},
{ type: Asc.c_oAscSmartArtTypes.VerticalPictureList, tip: this.textVerticalPictureList},
{ type: Asc.c_oAscSmartArtTypes.AlternatingPictureBlocks, tip: this.textAlternatingPictureBlocks},
{ type: Asc.c_oAscSmartArtTypes.VerticalPictureAccentList, tip: this.textVerticalPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.TitledPictureAccentList, tip: this.textTitledPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.VerticalBlockList, tip: this.textVerticalBlockList},
{ type: Asc.c_oAscSmartArtTypes.VerticalChevronList, tip: this.textVerticalChevronList},
{ type: Asc.c_oAscSmartArtTypes.VerticalAccentList, tip: this.textVerticalAccentList},
{ type: Asc.c_oAscSmartArtTypes.VerticalArrowList, tip: this.textVerticalArrowList},
{ type: Asc.c_oAscSmartArtTypes.TrapezoidList, tip: this.textTrapezoidList},
{ type: Asc.c_oAscSmartArtTypes.DescendingBlockList, tip: this.textDescendingBlockList},
{ type: Asc.c_oAscSmartArtTypes.TableList, tip: this.textTableList},
{ type: Asc.c_oAscSmartArtTypes.SegmentedProcess, tip: this.textSegmentedProcess},
{ type: Asc.c_oAscSmartArtTypes.VerticalCurvedList, tip: this.textVerticalCurvedList},
{ type: Asc.c_oAscSmartArtTypes.PyramidList, tip: this.textPyramidList},
{ type: Asc.c_oAscSmartArtTypes.TargetList, tip: this.textTargetList},
{ type: Asc.c_oAscSmartArtTypes.HierarchyList, tip: this.textHierarchyList},
{ type: Asc.c_oAscSmartArtTypes.VerticalCircleList, tip: this.textVerticalCircleList},
{ type: Asc.c_oAscSmartArtTypes.TableHierarchy, tip: this.textTableHierarchy},
{ type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout}
]
},
// process
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.BasicProcess, tip: this.textBasicProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.StepUpProcess, tip: this.textStepUpProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.StepDownProcess, tip: this.textStepDownProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.AccentProcess, tip: this.textAccentProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.PictureAccentProcess, tip: this.textPictureAccentProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.AlternatingFlow, tip: this.textAlternatingFlow},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.IncreasingCircleProcess, tip: this.textIncreasingCircleProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.PieProcess, tip: this.textPieProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ContinuousBlockProcess, tip: this.textContinuousBlockProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.IncreasingArrowsProcess, tip: this.textIncreasingArrowProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.InterconnectedBlockProcess, tip: this.textInterconnectedBlockProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ContinuousArrowProcess, tip: this.textContinuousArrowProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ConvergingText, tip: this.textConvergingText},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ProcessArrows, tip: this.textProcessArrows},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.CircleAccentTimeline, tip: this.textCircleAccentTimeline},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.BasicTimeline, tip: this.textBasicTimeline},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.CircleProcess, tip: this.textCircleProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.BasicChevronProcess, tip: this.textBasicChevronProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ChevronAccentProcess, tip: this.textChevronAccentProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ClosedChevronProcess, tip: this.textClosedChevronProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ChevronList, tip: this.textChevronList},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.VerticalChevronList, tip: this.textVerticalChevronList},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.SubStepProcess, tip: this.textSubStepProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.PhasedProcess, tip: this.textPhasedProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.RandomToResultProcess, tip: this.textRandomToResultProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.VerticalProcess, tip: this.textVerticalProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.StaggeredProcess, tip: this.textStaggeredProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ProcessList, tip: this.textProcessList},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.SegmentedProcess, tip: this.textSegmentedProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.CircleArrowProcess, tip: this.textCircleArrowProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.BasicBendingProcess, tip: this.textBasicBendingProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.RepeatingBendingProcess, tip: this.textRepeatingBendingProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.VerticalBendingProcess, tip: this.textVerticalBendingProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.DetailedProcess, tip: this.textDetailedProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.VerticalArrowList, tip: this.textVerticalArrowList},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.AscendingPictureAccentProcess, tip: this.textAscendingPictureAccentProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.UpwardArrow, tip: this.textUpwardArrow},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.DescendingProcess, tip: this.textDescendingProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.CircularBendingProcess, tip: this.textCircularBendingProcess},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.Equation, tip: this.textEquation},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.VerticalEquation, tip: this.textVerticalEquation},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.Funnel, tip: this.textFunnel},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.Gear, tip: this.textGear},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ArrowRibbon, tip: this.textArrowRibbon},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.OpposingArrows, tip: this.textOpposingArrows},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.ConvergingArrows, tip: this.textConvergingArrows},
{ group: 'menu-smart-art-group-process', type: Asc.c_oAscSmartArtTypes.DivergingArrows, tip: this.textDivergingArrows},
{
id: 'menu-smart-art-group-process',
sectionId: Asc.c_oAscSmartArtSectionNames.Process,
caption: this.textProcess,
icon: 'smart-process',
items: [
{ type: Asc.c_oAscSmartArtTypes.BasicProcess, tip: this.textBasicProcess},
{ type: Asc.c_oAscSmartArtTypes.StepUpProcess, tip: this.textStepUpProcess},
{ type: Asc.c_oAscSmartArtTypes.StepDownProcess, tip: this.textStepDownProcess},
{ type: Asc.c_oAscSmartArtTypes.AccentProcess, tip: this.textAccentProcess},
{ type: Asc.c_oAscSmartArtTypes.PictureAccentProcess, tip: this.textPictureAccentProcess},
{ type: Asc.c_oAscSmartArtTypes.AlternatingFlow, tip: this.textAlternatingFlow},
{ type: Asc.c_oAscSmartArtTypes.IncreasingCircleProcess, tip: this.textIncreasingCircleProcess},
{ type: Asc.c_oAscSmartArtTypes.PieProcess, tip: this.textPieProcess},
{ type: Asc.c_oAscSmartArtTypes.ContinuousBlockProcess, tip: this.textContinuousBlockProcess},
{ type: Asc.c_oAscSmartArtTypes.IncreasingArrowsProcess, tip: this.textIncreasingArrowProcess},
{ type: Asc.c_oAscSmartArtTypes.InterconnectedBlockProcess, tip: this.textInterconnectedBlockProcess},
{ type: Asc.c_oAscSmartArtTypes.ContinuousArrowProcess, tip: this.textContinuousArrowProcess},
{ type: Asc.c_oAscSmartArtTypes.ConvergingText, tip: this.textConvergingText},
{ type: Asc.c_oAscSmartArtTypes.ProcessArrows, tip: this.textProcessArrows},
{ type: Asc.c_oAscSmartArtTypes.CircleAccentTimeline, tip: this.textCircleAccentTimeline},
{ type: Asc.c_oAscSmartArtTypes.BasicTimeline, tip: this.textBasicTimeline},
{ type: Asc.c_oAscSmartArtTypes.CircleProcess, tip: this.textCircleProcess},
{ type: Asc.c_oAscSmartArtTypes.BasicChevronProcess, tip: this.textBasicChevronProcess},
{ type: Asc.c_oAscSmartArtTypes.ChevronAccentProcess, tip: this.textChevronAccentProcess},
{ type: Asc.c_oAscSmartArtTypes.ClosedChevronProcess, tip: this.textClosedChevronProcess},
{ type: Asc.c_oAscSmartArtTypes.ChevronList, tip: this.textChevronList},
{ type: Asc.c_oAscSmartArtTypes.VerticalChevronList, tip: this.textVerticalChevronList},
{ type: Asc.c_oAscSmartArtTypes.SubStepProcess, tip: this.textSubStepProcess},
{ type: Asc.c_oAscSmartArtTypes.PhasedProcess, tip: this.textPhasedProcess},
{ type: Asc.c_oAscSmartArtTypes.RandomToResultProcess, tip: this.textRandomToResultProcess},
{ type: Asc.c_oAscSmartArtTypes.VerticalProcess, tip: this.textVerticalProcess},
{ type: Asc.c_oAscSmartArtTypes.StaggeredProcess, tip: this.textStaggeredProcess},
{ type: Asc.c_oAscSmartArtTypes.ProcessList, tip: this.textProcessList},
{ type: Asc.c_oAscSmartArtTypes.SegmentedProcess, tip: this.textSegmentedProcess},
{ type: Asc.c_oAscSmartArtTypes.CircleArrowProcess, tip: this.textCircleArrowProcess},
{ type: Asc.c_oAscSmartArtTypes.BasicBendingProcess, tip: this.textBasicBendingProcess},
{ type: Asc.c_oAscSmartArtTypes.RepeatingBendingProcess, tip: this.textRepeatingBendingProcess},
{ type: Asc.c_oAscSmartArtTypes.VerticalBendingProcess, tip: this.textVerticalBendingProcess},
{ type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ type: Asc.c_oAscSmartArtTypes.DetailedProcess, tip: this.textDetailedProcess},
{ type: Asc.c_oAscSmartArtTypes.VerticalArrowList, tip: this.textVerticalArrowList},
{ type: Asc.c_oAscSmartArtTypes.AscendingPictureAccentProcess, tip: this.textAscendingPictureAccentProcess},
{ type: Asc.c_oAscSmartArtTypes.UpwardArrow, tip: this.textUpwardArrow},
{ type: Asc.c_oAscSmartArtTypes.DescendingProcess, tip: this.textDescendingProcess},
{ type: Asc.c_oAscSmartArtTypes.CircularBendingProcess, tip: this.textCircularBendingProcess},
{ type: Asc.c_oAscSmartArtTypes.Equation, tip: this.textEquation},
{ type: Asc.c_oAscSmartArtTypes.VerticalEquation, tip: this.textVerticalEquation},
{ type: Asc.c_oAscSmartArtTypes.Funnel, tip: this.textFunnel},
{ type: Asc.c_oAscSmartArtTypes.Gear, tip: this.textGear},
{ type: Asc.c_oAscSmartArtTypes.ArrowRibbon, tip: this.textArrowRibbon},
{ type: Asc.c_oAscSmartArtTypes.OpposingArrows, tip: this.textOpposingArrows},
{ type: Asc.c_oAscSmartArtTypes.ConvergingArrows, tip: this.textConvergingArrows},
{ type: Asc.c_oAscSmartArtTypes.DivergingArrows, tip: this.textDivergingArrows}
]
},
// cycle
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.BasicCycle, tip: this.textBasicCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.TextCycle, tip: this.textTextCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.BlockCycle, tip: this.textBlockCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.NonDirectionalCycle, tip: this.textNondirectionalCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.MultiDirectionalCycle, tip: this.textMultidirectionalCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.SegmentedCycle, tip: this.textSegmentedCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.BasicPie, tip: this.textBasicPie},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.HexagonRadial, tip: this.textHexagonRadial},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.RadialCycle, tip: this.textRadialCycle},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.BasicRadial, tip: this.textBasicRadial},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.DivergingRadial, tip: this.textDivergingRadial},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.RadialVenn, tip: this.textRadialVenn},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.CycleMatrix, tip: this.textCycleMatrix},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.Gear, tip: this.textGear},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.RadialCluster, tip: this.textRadialCluster},
{ group: 'menu-smart-art-group-cycle', type: Asc.c_oAscSmartArtTypes.CircleArrowProcess, tip: this.textCircleArrowProcess},
{
id: 'menu-smart-art-group-cycle',
sectionId: Asc.c_oAscSmartArtSectionNames.Cycle,
caption: this.textCycle,
icon: 'smart-cycle',
items: [
{ type: Asc.c_oAscSmartArtTypes.BasicCycle, tip: this.textBasicCycle},
{ type: Asc.c_oAscSmartArtTypes.TextCycle, tip: this.textTextCycle},
{ type: Asc.c_oAscSmartArtTypes.BlockCycle, tip: this.textBlockCycle},
{ type: Asc.c_oAscSmartArtTypes.NonDirectionalCycle, tip: this.textNondirectionalCycle},
{ type: Asc.c_oAscSmartArtTypes.ContinuousCycle, tip: this.textContinuousCycle},
{ type: Asc.c_oAscSmartArtTypes.MultiDirectionalCycle, tip: this.textMultidirectionalCycle},
{ type: Asc.c_oAscSmartArtTypes.SegmentedCycle, tip: this.textSegmentedCycle},
{ type: Asc.c_oAscSmartArtTypes.BasicPie, tip: this.textBasicPie},
{ type: Asc.c_oAscSmartArtTypes.HexagonRadial, tip: this.textHexagonRadial},
{ type: Asc.c_oAscSmartArtTypes.RadialCycle, tip: this.textRadialCycle},
{ type: Asc.c_oAscSmartArtTypes.BasicRadial, tip: this.textBasicRadial},
{ type: Asc.c_oAscSmartArtTypes.DivergingRadial, tip: this.textDivergingRadial},
{ type: Asc.c_oAscSmartArtTypes.RadialVenn, tip: this.textRadialVenn},
{ type: Asc.c_oAscSmartArtTypes.CycleMatrix, tip: this.textCycleMatrix},
{ type: Asc.c_oAscSmartArtTypes.Gear, tip: this.textGear},
{ type: Asc.c_oAscSmartArtTypes.RadialCluster, tip: this.textRadialCluster},
{ type: Asc.c_oAscSmartArtTypes.CircleArrowProcess, tip: this.textCircleArrowProcess}
]
},
// hierarchy
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.OrganizationChart, tip: this.textOrganizationChart},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.PictureOrganizationChart, tip: this.textPictureOrganizationChart},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.NameAndTitleOrganizationChart, tip: this.textNameAndTitleOrganizationChart},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.HalfCircleOrganizationChart, tip: this.textHalfCircleOrganizationChart},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.CirclePictureHierarchy, tip: this.textCirclePictureHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.Hierarchy, tip: this.textHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.LabeledHierarchy, tip: this.textLabeledHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.TableHierarchy, tip: this.textTableHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.HorizontalOrganizationChart, tip: this.textHorizontalOrganizationChart},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.HorizontalMultiLevelHierarchy, tip: this.textHorizontalMultiLevelHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.HorizontalHierarchy, tip: this.textHorizontalHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.HorizontalLabeledHierarchy, tip: this.textHorizontalLabeledHierarchy},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.HierarchyList, tip: this.textHierarchyList},
{ group: 'menu-smart-art-group-hierarchy', type: Asc.c_oAscSmartArtTypes.LinedList, tip: this.textLinedList},
{
id: 'menu-smart-art-group-hierarchy',
sectionId: Asc.c_oAscSmartArtSectionNames.Hierarchy,
caption: this.textHierarchy,
icon: 'smart-hierarchy',
items: [
{ type: Asc.c_oAscSmartArtTypes.OrganizationChart, tip: this.textOrganizationChart},
{ type: Asc.c_oAscSmartArtTypes.PictureOrganizationChart, tip: this.textPictureOrganizationChart},
{ type: Asc.c_oAscSmartArtTypes.NameAndTitleOrganizationChart, tip: this.textNameAndTitleOrganizationChart},
{ type: Asc.c_oAscSmartArtTypes.HalfCircleOrganizationChart, tip: this.textHalfCircleOrganizationChart},
{ type: Asc.c_oAscSmartArtTypes.CirclePictureHierarchy, tip: this.textCirclePictureHierarchy},
{ type: Asc.c_oAscSmartArtTypes.Hierarchy, tip: this.textHierarchy},
{ type: Asc.c_oAscSmartArtTypes.LabeledHierarchy, tip: this.textLabeledHierarchy},
{ type: Asc.c_oAscSmartArtTypes.TableHierarchy, tip: this.textTableHierarchy},
{ type: Asc.c_oAscSmartArtTypes.HorizontalOrganizationChart, tip: this.textHorizontalOrganizationChart},
{ type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{ type: Asc.c_oAscSmartArtTypes.HorizontalMultiLevelHierarchy, tip: this.textHorizontalMultiLevelHierarchy},
{ type: Asc.c_oAscSmartArtTypes.HorizontalHierarchy, tip: this.textHorizontalHierarchy},
{ type: Asc.c_oAscSmartArtTypes.HorizontalLabeledHierarchy, tip: this.textHorizontalLabeledHierarchy},
{ type: Asc.c_oAscSmartArtTypes.HierarchyList, tip: this.textHierarchyList},
{ type: Asc.c_oAscSmartArtTypes.LinedList, tip: this.textLinedList}
]
},
// relationship
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.Balance, tip: this.textBalance},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.CircleRelationship, tip: this.textCircleRelationship},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.Funnel, tip: this.textFunnel},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.Gear, tip: this.textGear},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.HexagonCluster, tip: this.textHexagonCluster},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.OpposingIdeas, tip: this.textOpposingIdeas},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.PlusAndMinus, tip: this.textPlusAndMinus},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.ReverseList, tip: this.textReverseList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.ArrowRibbon, tip: this.textArrowRibbon},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.CounterbalanceArrows, tip: this.textCounterbalanceArrows},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.ConvergingArrows, tip: this.textConvergingArrows},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.DivergingArrows, tip: this.textDivergingArrows},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.OpposingArrows, tip: this.textOpposingArrows},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.SegmentedPyramid, tip: this.textSegmentedPyramid},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.TableHierarchy, tip: this.textTableHierarchy},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.TargetList, tip: this.textTargetList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.NestedTarget, tip: this.textNestedTarget},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.GroupedList, tip: this.textGroupedList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.HierarchyList, tip: this.textHierarchyList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.PictureAccentList, tip: this.textPictureAccentList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.Equation, tip: this.textEquation},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.VerticalEquation, tip: this.textVerticalEquation},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.ConvergingRadial, tip: this.textConvergingRadial},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.RadialCluster, tip: this.textRadialCluster},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.RadialList, tip: this.textRadialList},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.TabbedArc, tip: this.textTabbedArc},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.RadialCycle, tip: this.textRadialCycle},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.BasicRadial, tip: this.textBasicRadial},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.DivergingRadial, tip: this.textDivergingRadial},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.NonDirectionalCycle, tip: this.textNondirectionalCycle},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.BasicTarget, tip: this.textBasicTarget},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.CycleMatrix, tip: this.textCycleMatrix},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.BasicPie, tip: this.textBasicPie},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.BasicVenn, tip: this.textBasicVenn},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.LinearVenn, tip: this.textLinearVenn},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.StackedVenn, tip: this.textStackedVenn},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.RadialVenn, tip: this.textRadialVenn},
{ group: 'menu-smart-art-group-relationship', type: Asc.c_oAscSmartArtTypes.InterconnectedRings, tip: this.textInterconnectedRings},
{
id: 'menu-smart-art-group-relationship',
sectionId: Asc.c_oAscSmartArtSectionNames.Relationship,
caption: this.textRelationship,
icon: 'smart-relationship',
items: [
{ type: Asc.c_oAscSmartArtTypes.Balance, tip: this.textBalance},
{ type: Asc.c_oAscSmartArtTypes.CircleRelationship, tip: this.textCircleRelationship},
{ type: Asc.c_oAscSmartArtTypes.Funnel, tip: this.textFunnel},
{ type: Asc.c_oAscSmartArtTypes.Gear, tip: this.textGear},
{ type: Asc.c_oAscSmartArtTypes.HexagonCluster, tip: this.textHexagonCluster},
{ type: Asc.c_oAscSmartArtTypes.OpposingIdeas, tip: this.textOpposingIdeas},
{ type: Asc.c_oAscSmartArtTypes.PlusAndMinus, tip: this.textPlusAndMinus},
{ type: Asc.c_oAscSmartArtTypes.ReverseList, tip: this.textReverseList},
{ type: Asc.c_oAscSmartArtTypes.ArrowRibbon, tip: this.textArrowRibbon},
{ type: Asc.c_oAscSmartArtTypes.CounterbalanceArrows, tip: this.textCounterbalanceArrows},
{ type: Asc.c_oAscSmartArtTypes.ConvergingArrows, tip: this.textConvergingArrows},
{ type: Asc.c_oAscSmartArtTypes.DivergingArrows, tip: this.textDivergingArrows},
{ type: Asc.c_oAscSmartArtTypes.OpposingArrows, tip: this.textOpposingArrows},
{ type: Asc.c_oAscSmartArtTypes.SegmentedPyramid, tip: this.textSegmentedPyramid},
{ type: Asc.c_oAscSmartArtTypes.TableHierarchy, tip: this.textTableHierarchy},
{ type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{ type: Asc.c_oAscSmartArtTypes.TargetList, tip: this.textTargetList},
{ type: Asc.c_oAscSmartArtTypes.NestedTarget, tip: this.textNestedTarget},
{ type: Asc.c_oAscSmartArtTypes.GroupedList, tip: this.textGroupedList},
{ type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ type: Asc.c_oAscSmartArtTypes.HierarchyList, tip: this.textHierarchyList},
{ type: Asc.c_oAscSmartArtTypes.PictureAccentList, tip: this.textPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.Equation, tip: this.textEquation},
{ type: Asc.c_oAscSmartArtTypes.VerticalEquation, tip: this.textVerticalEquation},
{ type: Asc.c_oAscSmartArtTypes.ConvergingRadial, tip: this.textConvergingRadial},
{ type: Asc.c_oAscSmartArtTypes.RadialCluster, tip: this.textRadialCluster},
{ type: Asc.c_oAscSmartArtTypes.RadialList, tip: this.textRadialList},
{ type: Asc.c_oAscSmartArtTypes.TabbedArc, tip: this.textTabbedArc},
{ type: Asc.c_oAscSmartArtTypes.RadialCycle, tip: this.textRadialCycle},
{ type: Asc.c_oAscSmartArtTypes.BasicRadial, tip: this.textBasicRadial},
{ type: Asc.c_oAscSmartArtTypes.DivergingRadial, tip: this.textDivergingRadial},
{ type: Asc.c_oAscSmartArtTypes.NonDirectionalCycle, tip: this.textNondirectionalCycle},
{ type: Asc.c_oAscSmartArtTypes.BasicTarget, tip: this.textBasicTarget},
{ type: Asc.c_oAscSmartArtTypes.CycleMatrix, tip: this.textCycleMatrix},
{ type: Asc.c_oAscSmartArtTypes.BasicPie, tip: this.textBasicPie},
{ type: Asc.c_oAscSmartArtTypes.BasicVenn, tip: this.textBasicVenn},
{ type: Asc.c_oAscSmartArtTypes.LinearVenn, tip: this.textLinearVenn},
{ type: Asc.c_oAscSmartArtTypes.StackedVenn, tip: this.textStackedVenn},
{ type: Asc.c_oAscSmartArtTypes.RadialVenn, tip: this.textRadialVenn},
{ type: Asc.c_oAscSmartArtTypes.InterconnectedRings, tip: this.textInterconnectedRings},
]
},
// matrix
{ group: 'menu-smart-art-group-matrix', type: Asc.c_oAscSmartArtTypes.BasicMatrix, tip: this.textBasicMatrix},
{ group: 'menu-smart-art-group-matrix', type: Asc.c_oAscSmartArtTypes.TitledMatrix, tip: this.textTitledMatrix},
{ group: 'menu-smart-art-group-matrix', type: Asc.c_oAscSmartArtTypes.GridMatrix, tip: this.textGridMatrix},
{ group: 'menu-smart-art-group-matrix', type: Asc.c_oAscSmartArtTypes.CycleMatrix, tip: this.textCycleMatrix},
{
id: 'menu-smart-art-group-matrix',
sectionId: Asc.c_oAscSmartArtSectionNames.Matrix,
caption: this.textMatrix,
icon: 'smart-matrix',
items: [
{ type: Asc.c_oAscSmartArtTypes.BasicMatrix, tip: this.textBasicMatrix},
{ type: Asc.c_oAscSmartArtTypes.TitledMatrix, tip: this.textTitledMatrix},
{ type: Asc.c_oAscSmartArtTypes.GridMatrix, tip: this.textGridMatrix},
{ type: Asc.c_oAscSmartArtTypes.CycleMatrix, tip: this.textCycleMatrix}
]
},
// pyramid
{ group: 'menu-smart-art-group-pyramid', type: Asc.c_oAscSmartArtTypes.BasicPyramid, tip: this.textBasicPyramid},
{ group: 'menu-smart-art-group-pyramid', type: Asc.c_oAscSmartArtTypes.InvertedPyramid, tip: this.textInvertedPyramid},
{ group: 'menu-smart-art-group-pyramid', type: Asc.c_oAscSmartArtTypes.PyramidList, tip: this.textPyramidList},
{ group: 'menu-smart-art-group-pyramid', type: Asc.c_oAscSmartArtTypes.SegmentedPyramid, tip: this.textSegmentedPyramid},
{
id: 'menu-smart-art-group-pyramid',
sectionId: Asc.c_oAscSmartArtSectionNames.Pyramid,
caption: this.textPyramid,
icon: 'smart-pyramid',
items: [
{ type: Asc.c_oAscSmartArtTypes.BasicPyramid, tip: this.textBasicPyramid},
{ type: Asc.c_oAscSmartArtTypes.InvertedPyramid, tip: this.textInvertedPyramid},
{ type: Asc.c_oAscSmartArtTypes.PyramidList, tip: this.textPyramidList},
{ type: Asc.c_oAscSmartArtTypes.SegmentedPyramid, tip: this.textSegmentedPyramid}
]
},
// picture
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.AccentedPicture, tip: this.textAccentedPicture},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.CircularPictureCallout, tip: this.textCircularPictureCallout},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureCaptionList, tip: this.textPictureCaptionList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.RadialPictureList, tip: this.textRadialPictureList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.SnapshotPictureList, tip: this.textSnapshotPictureList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.SpiralPicture, tip: this.textSpiralPicture},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.CaptionedPictures, tip: this.textCaptionedPictures},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.BendingPictureCaption, tip: this.textBendingPictureCaption},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureFrame, tip: this.textPictureFrame},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.BendingPictureSemiTransparentText, tip: this.textBendingPictureSemiTranparentText},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.BendingPictureBlocks, tip: this.textBendingPictureBlocks},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.BendingPictureCaptionList, tip: this.textBendingPictureCaptionList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.TitledPictureBlocks, tip: this.textTitledPictureBlocks},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureGrid, tip: this.textPictureGrid},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureAccentBlocks, tip: this.textPictureAccentBlocks},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureStrips, tip: this.textPictureStrips},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.ThemePictureAccent, tip: this.textThemePictureAccent},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.ThemePictureGrid, tip: this.textThemePictureGrid},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.ThemePictureAlternatingAccent, tip: this.textThemePictureAlternatingAccent},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.TitledPictureAccentList, tip: this.textTitledPictureAccentList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.AlternatingPictureBlocks, tip: this.textAlternatingPictureBlocks},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.AscendingPictureAccentProcess, tip: this.textAscendingPictureAccentProcess},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.AlternatingPictureCircles, tip: this.textAlternatingPictureCircles},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.TitlePictureLineup, tip: this.textTitlePictureLineup},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureLineup, tip: this.textPictureLineup},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.FramedTextPicture, tip: this.textFramedTextPicture},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.HexagonCluster, tip: this.textHexagonCluster},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.BubblePictureList, tip: this.textBubblePictureList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.CirclePictureHierarchy, tip: this.textCirclePictureHierarchy},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.HorizontalPictureList, tip: this.textHorizontalPictureList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.VerticalPictureList, tip: this.textVerticalPictureList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.VerticalPictureAccentList, tip: this.textVerticalPictureAccentList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.BendingPictureAccentList, tip: this.textBendingPictureAccentList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureAccentList, tip: this.textPictureAccentList},
{ group: 'menu-smart-art-group-picture', type: Asc.c_oAscSmartArtTypes.PictureAccentProcess, tip: this.textPictureAccentProcess},
{
id: 'menu-smart-art-group-picture',
sectionId: Asc.c_oAscSmartArtSectionNames.Picture,
caption: this.textPicture,
icon: 'btn-menu-image',
items: [
{ type: Asc.c_oAscSmartArtTypes.AccentedPicture, tip: this.textAccentedPicture},
{ type: Asc.c_oAscSmartArtTypes.CircularPictureCallout, tip: this.textCircularPictureCallout},
{ type: Asc.c_oAscSmartArtTypes.PictureCaptionList, tip: this.textPictureCaptionList},
{ type: Asc.c_oAscSmartArtTypes.RadialPictureList, tip: this.textRadialPictureList},
{ type: Asc.c_oAscSmartArtTypes.SnapshotPictureList, tip: this.textSnapshotPictureList},
{ type: Asc.c_oAscSmartArtTypes.SpiralPicture, tip: this.textSpiralPicture},
{ type: Asc.c_oAscSmartArtTypes.CaptionedPictures, tip: this.textCaptionedPictures},
{ type: Asc.c_oAscSmartArtTypes.BendingPictureCaption, tip: this.textBendingPictureCaption},
{ type: Asc.c_oAscSmartArtTypes.PictureFrame, tip: this.textPictureFrame},
{ type: Asc.c_oAscSmartArtTypes.BendingPictureSemiTransparentText, tip: this.textBendingPictureSemiTranparentText},
{ type: Asc.c_oAscSmartArtTypes.BendingPictureBlocks, tip: this.textBendingPictureBlocks},
{ type: Asc.c_oAscSmartArtTypes.BendingPictureCaptionList, tip: this.textBendingPictureCaptionList},
{ type: Asc.c_oAscSmartArtTypes.TitledPictureBlocks, tip: this.textTitledPictureBlocks},
{ type: Asc.c_oAscSmartArtTypes.PictureGrid, tip: this.textPictureGrid},
{ type: Asc.c_oAscSmartArtTypes.PictureAccentBlocks, tip: this.textPictureAccentBlocks},
{ type: Asc.c_oAscSmartArtTypes.PictureStrips, tip: this.textPictureStrips},
{ type: Asc.c_oAscSmartArtTypes.ThemePictureAccent, tip: this.textThemePictureAccent},
{ type: Asc.c_oAscSmartArtTypes.ThemePictureGrid, tip: this.textThemePictureGrid},
{ type: Asc.c_oAscSmartArtTypes.ThemePictureAlternatingAccent, tip: this.textThemePictureAlternatingAccent},
{ type: Asc.c_oAscSmartArtTypes.TitledPictureAccentList, tip: this.textTitledPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.AlternatingPictureBlocks, tip: this.textAlternatingPictureBlocks},
{ type: Asc.c_oAscSmartArtTypes.AscendingPictureAccentProcess, tip: this.textAscendingPictureAccentProcess},
{ type: Asc.c_oAscSmartArtTypes.AlternatingPictureCircles, tip: this.textAlternatingPictureCircles},
{ type: Asc.c_oAscSmartArtTypes.TitlePictureLineup, tip: this.textTitlePictureLineup},
{ type: Asc.c_oAscSmartArtTypes.PictureLineup, tip: this.textPictureLineup},
{ type: Asc.c_oAscSmartArtTypes.FramedTextPicture, tip: this.textFramedTextPicture},
{ type: Asc.c_oAscSmartArtTypes.HexagonCluster, tip: this.textHexagonCluster},
{ type: Asc.c_oAscSmartArtTypes.BubblePictureList, tip: this.textBubblePictureList},
{ type: Asc.c_oAscSmartArtTypes.CirclePictureHierarchy, tip: this.textCirclePictureHierarchy},
{ type: Asc.c_oAscSmartArtTypes.HorizontalPictureList, tip: this.textHorizontalPictureList},
{ type: Asc.c_oAscSmartArtTypes.ContinuousPictureList, tip: this.textContinuousPictureList},
{ type: Asc.c_oAscSmartArtTypes.VerticalPictureList, tip: this.textVerticalPictureList},
{ type: Asc.c_oAscSmartArtTypes.VerticalPictureAccentList, tip: this.textVerticalPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.BendingPictureAccentList, tip: this.textBendingPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.PictureAccentList, tip: this.textPictureAccentList},
{ type: Asc.c_oAscSmartArtTypes.PictureAccentProcess, tip: this.textPictureAccentProcess}
]
},
// Office.com
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.PictureOrganizationChart, tip: this.textPictureOrganizationChart},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.ChevronAccentProcess, tip: this.textChevronAccentProcess},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.RadialPictureList, tip: this.textRadialPictureList},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.VerticalBracketList, tip: this.textVerticalBracketList},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.InterconnectedBlockProcess, tip: this.textInterconnectedBlockProcess},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.TabbedArc, tip: this.textTabbedArc},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.ThemePictureAccent, tip: this.textThemePictureAccent},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.VaryingWidthList, tip: this.textVaryingWidthList},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.ConvergingText, tip: this.textConvergingText},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.InterconnectedRings, tip: this.textInterconnectedRings},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.ThemePictureAlternatingAccent, tip: this.textThemePictureAlternatingAccent},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.ThemePictureGrid, tip: this.textThemePictureGrid},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.CircleProcess, tip: this.textCircleProcess},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.HexagonRadial, tip: this.textHexagonRadial},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.PictureFrame, tip: this.textPictureFrame},
{ group: 'menu-smart-art-group-office', type: Asc.c_oAscSmartArtTypes.TabList, tip: this.textTabList},
{
id: 'menu-smart-art-group-office',
sectionId: Asc.c_oAscSmartArtSectionNames.OfficeCom,
caption: this.textOffice,
icon: '',
items: [
{ type: Asc.c_oAscSmartArtTypes.PictureOrganizationChart, tip: this.textPictureOrganizationChart},
{ type: Asc.c_oAscSmartArtTypes.ChevronAccentProcess, tip: this.textChevronAccentProcess},
{ type: Asc.c_oAscSmartArtTypes.RadialPictureList, tip: this.textRadialPictureList},
{ type: Asc.c_oAscSmartArtTypes.VerticalBracketList, tip: this.textVerticalBracketList},
{ type: Asc.c_oAscSmartArtTypes.InterconnectedBlockProcess, tip: this.textInterconnectedBlockProcess},
{ type: Asc.c_oAscSmartArtTypes.TabbedArc, tip: this.textTabbedArc},
{ type: Asc.c_oAscSmartArtTypes.ThemePictureAccent, tip: this.textThemePictureAccent},
{ type: Asc.c_oAscSmartArtTypes.VaryingWidthList, tip: this.textVaryingWidthList},
{ type: Asc.c_oAscSmartArtTypes.ConvergingText, tip: this.textConvergingText},
{ type: Asc.c_oAscSmartArtTypes.InterconnectedRings, tip: this.textInterconnectedRings},
{ type: Asc.c_oAscSmartArtTypes.ArchitectureLayout, tip: this.textArchitectureLayout},
{ type: Asc.c_oAscSmartArtTypes.ThemePictureAlternatingAccent, tip: this.textThemePictureAlternatingAccent},
{ type: Asc.c_oAscSmartArtTypes.ThemePictureGrid, tip: this.textThemePictureGrid},
{ type: Asc.c_oAscSmartArtTypes.CircleProcess, tip: this.textCircleProcess},
{ type: Asc.c_oAscSmartArtTypes.HexagonRadial, tip: this.textHexagonRadial},
{ type: Asc.c_oAscSmartArtTypes.PictureFrame, tip: this.textPictureFrame},
{ type: Asc.c_oAscSmartArtTypes.TabList, tip: this.textTabList}
]
}
];
},
}

View file

@ -3325,26 +3325,28 @@ define([
onApiBeginSmartArtPreview: function () {
this.smartArtGroups = this.toolbar.btnInsertSmartArt.menu.items;
this.smartArtItems = Common.define.smartArt.getSmartArtData();
this.smartArtData = Common.define.smartArt.getSmartArtData();
},
onApiAddSmartArtPreview: function (previews) {
previews.forEach(_.bind(function (preview) {
var me = this;
var items = _.where(this.smartArtItems, {type: preview.asc_getName()});
items.forEach(function (item) {
var menu = _.findWhere(me.smartArtGroups, {value: item.group}).menuPicker,
arr = [{
tip: item.tip,
value: item.type,
imageUrl: preview.asc_getImage()
}];
var image = preview.asc_getImage(),
sectionId = preview.asc_getSectionId(),
section = _.findWhere(this.smartArtData, {sectionId: sectionId}),
item = _.findWhere(section.items, {type: image.asc_getName()}),
menu = _.findWhere(this.smartArtGroups, {value: sectionId}).menuPicker;
if (item) {
var arr = [{
tip: item.tip,
value: item.type,
imageUrl: image.asc_getImage()
}];
if (menu.store.length < 1) {
menu.store.reset(arr);
} else {
menu.store.add(arr);
}
});
}
}, this));
},

View file

@ -2220,12 +2220,12 @@ define([
items: []
}));
var smartArtGroups = Common.define.smartArt.getSmartArtGroupData();
smartArtGroups.forEach(function (item, index) {
var smartArtData = Common.define.smartArt.getSmartArtData();
smartArtData.forEach(function (item, index) {
me.btnInsertSmartArt.menu.addItem({
caption: item.caption,
value: item.id,
groupName: item.groupName,
value: item.sectionId,
itemId: item.id,
iconCls: 'menu__icon ' + item.icon,
menu: new Common.UI.Menu({
items: [
@ -2237,11 +2237,11 @@ define([
var onShowBeforeSmartArt = function (menu) { // + <% if(typeof imageUrl === "undefined" || imageUrl===null || imageUrl==="") { %> style="visibility: hidden;" <% } %>/>',
me.btnInsertSmartArt.menu.items.forEach(function (item, index) {
item.$el.one('mouseenter', function () {
me.fireEvent('generate:smartart', [item.options.groupName]);
me.fireEvent('generate:smartart', [item.value]);
item.$el.mouseenter();
});
item.menuPicker = new Common.UI.DataView({
el: $('#' + item.value),
el: $('#' + item.options.itemId),
parentMenu: me.btnInsertSmartArt.menu.items[index].menu,
itemTemplate: _.template([
'<div>',