Subversion Repositories odsPhpGenerator

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
24 3194d 09h lapinator / ADD: AUTHORS // me for the moment

For create rectangle in ods
ADD: odsDrawRect($x, $y, $width, $height, $odsStyleGraphic = null, $odsStyleParagraph = null)

ex:
$row = new odsTableRow();
$row->addCell( new odsTableCellDraw( new odsDrawRect("0cm","0cm","5cm","5cm") ) ) ;


// for create Gradien in Filled Draw
ADD: odsStyleGradient
ADD: |-> odsStyleGradientGradient1();
ADD: |-> odsStyleGradientGradient2();
ADD: |-> odsStyleGradientGradient3();
ADD: |-> odsStyleGradientGradient4();
ADD: |-> odsStyleGradientGradient5();
ADD: |-> odsStyleGradientGradient6();

ex:
$style = new odsStyleGraphic();
$style->setFillGradient( new odsStyleGradientGradient1() );
$table->addDraw($titi = new odsDrawRect("2cm","2cm","8cm","4cm", $style) );


// for create Hatching in filled Draw
ADD: odsStyleHatch
ADD: |-> odsStyleHatchBlack0Degrees();
ADD: |-> odsStyleHatchBlack45Degrees();
ADD: |-> odsStyleHatchBlackLess45Degrees();
ADD: |-> odsStyleHatchBlack90Degrees();
ADD: |-> odsStyleHatchRedCrossed45Degrees();
ADD: |-> odsStyleHatchRedCrossed0Degrees();
ADD: |-> odsStyleHatchBlueCrossed45Degrees();
ADD: |-> odsStyleHatchBlueCrossed0Degrees();
ADD: |-> odsStyleHatchBlueTriple90Degrees();

ex:
$style = new odsStyleGraphic();
$style->setFillHash( new odsStyleHatchBlueTriple90Degrees() );
$table->addDraw($titi = new odsDrawRect("2cm","2cm","8cm","4cm", $style) );


// for insert image into filled draw
// but this function is currently broken ods (only displays an error loading)
ADD: odsStyleFillImage($name, $file);

ex:
$style = new odsStyleGraphic();
$style->setFillImage( new odsStylefillImage("Sky","Sky.png") );
$table->addDraw($titi = new odsDrawRect("2cm","2cm","8cm","4cm", $style) );


UPD: many bug fix and thank Iribarren for find a little bug
 
23 3305d 19h lapinator /class/ ADD: markers for Draw line
ADD: odsStyleGraphic->setMarkerEnd(odsStyleStrokeMarker)
ADD: odsStyleGraphic->setMarkerStart(odsStyleStrokeMarker)
ADD: odsStyleStrokeMarker($name, $displayName, $viewBox, $d)
ADD: |-> odsStyleStrokeMarkerArrow()
ADD: |-> odsStyleStrokeMarkerSquare()
ADD: |-> odsStyleStrokeMarkerNarrowArrow()
ADD: |-> odsStyleStrokeMarkerTipRating()
ADD: |-> odsStyleStrokeMarkerDoubleArrow()
ADD: |-> odsStyleStrokeMarkerSimetraArrow()
ADD: |-> odsStyleStrokeMarkerLineArrow()
ADD: |-> odsStyleStrokeMarkerRondNarrowArrow()
ADD: |-> odsStyleStrokeMarkerCircleArrow()
ADD: |-> odsStyleStrokeMarkerSquare45()
ADD: |-> odsStyleStrokeMarkerConcaveArrow()

Ex:
...
$maker1 = new odsStyleStrokeMarker('a','a','0 0 20 30','m10 0-10 30h20z');
$maker2 = new odsStyleStrokeMarkerConcaveArrow();

$style = new odsStyleGraphic();
$style->setMarkerStart($maker2);
$style->setMarkerEnd($maker1);
...
 
22 3305d 21h lapinator / UPD: odsDrawLine
UPD: odsDrawLine->setStroke($odsStyleStrokeDash)
ADD: odsStyleStrokeDash(...) // warning: subclass of this class can be renomed or deleted, it's fixed for 0.0.3
ADD: |-> odsStyleStrokeDashUltrafine();
ADD: |-> odsStyleStrokeDashUltrafineVar()
ADD: |-> odsStyleStrokeDashFine()
ADD: |-> odsStyleStrokeDashUltrafineAndDots()
ADD: |-> odsStyleStrokeDashFineDotted()
ADD: |-> odsStyleStrokeDashLineAndDot()
ADD: |-> odsStyleStrokeDash2Dots1Dash()
ADD: odsStyleGraphic->setStrokeWidth($strokeWidth)
ADD: odsStyleGraphic->setStrokeColor($strokeColor)
ADD: odsStyleParagraph()

Ex:
$style = new OdsStyleGraphic();
$style->setStroke(new odsStyleStrokeDash2Dots1Dash() );
$style->setStrokeColor('#0000FF');
$style->setStrokeWidth("0.1cm");
$table->addDraw(new odsDrawLine("0cm","0cm","10cm","10cm", $style) );
$row->addCell( new odsTableCellDraw( new odsDrawLine("0cm","0cm","5cm","5cm", $style) ));
 
21 3307d 10h lapinator / This is the first include of drawing in odsPhpGenerator

ADD: odsDraw for drowing line, box...
Actualy, only line is supported

The odsTableCellImage is broken in this commit

ex of drawing:

// add draw in table
$ods->addStyles(new odsStyleGraphicGeneric);
$table->addDraw(new odsDrawLine("0cm","0cm","10cm","10cm") );
$table->addDraw(new odsDrawLine("0cm","0cm","5cm","10cm") );

// add draw in cell
$row = new odsTableRow();
$row->addCell( new odsTableCellFloat(rand(0,50)));
// ...
$row->addCell( new odsTableCellDraw( new odsDrawLine("0cm","0cm","5cm","5cm") ));
$table->addRow($row);
 
20 3309d 12h lapinator / UPD: bugs in the generated ods fixed, The OOo 3.2 no error now  
19 3309d 13h lapinator /class/ ADD: odsStyleTableColumn->setUseOptimalColumnWidth("true","false");
but this functions not implémented for the moment in OpenOffice
see: http://qa.openoffice.org/issues/show_bug.cgi?id=13843
 
18 3312d 17h lapinator / UPD: minor change in examples
ADD: Wrap in cell
$style->setWrapOption("wrap");
ADD: Auto text hyphenate for wrap
$style->setHyphenate("true");
ADD: Vertical align in cell
$style->setVerticalAlign("middle");
ADD: Auto resize text to fit in cell
$style->setShrinkToFit("true");

ex:

$row = new odsTableRow();
$style = new odsStyleTableCell();
$style->setWrapOption("wrap");
$style->setHyphenate("true");
//$style->setShrinkToFit("true");
$style->setVerticalAlign("bottom");
$cell = new odsTableCellString("text very very too long for this cell", $style);
$row->addCell( $cell );
$table->addRow($row);
 
16 3345d 10h lapinator / ADD: odsStyleTableCell->setFontFace, now you can change font
Ex
$font = new odsFontFace('ChopinScript');
$ods->addFontFaces($font);

$style = new odsStyleTableCell();
$style->setFontFace($font);

...
$cell = new odsTableCellFloat(0, $style);
...
 
15 3348d 09h lapinator /class/ UPD: Change split to Freeze in odsTable->setHorizontalSplit(...) and odsTable->etVerticalSplit(...)
UPD: Automatic odsCoveredTableCell in ColumnsSpanned
Ex:
$cell = new odsTableCellString('The title',$styleTitle);
$cell->setNumberColumnsSpanned(5);
$row->addCell( $cell );
work correctly
 
14 3349d 10h lapinator /class/ ADD: Formula
odsTableCell->setFormula($formula);

Ex:
for($i=0; $i<10; $i++) {
$row = new odsTableRow();
$row->addCell( new odsTableCellFloat(rand(0,50)));
$table->addRow($row);
}

$row = new odsTableRow();
$cell = new odsTableCellFloat(0);
$cell->setFormula("SUM([.A1:.A10])");
$row->addCell( $cell );
$table->addRow($row);
 
13 3349d 11h lapinator /class/ ADD: Merge cell
odsTableCell->setNumberColumnsSpanned($numberColumnsSpanned)
odsTableCell->setNumberRowsSpanned($numberRowsSpanned)
ADD: odsCoveredTableCell For mergin

Ex:
// Merge 2 cell
$row = new odsTableRow();
$cell = new odsTableCellString('Merge 2 cells');
$cell->setNumberColumnsSpanned(2);
$row->addCell( $cell );

// to work correctly
$row->addCell( new odsCoveredTableCell());
 
12 3351d 11h lapinator /class/ ADD: odsTableCellDateTime($dateTime, $format="MMDDYYHHMMAMPM", $language=null, odsStyleGraphic $odsStyleCellDate = null);
$dateTime: 2009-12-20T20:30:50
$format:
MMDDYYHHMMSSAMPM -> 12/20/09 08:30:50 PM
MMDDYYHHMMAMPM -> 12/20/09 08:30 PM
DDMMYYHHMMSS -> 20/12/09 20:30:50
DDMMYYHHMM -> 20/12/09 20:30
$language: null, EN, FR, ES, EO ...
 
11 3351d 12h lapinator /class/ ADD: odsTableCellTime($time, $format="HHMM", odsStyleGraphic $odsStyleCellDate = null);
$time: PT20H30M50S
$format:
HHMMSS -> 20:30:50
HHMM -> 20:30
HHMMSSAMPM -> 08:30:50 PM
HHMMAMPM -> 08:30 PM
 
10 3351d 12h lapinator /class/ ADD: odsTableCellDate($date, $format="MMDDYYYY", $language=null, odsStyleGraphic $odsStyleCellDate = null);
$date: 1999-12-20
$format:
DDMMYYYY -> 20/12/1999
DDMMYY -> 20/12/99
MMDDYYYY -> 12/20/1999
MMDDYY -> 12/20/99
DMMMYYYY -> 20 Dec 1999
DMMMYY -> 20 Dec 99
DMMMMYYYY -> 20 December 99
DMMMMYY -> 20 December 1999
MMMDYYYY -> Dec 20, 99
MMMDYY -> Dec 20, 1999
$language: null, EN, FR, ES, EO ...
 
8 3357d 12h lapinator /class/ UPD: bug in odsCellString if using &  
5 3371d 10h lapinator / ADD: Pictures in cell  
4 3391d 10h lapinator / ADD: odsTableColumn for set column width.  
3 3391d 12h lapinator /class/ UPD: rename files and functions to ods named object  
2 3395d 10h lapinator / ADD: License LGPL v3  
1 3395d 10h lapinator / First commit