LibreOffice Module svx (master)  1
Public Types | Static Public Member Functions | Static Private Member Functions | List of all members
svx::sidebar::SelectionAnalyzer Class Reference

Analyze the current selection of Calc or Draw/Impress documents and return the associated sidebar context. More...

#include <SelectionAnalyzer.hxx>

Public Types

enum  ViewType {
  ViewType::Standard,
  ViewType::Master,
  ViewType::Handout,
  ViewType::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 sal_uInt16 nObjectId)
 
static vcl::EnumContext::Context GetContextForObjectId_SD (const sal_uInt16 nObjectId, const ViewType eViewType)
 
static SdrInventor GetInventorTypeFromMark (const SdrMarkList &rMarkList)
 
static sal_uInt16 GetObjectTypeFromMark (const SdrMarkList &rMarkList)
 
static sal_uInt16 GetObjectTypeFromGroup (const SdrObject *pObj)
 
static bool IsShapeType (const sal_uInt16 nType)
 
static bool IsTextObjType (const sal_uInt16 nType)
 

Detailed Description

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 36 of file SelectionAnalyzer.hxx.

Member Enumeration Documentation

Enumerator
Standard 
Master 
Handout 
Notes 

Definition at line 42 of file SelectionAnalyzer.hxx.

Member Function Documentation

EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForObjectId_SC ( const sal_uInt16  nObjectId)
staticprivate
EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForObjectId_SD ( const sal_uInt16  nObjectId,
const ViewType  eViewType 
)
staticprivate
EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForSelection_SC ( const SdrMarkList rMarkList)
static
EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForSelection_SD ( const SdrMarkList rMarkList,
const ViewType  eViewType 
)
static
SdrInventor svx::sidebar::SelectionAnalyzer::GetInventorTypeFromMark ( const SdrMarkList rMarkList)
staticprivate
sal_uInt16 svx::sidebar::SelectionAnalyzer::GetObjectTypeFromGroup ( const SdrObject pObj)
staticprivate
sal_uInt16 svx::sidebar::SelectionAnalyzer::GetObjectTypeFromMark ( const SdrMarkList rMarkList)
staticprivate
bool svx::sidebar::SelectionAnalyzer::IsShapeType ( const sal_uInt16  nType)
staticprivate
bool svx::sidebar::SelectionAnalyzer::IsTextObjType ( const sal_uInt16  nType)
staticprivate

Definition at line 464 of file SelectionAnalyzer.cxx.

References OBJ_OUTLINETEXT, OBJ_TEXT, and OBJ_TITLETEXT.

Referenced by GetObjectTypeFromGroup(), and GetObjectTypeFromMark().


The documentation for this class was generated from the following files: