LibreOffice Module vcl (master) 1
|
#include <EnumContext.hxx>
Public Types | |
enum class | Application { Writer , WriterGlobal , WriterWeb , WriterXML , WriterForm , WriterReport , Calc , Chart , Draw , Impress , Formula , Base , DrawImpress , WriterVariants , Any , NONE , LAST = Application::NONE } |
enum class | Context { ThreeDObject , Annotation , Auditing , Axis , Cell , Chart , ChartElements , Draw , DrawFontwork , DrawLine , DrawPage , DrawText , EditCell , ErrorBar , Form , Frame , Graphic , Grid , HandoutPage , MasterPage , Math , Media , MultiObject , NotesPage , OLE , OutlineText , Pivot , Printpreview , Series , SlidesorterPage , Table , Text , TextObject , Trendline , Sparkline , Default , Any , Empty , Unknown , LAST = Unknown } |
Public Member Functions | |
EnumContext () | |
EnumContext (const Application eApplication, const Context eContext) | |
sal_Int32 | GetCombinedContext_DI () const |
This variant of the GetCombinedContext() method treats some application names as identical to each other. More... | |
Application | GetApplication_DI () const |
bool | operator== (const EnumContext &rOther) const |
bool | operator!= (const EnumContext &rOther) const |
Static Public Member Functions | |
static Application | GetApplicationEnum (const OUString &rsApplicationName) |
static const OUString & | GetApplicationName (const Application eApplication) |
static Context | GetContextEnum (const OUString &rsContextName) |
static const OUString & | GetContextName (const Context eContext) |
Static Public Attributes | |
static const sal_Int32 | NoMatch = 4 |
When two contexts are matched against each other, then application or context name may have the wildcard value 'any'. More... | |
Static Private Member Functions | |
static void | ProvideApplicationContainers () |
static void | ProvideContextContainers () |
static void | AddEntry (const OUString &rsName, const Application eApplication) |
static void | AddEntry (const OUString &rsName, const Context eContext) |
Private Attributes | |
Application | meApplication |
Context | meContext |
Definition at line 29 of file EnumContext.hxx.
|
strong |
Enumerator | |
---|---|
Writer | |
WriterGlobal | |
WriterWeb | |
WriterXML | |
WriterForm | |
WriterReport | |
Calc | |
Chart | |
Draw | |
Impress | |
Formula | |
Base | |
DrawImpress | |
WriterVariants | |
Any | |
NONE | |
LAST |
Definition at line 32 of file EnumContext.hxx.
|
strong |
Definition at line 64 of file EnumContext.hxx.
vcl::EnumContext::EnumContext | ( | ) |
Definition at line 44 of file EnumContext.cxx.
vcl::EnumContext::EnumContext | ( | const Application | eApplication, |
const Context | eContext | ||
) |
Definition at line 50 of file EnumContext.cxx.
|
staticprivate |
Definition at line 96 of file EnumContext.cxx.
References LAST.
Referenced by ProvideApplicationContainers(), and ProvideContextContainers().
|
staticprivate |
Definition at line 143 of file EnumContext.cxx.
EnumContext::Application vcl::EnumContext::GetApplication_DI | ( | ) | const |
Definition at line 63 of file EnumContext.cxx.
References Draw, DrawImpress, Impress, meApplication, Writer, WriterForm, WriterGlobal, WriterReport, WriterVariants, WriterWeb, and WriterXML.
Referenced by GetCombinedContext_DI().
|
static |
Definition at line 125 of file EnumContext.cxx.
References NONE, and ProvideApplicationContainers().
|
static |
Definition at line 137 of file EnumContext.cxx.
References ProvideApplicationContainers().
sal_Int32 vcl::EnumContext::GetCombinedContext_DI | ( | ) | const |
This variant of the GetCombinedContext() method treats some application names as identical to each other.
Replacements made are: Draw or Impress -> DrawImpress Writer or WriterWeb -> WriterAndWeb Use the Application::DrawImpress or Application::WriterAndWeb values in the CombinedEnumContext macro.
Definition at line 58 of file EnumContext.cxx.
References CombinedEnumContext, GetApplication_DI(), and meContext.
|
static |
Definition at line 196 of file EnumContext.cxx.
References ProvideContextContainers(), and Unknown.
Referenced by VclBuilder::handleStyle(), and NotebookBarContextChangeEventListener::notifyContextChangeEvent().
|
static |
Definition at line 207 of file EnumContext.cxx.
References ProvideContextContainers().
bool vcl::EnumContext::operator!= | ( | const EnumContext & | rOther | ) | const |
Definition at line 90 of file EnumContext.cxx.
References meApplication, and meContext.
bool vcl::EnumContext::operator== | ( | const EnumContext & | rOther | ) | const |
Definition at line 84 of file EnumContext.cxx.
References meApplication, and meContext.
|
staticprivate |
Definition at line 103 of file EnumContext.cxx.
References AddEntry(), Any, Base, Calc, Chart, Draw, Formula, Impress, NONE, Writer, WriterForm, WriterGlobal, WriterReport, WriterWeb, and WriterXML.
Referenced by GetApplicationEnum(), and GetApplicationName().
|
staticprivate |
Definition at line 149 of file EnumContext.cxx.
References AddEntry(), Annotation, Any, Auditing, Axis, Cell, Chart, ChartElements, Default, Draw, DrawFontwork, DrawLine, DrawPage, DrawText, EditCell, Empty, ErrorBar, Form, Frame, Graphic, Grid, HandoutPage, MasterPage, Math, Media, MultiObject, NotesPage, OLE, OutlineText, Pivot, Printpreview, Series, SlidesorterPage, Sparkline, Table, Text, TextObject, ThreeDObject, and Trendline.
Referenced by GetContextEnum(), and GetContextName().
|
private |
Definition at line 150 of file EnumContext.hxx.
Referenced by GetApplication_DI(), operator!=(), and operator==().
|
private |
Definition at line 151 of file EnumContext.hxx.
Referenced by GetCombinedContext_DI(), operator!=(), and operator==().
|
static |
When two contexts are matched against each other, then application or context name may have the wildcard value 'any'.
In order to prefer matches without wildcards over matches with wildcards we introduce an integer evaluation for matches.
Definition at line 141 of file EnumContext.hxx.