diff --git a/Plugins/Aspose_Cells_Java_for_PHP/README.md b/Plugins/Aspose_Cells_Java_for_PHP/README.md new file mode 100644 index 00000000..dbd29754 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/README.md @@ -0,0 +1,20 @@ +# Aspose.Cells Java for PHP +Aspose Cells Java for PHP is a PHP project that demonstrates / provides the Aspose.Cells for Java API usage examples in PHP by using PHP/JAVA Bridge. + +You will need to configure PHP/Java Bridge before using any of the Aspose provided Java APIs in PHP e.g Aspose.Words, Aspose.Cells and Aspose.Slides etc. + +For the configuration/setup of PHP/Java Bridge, please see: + +http://php-java-bridge.sourceforge.net/pjb/index.php + +To download Aspose.Cells for Java API to be used with these examples through PHP/Java Bridge +Please navigate to: + +http://www.aspose.com/community/files/72/java-components/aspose.cells-for-java/ + +For most complete documentation of the project, check Aspose.Words Java for PHP confluence wiki link: + +http://www.aspose.com/docs/display/cellsjava/5.+Aspose.Cells+Java+for+PHP + + + diff --git a/Plugins/Aspose_Cells_Java_for_PHP/composer.json b/Plugins/Aspose_Cells_Java_for_PHP/composer.json new file mode 100644 index 00000000..a74ed300 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/composer.json @@ -0,0 +1,21 @@ +{ + "name": "asposecells/aspose_cells_java_for_php", + "description": "Aspose Cells Java Examples for PHP Developers. Helps you understand how to use Aspose.Cells Java classes in your PHP Projects.", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Fahad Adeel", + "email": "fahadadeel@gmail.com" + } + ], + "minimum-stability": "dev", + "require": { + "php": ">=5.3.0" + }, + "autoload": { + "psr-4": { + "Aspose\\Cells\\": "src/aspose/cells" + } + } +} diff --git a/Plugins/Aspose_Cells_Java_for_PHP/composer.lock b/Plugins/Aspose_Cells_Java_for_PHP/composer.lock new file mode 100644 index 00000000..46941d5b --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/composer.lock @@ -0,0 +1,19 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "9c4084c23ceb6dc753b1717757bcf7ee", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.3.0" + }, + "platform-dev": [] +} diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/FileHandlingFeatures/OpeningFiles.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/FileHandlingFeatures/OpeningFiles.php new file mode 100644 index 00000000..ca045d3b --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/FileHandlingFeatures/OpeningFiles.php @@ -0,0 +1,135 @@ +"); + print ("Workbook opened using path successfully."); + + // 2. + // Opening workbook from stream + //Create a Stream object + $fstream = new FileInputStream($dataDir . "Book2.xls"); + + //Creating an Workbook object with the stream object + $workbook2 = new Workbook($fstream); + + $fstream->close(); + + // Print message + print("
"); + print ("Workbook opened using stream successfully."); + + + // 3. + // Opening Microsoft Excel 97 Files + //Createing and EXCEL_97_TO_2003 LoadOptions object + $loadOptions1 = new LoadOptions($fileFormatType->EXCEL_97_TO_2003); + + //Creating an Workbook object with excel 97 file path and the loadOptions object + $workbook3 = new Workbook($dataDir . "Book_Excel97_2003.xls", $loadOptions1); + + // Print message + print("
"); + print("Excel 97 Workbook opened successfully."); + + + + // 4. + // Opening Microsoft Excel 2007 XLSX Files + //Createing and XLSX LoadOptions object + $loadOptions2 = new LoadOptions($fileFormatType->XLSX); + + //Creating an Workbook object with 2007 xlsx file path and the loadOptions object + $workbook4 = new Workbook($dataDir . "Book_Excel2007.xlsx", $loadOptions2); + + // Print message + print("
"); + print ("Excel 2007 Workbook opened successfully."); + + + + // 5. + // Opening SpreadsheetML Files + //Creating and EXCEL_2003_XML LoadOptions object + $loadOptions3 = new LoadOptions($fileFormatType->EXCEL_2003_XML); + + //Creating an Workbook object with SpreadsheetML file path and the loadOptions object + $workbook5 = new Workbook($dataDir . "Book3.xml", $loadOptions3); + + // Print message + print("
"); + print ("SpreadSheetML format workbook has been opened successfully."); + + // 6. + // Opening CSV Files + //Creating and CSV LoadOptions object + $loadOptions4 = new LoadOptions($fileFormatType->CSV); + + //Creating an Workbook object with CSV file path and the loadOptions object + $workbook6 = new Workbook($dataDir . "Book_CSV.csv", $loadOptions4); + + // Print message + print("
"); + print ("CSV format workbook has been opened successfully."); + + + + // 7. + // Opening Tab Delimited Files + //Creating and TAB_DELIMITED LoadOptions object + $loadOptions5 = new LoadOptions($fileFormatType->TAB_DELIMITED); + + //Creating an Workbook object with Tab Delimited text file path and the loadOptions object + $workbook7 = new Workbook($dataDir . "Book1TabDelimited.txt", $loadOptions5); + + // Print message + print("
"); + print ("Tab Delimited workbook has been opened successfully."); + + + + // 8. + // Opening Encrypted Excel Files + //Creating and EXCEL_97_TO_2003 LoadOptions object + $loadOptions6 = new LoadOptions($fileFormatType->EXCEL_97_TO_2003); + + //Setting the password for the encrypted Excel file + $loadOptions6->setPassword("1234"); + + //Creating an Workbook object with file path and the loadOptions object + $workbook8 = new Workbook($dataDir . "encryptedBook.xls", $loadOptions6); + + // Print message + print("
"); + print ("Encrypted workbook has been opened successfully."); + + + } +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/FileHandlingFeatures/SavingFiles.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/FileHandlingFeatures/SavingFiles.php new file mode 100644 index 00000000..7f42c758 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/FileHandlingFeatures/SavingFiles.php @@ -0,0 +1,42 @@ +save($dataDir . "book.default.out.xls"); + + //Save in Excel2003 format + $workbook->save($dataDir . "book.out.xls",$fileFormatType->EXCEL_97_TO_2003); + + //Save in Excel2007 xlsx format + $workbook->save($dataDir . "book.out.xlsx", $fileFormatType->XLSX); + + //Save in SpreadsheetML format + $workbook->save($dataDir . "book.out.xml", $fileFormatType->EXCEL_2003_XML); + + //Print Message + print("
"); + print("Worksheets are saved successfully."); + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ChartToImage.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ChartToImage.php new file mode 100644 index 00000000..b9b73406 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ChartToImage.php @@ -0,0 +1,114 @@ +getWorksheets()->get(0); + + //Set the name of worksheet + $sheet->setName("Data"); + + //Get the cells collection in the sheet. + $cells = $workbook->getWorksheets()->get(0)->getCells(); + + //Put some values into a cells of the Data sheet. + $cells->get("A1")->setValue("Region"); + $cells->get("A2")->setValue("France"); + $cells->get("A3")->setValue("Germany"); + $cells->get("A4")->setValue("England"); + $cells->get("A5")->setValue("Sweden"); + $cells->get("A6")->setValue("Italy"); + $cells->get("A7")->setValue("Spain"); + $cells->get("A8")->setValue("Portugal"); + $cells->get("B1")->setValue("Sale"); + $cells->get("B2")->setValue(70000); + $cells->get("B3")->setValue(55000); + $cells->get("B4")->setValue(30000); + $cells->get("B5")->setValue(40000); + $cells->get("B6")->setValue(35000); + $cells->get("B7")->setValue(32000); + $cells->get("B8")->setValue(10000); + + //Create chart + $chartIndex = $sheet->getCharts()->add($chartType->COLUMN, 12, 1, 33, 12); + $chart = $sheet->getCharts()->get($chartIndex); + + //Set properties of chart title + $chart->getTitle()->setText("Sales By Region"); + $chart->getTitle()->getFont()->setBold(true); + $chart->getTitle()->getFont()->setSize(12); + + //Set properties of nseries + $chart->getNSeries()->add("Data!B2:B8", true); + $chart->getNSeries()->setCategoryData("Data!A2:A8"); + + //Set the fill colors for the series's data points (France - Portugal(7 points)) + $chartPoints = $chart->getNSeries()->get(0)->getPoints(); + + $point = $chartPoints->get(0); + $point->getArea()->setForegroundColor(java_values($color->getCyan())); + + $point = $chartPoints->get(1); + $point->getArea()->setForegroundColor($color->getBlue()); + + $point = $chartPoints->get(2); + $point->getArea()->setForegroundColor($color->getYellow()); + + $point = $chartPoints->get(3); + $point->getArea()->setForegroundColor($color->getRed()); + + $point = $chartPoints->get(4); + $point->getArea()->setForegroundColor($color->getBlack()); + + $point = $chartPoints->get(5); + $point->getArea()->setForegroundColor($color->getGreen()); + + $point = $chartPoints->get(6); + $point->getArea()->setForegroundColor($color->getMaroon()); + + //Set the legend invisible + $chart->setShowLegend(false); + + + + //Get the Chart image + $imgOpts = new ImageOrPrintOptions(); + $imgOpts->setImageFormat($imageFormat->getEmf()); + + $fs = new FileOutputStream($dataDir . "Chart.emf"); + + //Save the chart image file. + $chart->toImage($fs, $imgOpts); + + $fs->close(); + + // Print message + print("
"); + print("Processing performed successfully."); + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml.php new file mode 100644 index 00000000..519ca818 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml.php @@ -0,0 +1,30 @@ +save($dataDir . "OutBook1.html", $saveFormat->HTML); + + // Print message + echo "\n Excel to HTML conversion performed successfully."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles.php new file mode 100644 index 00000000..c056fe47 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles.php @@ -0,0 +1,43 @@ +M_HTML); + + //Instantiate a workbook and open the template XLSX file + $wb = new Workbook($filePath); + + //Save the MHT file + $wb->save($filePath . ".out.mht", $sv); + + // Print message + print "
"; + print "
"; + print "Excel to MHTML conversion performed successfully."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingToXPS.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingToXPS.php new file mode 100644 index 00000000..93a54326 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingToXPS.php @@ -0,0 +1,45 @@ +getWorksheets()->get(0); + + //Apply different Image and Print options + $options = new ImageOrPrintOptions(); + + //Set the Format + $options->setSaveFormat($saveFormat->XPS); + + // Render the sheet with respect to specified printing options + $sr = new SheetRender($sheet, $options); + $sr->toImage(0, $dataDir . "out_printingxps.xps"); + + //Save the complete Workbook in XPS format + $workbook->save($dataDir . "out_whole_printingxps", $saveFormat->XPS); + + // Print message + print "Excel to XPS conversion performed successfully."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSVG.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSVG.php new file mode 100644 index 00000000..48f847ed --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSVG.php @@ -0,0 +1,50 @@ +setSaveFormat($saveFormat->SVG); + $imgOptions->setOnePagePerSheet(true); + + //Convert each worksheet into svg format + $sheetCount = $workbook->getWorksheets()->getCount(); + + for($i=0; $i < $sheetCount; $i++) + { + $sheet = $workbook->getWorksheets()->get($i); + + $sr = new SheetRender($sheet, $imgOptions); + + $pageCount = $sr->getPageCount(); + for ($k = 0; $k < $pageCount; $k++) + { + //Output the worksheet into Svg image format + $sr->toImage($k, $path . $sheet->getName() . $k . ".out.svg"); + } + } + + // Print message + print "Excel to SVG conversion completed successfully."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion.php new file mode 100644 index 00000000..0d2e8784 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion.php @@ -0,0 +1,25 @@ +save($dataDir . "OutBook1.pdf", $saveFormat->PDF); + + // Print message + echo "\n Excel to PDF conversion performed successfully."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties.php new file mode 100644 index 00000000..df8835f8 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties.php @@ -0,0 +1,47 @@ +getWorksheets()->getCustomDocumentProperties(); + + //Accessing a custom document property by using the property index + $customProperty1 = $customProperties->get(3); + + //Accessing a custom document property by using the property name + $customProperty2 = $customProperties->get("Owner"); + + + //Adding a custom document property to the Excel file + $publisher = $customProperties->add("Publisher", "Aspose"); + + //Save the file + $workbook->save($dataDir . "Test_Workbook.xls"); + + //Removing a custom document property + $customProperties->remove("Publisher"); + + //Save the file + $workbook->save($dataDir . "Test_Workbook_RemovedProperty.xls"); + + // Print message + print "Excel file's custom properties accessed successfully." . PHP_EOL; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/WorksheetToImage.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/WorksheetToImage.php new file mode 100644 index 00000000..53eec68b --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithFiles/UtilityFeatures/WorksheetToImage.php @@ -0,0 +1,48 @@ +setImageFormat($imageFormat->getPng()); + + //Get the first worksheet. + $sheet = $book->getWorksheets()->get(0); + + //Create a SheetRender object for the target sheet + $sr = new SheetRender($sheet, $imgOptions); + for ($j = 0; $j < $sr->getPageCount(); $j++) + { + //Generate an image for the worksheet + $sr->toImage($j, $dataDir . "mysheetimg" . $j . ".png"); + + } + + // Print message + print "Images generated successfully." . PHP_EOL; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithRowsAndColumns/RowsAndColumns.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithRowsAndColumns/RowsAndColumns.php new file mode 100644 index 00000000..d2003ade --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithRowsAndColumns/RowsAndColumns.php @@ -0,0 +1,417 @@ +getWorksheets()->get(0); + + # Inserting a row into the worksheet at 3rd position + $worksheet->getCells()->insertRows(2,1); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Insert Row.xls"); + + print "Insert Row Successfully." . PHP_EOL; + + } + + public static function insert_multiple_rows($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Inserting a row into the worksheet at 3rd position + $worksheet->getCells()->insertRows(2,10); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Insert Multiple Rows.xls"); + + print "Insert Multiple Rows Successfully." . PHP_EOL; + + } + + public static function delete_row($dataDir) + { + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Deleting 3rd row from the worksheet + $worksheet->getCells()->deleteRows(2,1,true); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Delete Row.xls"); + + print "Delete Row Successfully." . PHP_EOL; + + } + + public static function delete_multiple_rows($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Deleting 10 rows from the worksheet starting from 3rd row + $worksheet->getCells()->deleteRows(2,10,true); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Delete Multiple Rows.xls"); + + print "Delete Multiple Rows Successfully." . PHP_EOL; + + } + + public static function insert_column($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Inserting a column into the worksheet at 2nd position + $worksheet->getCells()->insertColumns(1,1); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Insert Column.xls"); + + print "Insert Column Successfully." . PHP_EOL; + + } + + public static function delete_column($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Deleting a column from the worksheet at 2nd position + $worksheet->getCells()->deleteColumns(1,1,true); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Delete Column.xls"); + + print "Delete Column Successfully." . PHP_EOL; + + } + + public static function hide_rows_columns($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + $cells = $worksheet->getCells();; + + # Hiding the 3rd row of the worksheet + $cells->hideRow(2); + + # Hiding the 2nd column of the worksheet + $cells->hideColumn(1); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Hide Rows And Columns.xls"); + + print "Hide Rows And Columns Successfully." . PHP_EOL; + + } + + public static function unhide_rows_columns($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + $cells = $worksheet->getCells();; + + # Unhiding the 3rd row and setting its height to 13.5 + $cells->unhideRow(2,13.5); + + # Unhiding the 2nd column and setting its width to 8.5 + $cells->unhideColumn(1,8.5); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Unhide Rows And Columns.xls"); + + print "Unhide Rows And Columns Successfully." . PHP_EOL; + + } + + public static function group_rows_columns($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + $cells = $worksheet->getCells();; + + # Grouping first six rows (from 0 to 5) and making them hidden by passing true + $cells->groupRows(0,5,true); + + # Grouping first three columns (from 0 to 2) and making them hidden by passing true + $cells->groupColumns(0,2,true); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Group Rows And Columns.xls"); + + print "Group Rows And Columns Successfully." . PHP_EOL; + + } + + public static function ungroup_rows_columns($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Group Rows And Columns.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + $cells = $worksheet->getCells();; + + # Ungrouping first six rows (from 0 to 5) + $cells->ungroupRows(0,5); + + # Ungrouping first three columns (from 0 to 2) + $cells->ungroupColumns(0,2); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Ungroup Rows And Columns.xls"); + + print "Ungroup Rows And Columns Successfully." . PHP_EOL; + + } + + public static function set_row_height($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + $cells = $worksheet->getCells(); + + # Setting the height of the second row to 13 + $cells->setRowHeight(1, 13); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Set Row Height.xls"); + + print "Set Row Height Successfully." . PHP_EOL; + + } + + public static function set_column_width($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + $cells = $worksheet->getCells(); + + # Setting the width of the second column to 17.5 + $cells->setColumnWidth(1, 17.5); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Set Column Width.xls"); + + print "Set Column Width Successfully." . PHP_EOL; + + } + + public static function autofit_row($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Auto-fitting the 3rd row of the worksheet + $worksheet->autoFitRow(2); + + # Auto-fitting the 3rd row of the worksheet based on the contents in a range of + # cells (from 1st to 9th column) within the row + #$worksheet->autoFitRow(2,0,8) # Uncomment this line if you to do AutoFit Row in a Range of Cells. Also, comment line 288. + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Autofit Row.xls"); + + print "Autofit Row Successfully." . PHP_EOL; + + } + + public static function autofit_column($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Auto-fitting the 4th column of the worksheet + $worksheet->autoFitColumn(3); + + # Auto-fitting the 4th column of the worksheet based on the contents in a range of + # cells (from 1st to 9th row) within the column + #$worksheet->autoFitColumn(3,0,8) #Uncomment this line if you to do AutoFit Column in a Range of Cells. Also, comment line 310. + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Autofit Column.xls"); + + print "Autofit Column Successfully." . PHP_EOL; + + } + + public static function copy_rows($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Copy the second row with data, formattings, images and drawing objects + # to the 12th row in the $worksheet-> + $worksheet->getCells()->copyRow($worksheet->getCells(),1,11); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Copy Rows.xls"); + + print "Copy Rows Successfully." . PHP_EOL; + + } + + public static function copy_columns($dataDir) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook(); + + # Accessing the first worksheet in the Excel file + $worksheet = $workbook->getWorksheets()->get(0); + + # Put some data into header rows (A1:A4) + $i = 0; + while($i < 5) + { + $worksheet->getCells()->get($i, 0)->setValue("Header Row #$i"); + $i++; + + } + + + # Put some detail data (A5:A999) + $i = 5; + while ($i < 1000) { + + $worksheet->getCells()->get($i, 0)->setValue("Detail Row #$i"); + $i++; + } + + # Create another Workbook. + $workbook1 = new Workbook(); + + # Get the first worksheet in the book. + $worksheet1 = $workbook1->getWorksheets()->get(0); + + # Copy the first column from the first worksheet of the first workbook into + # the first worksheet of the second workbook. + $worksheet1->getCells()->copyColumn($worksheet->getCells(),0,2); + + # Autofit the column. + $worksheet1->autoFitColumn(2); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Copy Columns.xls"); + + print "Copy Columns Successfully." . PHP_EOL; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines.php new file mode 100644 index 00000000..400aa911 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines.php @@ -0,0 +1,36 @@ +getWorksheets(); + + $worksheet = $worksheets->get(0); + + //Hiding the grid lines of the first worksheet of the Excel file + $worksheet->setGridlinesVisible(false); + + //Saving the modified Excel file in default (that is Excel 2000) format + $workbook->save($dataDir . "output.xls"); + + // Print message + print "Grid lines are now hidden on sheet 1, please check the output document." . PHP_EOL; + + } +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars.php new file mode 100644 index 00000000..50c77e2a --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars.php @@ -0,0 +1,35 @@ +getSettings()->setVScrollBarVisible(false); + + //Hiding the horizontal scroll bar of the Excel file + $workbook->getSettings()->setHScrollBarVisible(false); + + //Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "output.xls"); + + // Print message + print "Scroll bars are now hidden, please check the output document."; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideTabs.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideTabs.php new file mode 100644 index 00000000..5f0b10f6 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/DisplayHideTabs.php @@ -0,0 +1,33 @@ +getSettings()->setShowTabs(false); + + //Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir + "output.xls"); + + // Print message + print "Tabs are now hidden, please check the output file." . PHP_EOL; + + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/FreezePanes.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/FreezePanes.php new file mode 100644 index 00000000..2e24f930 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/FreezePanes.php @@ -0,0 +1,34 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + //Applying freeze panes settings + $worksheet->freezePanes(3,2,3,2); + + //Saving the modified Excel file in default format + $workbook->save($dataDir . "book.out.xls"); + + //Print Message + print "Panes freeze successfull." . PHP_EOL; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet.php new file mode 100644 index 00000000..dc35c414 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet.php @@ -0,0 +1,29 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + //Hiding the first worksheet of the Excel file + $worksheet->setVisible(false); + + //Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "output.xls"); + + // Print message + print "Worksheet 1 is now hidden, please check the output document." . PHP_EOL; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview.php new file mode 100644 index 00000000..bebe6816 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview.php @@ -0,0 +1,35 @@ +getWorksheets(); + + $worksheet = $worksheets->get(0); + + //Displaying the worksheet in page break preview + $worksheet->setPageBreakPreview(true); + + //Saving the modified Excel file in default format + $workbook->save($dataDir . "output.xls"); + + // Print message + print "Page break preview is enabled for sheet 1, please check the output document." . PHP_EOL; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/SplitPanes.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/SplitPanes.php new file mode 100644 index 00000000..182459e5 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/SplitPanes.php @@ -0,0 +1,32 @@ +getWorksheets()->get(0)->setActiveCell("A20"); + + //Split the worksheet window + $book->getWorksheets()->get(0)->split(); + + //Save the excel file + $book->save($dataDir . "book.out.xls", $saveFormat->EXCEL_97_TO_2003); + + //Print Message + print "Panes split successfully." . PHP_EOL; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/ZoomFactor.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/ZoomFactor.php new file mode 100644 index 00000000..c0614ae7 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/DisplayFeatures/ZoomFactor.php @@ -0,0 +1,29 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + //Setting the zoom factor of the worksheet to 75 + $worksheet->setZoom(75); + + //Saving the modified Excel file in default format + $workbook->save($dataDir . "output.xls"); + + // Print message + print "Zoom factor set to 75% for sheet 1, please check the output document."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/AddingWorksheetstoNewExcelFile.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/AddingWorksheetstoNewExcelFile.php new file mode 100644 index 00000000..ae9d97eb --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/AddingWorksheetstoNewExcelFile.php @@ -0,0 +1,32 @@ +getWorksheets(); + + $sheetIndex = $worksheets->add(); + $worksheet = $worksheets->get($sheetIndex); + + //Setting the name of the newly added worksheet + $worksheet->setName("My Worksheet"); + + //Saving the Excel file + $workbook->save($dataDir . "book.out.xls"); + + //Print Message + print "Sheet added successfully."; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex.php new file mode 100644 index 00000000..b120d9cf --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex.php @@ -0,0 +1,33 @@ +getWorksheets()->removeAt(0); + + //Saving the Excel file + $workbook->save($dataDir . "book.out.xls"); + + //Closing the file stream to free all resources + $fstream->close(); + + + //Print Message + print "Sheet removed successfully."; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName.php new file mode 100644 index 00000000..391f03e5 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName.php @@ -0,0 +1,32 @@ +getWorksheets()->removeAt("Sheet1"); + + //Saving the Excel file + $workbook->save($dataDir . "book.out.xls"); + + //Closing the file stream to free all resources + $fstream->close(); + + //Print Message + print "Sheet removed successfully."; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions.php new file mode 100644 index 00000000..b50930d9 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions.php @@ -0,0 +1,65 @@ +getWorksheets(); + $sheet_index = $worksheets->add(); + $sheet = $worksheets->get($sheet_index); + + # Setting the orientation to Portrait + $page_setup = $sheet->getPageSetup(); + $page_orientation_type = new PageOrientationType(); + $page_setup->setOrientation($page_orientation_type->PORTRAIT); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Page Orientation.xls"); + + print "Set page orientation, please check the output file." . PHP_EOL; + } + + public static function scaling($dataDir=null) + { + + # Instantiating a Workbook object by excel file path + $workbook = new Workbook($dataDir . 'Book1.xls'); + + # Accessing the first worksheet in the Excel file + $worksheets = $workbook->getWorksheets(); + $sheet_index = $worksheets->add(); + $sheet = $worksheets->get($sheet_index); + + # Setting the scaling factor to 100 + $page_setup = $sheet->getPageSetup(); + $page_setup->setZoom(100); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Scaling.xls"); + + print "Set scaling, please check the output file." . PHP_EOL; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet.php new file mode 100644 index 00000000..fd38ec3a --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet.php @@ -0,0 +1,35 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + $protection = $worksheet->getProtection(); + + //The following 3 methods are only for Excel 2000 and earlier formats + $protection->setAllowEditingContent(false); + $protection->setAllowEditingObject(false); + $protection->setAllowEditingScenario(false); + + //Protects the first worksheet with a password "1234" + $protection->setPassword("1234"); + + //Saving the modified Excel file in default format + $excel->save($dataDir . "output.xls"); + + //Print Message + print "Sheet protected successfully." . PHP_EOL; + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet.php new file mode 100644 index 00000000..2c0914ad --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet.php @@ -0,0 +1,34 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + $protection = $worksheet->getProtection(); + + //Unprotecting the worksheet with a password + $worksheet->unprotect("aspose"); + + // Save the excel file. + $workbook->save($dataDir . "output.xls", $filesFormatType->EXCEL_97_TO_2003); + + //Print Message + print "Worksheet unprotected successfully."; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet.php new file mode 100644 index 00000000..4b6148f7 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet.php @@ -0,0 +1,39 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + $protection = $worksheet->getProtection(); + + //The following 3 methods are only for Excel 2000 and earlier formats + $protection->setAllowEditingContent(false); + $protection->setAllowEditingObject(false); + $protection->setAllowEditingScenario(false); + + //Unprotecting the worksheet + $worksheet->unprotect(); + + // Save the excel file. + $workbook->save($dataDir . "output.xls", $filesFormatType->EXCEL_97_TO_2003); + + //Print Message + print "Worksheet unprotected successfully." . PHP_EOL; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets.php new file mode 100644 index 00000000..d7bec466 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets.php @@ -0,0 +1,54 @@ +getWorksheets(); + + # Copy data to a new sheet from an existing sheet within the Workbook. + $sheets->addCopy("Sheet1"); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Copy Worksheet.xls"); + + print "Copy worksheet, please check the output file." . PHP_EOL; + + } + + public static function move_worksheet($dataDir=null, $workbook=null) + { + + # Get the first worksheet in the book. + $sheet = $workbook->getWorksheets()->get(0); + + # Move the first sheet to the third position in the workbook. + $sheet->moveTo(2); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Move Worksheet.xls"); + + print "Move worksheet, please check the output file." . PHP_EOL; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ValueFeatures/ManagingPageBreaks.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ValueFeatures/ManagingPageBreaks.php new file mode 100644 index 00000000..7ae623e3 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/WorkingWithWorksheets/ValueFeatures/ManagingPageBreaks.php @@ -0,0 +1,75 @@ +getWorksheets(); + $worksheet = $worksheets->get(0); + + $h_page_breaks = $worksheet->getHorizontalPageBreaks(); + $h_page_breaks->add("Y30"); + + $v_page_breaks = $worksheet->getVerticalPageBreaks(); + $v_page_breaks->add("Y30"); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Add Page Breaks.xls"); + + print "Add page breaks, please check the output file." . PHP_EOL; + + } + + public static function clear_all_page_breaks($dataDir=null, $workbook) + { + + $workbook->getWorksheets()->get(0)->getHorizontalPageBreaks()->clear(); + $workbook->getWorksheets()->get(0)->getVerticalPageBreaks()->clear(); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Clear All Page Breaks.xls"); + + print "Clear all page breaks, please check the output file." . PHP_EOL; + + } + + public static function remove_page_break($dataDir=null, $workbook) + { + + $worksheets = $workbook->getWorksheets(); + $worksheet = $worksheets->get(0); + + $h_page_breaks = $worksheet->getHorizontalPageBreaks(); + $h_page_breaks->removeAt(0); + + $v_page_breaks = $worksheet->getVerticalPageBreaks(); + $v_page_breaks->removeAt(0); + + # Saving the modified Excel file in default (that is Excel 2003) format + $workbook->save($dataDir . "Remove Page Break.xls"); + + print "Remove page break, please check the output file." . PHP_EOL; + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/quickstart/HelloWorld.php b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/quickstart/HelloWorld.php new file mode 100644 index 00000000..ed733fe5 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/src/aspose/cells/quickstart/HelloWorld.php @@ -0,0 +1,44 @@ +Document = $doc; + + $builder->Write("Hello world!"); + + $doc->Save("./data/HelloWorld Out.docx"); + + + /*$ptr= new \COM("Aspose.Words.ComHelper")or die('Unable to load helper'); + + $doc = $ptr->New("Document",array()); + + $builder = $ptr->New("Aspose.Words.DocumentBuilder",array($doc)); + + $builder->Writeln("Hello World!"); + + $doc->Save("./data/HelloWorld Out.docx");*/ + + + } + +} \ No newline at end of file diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1.xls new file mode 100755 index 00000000..6321698b Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1.xlsx b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1.xlsx new file mode 100755 index 00000000..69a9cb55 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1.xlsx differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1TabDelimited.txt b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1TabDelimited.txt new file mode 100755 index 00000000..9eb1f3d6 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book1TabDelimited.txt @@ -0,0 +1,10 @@ +My Data + +Items A Items B Items C Items D Items E Items F Items G Items H +12 23 33 66 11 87 99 33 +23 22 33 77 31 22 45 56 +34 11 12 23 22 34 11 12 +45 43 54 88 36 45 45 37 +65 65 65 65 13 65 9 35 +34 22 27 22 32 23 23 32 +213 186 224 341 145 276 232 205 diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book2.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book2.xls new file mode 100755 index 00000000..94cebf76 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book2.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book3.xml b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book3.xml new file mode 100755 index 00000000..201fb53a --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book3.xml @@ -0,0 +1,237 @@ + + + + + Amjad + iqbal + 2009-01-28T10:29:45Z + 2009-01-28T10:29:21Z + 2013-04-02T05:54:03Z + pc + 15.00 + + + + + + 8955 + 13275 + 480 + 120 + 2 + False + False + + + + + + + + + + + + + + My Data + + + + + + + + + + + + + Items A + Items B + Items C + Items D + Items E + Items F + Items G + Items H + + + 12 + 23 + 33 + 66 + 11 + 87 + 99 + 33 + + + 23 + 22 + 33 + 77 + 31 + 22 + 45 + 56 + + + 34 + 11 + 12 + 23 + 22 + 34 + 11 + 12 + + + 45 + 43 + 54 + 88 + 36 + 45 + 45 + 37 + + + 65 + 65 + 65 + 65 + 13 + 65 + 9 + 35 + + + 34 + 22 + 27 + 22 + 32 + 23 + 23 + 32 + + + 213 + 186 + 224 + 341 + 145 + 276 + 232 + 205 + +
+ + + + 300 + 300 + + + + 3 + 16 + 7 + + + False + False + +
+ + + + Sheet 2 Contents go here … + +
+ + + + 3 + 10 + 2 + + + False + False + +
+ + + + Sheet 3 Contents go here … + +
+ + + + + 3 + 3 + + + False + False + +
+
diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_CSV.csv b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_CSV.csv new file mode 100755 index 00000000..1fe48d12 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_CSV.csv @@ -0,0 +1,10 @@ +My Data,,,,,,, +,,,,,,, +Items A,Items B,Items C,Items D,Items E,Items F,Items G,Items H +12,23,33,66,11,87,99,33 +23,22,33,77,31,22,45,56 +34,11,12,23,22,34,11,12 +45,43,54,88,36,45,45,37 +65,65,65,65,13,65,9,35 +34,22,27,22,32,23,23,32 +213,186,224,341,145,276,232,205 diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_Excel2007.xlsx b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_Excel2007.xlsx new file mode 100755 index 00000000..69a9cb55 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_Excel2007.xlsx differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_Excel97_2003.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_Excel97_2003.xls new file mode 100755 index 00000000..5ddb78de Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/Book_Excel97_2003.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/encryptedBook.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/encryptedBook.xls new file mode 100755 index 00000000..a3ac0bf7 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/OpeningFiles/encryptedBook.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.default.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.default.out.xls new file mode 100644 index 00000000..77747122 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.default.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xls new file mode 100644 index 00000000..667ceee1 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xlsx b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xlsx new file mode 100644 index 00000000..7bf7a189 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xlsx differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xml b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xml new file mode 100644 index 00000000..f7977198 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.out.xml @@ -0,0 +1,357 @@ + + + 6 + + + Amjad + pc + + + + + + + + + + + + + + + + My Data + + + + + + + + + + + + + + Items A + + Items B + + Items C + + Items D + + Items E + + Items F + + Items G + + Items H + + + + 12 + + 23 + + 33 + + 66 + + 11 + + 87 + + 99 + + 33 + + + + 23 + + 22 + + 33 + + 77 + + 31 + + 22 + + 45 + + 56 + + + + 34 + + 11 + + 12 + + 23 + + 22 + + 34 + + 11 + + 12 + + + + 45 + + 43 + + 54 + + 88 + + 36 + + 45 + + 45 + + 37 + + + + 65 + + 65 + + 65 + + 65 + + 13 + + 65 + + 9 + + 35 + + + + 34 + + 22 + + 27 + + 22 + + 32 + + 23 + + 23 + + 32 + + + + 213 + + 186 + + 224 + + 341 + + 145 + + 276 + + 232 + + 205 + + + + + + + + 119 + + + + 3 + 16 + 7 + R17C8 + + + + + + + + + Sheet 2 Contents go here … + + + + + + + 9 + 2 + 2 + + + + 3 + 10 + 2 + R11C3 + + + + + + + + + Sheet 3 Contents go here … + + + + + + + 9 + 2 + 2 + + + + 3 + 3 + R4C1 + + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2015 Aspose Pty Ltd. + + + + + + + 9 + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2015 Aspose Pty Ltd. + + + + + + + 9 + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2015 Aspose Pty Ltd. + + + + + + + 9 + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2015 Aspose Pty Ltd. + + + + + + + 9 + + + + diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.xls new file mode 100755 index 00000000..4c0508ac Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/FileHandlingFeatures/SavingFiles/book.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ChartToImage/Chart.emf b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ChartToImage/Chart.emf new file mode 100755 index 00000000..b6bd1946 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ChartToImage/Chart.emf differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml/Book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml/Book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml/OutBook1.html b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml/OutBook1.html new file mode 100644 index 00000000..5f0ae8e4 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingExcelFilesToHtml/OutBook1.html @@ -0,0 +1,342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + <body> + <p>This page uses frames, but your browser doesn't support them.</p> + </body> + + + diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles/Book1.xlsx b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles/Book1.xlsx new file mode 100755 index 00000000..69a9cb55 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles/Book1.xlsx differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles/Book1.xlsx.out.mht b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles/Book1.xlsx.out.mht new file mode 100644 index 00000000..0ba40c69 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToMhtmlFiles/Book1.xlsx.out.mht @@ -0,0 +1,2040 @@ +MIME-Version: 1.0 +X-Document-Type: Workbook +Content-Type: multipart/related; boundary="----=_NextPart_aspose01.20120615" + +This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows Internet Explorer. + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + +<= +link rel=3dFile-List href=3d"Book1.xlsx.out_files/filelist.xml"> + + + + + + + + + + + + + + + + + + + + <bod= +y> + <p>This page uses frames, but your browser doesn't support them.<= +/p> + </body> + + + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/sheet001.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + + + + + + + + + + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/sheet002.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + + + + + + + + + + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/sheet003.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + + + + + + + + + + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/sheet004.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + + + + + + + + + + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/stylesheet.css +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + +tr + {mso-height-source:auto; + mso-ruby-visibility:none;} +col + {mso-width-sourc= +e:auto; + mso-ruby-visibility:none;} +br + {mso-data-placement:same-cell;} +ruby + {= +ruby-align:left;} +.style0 + { + mso-number-format:General; + text-align:general; + = +vertical-align:bottom; + white-space:nowrap; + background:auto; + mso-pattern:au= +to; + color:#000000; + font-size:10pt; + font-weight:400; + font-style:normal; + fon= +t-family:"Arial","sans-serif"; + border:none; + mso-protection:locked visible;= + + mso-style-name:Normal; + mso-style-id:0;} +.font0 + { + color:#000000; + font-size:= +10pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif"= +; } +.font1 + { + color:#800000; + font-size:16pt; + font-weight:700; + font-style:nor= +mal; + font-family:"Arial","sans-serif"; } +.font2 + { + color:#000000; + font-size:= +10pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif"= +; } +.font3 + { + color:#FF0000; + font-size:10pt; + font-weight:700; + font-style:nor= +mal; + font-family:"Tahoma","sans-serif"; } +.font4 + { + color:#0000FF; + font-size= +:18pt; + font-weight:700; + font-style:italic; + font-family:"Arial","sans-serif= +"; } +td + {mso-style-parent:style0; + mso-number-format:General; + text-align:gen= +eral; + vertical-align:bottom; + white-space:nowrap; + background:auto; + mso-patt= +ern:auto; + color:#000000; + font-size:10pt; + font-weight:400; + font-style:norma= +l; + font-family:"Arial","sans-serif"; + border:none; + mso-protection:locked vi= +sible; + mso-ignore:padding;} +.style0 + { + text-align:general; + vertical-align:bo= +ttom; + white-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:10p= +t; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif"; + m= +so-protection:locked visible; + mso-style-name:"Normal"; + } +.style1 + { + text-ali= +gn:general; + vertical-align:middle; + white-space:nowrap; + background:auto; + ms= +o-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:normal; + font-f= +amily:"Arial","sans-serif"; + mso-protection:locked visible; + } +.style2 + { + text= +-align:general; + vertical-align:middle; + white-space:nowrap; + background:auto= +; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:normal; + fo= +nt-family:"Arial","sans-serif"; + mso-protection:locked visible; + } +.style3 + { + = +text-align:general; + vertical-align:middle; + white-space:nowrap; + background:= +auto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:normal= +; + font-family:"Arial","sans-serif"; + mso-protection:locked visible; + } +.style= +4 + { + text-align:general; + vertical-align:middle; + white-space:nowrap; + backgro= +und:auto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:no= +rmal; + font-family:"Arial","sans-serif"; + mso-protection:locked visible; + } +.s= +tyle5 + { + text-align:general; + vertical-align:middle; + white-space:nowrap; + bac= +kground:auto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-styl= +e:normal; + font-family:"Arial","sans-serif"; + mso-protection:locked visible;= + + } +.style6 + { + text-align:general; + vertical-align:middle; + white-space:nowrap;= + + background:auto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-= +style:normal; + font-family:"Arial","sans-serif"; + mso-protection:locked visi= +ble; + } +.style7 + { + text-align:general; + vertical-align:middle; + white-space:now= +rap; + background:auto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + f= +ont-style:normal; + font-family:"Arial","sans-serif"; + mso-protection:locked = +visible; + } +.style8 + { + text-align:general; + vertical-align:middle; + white-space= +:nowrap; + background:auto; + mso-pattern:auto; + font-size:10pt; + font-weight:40= +0; + font-style:normal; + font-family:"Arial","sans-serif"; + mso-protection:loc= +ked visible; + } +.style9 + { + text-align:general; + vertical-align:middle; + white-s= +pace:nowrap; + background:auto; + mso-pattern:auto; + font-size:10pt; + font-weigh= +t:400; + font-style:normal; + font-family:"Arial","sans-serif"; + mso-protection= +:locked visible; + } +.style10 + { + text-align:general; + vertical-align:middle; + wh= +ite-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:10pt; + font-= +weight:400; + font-style:normal; + font-family:"Arial","sans-serif"; + mso-prote= +ction:locked visible; + } +.style11 + { + text-align:general; + vertical-align:middl= +e; + white-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:10pt; + = +font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif"; + mso-= +protection:locked visible; + } +.style12 + { + text-align:general; + vertical-align:= +middle; + white-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:1= +0pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif";= + + mso-protection:locked visible; + } +.style13 + { + text-align:general; + vertical-a= +lign:middle; + white-space:nowrap; + background:auto; + mso-pattern:auto; + font-s= +ize:10pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-se= +rif"; + mso-protection:locked visible; + } +.style14 + { + text-align:general; + verti= +cal-align:middle; + white-space:nowrap; + background:auto; + mso-pattern:auto; + f= +ont-size:10pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sa= +ns-serif"; + mso-protection:locked visible; + } +.x15 + { + mso-style-parent:style0;= + + mso-number-format:General; + text-align:general; + vertical-align:bottom; + whi= +te-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:10pt; + font-w= +eight:400; + font-style:normal; + font-family:"Arial","sans-serif"; + mso-protec= +tion:locked visible; + } +.style16 + { + mso-number-format:"0%"; + text-align:genera= +l; + vertical-align:middle; + white-space:nowrap; + background:auto; + mso-pattern= +:auto; + font-size:10pt; + font-weight:400; + font-style:normal; + font-family:"Ar= +ial","sans-serif"; + mso-protection:locked visible; + mso-style-name:"Percent"= +; + } +.style17 + { + mso-number-format:"_\(\0022$\0022* \#\,\#\#0\.00_\)\;_\(\002= +2$\0022* \(\#\,\#\#0\.00\)\;_\(\0022$\0022* \0022-\0022??_\)\;_\(\@_\)"; + t= +ext-align:general; + vertical-align:middle; + white-space:nowrap; + background:a= +uto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:normal;= + + font-family:"Arial","sans-serif"; + mso-protection:locked visible; + mso-styl= +e-name:"Currency"; + } +.style18 + { + mso-number-format:"_\(\0022$\0022* \#\,\#\#= +0_\)\;_\(\0022$\0022* \(\#\,\#\#0\)\;_\(\0022$\0022* \0022-\0022_\)\;_\(\@= +_\)"; + text-align:general; + vertical-align:middle; + white-space:nowrap; + backg= +round:auto; + mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:= +normal; + font-family:"Arial","sans-serif"; + mso-protection:locked visible; + m= +so-style-name:"Currency [0]"; + } +.style19 + { + mso-number-format:"_\(* \#\,\#\#= +0\.00_\)\;_\(* \(\#\,\#\#0\.00\)\;_\(* \0022-\0022??_\)\;_\(\@_\)"; + text-a= +lign:general; + vertical-align:middle; + white-space:nowrap; + background:auto; + = +mso-pattern:auto; + font-size:10pt; + font-weight:400; + font-style:normal; + font= +-family:"Arial","sans-serif"; + mso-protection:locked visible; + mso-style-nam= +e:"Comma"; + } +.style20 + { + mso-number-format:"_\(* \#\,\#\#0_\)\;_\(* \(\#\,\#= +\#0\)\;_\(* \0022-\0022_\)\;_\(\@_\)"; + text-align:general; + vertical-align:= +middle; + white-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:1= +0pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif";= + + mso-protection:locked visible; + mso-style-name:"Comma [0]"; + } +.x21 + { + mso-st= +yle-parent:style0; + mso-number-format:General; + text-align:general; + vertical= +-align:bottom; + white-space:nowrap; + background:auto; + mso-pattern:auto; + colo= +r:#000000; + font-size:10pt; + font-weight:400; + font-style:normal; + font-family= +:"Arial","sans-serif"; + mso-protection:locked visible; + } +.x22 + { + mso-style-pa= +rent:style0; + mso-number-format:General; + text-align:general; + vertical-align= +:bottom; + white-space:nowrap; + background:auto; + mso-pattern:auto; + font-size:= +10pt; + font-weight:400; + font-style:normal; + font-family:"Arial","sans-serif"= +; + mso-protection:locked visible; + } +.x23 + { + mso-style-parent:style0; + mso-numb= +er-format:General; + text-align:general; + vertical-align:bottom; + white-space:= +nowrap; + background:#0000FF; + mso-pattern:auto none; + color:#FF0000; + font-siz= +e:10pt; + font-weight:700; + font-style:normal; + font-family:"Tahoma","sans-ser= +if"; + border-top:1px solid windowtext; + border-right:1px solid windowtext; + b= +order-bottom:1px solid windowtext; + border-left:1px solid windowtext; + mso-d= +iagonal-down:none; + mso-diagonal-up:none; + mso-protection:locked visible; + } +.= +x24 + { + mso-style-parent:style0; + mso-number-format:General; + text-align:gener= +al; + vertical-align:bottom; + white-space:nowrap; + background:#FFFF99; + mso-pat= +tern:auto none; + color:#FF0000; + font-size:10pt; + font-weight:700; + font-style= +:normal; + font-family:"Tahoma","sans-serif"; + border-top:1px solid windowtex= +t; + border-right:1px solid windowtext; + border-bottom:1px solid windowtext; + = +border-left:1px solid windowtext; + mso-diagonal-down:none; + mso-diagonal-up:= +none; + mso-protection:locked visible; + } +.x25 + { + mso-style-parent:style0; + mso-= +number-format:General; + text-align:general; + vertical-align:bottom; + white-sp= +ace:nowrap; + background:auto; + mso-pattern:auto; + font-size:10pt; + font-weight= +:400; + font-style:normal; + font-family:"Arial","sans-serif"; + border-top:1px = +solid windowtext; + border-right:1px solid windowtext; + border-bottom:1px sol= +id windowtext; + border-left:1px solid windowtext; + mso-diagonal-down:none; + m= +so-diagonal-up:none; + mso-protection:locked visible; + } +.x26 + { + mso-style-pare= +nt:style0; + mso-number-format:General; + text-align:center; + vertical-align:bo= +ttom; + white-space:nowrap; + background:#CCFFCC; + mso-pattern:auto none; + color= +:#800000; + font-size:16pt; + font-weight:700; + font-style:normal; + font-family:= +"Arial","sans-serif"; + mso-protection:locked visible; + } +.x27 + { + mso-style-par= +ent:style0; + mso-number-format:General; + text-align:general; + vertical-align:= +middle; + white-space:nowrap; + background:auto; + mso-pattern:auto; + color:#0000= +FF; + font-size:18pt; + font-weight:700; + font-style:italic; + font-family:"Arial= +","sans-serif"; + mso-protection:locked visible; + } + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/tabstrip.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + + + + + + + + + + + +
 Sheet1  = +;Sheet2  Sheet3 &nb= +sp;Evaluation Warning 
+ + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/filelist.xml +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + <= +o:File HRef=3d"sheet004.htm"/> + + +------=_NextPart_aspose01.20120615-- diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToXps/Book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToXps/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingToXps/Book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSvg/Template.xlsx b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSvg/Template.xlsx new file mode 100644 index 00000000..e18aa55d Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSvg/Template.xlsx differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSvg/Template.xlsxSheet10.out.svg b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSvg/Template.xlsxSheet10.out.svg new file mode 100644 index 00000000..e91401f3 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ConvertingWorksheetToSvg/Template.xlsxSheet10.out.svg @@ -0,0 +1,1074 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + My + + Data + + + + + + + + + + + + Items + + A + + + + + + + + + + + + Items + + B + + + + + + + + + + + + Items + + C + + + + + + + + + + + + Items + + D + + + + + + + + + + + + Items + + E + + + + + + + + + + + + Items + + F + + + + + + + + + + + + Items + + G + + + + + + + + + + + + Items + + H + + + + + + + + + + + + 1 + 2 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 3 + 3 + + + + + + + + + + + + 6 + 6 + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + 8 + 7 + + + + + + + + + + + + 9 + 9 + + + + + + + + + + + + 3 + 3 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 3 + 3 + + + + + + + + + + + + 7 + 7 + + + + + + + + + + + + 3 + 1 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 5 + 6 + + + + + + + + + + + + 3 + 4 + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + 1 + 2 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 3 + 4 + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + 1 + 2 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 4 + 3 + + + + + + + + + + + + 5 + 4 + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + + 3 + 6 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 3 + 7 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 1 + 3 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 9 + + + + + + + + + + + + 3 + 5 + + + + + + + + + + + + 3 + 4 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 2 + 7 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 3 + 2 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 3 + 2 + + + + + + + + + + + + 2 + 1 + 3 + + + + + + + + + + + + 1 + 8 + 6 + + + + + + + + + + + + 2 + 2 + 4 + + + + + + + + + + + + 3 + 4 + 1 + + + + + + + + + + + + 1 + 4 + 5 + + + + + + + + + + + + 2 + 7 + 6 + + + + + + + + + + + + 2 + 3 + 2 + + + + + + + + + + + + 2 + 0 + 5 + + + + + + + Evaluation Only. Created with Aspose.Cells for Java. Copyright 2003 - 2015 Aspose Pty Ltd. + + + + diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion/Book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion/Book1.xls new file mode 100755 index 00000000..d367957a Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion/Book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion/OutBook1.pdf b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion/OutBook1.pdf new file mode 100644 index 00000000..52b23ab7 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/Excel2PdfConversion/OutBook1.pdf differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Test_Workbook.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Test_Workbook.xls new file mode 100644 index 00000000..7ca8d8cf Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Test_Workbook.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Test_Workbook_RemovedProperty.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Test_Workbook_RemovedProperty.xls new file mode 100644 index 00000000..2d823fc2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/ManagingDocumentProperties/Test_Workbook_RemovedProperty.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/WorksheetToImage/MyTestBook1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/WorksheetToImage/MyTestBook1.xls new file mode 100644 index 00000000..c67be342 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/WorksheetToImage/MyTestBook1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/WorksheetToImage/mysheetimg0.png b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/WorksheetToImage/mysheetimg0.png new file mode 100644 index 00000000..c2b6e366 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithFiles/UtilityFeatures/WorksheetToImage/mysheetimg0.png differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Autofit Column.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Autofit Column.xls new file mode 100644 index 00000000..bf754344 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Autofit Column.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Autofit Row.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Autofit Row.xls new file mode 100644 index 00000000..a8b95951 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Autofit Row.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Copy Rows.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Copy Rows.xls new file mode 100644 index 00000000..17a767b8 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Copy Rows.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Column.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Column.xls new file mode 100644 index 00000000..27960b30 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Column.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Multiple Rows.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Multiple Rows.xls new file mode 100644 index 00000000..477246ac Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Multiple Rows.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Row.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Row.xls new file mode 100644 index 00000000..2bca6d46 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Delete Row.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Group Rows And Columns.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Group Rows And Columns.xls new file mode 100644 index 00000000..fa73cd49 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Group Rows And Columns.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Hide Rows And Columns.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Hide Rows And Columns.xls new file mode 100644 index 00000000..2e271308 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Hide Rows And Columns.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Column.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Column.xls new file mode 100644 index 00000000..bb047238 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Column.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Multiple Rows.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Multiple Rows.xls new file mode 100644 index 00000000..f5d94782 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Multiple Rows.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Row.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Row.xls new file mode 100644 index 00000000..41764ba2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Insert Row.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Set Column Width.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Set Column Width.xls new file mode 100644 index 00000000..69f2191e Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Set Column Width.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Set Row Height.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Set Row Height.xls new file mode 100644 index 00000000..6f1ed52e Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Set Row Height.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Ungroup Rows And Columns.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Ungroup Rows And Columns.xls new file mode 100644 index 00000000..4775aadb Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Ungroup Rows And Columns.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Unhide Rows And Columns.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Unhide Rows And Columns.xls new file mode 100644 index 00000000..500c81f0 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/Unhide Rows And Columns.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithRowsAndColumns/RowsAndColumns/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines/output.xls new file mode 100644 index 00000000..27a6da16 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideGridlines/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars/output.xls new file mode 100644 index 00000000..004945b8 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideScrollBars/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideTabs/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideTabs/book1.xls new file mode 100644 index 00000000..27da76b0 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/DisplayHideTabs/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/FreezePanes/book.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/FreezePanes/book.out.xls new file mode 100644 index 00000000..b5d2f9ee Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/FreezePanes/book.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/FreezePanes/book.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/FreezePanes/book.xls new file mode 100644 index 00000000..cdbef4a2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/FreezePanes/book.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet/book1.xls new file mode 100644 index 00000000..fd679804 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet/output.xls new file mode 100644 index 00000000..d5cc29b1 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/HideUnhideWorksheet/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview/output.xls new file mode 100644 index 00000000..3a9ef787 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/PageBreakPreview/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/SplitPanes/book.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/SplitPanes/book.out.xls new file mode 100644 index 00000000..8b81039a Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/SplitPanes/book.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/SplitPanes/book.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/SplitPanes/book.xls new file mode 100644 index 00000000..cdbef4a2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/SplitPanes/book.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/ZoomFactor/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/ZoomFactor/book1.xls new file mode 100644 index 00000000..7f675e2a Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/ZoomFactor/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/ZoomFactor/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/ZoomFactor/output.xls new file mode 100644 index 00000000..1a22e80b Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/DisplayFeatures/ZoomFactor/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/AddingWorksheetstoNewExcelFile/book.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/AddingWorksheetstoNewExcelFile/book.out.xls new file mode 100644 index 00000000..db8abe16 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/AddingWorksheetstoNewExcelFile/book.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex/book.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex/book.out.xls new file mode 100644 index 00000000..19cd8055 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex/book.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex/book.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex/book.xls new file mode 100644 index 00000000..cdbef4a2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetIndex/book.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName/book.out.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName/book.out.xls new file mode 100644 index 00000000..61f1c2e3 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName/book.out.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName/book.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName/book.xls new file mode 100644 index 00000000..b8e2f261 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ManagementFeatures/ManagingWorksheets/RemovingWorksheetsusingSheetName/book.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/Page Orientation.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/Page Orientation.xls new file mode 100644 index 00000000..b03dd316 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/Page Orientation.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/Scaling.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/Scaling.xls new file mode 100644 index 00000000..f89eeafd Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/Scaling.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/PageSetupFeatures/SettingPageOptions/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet/output.xls new file mode 100644 index 00000000..af2a2a93 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/ProtectingWorksheet/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet/book1.xls new file mode 100644 index 00000000..011d4eb2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet/output.xls new file mode 100644 index 00000000..4b624059 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingPasswordProtectedWorksheet/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet/book1.xls new file mode 100644 index 00000000..e1d09b59 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet/output.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet/output.xls new file mode 100644 index 00000000..4b624059 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/SecurityFeatures/UnprotectingSimplyProtectedWorksheet/output.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/Copy Worksheet.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/Copy Worksheet.xls new file mode 100644 index 00000000..3ef7bff3 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/Copy Worksheet.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/Move Worksheet.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/Move Worksheet.xls new file mode 100644 index 00000000..8ec707b2 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/Move Worksheet.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/book1.xls b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/book1.xls new file mode 100644 index 00000000..76b71346 Binary files /dev/null and b/Plugins/Aspose_Cells_Java_for_PHP/tests/data/WorkingWithWorksheets/ValueFeatures/CopyingAndMovingWorksheets/book1.xls differ diff --git a/Plugins/Aspose_Cells_Java_for_PHP/tests/index.php b/Plugins/Aspose_Cells_Java_for_PHP/tests/index.php new file mode 100644 index 00000000..f3b90264 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/tests/index.php @@ -0,0 +1,120 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0 class loader + * + * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + */ +class ClassLoader +{ + // PSR-4 + private $prefixLengthsPsr4 = array(); + private $prefixDirsPsr4 = array(); + private $fallbackDirsPsr4 = array(); + + // PSR-0 + private $prefixesPsr0 = array(); + private $fallbackDirsPsr0 = array(); + + private $useIncludePath = false; + private $classMap = array(); + + private $classMapAuthoritative = false; + + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', $this->prefixesPsr0); + } + + return array(); + } + + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-0 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 base directories + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + } + + /** + * Unregisters this instance as an autoloader. + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return bool|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731 + if ('\\' == $class[0]) { + $class = substr($class, 1); + } + + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative) { + return false; + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if ($file === null && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if ($file === null) { + // Remember that this class does not exist. + return $this->classMap[$class] = false; + } + + return $file; + } + + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { + if (0 === strpos($class, $prefix)) { + foreach ($this->prefixDirsPsr4[$prefix] as $dir) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + */ +function includeFile($file) +{ + include $file; +} diff --git a/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/autoload_classmap.php b/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/autoload_classmap.php new file mode 100644 index 00000000..7a91153b --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/autoload_classmap.php @@ -0,0 +1,9 @@ + array($baseDir . '/src/aspose/cells'), +); diff --git a/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/autoload_real.php b/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/autoload_real.php new file mode 100644 index 00000000..382e4a54 --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/autoload_real.php @@ -0,0 +1,50 @@ + $path) { + $loader->set($namespace, $path); + } + + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } + + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); + } + + $loader->register(true); + + return $loader; + } +} + +function composerRequire5ec3683fa0a9bd3adcd19dde1c4e181d($file) +{ + require $file; +} diff --git a/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/installed.json b/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/installed.json new file mode 100644 index 00000000..fe51488c --- /dev/null +++ b/Plugins/Aspose_Cells_Java_for_PHP/vendor/composer/installed.json @@ -0,0 +1 @@ +[]