|
From: <ob...@us...> - 2010-11-16 23:22:20
|
Revision: 1000
http://scstudio.svn.sourceforge.net/scstudio/?rev=1000&view=rev
Author: obouda
Date: 2010-11-16 23:22:14 +0000 (Tue, 16 Nov 2010)
Log Message:
-----------
Cleaned up the code changes made in revision 999
Revision Links:
--------------
http://scstudio.svn.sourceforge.net/scstudio/?rev=999&view=rev
Modified Paths:
--------------
trunk/src/view/visio/addon/shapeutils.cpp
trunk/src/view/visio/addon/visualize.cpp
Modified: trunk/src/view/visio/addon/shapeutils.cpp
===================================================================
--- trunk/src/view/visio/addon/shapeutils.cpp 2010-11-16 22:40:55 UTC (rev 999)
+++ trunk/src/view/visio/addon/shapeutils.cpp 2010-11-16 23:22:14 UTC (rev 1000)
@@ -53,10 +53,18 @@
void CShapeUtils::MarkShape(Visio::IVShapePtr shape)
{
- // line color = red
- shape->CellsSRC[visSectionObject][visRowLine][visLineColor]->ResultIU = 2;
- // text color = red
- shape->CellsSRC[visSectionCharacter][visRowCharacter][visCharacterColor]->ResultIU = 2;
+ if (shape->Type == Visio::visTypeGroup)
+ {
+ for(long i = 1; i <= shape->Shapes->Count; i++)
+ {
+ MarkShape(shape->Shapes->Item[i]);
+ }
+ } else {
+ // line color = red
+ shape->CellsSRC[visSectionObject][visRowLine][visLineColor]->ResultIU = 2;
+ // text color = red
+ shape->CellsSRC[visSectionCharacter][visRowCharacter][visCharacterColor]->ResultIU = 2;
+ }
}
void CShapeUtils::UnmarkShape(Visio::IVShapePtr shape)
Modified: trunk/src/view/visio/addon/visualize.cpp
===================================================================
--- trunk/src/view/visio/addon/visualize.cpp 2010-11-16 22:40:55 UTC (rev 999)
+++ trunk/src/view/visio/addon/visualize.cpp 2010-11-16 23:22:14 UTC (rev 1000)
@@ -272,11 +272,8 @@
if (what->Type == Visio::visTypeGroup)
{
for(long i = 1; i <= what->Shapes->Count; i++)
- {
- // line color = red
- what->Shapes->Item[i]->CellsSRC[visSectionObject][visRowLine][visLineColor]->ResultIU = 2;
- // text color = red
- what->Shapes->Item[i]->CellsSRC[visSectionCharacter][visRowCharacter][visCharacterColor]->ResultIU = 2;
+ {
+ MarkShape(what->Shapes->Item[i]);
}
} else {
// line color = red
@@ -758,12 +755,8 @@
std::wstringstream mcnt_stream;
mcnt_stream << "# of visites: " << mcnt;
Comment* refNodeComment = new Comment(mcnt_stream.str());
- //Coordinate pos_x = shape->Cells["PinX"]->Result[""];
- //Coordinate pos_y = shape->Cells["PinY"]->Result[""];
- //MscPoint commentPos(pos_x, pos_y);
MscPoint commentPos(GetPinPos(shape));
refNodeComment->set_position(commentPos);
- //refNodeComment->set_width(7);
Visio::IVShapePtr commentShape = DropComment<Comment>(vsoPage, refNodeComment);
CShapeUtils::GlueBeginToShape(commentShape, shape);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|