summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-03-30 22:46:39 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-03-31 05:07:12 +0000
commite944b64a3ec3b6dbe8d91638eb46478d6f88d8dc (patch)
tree7cad6c694fd2e8b8692627b36a81913845222ba4
parentff9b7d118b34b53ec947af881fccd822e2aeb1fd (diff)
Replace AddContext in sidebar/EnumContext.cxx
+ remove extra duplicate AddEntry("Chart", Context_Chart); Change-Id: I9624000d5f9470cd4cb5072c24aa24aced740fe4 Reviewed-on: https://gerrit.libreoffice.org/23665 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--sfx2/source/sidebar/EnumContext.cxx65
1 files changed, 31 insertions, 34 deletions
diff --git a/sfx2/source/sidebar/EnumContext.cxx b/sfx2/source/sidebar/EnumContext.cxx
index db807004d800..c44e4347bd21 100644
--- a/sfx2/source/sidebar/EnumContext.cxx
+++ b/sfx2/source/sidebar/EnumContext.cxx
@@ -171,40 +171,37 @@ void EnumContext::ProvideContextContainers()
AddEntry("any", Context_Any);
AddEntry("default", Context_Default);
AddEntry("empty", Context_Empty);
-#define AddContext(context) AddEntry(#context, Context_##context);
- AddContext(3DObject);
- AddContext(Annotation);
- AddContext(Auditing);
- AddContext(Axis);
- AddContext(Cell);
- AddContext(Chart);
- AddContext(Chart);
- AddContext(ChartElements);
- AddContext(Draw);
- AddContext(DrawLine);
- AddContext(DrawPage);
- AddContext(DrawText);
- AddContext(EditCell);
- AddContext(ErrorBar);
- AddContext(Form);
- AddContext(Frame);
- AddContext(Graphic);
- AddContext(Grid);
- AddContext(HandoutPage);
- AddContext(MasterPage);
- AddContext(Media);
- AddContext(MultiObject);
- AddContext(NotesPage);
- AddContext(OLE);
- AddContext(OutlineText);
- AddContext(Pivot);
- AddContext(Series);
- AddContext(SlidesorterPage);
- AddContext(Table);
- AddContext(Text);
- AddContext(TextObject);
- AddContext(Trendline);
-#undef AddContext
+ AddEntry("3DObject", Context_3DObject);
+ AddEntry("Annotation", Context_Annotation);
+ AddEntry("Auditing", Context_Auditing);
+ AddEntry("Axis", Context_Axis);
+ AddEntry("Cell", Context_Cell);
+ AddEntry("Chart", Context_Chart);
+ AddEntry("ChartElements", Context_ChartElements);
+ AddEntry("Draw", Context_Draw);
+ AddEntry("DrawLine", Context_DrawLine);
+ AddEntry("DrawPage", Context_DrawPage);
+ AddEntry("DrawText", Context_DrawText);
+ AddEntry("EditCell", Context_EditCell);
+ AddEntry("ErrorBar", Context_ErrorBar);
+ AddEntry("Form", Context_Form);
+ AddEntry("Frame", Context_Frame);
+ AddEntry("Graphic", Context_Graphic);
+ AddEntry("Grid", Context_Grid);
+ AddEntry("HandoutPage", Context_HandoutPage);
+ AddEntry("MasterPage", Context_MasterPage);
+ AddEntry("Media", Context_Media);
+ AddEntry("MultiObject", Context_MultiObject);
+ AddEntry("NotesPage", Context_NotesPage);
+ AddEntry("OLE", Context_OLE);
+ AddEntry("OutlineText", Context_OutlineText);
+ AddEntry("Pivot", Context_Pivot);
+ AddEntry("Series", Context_Series);
+ AddEntry("SlidesorterPage", Context_SlidesorterPage);
+ AddEntry("Table", Context_Table);
+ AddEntry("Text", Context_Text);
+ AddEntry("TextObject", Context_TextObject);
+ AddEntry("Trendline", Context_Trendline);
}
}