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

#include <document.h>

Inheritance diagram for CDocumentMonitor:
Inheritance graph
Collaboration diagram for CDocumentMonitor:
Collaboration graph

Public Types

enum  MenuItems {
  MENU_ADD_INSTANCES_CONTEXT = 102, MENU_MESSAGE_SEQUENCE_CONTEXT, MENU_SELECT_NUMBERED_GROUP, MENU_FLIP_MESSAGE_DIRECTION,
  MENU_MESSAGE_SEQUENCE, MENU_ADD_INSTANCES, MENU_WINDOWS_REPORTER = 200, MENU_IMPORT,
  MENU_EXPORT, MENU_REPAINT, MENU_FIND_FLOW, MENU_SIMULATION_START,
  MENU_SIMULATION_STOP, MENU_HELP, MENU_VERIFY = 208, MENU_CHECK_OPTIONS,
  MENU_SELECT_ALL_INSTANCES, MENU_SELECT_ALL_MESSAGES, MENU_SELECT_ADD_ALL_INSTANCES, MENU_SELECT_ADD_ALL_MESSAGES,
  MENU_MESSAGE_JUMP_LEFT, MENU_MESSAGE_JUMP_RIGHT, MENU_MESSAGE_JUMP_LEFT_COPY, MENU_MESSAGE_JUMP_RIGHT_COPY,
  MENU_ENABLE_MESSAGE_ENUMERATION, MENU_DISABLE_MESSAGE_ENUMERATION, MENU_THICKEN_LINES, MENU_THIN_LINES,
  MENU_SELECT_ALL, MENU_REMOVE_COLORS
}
 
enum  ShortCutItems { SHORT_DROP_INST = 401 }
 

Public Member Functions

 CDocumentMonitor (CStudioAddon *addon, Visio::IVApplicationPtr vsoApp, Visio::IVDocumentPtr vsoDocument)
 
virtual ~CDocumentMonitor ()
 
VAORC OnDropShape (int iDocumentIndex, int iPageIndex, _bstr_t sShapeU)
 
VAORC OnOpenReference (int iDocumentIndex, int iPageIndex, _bstr_t sShapeU)
 
void InitMenu ()
 
void InitShortcuts ()
 
void InitToolbar ()
 
VAORC OnMenuWindowsReporter (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuImport (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuExport (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuRepaint (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuThickenLines (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuThinLines (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuTransform (Visio::IVApplicationPtr vsoApp, int index)
 
VAORC OnMenuSelectAll (Visio::IVApplicationPtr vsoApp, SelectionType selType)
 
VAORC OnMenuRemoveColors (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuSelectAllInstances (Visio::IVApplicationPtr vsoApp, SelectionType selType)
 
VAORC OnMenuSelectAllMessages (Visio::IVApplicationPtr vsoApp, SelectionType selType)
 
VAORC OnMenuMessageJump (Visio::IVApplicationPtr vsoApp, bool left, bool asCopy)
 
VAORC OnMenuMessageSequence (Visio::IVApplicationPtr vsoApp, bool bContext=true, Visio::IVSelectionPtr oldSelection=NULL)
 
VAORC OnMenuFindFlow (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuSimulationStart (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuSimulationStop (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuVerify (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuEnableMessageEnumeration (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuDisableMessageEnumeration (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuSelectNumberedGroup (Visio::IVApplicationPtr vsoApp)
 
VAORC OnMenuFlipMessageDirection (Visio::IVApplicationPtr vsoApp)
 
VAORC OnHelp ()
 
VAORC OnShortcutDropInstace (Visio::IVApplicationPtr vsoApp)
 
void ShowReportView ()
 
void OnHideReportView ()
 
int GetInputFile (char *fileName)
 
ImportFormatterPtr GetImportFormatter (const char *fileName)
 
void ImportDocument (const ImportFormatterPtr &formatter, const std::string &filename)
 
int GetOutputFile (char *fileName)
 
ExportFormatterPtr GetExportFormatter (const char *fileName)
 
int ExportActiveDocument (const ExportFormatterPtr &formatter, std::ostream &stream)
 Returns 0 if the export was successful and a positive integer otherwise. More...
 
int DisplayDocument (const MscPtr &msc)
 
int InvokeHelp (const std::wstring &filename)
 
Visio::IVShapePtr FindShape (const _bstr_t &id)
 
int SelectShapes (const std::vector< _bstr_t > &ids)
 
void OnSimulationResult ()
 
void OnSimulationError ()
 
Visio::IVDocumentPtr GetMonitoredDocument ()
 
bool IsEmpty (Visio::IVApplicationPtr vsoApp)
 
void ToggleToolbarItems (bool modifiersPressed)
 
VAORC DrawInstancesField (Visio::IVApplicationPtr vsoApp, int instancesCnt, Coordinate instanceLength, Coordinate instanceWidth, Coordinate startX, Coordinate startY, bool useConstSpacing, Coordinate spacingOrWidth)
 
void drawNumbers (Visio::IVShapesPtr shapesOnPage, _bstr_t groupID)
 
void ToogleNumeration (bool enabled)
 
Visio::IVUIObjectPtr GetMostCustomMenus ()
 
Visio::IVUIObjectPtr GetMostCustomToolbars ()
 
- Public Member Functions inherited from SimulationListener
virtual ~SimulationListener ()
 

Public Attributes

Visio::IVEventPtr m_vsoPageAddedEvent
 
Visio::IVEventPtr m_vsoBeforeDocumentClosedEvent
 

Private Types

typedef std::vector< int > RequiredCheckersList
 

Private Member Functions

 CDocumentMonitor (const CDocumentMonitor &other)
 
int LoadModulesFromRegistry (HKEY hKey)
 
CheckerPtrList::const_iterator find_checker (const std::wstring &property_name) const
 
int run_checks (MscPtr &msc, const RequiredCheckersList &priorities)
 
TransformerPtrList::const_iterator find_transformer (const std::wstring &name) const
 
MscPtr run_transformers (MscPtr &msc, const TransformerPtrList &transformer_list)
 
virtual void on_result (const MeasurementMap &measurements)
 
virtual void on_error (const std::string &what)
 
int check_membership_preconditions (MscPtr &msc)
 
void selectAll (Visio::IVApplicationPtr vsoApp, bool select_instances, SelectionType selType)
 
std::pair< Visio::IVShapePtr,
Visio::IVShapePtr > 
getInstancesPair (Visio::IVApplicationPtr vsoApp)
 
std::vector< Visio::IVShapePtr > getInstancesInBetween (Visio::IVShapePtr boundaryOne, Visio::IVShapePtr boundaryTwo, double yCoord)
 
Visio::IVShapePtr DrawMessage (Visio::IVMasterPtr msgMaster, Visio::IVMasterPtr orderingMaster, Visio::IVShapePtr from, Visio::IVShapePtr to, double yCoord, const TCHAR *caption, MsgSeqCoregionTreatment coregionTreatment, Visio::IVShapePtr prevMsg)
 
Visio::IVToolbarItemPtr addToolbarItem (Visio::IVToolbarPtr toolbar, const TCHAR *caption, unsigned short eventID, unsigned short iconIndex, unsigned int flags=0)
 
void autoEnumerate (Visio::IVShapePtr msgShape)
 
void enumerate (Visio::IVApplicationPtr vsoApp, _bstr_t groupID, bool enable, bool onlySelected)
 

Private Attributes

std::vector< HINSTANCE > m_open_modules
 
FormatterPtrList m_formatters
 
CheckerPtrList m_checkers
 
TransformerPtrList m_transformers
 
short beautifyIndex
 
short beautifyCmdNum
 
short tightenTimeIndex
 
MeasurementMap m_marker_measurements
 
std::string m_marker_error
 
SearcherPtr m_membership
 
SimulatorPtr m_simulator
 
CStudioAddonm_addon
 
Visio::IVApplicationPtr m_vsoApp
 
Visio::IVDocumentPtr m_vsoDocument
 
bool m_reportVisible
 
Visio::IVWindowPtr m_reportWindow
 
Visio::IVMenuItemPtr m_reportMenuItem
 
CReportViewm_reportView
 
ConfigProviderm_configProvider
 
Visio::IVToolbarPtr m_toolbar
 
Visio::IVMenuItemPtr m_simulationStartMenuItem
 
Visio::IVMenuItemPtr m_simulationStopMenuItem
 
Visio::IVToolbarItemPtr m_simulationStartToolbarItem
 
Visio::IVToolbarItemPtr m_simulationStopToolbarItem
 
Visio::IVToolbarItemPtr m_selInstancesToolbarItem
 
Visio::IVToolbarItemPtr m_selMessagesToolbarItem
 
Visio::IVToolbarItemPtr m_selAddInstancesToolbarItem
 
Visio::IVToolbarItemPtr m_selAddMessagesToolbarItem
 
Visio::IVToolbarItemPtr m_enableMessageEnumerationToolbarItem
 
Visio::IVToolbarItemPtr m_disableMessageEnumerationToolbarItem
 
Visio::IVToolbarItemPtr m_msgJumpLeftToolbarItem
 
Visio::IVToolbarItemPtr m_msgJumpRightToolbarItem
 
Visio::IVToolbarItemPtr m_msgJumpLeftCopyToolbarItem
 
Visio::IVToolbarItemPtr m_msgJumpRightCopyToolbarItem
 
Visio::IVMenuItemsPtr visMenuItems
 
Visio::IVMenuItemPtr itemMessageEnumerating
 
Visio::IVAccelItemPtr accelItemMessageEnumerationDisable
 
Visio::IVAccelItemPtr accelItemMessageEnumeration
 

Detailed Description

Definition at line 50 of file document.h.

Member Typedef Documentation

typedef std::vector<int> CDocumentMonitor::RequiredCheckersList
private

Definition at line 202 of file document.h.

Member Enumeration Documentation

Enumerator
MENU_ADD_INSTANCES_CONTEXT 
MENU_MESSAGE_SEQUENCE_CONTEXT 
MENU_SELECT_NUMBERED_GROUP 
MENU_FLIP_MESSAGE_DIRECTION 
MENU_MESSAGE_SEQUENCE 
MENU_ADD_INSTANCES 
MENU_WINDOWS_REPORTER 
MENU_IMPORT 
MENU_EXPORT 
MENU_REPAINT 
MENU_FIND_FLOW 
MENU_SIMULATION_START 
MENU_SIMULATION_STOP 
MENU_HELP 
MENU_VERIFY 
MENU_CHECK_OPTIONS 
MENU_SELECT_ALL_INSTANCES 
MENU_SELECT_ALL_MESSAGES 
MENU_SELECT_ADD_ALL_INSTANCES 
MENU_SELECT_ADD_ALL_MESSAGES 
MENU_MESSAGE_JUMP_LEFT 
MENU_MESSAGE_JUMP_RIGHT 
MENU_MESSAGE_JUMP_LEFT_COPY 
MENU_MESSAGE_JUMP_RIGHT_COPY 
MENU_ENABLE_MESSAGE_ENUMERATION 
MENU_DISABLE_MESSAGE_ENUMERATION 
MENU_THICKEN_LINES 
MENU_THIN_LINES 
MENU_SELECT_ALL 
MENU_REMOVE_COLORS 

Definition at line 64 of file document.h.

Enumerator
SHORT_DROP_INST 

Definition at line 101 of file document.h.

Constructor & Destructor Documentation

CDocumentMonitor::CDocumentMonitor ( CStudioAddon addon,
Visio::IVApplicationPtr  vsoApp,
Visio::IVDocumentPtr  vsoDocument 
)
CDocumentMonitor::~CDocumentMonitor ( )
virtual
CDocumentMonitor::CDocumentMonitor ( const CDocumentMonitor other)
private

Member Function Documentation

Visio::IVToolbarItemPtr CDocumentMonitor::addToolbarItem ( Visio::IVToolbarPtr  toolbar,
const TCHAR *  caption,
unsigned short  eventID,
unsigned short  iconIndex,
unsigned int  flags = 0 
)
private

Definition at line 2631 of file document.cpp.

References ADDON_NAME, GetVisioModuleFileName(), TB_BEGINGROUP, TB_DISABLED, TB_INVISIBLE, and TB_NOICON.

Referenced by InitToolbar().

void CDocumentMonitor::autoEnumerate ( Visio::IVShapePtr  msgShape)
private
int CDocumentMonitor::check_membership_preconditions ( MscPtr msc)
private
int CDocumentMonitor::DisplayDocument ( const MscPtr msc)
VAORC CDocumentMonitor::DrawInstancesField ( Visio::IVApplicationPtr  vsoApp,
int  instancesCnt,
Coordinate  instanceLength,
Coordinate  instanceWidth,
Coordinate  startX,
Coordinate  startY,
bool  useConstSpacing,
Coordinate  spacingOrWidth 
)

Draws a field of instances on the current page.

All coordinates are expected to be in the millimeters (as it seems to be the units visualizer uses), and the upper-left corner is expected to be at [0,0].

Parameters
vsoAppthe monitored application where to draw
instancesCntnumber of instances to draw
instanceLengthrequested length of the instances
instanceWidthrequested width of the instances
startXx-coordinate where to start drawing the upper left corner of the first instance
startYy-coordinate where to start drawing the upper left corner of the first instance
useConstSpacinguse constant (true) or dynamic (false) spacing?
spacingOrWidthconstant spacing between instances for constant spacing, or total width for dynamic spacing
Returns
result: VAORC_SUCCESS or VAORC_FAILURE

Definition at line 856 of file document.cpp.

References get_shape_type(), CPageUtils::GetPageHeight(), CPageUtils::GetPageWidth(), m_vsoApp, ST_BMSC_INSTANCE, TRACE, and CDrawingVisualizer::visualize_bmsc().

Referenced by CStudioAddon::DoInstancesField().

Visio::IVShapePtr CDocumentMonitor::DrawMessage ( Visio::IVMasterPtr  msgMaster,
Visio::IVMasterPtr  orderingMaster,
Visio::IVShapePtr  from,
Visio::IVShapePtr  to,
double  yCoord,
const TCHAR *  caption,
MsgSeqCoregionTreatment  coregionTreatment,
Visio::IVShapePtr  prevMsg 
)
private

Draws a message between the given instances at yCoord.

On an error (possibly because of a forbidden coregion), an error message box is invoked.

Parameters
msgMastermessage master shape
orderingMasterordering master shape
fromfrom which instance
toto which instance
yCoordthe y-coordinate at which to draw the message; relative to the page
captioncaption of the message
coregionTreatmentthe way coregions should be treated when crossed by the message
prevMsgprevious message in the sequence which to connect this message with if the coregion treatment is some kind of connection; might be NULL in which case no connecting will take place
Returns
pointer to the message shape drawn or NULL if the message could not be drawn (probably because of a forbidden coregion)

Definition at line 1770 of file document.cpp.

References CShapeUtils::GetCoregionAt(), CShapeUtils::GetShapeBeginY(), CShapeUtils::GetShapeEndY(), MSCOR_CONNECT_LINE, MSCOR_CONNECT_SIDE_SIDE, MSCOR_ERROR, and TRACE.

Referenced by OnMenuMessageSequence().

void CDocumentMonitor::drawNumbers ( Visio::IVShapesPtr  shapesOnPage,
_bstr_t  groupID 
)

Recompute positions in order left - right, top - down a draws the numbers into text field

Parameters
shapesOnPagepointer to all shapes on a page

Definition at line 2059 of file document.cpp.

References CEnumerateUtils::int2Char(), CEnumerateUtils::int2Romans(), CEnumerateUtils::isShapeNumbered(), CEnumerateUtils::isShapeValid(), CEnumerateUtils::loadGroupSettings(), and CEnumerateUtils::shapeCompare().

Referenced by autoEnumerate(), enumerate(), CStudioAddon::HandleAfterTextEdit(), CStudioAddon::HandleNonePending(), and OnMenuMessageJump().

void CDocumentMonitor::enumerate ( Visio::IVApplicationPtr  vsoApp,
_bstr_t  groupID,
bool  enable,
bool  onlySelected 
)
private
int CDocumentMonitor::ExportActiveDocument ( const ExportFormatterPtr formatter,
std::ostream &  stream 
)

Returns 0 if the export was successful and a positive integer otherwise.

Definition at line 2409 of file document.cpp.

References CDrawingExtractor::extract_msc(), find_checker(), m_checkers, m_reportView, m_vsoApp, m_vsoDocument, PrerequisiteCheck::PP_DISREGARDED, CReportView::Print(), RS_ERROR, RS_NOTICE, and run_checks().

Referenced by OnMenuExport().

CheckerPtrList::const_iterator CDocumentMonitor::find_checker ( const std::wstring &  property_name) const
private
TransformerPtrList::const_iterator CDocumentMonitor::find_transformer ( const std::wstring &  name) const
private

Definition at line 925 of file document.cpp.

References m_transformers.

Referenced by ImportDocument().

Visio::IVShapePtr CDocumentMonitor::FindShape ( const _bstr_t &  id)

Definition at line 2545 of file document.cpp.

References m_vsoApp, and TRACE.

Referenced by SelectShapes().

ExportFormatterPtr CDocumentMonitor::GetExportFormatter ( const char *  fileName)

Definition at line 2380 of file document.cpp.

References m_formatters.

Referenced by OnMenuExport().

ImportFormatterPtr CDocumentMonitor::GetImportFormatter ( const char *  fileName)

Definition at line 2229 of file document.cpp.

References m_formatters.

Referenced by OnMenuImport().

int CDocumentMonitor::GetInputFile ( char *  fileName)

Definition at line 2158 of file document.cpp.

References filter_to_wstring(), m_formatters, string, and TRACE.

Referenced by OnMenuImport().

std::vector< Visio::IVShapePtr > CDocumentMonitor::getInstancesInBetween ( Visio::IVShapePtr  boundaryOne,
Visio::IVShapePtr  boundaryTwo,
double  yCoord 
)
private

Gets all instances between some two instances at a given height.

Taken are all instances with x-coords between x-coords of the two instances given and y-coords beginning above yCoord and ending below yCoords (imagine a horizontal line at height yCoord - then the instances taken into account are only these intersecting this line).

Furthermore, if there is a selection of at least 3 instances on the page, only those instances present in this selection are chosen.

The function respects the order of boundaries: if boundaryOne is the left of the two, all instances returned are ordered by the x-coords in the ascending direction; otherwise, they are returned in a descending order. In the special case both boundaries are of same x-coords, an empty list is returned. An empty list is also returned if any of the boundaries is not strictly vertical. Those other instances which would qualify to the resulting list, but are not vertical, are filtered out.

The yCoord is an absolute coordinate (i.e. relative to the page); if any of the boundary instances do not intersect a line at yCoord, an empty list is returned.

Parameters
boundaryOnean instances serving as one of boundaries
boundaryTwoanother instance serving as a boundary
yCoordheight of an imaginary line which all returned instances must intersect
Returns
a list of instances meeting above criteria according to boundaries and yCoord given

Definition at line 1550 of file document.cpp.

References EPSILON, CPageUtils::FilterSelection(), get_shape_type(), CShapeUtils::GetShapeBeginX(), CShapeUtils::GetShapeBeginY(), CShapeUtils::GetShapeEndX(), CShapeUtils::GetShapeEndY(), ORDER_ASC, ORDER_DESC, and ST_BMSC_INSTANCE.

Referenced by OnMenuMessageSequence().

std::pair< Visio::IVShapePtr, Visio::IVShapePtr > CDocumentMonitor::getInstancesPair ( Visio::IVApplicationPtr  vsoApp)
private

Gets a pair of instances based on the current selection.

If there are no instances selected in the application, the instances returned are the leftmost and the rightmost of all instances on the active page. If there is exactly 1 instance selected, it puts it into the returned pair both at first and NULL at second position. If there are exactly 2 instances selected, these two are returned in the order of their selection. If more than 2 instances are selected, returned are the leftmost and the rightmost of the selected instances. Anyway, if there are no instances available, a pair of two NULL pointers is returned, or if there is just one instance, a pair with a pointer to it and NULL is returned.

Parameters
vsoAppthe application to get the instances from
Returns
a pair of instances chosen using rules mentioned above

Definition at line 1475 of file document.cpp.

References CPageUtils::FilterSelection(), get_shape_type(), and ST_BMSC_INSTANCE.

Referenced by OnMenuMessageSequence().

Visio::IVDocumentPtr CDocumentMonitor::GetMonitoredDocument ( )
inline

Retrieves the document being monitored.

Returns
document being monitored

Definition at line 155 of file document.h.

References m_vsoDocument.

Visio::IVUIObjectPtr CDocumentMonitor::GetMostCustomMenus ( )

Definition at line 381 of file document.cpp.

References m_vsoApp, and m_vsoDocument.

Referenced by InitMenu().

Visio::IVUIObjectPtr CDocumentMonitor::GetMostCustomToolbars ( )

Definition at line 397 of file document.cpp.

References m_vsoApp, and m_vsoDocument.

Referenced by InitToolbar().

int CDocumentMonitor::GetOutputFile ( char *  fileName)

Definition at line 2314 of file document.cpp.

References filter_to_wstring(), m_formatters, string, and TRACE.

Referenced by OnMenuExport().

void CDocumentMonitor::ImportDocument ( const ImportFormatterPtr formatter,
const std::string filename 
)
void CDocumentMonitor::InitMenu ( )
void CDocumentMonitor::InitShortcuts ( )

Definition at line 413 of file document.cpp.

References ADDON_NAME, m_vsoDocument, and SHORT_DROP_INST.

Referenced by CStudioAddon::GetDocumentMonitor().

void CDocumentMonitor::InitToolbar ( )
int CDocumentMonitor::InvokeHelp ( const std::wstring &  filename)
bool CDocumentMonitor::IsEmpty ( Visio::IVApplicationPtr  vsoApp)
inline

Tells whether the active document page is empty.

Parameters
vsoAppthe application for which to tell the result
Returns
true when the active document page is empty, false if not

Definition at line 162 of file document.h.

Referenced by CStudioAddon::DoInstancesField().

int CDocumentMonitor::LoadModulesFromRegistry ( HKEY  hKey)
private
virtual void CDocumentMonitor::on_error ( const std::string what)
inlineprivatevirtual

Implements SimulationListener.

Definition at line 222 of file document.h.

References m_marker_error, and m_vsoApp.

virtual void CDocumentMonitor::on_result ( const MeasurementMap measurements)
inlineprivatevirtual

Implements SimulationListener.

Definition at line 215 of file document.h.

References m_marker_measurements, and m_vsoApp.

VAORC CDocumentMonitor::OnDropShape ( int  iDocumentIndex,
int  iPageIndex,
_bstr_t  sShapeU 
)
VAORC CDocumentMonitor::OnHelp ( )

Definition at line 2649 of file document.cpp.

References GetVisioModulePath(), and result.

Referenced by CStudioAddon::Run().

void CDocumentMonitor::OnHideReportView ( )

Definition at line 2122 of file document.cpp.

References m_reportMenuItem, m_reportVisible, and m_vsoDocument.

Referenced by CReportView::OnFinalMessage().

VAORC CDocumentMonitor::OnMenuDisableMessageEnumeration ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuEnableMessageEnumeration ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuExport ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuFindFlow ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuFlipMessageDirection ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuImport ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuMessageJump ( Visio::IVApplicationPtr  vsoApp,
bool  left,
bool  asCopy 
)
VAORC CDocumentMonitor::OnMenuMessageSequence ( Visio::IVApplicationPtr  vsoApp,
bool  bContext = true,
Visio::IVSelectionPtr  oldSelection = NULL 
)
VAORC CDocumentMonitor::OnMenuRemoveColors ( Visio::IVApplicationPtr  vsoApp)

Definition at line 1417 of file document.cpp.

References CShapeUtils::ChangeShapeColor().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuRepaint ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuSelectAll ( Visio::IVApplicationPtr  vsoApp,
SelectionType  selType 
)

Definition at line 1401 of file document.cpp.

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuSelectAllInstances ( Visio::IVApplicationPtr  vsoApp,
SelectionType  selType 
)

Definition at line 1429 of file document.cpp.

References selectAll().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuSelectAllMessages ( Visio::IVApplicationPtr  vsoApp,
SelectionType  selType 
)

Definition at line 1435 of file document.cpp.

References selectAll().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuSelectNumberedGroup ( Visio::IVApplicationPtr  vsoApp)

Definition at line 2004 of file document.cpp.

References CEnumerateUtils::selectGroup().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuSimulationStart ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuSimulationStop ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuThickenLines ( Visio::IVApplicationPtr  vsoApp)

Definition at line 1229 of file document.cpp.

References CPageUtils::changeLineWeights().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuThinLines ( Visio::IVApplicationPtr  vsoApp)

Definition at line 1237 of file document.cpp.

References CPageUtils::changeLineWeights().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnMenuTransform ( Visio::IVApplicationPtr  vsoApp,
int  index 
)
VAORC CDocumentMonitor::OnMenuVerify ( Visio::IVApplicationPtr  vsoApp)
VAORC CDocumentMonitor::OnMenuWindowsReporter ( Visio::IVApplicationPtr  vsoApp)

Definition at line 1825 of file document.cpp.

References m_reportVisible, m_reportWindow, and ShowReportView().

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnOpenReference ( int  iDocumentIndex,
int  iPageIndex,
_bstr_t  sShapeU 
)

Definition at line 363 of file document.cpp.

References GetOrCreatePage(), and m_vsoApp.

Referenced by CStudioAddon::Run().

VAORC CDocumentMonitor::OnShortcutDropInstace ( Visio::IVApplicationPtr  vsoApp)
void CDocumentMonitor::OnSimulationError ( )
void CDocumentMonitor::OnSimulationResult ( )
int CDocumentMonitor::run_checks ( MscPtr msc,
const RequiredCheckersList priorities 
)
private
MscPtr CDocumentMonitor::run_transformers ( MscPtr msc,
const TransformerPtrList transformer_list 
)
private
void CDocumentMonitor::selectAll ( Visio::IVApplicationPtr  vsoApp,
bool  select_instances,
SelectionType  selType 
)
private

Selects all instances or all messages on the active page.

Parameters
vsoAppthe application to make selection in
select_instanceswhen true, selects all instances, when false, selects all messages (including lost and found messages)
selTypeselection type - either add all objects to an existing selection, or replace the old selection with the new one

Definition at line 1311 of file document.cpp.

References get_shape_type(), SELECTION_ADD, ST_BMSC_INSTANCE, ST_BMSC_MESSAGE, ST_BMSC_MESSAGE_FOUND, and ST_BMSC_MESSAGE_LOST.

Referenced by OnMenuRepaint(), OnMenuSelectAllInstances(), OnMenuSelectAllMessages(), and OnMenuTransform().

int CDocumentMonitor::SelectShapes ( const std::vector< _bstr_t > &  ids)

Definition at line 2574 of file document.cpp.

References FindShape(), and m_vsoApp.

Referenced by ShapesReference::OnClick().

void CDocumentMonitor::ShowReportView ( )
void CDocumentMonitor::ToggleToolbarItems ( bool  modifiersPressed)

Toggles the toolbar items according to whether modifiers (Ctrl or Shift) are pressed.

Parameters
modifiersPressedare modifiers (Ctrl or Shift) pressed?

Definition at line 829 of file document.cpp.

References m_msgJumpLeftCopyToolbarItem, m_msgJumpLeftToolbarItem, m_msgJumpRightCopyToolbarItem, m_msgJumpRightToolbarItem, m_selAddInstancesToolbarItem, m_selAddMessagesToolbarItem, m_selInstancesToolbarItem, m_selMessagesToolbarItem, and m_vsoDocument.

Referenced by CStudioAddon::HandleKeyDown(), and CStudioAddon::HandleKeyUp().

void CDocumentMonitor::ToogleNumeration ( bool  enabled)

Disable/enable enumeration toolbar buttons, menu buttons and hot keys during text editing

Parameters
enabledEnable or disable controls

Definition at line 843 of file document.cpp.

References accelItemMessageEnumeration, accelItemMessageEnumerationDisable, itemMessageEnumerating, m_disableMessageEnumerationToolbarItem, m_enableMessageEnumerationToolbarItem, and m_vsoDocument.

Referenced by CStudioAddon::HandleAfterTextEdit(), and CStudioAddon::HandleBeforeTextEdit().

Member Data Documentation

Visio::IVAccelItemPtr CDocumentMonitor::accelItemMessageEnumeration
private

Definition at line 367 of file document.h.

Referenced by InitMenu(), and ToogleNumeration().

Visio::IVAccelItemPtr CDocumentMonitor::accelItemMessageEnumerationDisable
private

Definition at line 366 of file document.h.

Referenced by InitMenu(), and ToogleNumeration().

short CDocumentMonitor::beautifyCmdNum
private

Definition at line 209 of file document.h.

Referenced by InitMenu().

short CDocumentMonitor::beautifyIndex
private

Definition at line 208 of file document.h.

Referenced by CDocumentMonitor(), InitMenu(), and InitToolbar().

Visio::IVMenuItemPtr CDocumentMonitor::itemMessageEnumerating
private

Definition at line 365 of file document.h.

Referenced by InitMenu(), and ToogleNumeration().

CStudioAddon* CDocumentMonitor::m_addon
private
CheckerPtrList CDocumentMonitor::m_checkers
private
ConfigProvider* CDocumentMonitor::m_configProvider
private

Definition at line 249 of file document.h.

Referenced by CDocumentMonitor(), LoadModulesFromRegistry(), and ~CDocumentMonitor().

Visio::IVToolbarItemPtr CDocumentMonitor::m_disableMessageEnumerationToolbarItem
private

Definition at line 264 of file document.h.

Referenced by InitToolbar(), and ToogleNumeration().

Visio::IVToolbarItemPtr CDocumentMonitor::m_enableMessageEnumerationToolbarItem
private

Definition at line 263 of file document.h.

Referenced by InitToolbar(), and ToogleNumeration().

FormatterPtrList CDocumentMonitor::m_formatters
private
std::string CDocumentMonitor::m_marker_error
private

Definition at line 221 of file document.h.

Referenced by on_error(), and OnSimulationError().

MeasurementMap CDocumentMonitor::m_marker_measurements
private

Definition at line 214 of file document.h.

Referenced by on_result(), and OnSimulationResult().

SearcherPtr CDocumentMonitor::m_membership
private
Visio::IVToolbarItemPtr CDocumentMonitor::m_msgJumpLeftCopyToolbarItem
private

Definition at line 268 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVToolbarItemPtr CDocumentMonitor::m_msgJumpLeftToolbarItem
private

Definition at line 266 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVToolbarItemPtr CDocumentMonitor::m_msgJumpRightCopyToolbarItem
private

Definition at line 269 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVToolbarItemPtr CDocumentMonitor::m_msgJumpRightToolbarItem
private

Definition at line 267 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

std::vector<HINSTANCE> CDocumentMonitor::m_open_modules
private

Definition at line 196 of file document.h.

Referenced by LoadModulesFromRegistry(), and ~CDocumentMonitor().

Visio::IVMenuItemPtr CDocumentMonitor::m_reportMenuItem
private

Definition at line 247 of file document.h.

Referenced by InitMenu(), OnHideReportView(), and ShowReportView().

CReportView* CDocumentMonitor::m_reportView
private
bool CDocumentMonitor::m_reportVisible
private
Visio::IVWindowPtr CDocumentMonitor::m_reportWindow
private

Definition at line 246 of file document.h.

Referenced by OnMenuWindowsReporter(), and ShowReportView().

Visio::IVToolbarItemPtr CDocumentMonitor::m_selAddInstancesToolbarItem
private

Definition at line 260 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVToolbarItemPtr CDocumentMonitor::m_selAddMessagesToolbarItem
private

Definition at line 261 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVToolbarItemPtr CDocumentMonitor::m_selInstancesToolbarItem
private

Definition at line 258 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVToolbarItemPtr CDocumentMonitor::m_selMessagesToolbarItem
private

Definition at line 259 of file document.h.

Referenced by InitToolbar(), and ToggleToolbarItems().

Visio::IVMenuItemPtr CDocumentMonitor::m_simulationStartMenuItem
private

Definition at line 253 of file document.h.

Referenced by InitMenu(), OnMenuSimulationStart(), and OnMenuSimulationStop().

Visio::IVToolbarItemPtr CDocumentMonitor::m_simulationStartToolbarItem
private

Definition at line 255 of file document.h.

Referenced by InitToolbar(), OnMenuSimulationStart(), and OnMenuSimulationStop().

Visio::IVMenuItemPtr CDocumentMonitor::m_simulationStopMenuItem
private

Definition at line 254 of file document.h.

Referenced by InitMenu(), OnMenuSimulationStart(), and OnMenuSimulationStop().

Visio::IVToolbarItemPtr CDocumentMonitor::m_simulationStopToolbarItem
private

Definition at line 256 of file document.h.

Referenced by InitToolbar(), OnMenuSimulationStart(), and OnMenuSimulationStop().

SimulatorPtr CDocumentMonitor::m_simulator
private
Visio::IVToolbarPtr CDocumentMonitor::m_toolbar
private

Definition at line 251 of file document.h.

Referenced by InitToolbar().

TransformerPtrList CDocumentMonitor::m_transformers
private
Visio::IVApplicationPtr CDocumentMonitor::m_vsoApp
private
Visio::IVEventPtr CDocumentMonitor::m_vsoBeforeDocumentClosedEvent

Definition at line 189 of file document.h.

Referenced by CStudioAddon::GetDocumentMonitor(), and ~CDocumentMonitor().

Visio::IVDocumentPtr CDocumentMonitor::m_vsoDocument
private
Visio::IVEventPtr CDocumentMonitor::m_vsoPageAddedEvent

Definition at line 188 of file document.h.

Referenced by CStudioAddon::GetDocumentMonitor(), and ~CDocumentMonitor().

short CDocumentMonitor::tightenTimeIndex
private

Definition at line 210 of file document.h.

Referenced by CDocumentMonitor(), and InitToolbar().

Visio::IVMenuItemsPtr CDocumentMonitor::visMenuItems
private

Definition at line 364 of file document.h.


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