To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=41343
------- Additional comments from [EMAIL PROTECTED] Wed Feb 23 00:07:41 -0800
2005 -------
I checked the source code of the file xexptran.cxx and have got some ideas
about how to let the OOo support the command a.
And I also noticed that there are 3 cycles in the method
SdXMLImExSvgDElement::SdXMLImExSvgDElement(const OUString& rNew,..
The 1st one is for count the poly and get the flags.
The 2nd one is for counting the point count and then the pointcount is used to
allot the memory.
The 3rd one is for the insert of the symbol polygons (I think), which inserts
the combination of points and flags(represent the drawing elements).
All these are guessed by me, after I read the source code, because I couldnât
find the documents of this part.
I also donât know which kind of symbol polygons I should insert, I mean the
combination of points and flags that represents the arc elements.
Could someone give me the documents?
Just like the following codes, a 'Q' command is supported by adding the points
and PolygonFlags like this:
Imp_AddExportPoints(nX1, nY1, pInnerSequence, pInnerFlags, nInnerIndex++,
drawing::PolygonFlags_CONTROL);
I need the flags of an a command but no documents!!??!!
__Code of Command âQâ is as following:â
case 'Q' :
{
nPos++;
Imp_SkipSpaces(aStr, nPos, nLen);
while(nPos < nLen && Imp_IsOnNumberChar(aStr, nPos))
{
ââ
if(bRelative)ââ
// calc transform for new points
Imp_PrepareCoorImport(nXX, nYY, rObjectPos, rObjectSizeâ
Imp_PrepareCoorImport(nX, nY, rObjectPos, rObjectSize,
mrViewBox, â);
// calculate X1,X2
awt::Point aPPrev1 = (nInnerIndex) ? pInnerSequence[nInnerIndex-1] :
pInnerSequence[0];
sal_Int32 nX1 = FRound((double)((nXX * 2) + aPPrev1.X) / 3.0);
sal_Int32 nY1 = FRound((double)((nYY * 2) + aPPrev1.Y) / 3.0);
sal_Int32 nX2 = FRound((double)((nXX * 2) + nX) / 3.0);
sal_Int32 nY2 = FRound((double)((nYY * 2) + nY) / 3.0);
// correct polygon flag for previous point
Imp_CorrectPolygonFlag(nInnerIndex, pInnerSequence, pInnerFlags, nX1,
nY1);
// add new points and set flags
Imp_AddExportPoints(nX1, nY1, pInnerSequence, pInnerFlags,
nInnerIndex++, drawing::PolygonFlags_CONTROL);
Imp_AddExportPoints(nX2, nY2, pInnerSequence, pInnerFlags, nInnerIndex++,
drawing::PolygonFlags_CONTROL);
Imp_AddExportPoints(nX, nY, pInnerSequence, pInnerFlags, nInnerIndex++,
drawing::PolygonFlags_SMOOTH);
}
break;
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]