LibreOffice Module svx (master) 1
|
Analyze the current selection of Calc or Draw/Impress documents and return the associated sidebar context. More...
#include <SelectionAnalyzer.hxx>
Public Types | |
enum class | ViewType { Standard , Master , Handout , Notes } |
Static Public Member Functions | |
static vcl::EnumContext::Context | GetContextForSelection_SC (const SdrMarkList &rMarkList) |
static vcl::EnumContext::Context | GetContextForSelection_SD (const SdrMarkList &rMarkList, const ViewType eViewType) |
Static Private Member Functions | |
static vcl::EnumContext::Context | GetContextForObjectId_SC (const SdrObjKind nObjectId) |
static vcl::EnumContext::Context | GetContextForObjectId_SD (const SdrObjKind nObjectId, const ViewType eViewType) |
static SdrInventor | GetInventorTypeFromMark (const SdrMarkList &rMarkList) |
static SdrObjKind | GetObjectTypeFromMark (const SdrMarkList &rMarkList) |
static SdrObjKind | GetObjectTypeFromGroup (const SdrObject *pObj) |
static bool | IsShapeType (const SdrObjKind nType) |
static bool | IsTextObjType (const SdrObjKind nType) |
Analyze the current selection of Calc or Draw/Impress documents and return the associated sidebar context.
The decision is based on heuristics. Do not expect pretty code.
Definition at line 37 of file SelectionAnalyzer.hxx.
|
strong |
Enumerator | |
---|---|
Standard | |
Master | |
Handout | |
Notes |
Definition at line 43 of file SelectionAnalyzer.hxx.
|
staticprivate |
Definition at line 207 of file SelectionAnalyzer.cxx.
References Caption, CircleArc, CircleCut, CircleOrEllipse, CircleSection, CustomShape, Edge, FreehandFill, FreehandLine, Graphic, Group, Line, Measure, Media, OLE2, OutlineText, PathFill, PathLine, Polygon, PolyLine, Rectangle, Text, and TitleText.
Referenced by GetContextForSelection_SC().
|
staticprivate |
Definition at line 249 of file SelectionAnalyzer.cxx.
References Caption, CircleArc, CircleCut, CircleOrEllipse, CircleSection, CustomShape, Edge, FreehandFill, FreehandLine, Graphic, Group, Handout, Line, Measure, Media, Notes, OLE2, OutlineText, Page, PathFill, PathLine, Polygon, PolyLine, Rectangle, Table, Text, and TitleText.
Referenced by GetContextForSelection_SD().
|
static |
Definition at line 31 of file SelectionAnalyzer.cxx.
References svx::checkForFontWork(), Default, DynCastSdrTextObj(), FmForm, GetContextForObjectId_SC(), GetInventorTypeFromMark(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMark::GetMarkedSdrObj(), GetObjectTypeFromMark(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), NONE, and Unknown.
|
static |
Definition at line 98 of file SelectionAnalyzer.cxx.
References svx::checkForFontWork(), Default, DynCastSdrTextObj(), E3d, FmForm, GetContextForObjectId_SD(), GetInventorTypeFromMark(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMark::GetMarkedSdrObj(), GetObjectTypeFromGroup(), GetObjectTypeFromMark(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), Group, Handout, Master, NONE, Notes, Standard, Table, and Unknown.
|
staticprivate |
Definition at line 308 of file SelectionAnalyzer.cxx.
References SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjInventor(), nIndex, and Unknown.
Referenced by GetContextForSelection_SC(), and GetContextForSelection_SD().
|
staticprivate |
Definition at line 332 of file SelectionAnalyzer.cxx.
References CustomShape, SdrObjList::GetObj(), SdrObjList::GetObjCount(), GetObjectTypeFromGroup(), SdrObject::GetObjIdentifier(), SdrObject::GetSubList(), Group, IsShapeType(), IsTextObjType(), nIndex, NONE, nType, and Text.
Referenced by GetContextForSelection_SD(), GetObjectTypeFromGroup(), and GetObjectTypeFromMark().
|
staticprivate |
Definition at line 384 of file SelectionAnalyzer.cxx.
References CustomShape, SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMark::GetMarkedSdrObj(), GetObjectTypeFromGroup(), SdrObject::GetObjIdentifier(), Group, IsShapeType(), IsTextObjType(), nIndex, NONE, nType, and Text.
Referenced by GetContextForSelection_SC(), and GetContextForSelection_SD().
|
staticprivate |
Definition at line 432 of file SelectionAnalyzer.cxx.
References Caption, CircleArc, CircleCut, CircleOrEllipse, CircleSection, CustomShape, Edge, FreehandFill, FreehandLine, Line, Measure, nType, OLE2, PathFill, PathLine, Polygon, PolyLine, and Rectangle.
Referenced by GetObjectTypeFromGroup(), and GetObjectTypeFromMark().
|
staticprivate |
Definition at line 463 of file SelectionAnalyzer.cxx.
References nType, OutlineText, Text, and TitleText.
Referenced by GetObjectTypeFromGroup(), and GetObjectTypeFromMark().