Hi all.

I have started to experiment with the Calc source code in DEV300_M60. The goal is to add custom in-line cell rendering, preferably implementable as an add-in if possible, but ... first steps first. My first shot would be to define a user-defined format code in "Format Cells..." and let the format code determine whether custom (hard-coded) rendering is in effect or not.

I have added some useless graphics to cells that contain formatted numbers by adding graphics instructions to ScOutputData::DrawStrings() (here, line 1690 of sc/source/ui/view/output2.cxx - just to see something happening, hooray) -

   else {
       pDev->DrawText( aDrawTextPos, aString );
++      pDev->SetFillColor();
++      pDev->SetLineColor(COL_BLACK);
++ pDev->DrawLine( aDrawTextPos, Point( aDrawTextPos.X() + 100, aDrawTextPos.Y() + 100 ) );
   }

but I am wondering - can the cell format code be accessed from here; and is it the right place at all to modify drawing code (?). Is the format code accessible through the ScDrawStringVars class - which is defined where ? I can't find a header file that defines this class.

Advice would be appreciated on how I can best orient myself in the source code. I have used http://wiki.services.openoffice.org/wiki/Source_code_directories as a starting point but if there is more to be found besides the source itself...

Cheers
-- Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to