Kaydet (Commit) e944b64a authored tarafından Julien Nabet's avatar Julien Nabet

Replace AddContext in sidebar/EnumContext.cxx

+ remove extra duplicate AddEntry("Chart", Context_Chart);

Change-Id: I9624000d5f9470cd4cb5072c24aa24aced740fe4
Reviewed-on: https://gerrit.libreoffice.org/23665Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst ff9b7d11
...@@ -171,40 +171,37 @@ void EnumContext::ProvideContextContainers() ...@@ -171,40 +171,37 @@ void EnumContext::ProvideContextContainers()
AddEntry("any", Context_Any); AddEntry("any", Context_Any);
AddEntry("default", Context_Default); AddEntry("default", Context_Default);
AddEntry("empty", Context_Empty); AddEntry("empty", Context_Empty);
#define AddContext(context) AddEntry(#context, Context_##context); AddEntry("3DObject", Context_3DObject);
AddContext(3DObject); AddEntry("Annotation", Context_Annotation);
AddContext(Annotation); AddEntry("Auditing", Context_Auditing);
AddContext(Auditing); AddEntry("Axis", Context_Axis);
AddContext(Axis); AddEntry("Cell", Context_Cell);
AddContext(Cell); AddEntry("Chart", Context_Chart);
AddContext(Chart); AddEntry("ChartElements", Context_ChartElements);
AddContext(Chart); AddEntry("Draw", Context_Draw);
AddContext(ChartElements); AddEntry("DrawLine", Context_DrawLine);
AddContext(Draw); AddEntry("DrawPage", Context_DrawPage);
AddContext(DrawLine); AddEntry("DrawText", Context_DrawText);
AddContext(DrawPage); AddEntry("EditCell", Context_EditCell);
AddContext(DrawText); AddEntry("ErrorBar", Context_ErrorBar);
AddContext(EditCell); AddEntry("Form", Context_Form);
AddContext(ErrorBar); AddEntry("Frame", Context_Frame);
AddContext(Form); AddEntry("Graphic", Context_Graphic);
AddContext(Frame); AddEntry("Grid", Context_Grid);
AddContext(Graphic); AddEntry("HandoutPage", Context_HandoutPage);
AddContext(Grid); AddEntry("MasterPage", Context_MasterPage);
AddContext(HandoutPage); AddEntry("Media", Context_Media);
AddContext(MasterPage); AddEntry("MultiObject", Context_MultiObject);
AddContext(Media); AddEntry("NotesPage", Context_NotesPage);
AddContext(MultiObject); AddEntry("OLE", Context_OLE);
AddContext(NotesPage); AddEntry("OutlineText", Context_OutlineText);
AddContext(OLE); AddEntry("Pivot", Context_Pivot);
AddContext(OutlineText); AddEntry("Series", Context_Series);
AddContext(Pivot); AddEntry("SlidesorterPage", Context_SlidesorterPage);
AddContext(Series); AddEntry("Table", Context_Table);
AddContext(SlidesorterPage); AddEntry("Text", Context_Text);
AddContext(Table); AddEntry("TextObject", Context_TextObject);
AddContext(Text); AddEntry("Trendline", Context_Trendline);
AddContext(TextObject);
AddContext(Trendline);
#undef AddContext
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment