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

Enumerator
Standard 
Master 
Handout 
Notes 

Definition at line 43 of file SelectionAnalyzer.hxx.

Member Function Documentation

EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForObjectId_SC ( const SdrObjKind  nObjectId)
staticprivate
EnumContext::Context svx::sidebar::SelectionAnalyzer::GetContextForObjectId_SD ( const SdrObjKind  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
SdrObjKind svx::sidebar::SelectionAnalyzer::GetObjectTypeFromGroup ( const SdrObject pObj)
staticprivate
SdrObjKind svx::sidebar::SelectionAnalyzer::GetObjectTypeFromMark ( const SdrMarkList rMarkList)
staticprivate
bool svx::sidebar::SelectionAnalyzer::IsShapeType ( const SdrObjKind  nType)
staticprivate
bool svx::sidebar::SelectionAnalyzer::IsTextObjType ( const SdrObjKind  nType)
staticprivate

Definition at line 463 of file SelectionAnalyzer.cxx.

References OutlineText, Text, and TitleText.

Referenced by GetObjectTypeFromGroup(), and GetObjectTypeFromMark().


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