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 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)
 

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

Member Enumeration Documentation

◆ ViewType

Enumerator
Standard 
Master 
Handout 
Notes 

Definition at line 43 of file SelectionAnalyzer.hxx.

Member Function Documentation

◆ GetContextForObjectId_SC()

EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForObjectId_SC ( const SdrObjKind  nObjectId)
staticprivate

◆ GetContextForObjectId_SD()

EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForObjectId_SD ( const SdrObjKind  nObjectId,
const ViewType  eViewType 
)
staticprivate

◆ GetContextForSelection_SC()

EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForSelection_SC ( const SdrMarkList rMarkList)
static

◆ GetContextForSelection_SD()

EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForSelection_SD ( const SdrMarkList rMarkList,
const ViewType  eViewType 
)
static

◆ GetInventorTypeFromMark()

SdrInventor svx::sidebar::SelectionAnalyzer::GetInventorTypeFromMark ( const SdrMarkList rMarkList)
staticprivate

◆ GetObjectTypeFromGroup()

SdrObjKind svx::sidebar::SelectionAnalyzer::GetObjectTypeFromGroup ( const SdrObject pObj)
staticprivate

◆ GetObjectTypeFromMark()

SdrObjKind svx::sidebar::SelectionAnalyzer::GetObjectTypeFromMark ( const SdrMarkList rMarkList)
staticprivate

◆ IsShapeType()

bool svx::sidebar::SelectionAnalyzer::IsShapeType ( const SdrObjKind  nType)
staticprivate

◆ IsTextObjType()

bool svx::sidebar::SelectionAnalyzer::IsTextObjType ( const SdrObjKind  nType)
staticprivate

Definition at line 463 of file SelectionAnalyzer.cxx.

References nType, OutlineText, Text, and TitleText.

Referenced by GetObjectTypeFromGroup(), and GetObjectTypeFromMark().


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