This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit OdsImport; | |
interface | |
uses | |
Windows, Classes, SysUtils, OdtFilter, Hash, laz2_Dom; | |
Type | |
{ TOdsImport } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit OdsExport; | |
interface | |
uses | |
Windows, Classes, SysUtils, OdtFilter, Hash, laz2_Dom; | |
Type | |
{ TOdsExport } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit OdtImport; | |
interface | |
uses | |
Classes, OdtFilter, OdtExport, laz2_Dom; | |
Type | |
{ TOdtImport } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Последовательность проверок: | |
var | |
Matrix:TDynamicMatrix; | |
I,J:integer; | |
begin | |
SetLength(Matrix,2,4); | |
For I:=0 to 1 do | |
For J:=0 to 3 do | |
Matrix[I,J]:=inttostr(Random(100)); | |
TOdtExport.Export('PageIn.odt','PageOut.odt',Utf8Decode('Таблица1'),Matrix); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit OdtFilter; | |
interface | |
uses | |
Classes, SysUtils, laz2_DOM, ZipUtils, Zip, Unzip, laz2_XMLRead, myXMLWrite; | |
Type | |
// класс для преобразования одного документа ODF (OpenDocument format) | |
// в другой (например, для модификации содержимого), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
Модуль слежения за изменениями в файловой системе. | |
Пример применения: | |
Создание: | |
var | |
Waiter:TDirectoryWatch; | |
... | |
Waiter:=TDirectoryWatch.Create; | |
// подключение объектных, или простых обработчиков | |
Waiter.OnObjectAdd:=GetAdd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit FileWatch; | |
interface | |
Uses | |
Windows, SysUtils, Classes; | |
Const | |
MAX_FAILS=12; | |
FAIL_TIMEOUT=12; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Automatic read-only and read-write properties support in PHP | |
* | |
* Summary: | |
* protected $r_readonlyProp=12; - an read-only property, read with print($class->readonlyProp); | |
* write $class->readonlyProp=1; will trigger warning | |
* protected $rw_readwriteProp=44; - an read-write property, read with print($class->readwriteProp); | |
* write $class->readwriteProp=1; without restrictions | |
* protected $rw_getsetProp=7; - a property, that will be read using getter and write using setter. |