Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
CEnumerateUtils Class Reference

#include <enumerateUtils.h>

Collaboration diagram for CEnumerateUtils:
Collaboration graph

Static Public Member Functions

static std::wstring int2Romans (int index)
 
static std::wstring int2Char (int index, bool capitals)
 
static bool shapeCompare (Visio::IVShapePtr p1, Visio::IVShapePtr p2)
 
static bool isShapeValid (Visio::IVShapePtr shape)
 
static Visio::IVShapePtr getShapeSheet (Visio::IVApplicationPtr vsoApp)
 
static bool isValidShapeInDocument (Visio::IVApplicationPtr vsoApp, bool mustBeNumbered=true)
 
static bool isShapeNumbered (Visio::IVShapePtr shape)
 
static bool loadGroupSettings (Visio::IVApplicationPtr vsoApp, _bstr_t groupID, int &startIndex, int &numberingType, std::wstring &addition)
 
static bool saveGroupSettings (Visio::IVApplicationPtr vsoApp, _bstr_t groupID, int startIndex, int numberingType, BSTR addition)
 
static void selectGroup (Visio::IVApplicationPtr vsoApp, _bstr_t groupID)
 
static Visio::IVShapePtr getClosestValidShape (Visio::IVApplicationPtr vsoApp, const Visio::IVShapePtr shapePtr, bool onlyNumbered)
 
static int getGroupCount (Visio::IVApplicationPtr vsoApp)
 
static void setGroupCount (Visio::IVApplicationPtr vsoApp, int count)
 
static VAORC disableEnumeration (Visio::IVShapePtr shape)
 
static VAORC enableEnumeration (Visio::IVShapePtr shape, _bstr_t groupID, std::set< _bstr_t > &formerGroups)
 
static void fillComboWithTypes (WTL::CComboBox &combo)
 
static int getAutoEnumGroup (Visio::IVApplicationPtr vsoApp)
 
static void eraseAutoEnumGroup (Visio::IVApplicationPtr vsoApp)
 
static void eraseEnumInfo (Visio::IVApplicationPtr vsoApp)
 
static bool hasGroupId (Visio::IVShapePtr shape)
 

Detailed Description

Definition at line 24 of file enumerateUtils.h.

Member Function Documentation

VAORC CEnumerateUtils::disableEnumeration ( Visio::IVShapePtr  shape)
static

Definition at line 318 of file enumerateUtils.cpp.

References isShapeNumbered().

Referenced by CDocumentMonitor::enumerate().

VAORC CEnumerateUtils::enableEnumeration ( Visio::IVShapePtr  shape,
_bstr_t  groupID,
std::set< _bstr_t > &  formerGroups 
)
static

Definition at line 285 of file enumerateUtils.cpp.

References isShapeNumbered().

Referenced by CDocumentMonitor::enumerate().

void CEnumerateUtils::eraseAutoEnumGroup ( Visio::IVApplicationPtr  vsoApp)
static

Definition at line 260 of file enumerateUtils.cpp.

References getAutoEnumGroup(), and getShapeSheet().

Referenced by CStudioAddon::DisplayOptions(), and eraseEnumInfo().

void CEnumerateUtils::eraseEnumInfo ( Visio::IVApplicationPtr  vsoApp)
static
void CEnumerateUtils::fillComboWithTypes ( WTL::CComboBox &  combo)
static
int CEnumerateUtils::getAutoEnumGroup ( Visio::IVApplicationPtr  vsoApp)
static

Definition at line 250 of file enumerateUtils.cpp.

References getShapeSheet().

Referenced by CDocumentMonitor::autoEnumerate(), and eraseAutoEnumGroup().

Visio::IVShapePtr CEnumerateUtils::getClosestValidShape ( Visio::IVApplicationPtr  vsoApp,
const Visio::IVShapePtr  shapePtr,
bool  onlyNumbered 
)
static

Definition at line 112 of file enumerateUtils.cpp.

References isShapeNumbered(), and isShapeValid().

Referenced by CDocumentMonitor::autoEnumerate().

int CEnumerateUtils::getGroupCount ( Visio::IVApplicationPtr  vsoApp)
static
Visio::IVShapePtr CEnumerateUtils::getShapeSheet ( Visio::IVApplicationPtr  vsoApp)
static
bool CEnumerateUtils::hasGroupId ( Visio::IVShapePtr  shape)
static

Definition at line 391 of file enumerateUtils.cpp.

Referenced by CStudioAddon::HandleCellChanged().

std::wstring CEnumerateUtils::int2Char ( int  index,
bool  capitals 
)
static

Converts integer to char: a-z,aa-az,ba-bz,...,aaa-aaz,..etc.

Parameters
indexinteger to convert to char
capitalsif true, creates capitals Chars as: A-Z, AA-AZ
Returns
string representing index

Definition at line 49 of file enumerateUtils.cpp.

References result.

Referenced by CDocumentMonitor::drawNumbers().

std::wstring CEnumerateUtils::int2Romans ( int  index)
static

Definition at line 22 of file enumerateUtils.cpp.

References result.

Referenced by CDocumentMonitor::drawNumbers().

bool CEnumerateUtils::isShapeNumbered ( Visio::IVShapePtr  shape)
static
bool CEnumerateUtils::isShapeValid ( Visio::IVShapePtr  shape)
static
bool CEnumerateUtils::isValidShapeInDocument ( Visio::IVApplicationPtr  vsoApp,
bool  mustBeNumbered = true 
)
static
bool CEnumerateUtils::loadGroupSettings ( Visio::IVApplicationPtr  vsoApp,
_bstr_t  groupID,
int &  startIndex,
int &  numberingType,
std::wstring &  addition 
)
static

Definition at line 148 of file enumerateUtils.cpp.

References getShapeSheet().

Referenced by CDocumentMonitor::drawNumbers().

bool CEnumerateUtils::saveGroupSettings ( Visio::IVApplicationPtr  vsoApp,
_bstr_t  groupID,
int  startIndex,
int  numberingType,
BSTR  addition 
)
static
void CEnumerateUtils::selectGroup ( Visio::IVApplicationPtr  vsoApp,
_bstr_t  groupID 
)
static

Definition at line 204 of file enumerateUtils.cpp.

References isShapeNumbered().

Referenced by CDocumentMonitor::OnMenuSelectNumberedGroup().

void CEnumerateUtils::setGroupCount ( Visio::IVApplicationPtr  vsoApp,
int  count 
)
static
bool CEnumerateUtils::shapeCompare ( Visio::IVShapePtr  p1,
Visio::IVShapePtr  p2 
)
static

Compare function for drawNumbers, decides order of message shape according to their position

Parameters
p1pointer to first message shape to compare
p2pointer to second message shape to compare
Returns
whether first shape is "smaller" then the second one

Definition at line 88 of file enumerateUtils.cpp.

Referenced by CDocumentMonitor::drawNumbers().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:57 for Sequence Chart Studio by  doxygen