Commit Graph

382 Commits

Author SHA1 Message Date
Ivan Lanin a84171de42 Merge branch 'master' of https://github.com/Pyreweb/PHPWord into #189-pyreweb 2014-04-06 00:41:36 +07:00
Ivan Lanin 61885e0d37 Merge branch 'develop' of https://github.com/diego-vieira/PHPWord into #191-diego-vieira 2014-04-05 23:46:13 +07:00
Ivan Lanin 03934af334 Refactor header/footer and media model 2014-04-05 22:39:04 +07:00
Ivan Lanin 6aa73544a6 Fix failed test 2014-04-05 01:41:48 +07:00
Ivan Lanin dd9faaee06 Add Media::reset(), Style::reset(), Footnote::reset(), and TOC::reset() 2014-04-05 01:28:28 +07:00
Ivan Lanin d7c18fe4b8 Move OOXML specific feature from Media to Word2007\Base 2014-04-05 00:19:45 +07:00
Ivan Lanin b75403f9a1 Refactor Media, addObject to header and footer 2014-04-04 15:28:35 +07:00
Diego Vieira e800d96cf9 added clone, delete, replace block #165
Because I needed to clone, delete and replace some tables, I added those
functions.
2014-04-04 00:58:42 -03:00
Ivan Lanin 0fc1a06267 Merge all Word2007 relationships writer 2014-04-03 22:09:14 +07:00
Ivan Lanin 1751ab09ee Remove unused ZipStreamWrapper.php and cleanup some scripts 2014-04-03 13:05:07 +07:00
Ivan Lanin 7c549f5802 DocBlock and use fixes 2014-04-03 10:13:13 +07:00
Ivan Lanin 1ebd26ddc6 Fix some test error 2014-04-03 09:20:21 +07:00
Ivan Lanin 637c9fce6f Create new Element abstract class 2014-04-03 09:12:11 +07:00
Ivan Lanin 04e6dbc86a Remove some duplication on Word2007 writers 2014-04-03 06:54:45 +07:00
Ivan Lanin 237625d22a Merge branch 'develop' into #160-element-container 2014-04-02 20:02:36 +07:00
Ivan Lanin 51a8628209 Merge #190, reorder methods (public, protected, private), and add example to Sample_07_TemplateCloneRow 2014-04-02 19:07:28 +07:00
Ivan Lanin 06ba9e7093 Make one level Element folder structure (move Cell and Row up one level) 2014-04-02 11:27:02 +07:00
Ivan Lanin f0ee25f343 Deprecate `createSection` in favor of `addSection` 2014-04-02 11:02:56 +07:00
Ivan Lanin a2a00393c1 Remove HashTable and all related properties/methods. PHPWord doesn't (yet) need it. 2014-04-02 10:43:42 +07:00
Ivan Lanin 495930be9d Add element availability matrix and enable `addObject` in footnote and textrun 2014-04-02 10:05:24 +07:00
Dave Gudgeon 4f514d2159 Load any number of headers and footers 2014-04-01 22:13:03 +01:00
Dave Gudgeon 763de347df Add support for document headers and footers to Template class. 2014-04-01 13:25:05 +01:00
Ivan Lanin 6f7b97e3ab Add unit tests for refactoring results 2014-04-01 19:05:07 +07:00
Ivan Lanin 07be5eaea3 Adding more functionalities to containers:
- Table: Ability to add footnote in table cell
- Footnote: Ability to add image in footnote
- ListItem: Ability to add list item in header/footer
- CheckBox: Ability to add checkbox in header/footer
- Link: Ability to add link in header/footer
2014-04-01 18:36:35 +07:00
Ivan Lanin faba46cc05 Extends `Container` abstract class into `Footnote`, `TextRun`, and `Cell` element class. 2014-04-01 00:56:24 +07:00
Ivan Lanin 2bf0bbb094 Container abstract class 2014-03-31 23:23:45 +07:00
Louis b7fd623121 Re-indent with spaces TOC Depth filter
Travis said spaces, not tab. Meh.
2014-03-31 17:07:58 +02:00
Ivan Lanin 13e5ca0a84 #160 Refactor folders: Element, Container, and Exception
- Rename folder Section to Element
- Rename folder Exceptions to Exception
- Move Section, Header, Footer, Settings to Container folder
- Move Element\Footer\PreserveText to Element\PreserveText
2014-03-31 10:11:52 +07:00
Ivan Lanin 9d3c2e8ae7 Update changelog and documentation for PCLZip 2014-03-31 00:26:41 +07:00
Ivan Lanin 71b60e9bd5 Merge branch 'develop' into #140-bskrtich-pclzip 2014-03-30 23:19:04 +07:00
Ivan Lanin 45b0baf7bc Refactor writer classes 2014-03-30 23:14:14 +07:00
Ivan Lanin 4127860f1e Refactor writers and readers
- Create Writer abstract class
- Inherit writers class from Writer
- Inherit ODText\WriterPart from Word2007\WriterPart
- Rename AbstractReader > Reader
2014-03-30 17:55:44 +07:00
Ivan Lanin 0e2f476cc2 Docblock updates 2014-03-30 14:15:23 +07:00
Ivan Lanin 05a4b95255 Unit test enhancements 2014-03-30 11:50:35 +07:00
Ivan Lanin f0803efabb #156 Merge branch 'master' of https://github.com/ozilion/PHPWord 2014-03-30 03:15:41 +07:00
Ivan Lanin 970cb32b45 Fix deprecated method, unused parts, initial definition, and @method annotation 2014-03-30 01:17:22 +07:00
Ivan Lanin 01f3f4071e #168 Merge branch 'develop' of https://github.com/jcarignan/PHPWord
- Comment header('Content-Length:'): HTTP header should not be in class that can be called via CLI
- Incorporate temporary location to ODT and RTF
- Update documentation
- Add unit tests
2014-03-29 23:56:28 +07:00
Ivan Lanin c91d6b61c9 Writer unit test enhancements 2014-03-29 22:26:00 +07:00
Ivan Lanin 255af437f2 Bugfix for footnote reference number and additional feature to insert text break and style the reference number 2014-03-29 01:26:18 +07:00
Ivan Lanin 338ceabdf0 Merge and modify 'pclzip' of https://github.com/bskrtich/PHPWord to make it work with the latest develop branch 2014-03-29 00:12:53 +07:00
Ivan Lanin 7a424318d2 Unit tests enhancement 2014-03-28 19:00:41 +07:00
Louis 88be3c962e TOC Depth filter function added
Add options to TOC to only show selected depth of titles ; ie pass 1,3
arguments to only show titles depth 1 to titles depth 3
Plus now you can have two+ TOC on your document, each different
2014-03-28 10:46:46 +01:00
Ivan Lanin de286936f2 Merge pull request #184 from andrew-kzoo/fix-exif-imagetype
Get image dimensions without EXIF extension
2014-03-28 09:56:37 +07:00
Ivan Lanin 160c2c7922 Merge branch 'master' of https://github.com/gianis6/PHPWord into gianis6-master 2014-03-28 09:49:16 +07:00
Andrew Collins a8da5b1b72 Get image dimensions without EXIF extension
Use `getimagesize` when `exif_imagetype` doesn't exist.
2014-03-27 17:25:09 -04:00
Ivan Lanin e6a26dd8fc Simplify all classes docblock 2014-03-27 23:55:06 +07:00
gianis6 b3c5a76a64 Update Base.php
added tblGrid element so that LibreOffice and OpenOffice can size the tables columns properly
2014-03-27 16:33:02 +01:00
Ivan Lanin a6568e988b Proposed simplified docblock 2014-03-26 17:21:23 +07:00
Ivan Lanin c72dc688ff Revert project name capitalization #176 2014-03-26 16:33:20 +07:00
Ivan Lanin dfccd54e66 Update README.md, docs, and version number 2014-03-26 15:53:17 +07:00
Ivan Lanin 3055a0e6fc Merge remote-tracking branch 'upstream/develop' into #160-refactoring 2014-03-26 15:16:16 +07:00
Roman Syroeshko 4aeef04afb Fix for tests 5. 2014-03-25 10:02:42 -07:00
Roman Syroeshko a0e8b43193 https://github.com/PHPOffice/PHPWord/issues/58 - "\PhpOffice\PhpWord\Shared\File" class was cut out. 2014-03-25 17:00:07 +04:00
Ivan Lanin 8aba90ded9 Change exception type 2014-03-25 17:53:10 +07:00
Ivan Lanin eed86f3768 Merge MemoryImage with Image, but left addMemoryImage for backward compatibility 2014-03-24 18:30:45 +07:00
Ivan Lanin b24550d060 Merge Table and TableFull style 2014-03-24 13:34:45 +07:00
Ivan Lanin aff112a13b Method name & code format for PSR/phpdoc compliance 2014-03-24 03:20:18 +07:00
Gabriel Bull 66c73c07c5 Fixed exceptions in reader/writer 2014-03-23 12:48:18 -04:00
Gabriel Bull 421b6e6f9d Made autoloader PSR-4 compliant and removed PHPWORD_BASE_DIR global constant 2014-03-23 12:48:18 -04:00
Ivan Lanin c7f03ecdf3 #159 #58 Merge branch 'develop' of https://github.com/RomanSyroeshko/PHPWord into develop 2014-03-23 21:10:48 +07:00
Roman Syroeshko ddb6277764 https://github.com/PHPOffice/PHPWord/issues/58 - More fixes. 2014-03-23 10:32:08 +04:00
Roman Syroeshko 7e23484619 https://github.com/PHPOffice/PHPWord/issues/58 - fix for ZipArchive calls. 2014-03-22 16:13:43 +04:00
Roman Syroeshko 9c6d07aaeb https://github.com/PHPOffice/PHPWord/issues/58 - autoloading fix. 2014-03-22 15:32:02 +04:00
Roman Syroeshko 667d0aaad1 https://github.com/PHPOffice/PHPWord/issues/58 - Part VIII (Autoloader). 2014-03-22 10:08:04 +04:00
Roman Syroeshko ab96c75b08 https://github.com/PHPOffice/PHPWord/issues/58 - Part VIII (Autoloader). 2014-03-22 10:06:08 +04:00
Progi1984 0d19d57cba IMPROVED : Moved examples out of Classes directory 2013-12-15 13:35:17 +01:00
Progi1984 1b849ec1bb Added PHPWord_Exception and exception when could not copy the template 2013-12-15 13:18:07 +01:00
Progi1984 3c78edd9f4 IMPROVED : Test if text is UTF-8 before converting 2013-12-15 12:56:40 +01:00
Progi1984 6b2511e34e Merge develop 2013-12-15 12:36:34 +01:00
Roman Syroeshko 5e90c066e8 https://github.com/PHPOffice/PHPWord/issues/34
PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input
2013-11-08 04:40:18 -08:00
Deds Castillo 30a7a178e2 add indentation support to paragraphs 2012-10-17 23:48:59 +08:00
Mark Baker 1257b461b6 Add superscript/subscript styling in Excel2007 Writer 2012-10-02 07:45:14 +01:00
Mark Baker ad47f3997c Merge pull request #7 from SergeC/patch-1
Update src/PHPWord/Template.php
2012-09-08 03:43:28 -07:00
SergeC 9d6b2ff7bd Update src/PHPWord/Template.php
This function returns array of all variables in template.
Test code:
$PHPWord = new PHPWord();
$document = $PHPWord->loadTemplate('Template.docx');
var_dump($document->getVariables());
2012-08-11 23:02:57 +03:00
jlocashio a302fe1c37 Update master 2012-07-12 15:04:44 -07:00
Progi1984 a15a9b522b ADDED : Writer/RTF for generating a simple file with some formatting texts and paragraphs 2012-05-30 00:07:50 +02:00
Progi1984 bedf584e12 CLEANED : Some spaces in code 2012-05-30 00:07:07 +02:00
Progi1984 e9a6a2c4f9 IMPROVED : Writer/ODText for just generating a simple file with some formatting texts and paragraphs 2012-05-29 20:59:22 +02:00
Progi1984 f5da76e90a IMPROVED : Samples\Sample01 2012-05-29 20:57:12 +02:00
Progi1984 cc536c4b6d REMOVED : Files of examples 2012-05-21 21:04:19 +02:00
Progi1984 9e711124e9 ADDED : Writer ODText (Version de base) 2012-05-06 23:25:37 +02:00
Progi1984 a1d5f821b5 Initial Commit 2012-05-06 18:25:40 +02:00