Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.html URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.html?rev=1163119&view=auto ============================================================================== --- incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.html (added) +++ incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.html Tue Aug 30 07:36:17 2011 @@ -0,0 +1,92 @@ + + + + + + +Demos - SimpleODF + + + + + + + +
+
+
+
+
+ +
+ + + +
+

Simple ODF provides Chart API since version 0.6. Chart is a visualized way of data show in electronic document. For ODF document, text document, spreadsheet document and presentation document can embed charts to help describe content. This demo shows the power of chart support in Simple ODF.

In this demo, a web traffic analytics report will be generated in presentation document and text document format. The initial data is stored in a spreadsheet document, which includes visitors, traffic sources and page visit information. These data will be used in charts. Each chart chooses a cell range and uses the values of these cells to draw picture. It's easy and convenient.

No need predefined template, all of the document are generated by Simple ODF API. This demo not only tell you how to use Chart API, but also teach you ro use slide layout to improve presentation design.

This picture shows the generated presentation document.

+

This picture shows the generated text document.



Besides, we also supply some codes to show how to create chart in a spreadsheet document. The following picture shows the generated document.


+

+
+
+ +
+

+ There code of this demo is very clear. First, we create a presentation document and load the data document. Second, we create cover page and set its content. Thirdly, we add charts to each slide. If you want to add chart to a slide, you must chose a layout which can hold chart. In Simple ODF 0.6, these layouts are "TITLE_PLUS_CHART", "TITLE_PLUS_2_CHART", "TITLE_LEFT_CHART_RIGHT_OUTLINE", "TITLE_PLUS_3_OBJECT", "TITLE_PLUS_4_OBJECT". Different layout can own different count of charts. Please be sure you know that, otherwise chart insert would be failed. For slide, you needn't set the chart size or position, Simple ODF will do it automatically. Finally, the data document is closed and the new created document is saved.

+ +

+	private static void generatePresentationChart() {
		try {
			PresentationDocument presentationDoc = PresentationDocument.newPresentationDocument();
			SpreadsheetDocument spreadsheetDoc = SpreadsheetDocument.loadDocument("demo9_data.ods");

			// create cover page
			Slide slide = presentationDoc.newSlide(0, "Slide1",	SlideLayout.TITLE_SUBTITLE);
			setSlideTextContent(slide, "Simple Website Analytics Report", "2011-04-27~2011-05-27");

			// create visitors overview page 1
			slide = presentationDoc.newSlide(1, "Slide2", SlideLayout.TITLE_PLUS_3_OBJECT);
			setSlideTextContent(slide, "Visitors Overview");
			Table tableA = spreadsheetDoc.getTableByName("A");
			convertFromTableToList(tableA, slide.addList(), 4, 17, 5, 20);
			CellRangeAddressList cellRange = CellRangeAddressList.valueOf("A.A1:A.B3");
			Chart chart = slide.createChart("New Visitor VS. Returning Visitor", spreadsheetDoc, cellRange, true, true, false, null);
			chart.setChartType(ChartType.PIE);
			cellRange = CellRangeAddressList.valueOf("A.A6:A.B37");
			chart = slide.createChart("Daily Visit", spreadsheetDoc, cellRange,	true, true, false, null);
			chart.setChartType(ChartType.LINE);

			// create visitors overview page 2
			slide = presentationDoc.newSlide(2, "Slide3", SlideLayout.TITLE_PLUS_2_CHART);
			setSlideTextContent(slide, "Visitors Overview");
			cellRange = CellRangeAddressList.valueOf("A.E1:A.G14");
			chart = slide.createChart("Count of Visits", spreadsheetDoc, cellRange, true, true, false, null);
			chart.setChartType(ChartType.BAR);
			cellRange = CellRangeAddressList.valueOf("A.I1:A.K8");
			chart = slide.createChart("Visit Duration", spreadsheetDoc,	cellRange, true, true, false, null);

			// create traffic sources overview page
			slide = presentationDoc.newSlide(3, "Slide4", SlideLayout.TITLE_PLUS_4_OBJECT);
			setSlideTextContent(slide, "Traffic Sources Overview");
			Table tableB = spreadsheetDoc.getTableByName("B");
			convertFromTableToList(tableB, slide.addList(), 0, 2, 1, 4);
			cellRange = CellRangeAddressList.valueOf("B.A2:B.C5");
			chart = slide.createChart("Traffic Sources Type", spreadsheetDoc, cellRange, true, true, false, null);
			chart.setChartType(ChartType.PIE);
			cellRange = CellRangeAddressList.valueOf("B.A9:B.C19");
			chart = slide.createChart("Referral Traffic", spreadsheetDoc, cellRange, true, true, false, null);
			chart.setChartType(ChartType.PIE);
			cellRange = CellRangeAddressList.valueOf("B.E2:B.G8");
			chart = slide.createChart("Search Keyword", spreadsheetDoc,	cellRange, true, true, false, null);
			chart.setChartType(ChartType.PIE);

			// create content overview page
			slide = presentationDoc.newSlide(4, "Slide5", SlideLayout.TITLE_PLUS_CHART);
			setSlideTextContent(slide, "Content Overview");
			cellRange = CellRangeAddressList.valueOf("C.A1:C.C8");
			chart = slide.createChart("Page Visit", spreadsheetDoc, cellRange, true, true, false, null);
			chart.setChartType(ChartType.BAR);

			spreadsheetDoc.close();
			presentationDoc.save("demo9p.odp");
			presentationDoc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
+    
+

The following codes show how to generate the text document format report. Different from presentation, you need to set chart size before add it to the document.

	private static void generateTextDocument() {
		try {
			TextDocument textDoc = TextDocument.newTextDocument();
			SpreadsheetDocument spreadsheetDoc = SpreadsheetDocument.loadDocument("demo9_data.ods");

			// create cover page
			textDoc.addParagraph("Simple Website Analytics Report(2011-04-27~2011-05-27)");
			textDoc.addParagraph("Visitors Overview");
			// create visitors overview page 1
			CellRangeAddressList cellRange = CellRangeAddressList.valueOf("A.A1:A.B3");
			Rectangle rect = new Rectangle();
			rect.width = 14000;
			rect.height = 8000;
			Chart chart = textDoc.createChart("New Visitor VS. Returning Visitor", spreadsheetDoc, cellRange, true, true, false, rect);
			chart.setChartType(ChartType.PIE);
			cellRange = CellRangeAddressList.valueOf("A.A6:A.B37");
			chart = textDoc.createChart("Daily Visit", spreadsheetDoc,cellRange, true, true, false, rect);
			chart.setChartType(ChartType.LINE);
			cellRange = CellRangeAddressList.valueOf("A.E1:A.G14");
			chart = textDoc.createChart("Count of Visits", spreadsheetDoc, cellRange, true, true, false, rect);
			chart.setChartType(ChartType.BAR);
			cellRange = CellRangeAddressList.valueOf("A.I1:A.K8");
			chart = textDoc.createChart("Visit Duration", spreadsheetDoc, cellRange, true, true, false, rect);

			// create traffic sources overview page
			textDoc.addParagraph("Traffic Sources Overview");
			cellRange = CellRangeAddressList.valueOf("B.A2:B.C5");
			chart = textDoc.createChart("Traffic Sources Type", spreadsheetDoc,	cellRange, true, true, false, rect);
			chart.setChartType(ChartType.PIE);
			cellRange = CellRangeAddressList.valueOf("B.A9:B.C19");
			chart = textDoc.createChart("Referral Traffic", spreadsheetDoc,	cellRange, true, true, false, rect);
			chart.setChartType(ChartType.PIE);
			cellRange = CellRangeAddressList.valueOf("B.E2:B.G8");
			chart = textDoc.createChart("Search Keyword", spreadsheetDoc, cellRange, true, true, false, rect);
			chart.setChartType(ChartType.PIE);

			// create content overview page
			textDoc.addParagraph("Content Overview");
			cellRange = CellRangeAddressList.valueOf("C.A1:C.C8");
			chart = textDoc.createChart("Page Visit", spreadsheetDoc, cellRange, true, true, false, rect);
			chart.setChartType(ChartType.BAR);
			
			spreadsheetDoc.close();
			textDoc.save("demo9t.odt");
			textDoc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
    

Lastly, let's have a look at how to add chart to spreadsheet document. It's similar with text and presentation documents. On the other hand, it also has a special feature. You can specify a cell as the position where the chart should be located.

	private static void generateSpreadsheetDocument() {
		try {
			SpreadsheetDocument spreadsheetDoc = SpreadsheetDocument.loadDocument("demo9_data.ods");
			// create visitors overview page 1
			CellRangeAddressList cellRange = CellRangeAddressList.valueOf("A.A1:A.B3");
			Rectangle rect = new Rectangle();
			rect.width = 15000;
			rect.height = 8000;
			Cell positionCell = spreadsheetDoc.getTableByName("B").getCellByPosition("E1");
			spreadsheetDoc.createChart("Page Visit", spreadsheetDoc, cellRange,	true, true, false, rect, positionCell);
			spreadsheetDoc.save("demo9s.ods");
			spreadsheetDoc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
    

+
+
+ +
+

+ Powered by the Simple Java API for ODF version 0.6. +

+

+ You can download the code of this demo from here. +

+ +
+ +
+
+ + + + + Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.html ------------------------------------------------------------------------------ svn:executable = * Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.zip URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.zip?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.zip ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/demo9.zip ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ExtractedNotes.JPG URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ExtractedNotes.JPG?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ExtractedNotes.JPG ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ExtractedNotes.JPG ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated ODT small.jpg URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated%20ODT%20small.jpg?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated ODT small.jpg ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated ODT small.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated ODT.jpg URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated%20ODT.jpg?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated ODT.jpg ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Generated ODT.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ODT Templating.jpg URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ODT%20Templating.jpg?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ODT Templating.jpg ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/ODT Templating.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/PresCombine.jpg URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/PresCombine.jpg?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/PresCombine.jpg ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/PresCombine.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Thumbs.db URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Thumbs.db?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Thumbs.db ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/Thumbs.db ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/candidate-data.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/candidate-data.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/candidate-data.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/candidate-data.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10_small.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10_small.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10_small.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo10_small.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_list.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_list.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_list.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_list.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_table.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_table.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_table.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_code_table.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list_small.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list_small.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list_small.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_list_small.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_table.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_table.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_table.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo4_organization_table.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc small.jpg URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc%20small.jpg?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc small.jpg ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc small.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc.jpg URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc.jpg?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc.jpg ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo5_doc.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6-small.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6-small.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6-small.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6-small.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo6.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo7_small.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo7_small.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo7_small.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo7_small.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo8_small.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo8_small.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo8_small.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo8_small.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9_small.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9_small.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9_small.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9_small.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9p.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9p.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9p.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9p.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9s.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9s.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9s.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9s.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9t.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9t.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9t.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/demo9t.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/generated-offer-letter.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/generated-offer-letter.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/generated-offer-letter.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/generated-offer-letter.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/offer-letter-sample.png URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/offer-letter-sample.png?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/offer-letter-sample.png ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/image/offer-letter-sample.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/index.html URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/index.html?rev=1163119&view=auto ============================================================================== --- incubator/odf/site/trunk/content/odftoolkit/simple/demo/index.html (added) +++ incubator/odf/site/trunk/content/odftoolkit/simple/demo/index.html Tue Aug 30 07:36:17 2011 @@ -0,0 +1,87 @@ + + + Samples - SimpleODF
+
+
+
+ +
+
+ +Simple Demos + +

The demos of simple java API for ODF project are shown here. Each demo contains the overview of the demo, the code introduction and the code downloading resource.

    +
  • +
    9. Automatically Formatting a Document
    +
    +
    It's a commen scenario that we need apply some necessary styles for plain text to improve its appearance. In this demo, a text document is created using plain text from a text file. The new document looks orderly and beautiful than before. +
    +
    +More... +
  • +
  • +
    8. Create Analysis Report with Charts
    +
    +
    In this demo, we will show how to create charts in presentation document, text document and spreadsheet document. Charts data is from a spreadsheet document. You can chose a cell range and using the values of these cells to generate a chart. It's easy and convenient. +
    +
    +More... +
  • +
  • +
    7. Add 2D barcode image to a slide
    +
    +
    We get the author contact information from the metadata of a presentation document. With a RESTful web service, a 2D bar code image is generated based on these information. With image API, the bar code image will be added to the first slide of this presentation at last. +
    +
    +More... +
  • +
  • +
    6. Offer Letter with Text Fields
    +
    +
    We have introduced several samples about how to use Simple ODF API to generate document from the predefined templete. But sounds like, we never talk about how to create a template document using Simple ODF API. Today, let's do it! +
    +
    +More... +
  • +
  • +
    5. Booking Sheet with Text Box
    +
    +
    This demo is similar with Demo3: Navigation API in Hotel Receipt. The different is that text box is included in the document template, so that we can show the text box feature in Simple ODF. Besides, this demo also shows the collaboration method between spreadsheet and text document templete. +
    +
    +More... +
  • +
  • +
    4. Multiple Presentations Assembler
    +
    +
    If you make a lot of presentations in your daily work, you know that you don't always create a presentation from scratch. This demo shows how to assemble several different presentations together to make a new presentation using Simple ODF. +
    +
    +More... +
  • +
  • +
    3. List and Table Conversion
    +
    +
    Starting in version 0.4, we have added methods to support bullet, numbered and image lists. This includes frequently used features for processing lists and list item. This demo is designed to show the power of List API and help you learn how to use it. +
    +
    +More... +
  • +
  • +
    2. Navigation API in Hotel Receipt
    +
    +
    This demo is a simple template application about hotel receipt. By loading the configuration file and navigating the hotel receipt template, this demo could generate the ODF documents. +
    +
    +More... +
  • 1. Persentation Extraction and Combination
    To show the operation of Presentation in Simple API, the Presentation Codmbination demo is used which combine two independent presentation documents together and extract the notes of each slide out to a Text document.
    More...


\ No newline at end of file Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/index.html ------------------------------------------------------------------------------ svn:executable = * Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shBrushJava.js URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shBrushJava.js?rev=1163119&view=auto ============================================================================== --- incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shBrushJava.js (added) +++ incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shBrushJava.js Tue Aug 30 07:36:17 2011 @@ -0,0 +1,57 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +;(function() +{ + // CommonJS + typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; + + function Brush() + { + var keywords = 'abstract assert boolean break byte case catch char class const ' + + 'continue default do double else enum extends ' + + 'false final finally float for goto if implements import ' + + 'instanceof int interface long native new null ' + + 'package private protected public return ' + + 'short static strictfp super switch synchronized this throw throws true ' + + 'transient try void volatile while'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments + { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers + { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno + { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword + ]; + + this.forHtmlScript({ + left : /(<|<)%[@!=]?/g, + right : /%(>|>)/g + }); + }; + + Brush.prototype = new SyntaxHighlighter.Highlighter(); + Brush.aliases = ['java']; + + SyntaxHighlighter.brushes.Java = Brush; + + // CommonJS + typeof(exports) != 'undefined' ? exports.Brush = Brush : null; +})(); Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shBrushJava.js ------------------------------------------------------------------------------ svn:executable = * Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shCore.js URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shCore.js?rev=1163119&view=auto ============================================================================== --- incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shCore.js (added) +++ incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shCore.js Tue Aug 30 07:36:17 2011 @@ -0,0 +1,17 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('K M;I(M)1S 2U("2a\'t 4k M 4K 2g 3l 4G 4H");(6(){6 r(f,e){I(!M.1R(f))1S 3m("3s 15 4R");K a=f.1w;f=M(f.1m,t(f)+(e||""));I(a)f.1w={1m:a.1m,19:a.19?a.19.1a(0):N};H f}6 t(f){H(f.1J?"g":"")+(f.4s?"i":"")+(f.4p?"m":"")+(f.4v?"x":"")+(f.3n?"y":"")}6 B(f,e,a,b){K c=u.L,d,h,g;v=R;5K{O(;c--;){g=u[c];I(a&g.3r&&(!g.2p||g.2p.W(b))){g.2q.12=e;I((h=g.2q.X(f))&&h.P===e){d={3k:g.2b.W(b,h,a),1C:h};1N}}}}5v(i){1S i}5q{v=11}H d}6 p(f,e,a){I(3b.Z.1i)H f.1i(e,a);O(a=a||0;a-1},3d:6(g){e+=g}};c1&&p(e,"")>-1){a=15(J.1m,n.Q.W(t(J),"g",""));n.Q.W(f.1a(e.P),a,6(){O(K c=1;c<14.L-2;c++)I(14[c]===1d)e[c]=1d})}I(J.1w&&J.1w.19)O(K b=1;be.P&&J.12--}H e};I(!D)15.Z.1A=6(f){(f=n.X.W(J,f))&&J.1J&&!f[0].L&&J.12>f.P&&J.12--;H!!f};1r.Z.1C=6(f){M.1R(f)||(f=15(f));I(f.1J){K e=n.1C.1p(J,14);f.12=0;H e}H f.X(J)};1r.Z.Q=6(f,e){K a=M.1R(f),b, c;I(a&&1j e.58()==="3f"&&e.1i("${")===-1&&y)H n.Q.1p(J,14);I(a){I(f.1w)b=f.1w.19}Y f+="";I(1j e==="6")c=n.Q.W(J,f,6(){I(b){14[0]=1f 1r(14[0]);O(K d=0;dd.L-3;){i=1r.Z.1a.W(g,-1)+i;g=1Q.3i(g/10)}H(g?d[g]||"":"$")+i}Y{g=+i;I(g<=d.L-3)H d[g];g=b?p(b,i):-1;H g>-1?d[g+1]:h}})})}I(a&&f.1J)f.12=0;H c};1r.Z.1e=6(f,e){I(!M.1R(f))H n.1e.1p(J,14);K a=J+"",b=[],c=0,d,h;I(e===1d||+e<0)e=5D;Y{e=1Q.3i(+e);I(!e)H[]}O(f=M.3c(f);d=f.X(a);){I(f.12>c){b.U(a.1a(c,d.P));d.L>1&&d.P=e)1N}f.12===d.P&&f.12++}I(c===a.L){I(!n.1A.W(f,"")||h)b.U("")}Y b.U(a.1a(c));H b.L>e?b.1a(0,e):b};M.1h(/\\(\\?#[^)]*\\)/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"});M.1h(/\\((?!\\?)/,6(){J.19.U(N);H"("}) ;M.1h(/\\(\\?<([$\\w]+)>/,6(f){J.19.U(f[1]);J.2N=R;H"("});M.1h(/\\\\k<([\\w$]+)>/,6(f){K e=p(J.19,f[1]);H e>-1?"\\\\"+(e+1)+(3R(f.2S.3a(f.P+f[0].L))?"":"(?:)"):f[0]});M.1h(/\\[\\^?]/,6(f){H f[0]==="[]"?"\\\\b\\\\B":"[\\\\s\\\\S]"});M.1h(/^\\(\\?([5A]+)\\)/,6(f){J.3d(f[1]);H""});M.1h(/(?:\\s+|#.*)+/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"},M.1B,6(){H J.2K("x")});M.1h(/\\./,6(){H"[\\\\s\\\\S]"},M.1B,6(){H J.2K("s")})})();1j 2e!="1d"&&(2e.M=M);K 1v=6(){6 r(a,b){a.1l.1i(b)!=-1||(a.1l+=" "+b)}6 t(a){H a.1i("3e")==0?a:"3e"+a}6 B(a){H e.1Y.2A[t(a)]}6 p(a,b,c){I(a==N)H N;K d=c!=R?a.3G:[a.2G],h={"#":"1c",".":"1l"}[b.1o(0,1)]||"3h",g,i;g=h!="3h"?b.1o(1):b.5u();I((a[h]||"").1i(g)!=-1)H a;O(a=0;d&&a\'+c+""});H a}6 n(a,b){a.1e("\\n");O(K c="",d=0;d<50;d++)c+=" ";H a=v(a,6(h){I(h.1i("\\t")==-1)H h;O(K g=0;(g=h.1i("\\t"))!=-1;)h=h.1o(0,g)+c.1o(0,b-g%b)+h.1o(g+1,h.L);H h})}6 x(a){H a.Q(/^\\s+|\\s+$/g,"")}6 D(a,b){I(a.Pb.P)H 1;Y I(a.Lb.L)H 1;H 0}6 y(a,b){6 c(k){H k[0]}O(K d=N,h=[],g=b.2D?b.2D:c;(d=b.1I.X(a))!=N;){K i=g(d,b);I(1j i=="3f")i=[1f e.2L(i,d.P,b.23)];h=h.1O(i)}H h}6 E(a){K b=/(.*)((&1G;|&1y;).*)/;H a.Q(e.3A.3M,6(c){K d="",h=N;I(h=b.X(c)){c=h[1];d=h[2]}H\'\'+c+""+d})}6 z(){O(K a=1E. 36("1k"),b=[],c=0;c<1z 4I="1Z://2y.3L.3K/4L/5L"><3J><4N 1Z-4M="5G-5M" 6K="2O/1z; 6J=6I-8" /><1t>6L 1v<3B 1L="25-6M:6Q,6P,6O,6N-6F;6y-2f:#6x;2f:#6w;25-22:6v;2O-3D:3C;">1v3v 3.0.76 (72 73 3x)1Z://3u.2w/1v70 17 6U 71.6T 6X-3x 6Y 6D.6t 61 60 J 1k, 5Z 5R 5V <2R/>5U 5T 5S!\'}},1Y:{2j:N,2A:{}},1U:{},3A:{6n:/\\/\\*[\\s\\S]*?\\*\\//2c,6m:/\\/\\/.*$/2c,6l:/#.*$/2c,6k:/"([^\\\\"\\n]|\\\\.)*"/g,6o:/\'([^\\\\\'\\n]|\\\\.)*\'/g,6p:1f M(\'"([^\\\\\\\\"]|\\\\\\\\.)*"\',"3z"),6s:1f M("\'([^\\\\\\\\\']|\\\\\\\\.)*\'","3z"),6q:/(&1y;|<)!--[\\s\\S]*?--(&1G;|>)/2c,3M:/\\w+:\\/\\/[\\w-.\\/?%&=:@;]*/g,6a:{18:/(&1y;|<)\\?=?/g,1b:/\\?(&1G;|>)/g},69:{18:/(&1y;|<)%=?/g,1b:/%(&1G;|>)/g},6d:{18:/(&1y;|<)\\s*1k.*?(&1G;|>)/2T,1b:/(&1y;|<)\\/\\s*1k\\s*(&1G;|>)/2T}},16:{1H:6(a){6 b(i,k){H e.16.2o(i,k,e.13.1x[k])}O(K c=\'\',d=e.16.2x,h=d.2X,g=0;g";H c},2o:6(a,b,c){H\'<2W>\'+c+""},2b:6(a){K b=a.1F,c=b.1l||"";b=B(p(b,".20",R).1c);K d=6(h){H(h=15(h+"6f(\\\\w+)").X(c))?h[1]:N}("6g");b&&d&& e.16.2x[d].2B(b);a.3N()},2x:{2X:["21","2P"],21:{1H:6(a){I(a.V("2l")!=R)H"";K b=a.V("1t");H e.16.2o(a,"21",b?b:e.13.1x.21)},2B:6(a){a=1E.6j(t(a.1c));a.1l=a.1l.Q("47","")}},2P:{2B:6(){K a="68=0";a+=", 18="+(31.30-33)/2+", 32="+(31.2Z-2Y)/2+", 30=33, 2Z=2Y";a=a.Q(/^,/,"");a=1P.6Z("","38",a);a.2C();K b=a.1E;b.6W(e.13.1x.37);b.6V();a.2C()}}}},35:6(a,b){K c;I(b)c=[b];Y{c=1E.36(e.13.34);O(K d=[],h=0;h(.*?))\\\\]$"),s=1f M("(?<27>[\\\\w-]+)\\\\s*:\\\\s*(?<1T>[\\\\w-%#]+|\\\\[.*?\\\\]|\\".*?\\"|\'.*?\')\\\\s*;?","g");(j=s.X(k))!=N;){K o=j.1T.Q(/^[\'"]|[\'"]$/g,"");I(o!=N&&m.1A(o)){o=m.X(o);o=o.2V.L>0?o.2V.1e(/\\s*,\\s*/):[]}l[j.27]=o}g={1F:g,1n:C(i,l)};g.1n.1D!=N&&d.U(g)}H d},1M:6(a,b){K c=J.35(a,b),d=N,h=e.13;I(c.L!==0)O(K g=0;g")==o-3){m=m.4h(0,o-3);s=R}l=s?m:l}I((i.1t||"")!="")k.1t=i.1t;k.1D=j;d.2Q(k);b=d.2F(l);I((i.1c||"")!="")b.1c=i.1c;i.2G.74(b,i)}}},2E:6(a){w(1P,"4k",6(){e.1M(a)})}};e.2E=e.2E;e.1M=e.1M;e.2L=6(a,b,c){J.1T=a;J.P=b;J.L=a.L;J.23=c;J.1V=N};e.2L.Z.1q=6(){H J.1T};e.4l=6(a){6 b(j,l){O(K m=0;md)1N;Y I(g.P==c.P&&g.L>c.L)a[b]=N;Y I(g.P>=c.P&&g.P\'+c+""},3Q:6(a,b){K c="",d=a.1e("\\n").L,h=2u(J.V("2i-1s")),g=J.V("2z-1s-2t");I(g==R)g=(h+d-1).1q().L;Y I(3R(g)==R)g=0;O(K i=0;i\'+j+"":"")+i)}H a},4f:6(a){H a?"<4a>"+a+"":""},4b:6(a,b){6 c(l){H(l=l?l.1V||g:g)?l+" ":""}O(K d=0,h="",g=J.V("1D",""),i=0;i|&1y;2R\\s*\\/?&1G;/2T;I(e.13.46==R)b=b.Q(h,"\\n");I(e.13.44==R)b=b.Q(h,"");b=b.1e("\\n");h=/^\\s*/;g=4Q;O(K i=0;i0;i++){K k=b[i];I(x(k).L!=0){k=h.X(k);I(k==N){a=a;1N a}g=1Q.4q(k[0].L,g)}}I(g>0)O(i=0;i\'+(J.V("16")?e.16.1H(J):"")+\'<3Z 5z="0" 5H="0" 5J="0">\'+J.4f(J.V("1t"))+"<3T><3P>"+(1u?\'<2d 1g="1u">\'+J.3Q(a)+"":"")+\'<2d 1g="17">\'+b+""},2F:6(a){I(a===N)a="";J.17=a;K b=J.3Y("T");b.3X=J.1H(a);J.V("16")&&w(p(b,".16"),"5c",e.16.2b);J.V("3V-17")&&w(p(b,".17"),"56",f);H b},2Q:6(a){J.1c=""+1Q.5d(1Q.5n()*5k).1q();e.1Y.2A[t(J.1c)]=J;J.1n=C(e.2v,a||{});I(J.V("2k")==R)J.1n.16=J.1n.1u=11},5j:6(a){a=a.Q(/^\\s+|\\s+$/g,"").Q(/\\s+/g,"|");H"\\\\b(?:"+a+")\\\\b"},5f:6(a){J.28={18:{1I:a.18,23:"1k"},1b:{1I:a.1b,23:"1k"},17:1f M("(?<18>"+a.18.1m+")(?<17>.*?)(?<1b>"+a.1b.1m+")","5o")}}};H e}();1j 2e!="1d"&&(2e.1v=1v);',62,441,'||||||function|||||||||||||||||||||||||||||||||||||return|if|this|var|length|XRegExp|null|for|index|replace|true||div|push|getParam|call|exec|else|prototype||false|lastIndex|config|arguments|RegExp|toolbar|code|left|captureNa mes|slice|right|id|undefined|split|new|class|addToken|indexOf|typeof|script|className|source|params|substr|apply|toString|String|line|title|gutter|SyntaxHighlighter|_xregexp|strings|lt|html|test|OUTSIDE_CLASS|match|brush|document|target|gt|getHtml|regex|global|join|style|highlight|break|concat|window|Math|isRegExp|throw|value|brushes|brushName|space|alert|vars|http|syntaxhighlighter|expandSource|size|css|case|font|Fa|name|htmlScript|dA|can|handler|gm|td|exports|color|in|href|first|discoveredBrushes|light|collapse|object|cache|getButtonHtml|trigger|pattern|getLineHtml|nbsp|numbers|parseInt|defaults|com|items|www|pad|highlighters|execute|focus|func|all|getDiv|parentNode|navigator|INSIDE_CLASS|regexList|hasFlag|Match|useScriptTags|hasNamedCapture|text|help|init|br|input|gi|Error|values|span|list|250|height|width|screen|top|500|tagName|findElements|getElementsByTagName|aboutDialog|_blank|appendChild|charAt|Array|copyAsGlobal|setFlag|highlighter_|string|attachEvent|nodeName|floor |backref|output|the|TypeError|sticky|Za|iterate|freezeTokens|scope|type|textarea|alexgorbatchev|version|margin|2010|005896|gs|regexLib|body|center|align|noBrush|require|childNodes|DTD|xhtml1|head|org|w3|url|preventDefault|container|tr|getLineNumbersHtml|isNaN|userAgent|tbody|isLineHighlighted|quick|void|innerHTML|create|table|links|auto|smart|tab|stripBrs|tabs|bloggerMode|collapsed|plain|getCodeLinesHtml|caption|getMatchesHtml|findMatches|figureOutLineNumbers|removeNestedMatches|getTitleHtml|brushNotHtmlScript|substring|createElement|Highlighter|load|HtmlScript|Brush|pre|expand|multiline|min|Can|ignoreCase|find|blur|extended|toLowerCase|aliases|addEventListener|innerText|textContent|wasn|select|createTextNode|removeChild|option|same|frame|xmlns|dtd|twice|1999|equiv|meta|htmlscript|transitional|1E3|expected|PUBLIC|DOCTYPE|on|W3C|XHTML|TR|EN|Transitional||configured|srcElement|Object|after|run|dblclick|matchChain|valueOf|constructor|default|switch|click|round|execAt|forHtmlScr ipt|token|gimy|functions|getKeywords|1E6|escape|within|random|sgi|another|finally|supply|MSIE|ie|toUpperCase|catch|returnValue|definition|event|border|imsx|constructing|one|Infinity|from|when|Content|cellpadding|flags|cellspacing|try|xhtml|Type|spaces|2930402|hosted_button_id|lastIndexOf|donate|active|development|keep|to|xclick|_s|Xml|please|like|you|paypal|cgi|cmd|webscr|bin|highlighted|scrollbars|aspScriptTags|phpScriptTags|sort|max|scriptScriptTags|toolbar_item|_|command|command_|number|getElementById|doubleQuotedString|singleLinePerlComments|singleLineCComments|multiLineCComments|singleQuotedString|multiLineDoubleQuotedString|xmlComments|alt|multiLineSingleQuotedString|If|https|1em|000|fff|background|5em|xx|bottom|75em|Gorbatchev|large|serif|CDATA|continue|utf|charset|content|About|family|sans|Helvetica|Arial|Geneva|3em|nogutter|Copyright|syntax|close|write|2004|Alex|open|JavaScript|highlighter|July|02|replaceChild|offset|83'.split('|'),0,{})) Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/scripts/shCore.js ------------------------------------------------------------------------------ svn:executable = * Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/styles/shCoreEclipse.css URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/styles/shCoreEclipse.css?rev=1163119&view=auto ============================================================================== --- incubator/odf/site/trunk/content/odftoolkit/simple/demo/styles/shCoreEclipse.css (added) +++ incubator/odf/site/trunk/content/odftoolkit/simple/demo/styles/shCoreEclipse.css Tue Aug 30 07:36:17 2011 @@ -0,0 +1,339 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +.syntaxhighlighter a, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter table, +.syntaxhighlighter table td, +.syntaxhighlighter table tr, +.syntaxhighlighter table tbody, +.syntaxhighlighter table thead, +.syntaxhighlighter table caption, +.syntaxhighlighter textarea { + -moz-border-radius: 0 0 0 0 !important; + -webkit-border-radius: 0 0 0 0 !important; + background: none !important; + border: 0 !important; + bottom: auto !important; + float: none !important; + height: auto !important; + left: auto !important; + line-height: 1.1em !important; + margin: 0 !important; + outline: 0 !important; + overflow: visible !important; + padding: 0 !important; + position: static !important; + right: auto !important; + text-align: left !important; + top: auto !important; + vertical-align: baseline !important; + width: auto !important; + box-sizing: content-box !important; + font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; + font-weight: normal !important; + font-style: normal !important; + font-size: 1em !important; + min-height: inherit !important; + min-height: auto !important; +} + +.syntaxhighlighter { + width: 100% !important; + margin: 1em 0 1em 0 !important; + position: relative !important; + overflow: relative !important; + font-size: 1em !important; +} +.syntaxhighlighter.source { + overflow: hidden !important; +} +.syntaxhighlighter .bold { + font-weight: bold !important; +} +.syntaxhighlighter .italic { + font-style: italic !important; +} +.syntaxhighlighter .line { + white-space: pre !important; +} +.syntaxhighlighter table { + width: 100% !important; +} +.syntaxhighlighter table caption { + text-align: left !important; + padding: .5em 0 0.5em 1em !important; +} +.syntaxhighlighter table td.code { + width: 100% !important; +} +.syntaxhighlighter table td.code .container { + position: relative !important; +} +.syntaxhighlighter table td.code .container textarea { + box-sizing: border-box !important; + position: absolute !important; + left: 0 !important; + top: 0 !important; + width: 100% !important; + height: 100% !important; + border: none !important; + background: white !important; + padding-left: 1em !important; + overflow: hidden !important; + white-space: pre !important; +} +.syntaxhighlighter table td.gutter .line { + text-align: right !important; + padding: 0 0.5em 0 1em !important; +} +.syntaxhighlighter table td.code .line { + padding: 0 1em !important; +} +.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { + padding-left: 0em !important; +} +.syntaxhighlighter.show { + display: block !important; +} +.syntaxhighlighter.collapsed table { + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar { + padding: 0.1em 0.8em 0em 0.8em !important; + font-size: 1em !important; + position: static !important; + width: auto !important; + height: auto !important; +} +.syntaxhighlighter.collapsed .toolbar span { + display: inline !important; + margin-right: 1em !important; +} +.syntaxhighlighter.collapsed .toolbar span a { + padding: 0 !important; + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar span a.expandSource { + display: inline !important; +} +.syntaxhighlighter .toolbar { + position: absolute !important; + right: 1px !important; + top: 1px !important; + width: 11px !important; + height: 11px !important; + font-size: 10px !important; + z-index: 10 !important; +} +.syntaxhighlighter .toolbar span.title { + display: inline !important; +} +.syntaxhighlighter .toolbar a { + display: block !important; + text-align: center !important; + text-decoration: none !important; + padding-top: 1px !important; +} +.syntaxhighlighter .toolbar a.expandSource { + display: none !important; +} +.syntaxhighlighter.ie { + font-size: .9em !important; + padding: 1px 0 1px 0 !important; +} +.syntaxhighlighter.ie .toolbar { + line-height: 8px !important; +} +.syntaxhighlighter.ie .toolbar a { + padding-top: 0px !important; +} +.syntaxhighlighter.printing .line.alt1 .content, +.syntaxhighlighter.printing .line.alt2 .content, +.syntaxhighlighter.printing .line.highlighted .number, +.syntaxhighlighter.printing .line.highlighted.alt1 .content, +.syntaxhighlighter.printing .line.highlighted.alt2 .content { + background: none !important; +} +.syntaxhighlighter.printing .line .number { + color: #bbbbbb !important; +} +.syntaxhighlighter.printing .line .content { + color: black !important; +} +.syntaxhighlighter.printing .toolbar { + display: none !important; +} +.syntaxhighlighter.printing a { + text-decoration: none !important; +} +.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { + color: black !important; +} +.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { + color: #008200 !important; +} +.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { + color: blue !important; +} +.syntaxhighlighter.printing .keyword { + color: #006699 !important; + font-weight: bold !important; +} +.syntaxhighlighter.printing .preprocessor { + color: gray !important; +} +.syntaxhighlighter.printing .variable { + color: #aa7700 !important; +} +.syntaxhighlighter.printing .value { + color: #009900 !important; +} +.syntaxhighlighter.printing .functions { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .constants { + color: #0066cc !important; +} +.syntaxhighlighter.printing .script { + font-weight: bold !important; +} +.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { + color: gray !important; +} +.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { + color: red !important; +} +.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { + color: black !important; +} + +.syntaxhighlighter { + background-color: white !important; +} +.syntaxhighlighter .line.alt1 { + background-color: white !important; +} +.syntaxhighlighter .line.alt2 { + background-color: white !important; +} +.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { + background-color: #c3defe !important; +} +.syntaxhighlighter .line.highlighted.number { + color: white !important; +} +.syntaxhighlighter table caption { + color: black !important; +} +.syntaxhighlighter .gutter { + color: #787878 !important; +} +.syntaxhighlighter .gutter .line { + border-right: 3px solid #d4d0c8 !important; +} +.syntaxhighlighter .gutter .line.highlighted { + background-color: #d4d0c8 !important; + color: white !important; +} +.syntaxhighlighter.printing .line .content { + border: none !important; +} +.syntaxhighlighter.collapsed { + overflow: visible !important; +} +.syntaxhighlighter.collapsed .toolbar { + color: #3f5fbf !important; + background: white !important; + border: 1px solid #d4d0c8 !important; +} +.syntaxhighlighter.collapsed .toolbar a { + color: #3f5fbf !important; +} +.syntaxhighlighter.collapsed .toolbar a:hover { + color: #aa7700 !important; +} +.syntaxhighlighter .toolbar { + color: #a0a0a0 !important; + background: #d4d0c8 !important; + border: none !important; +} +.syntaxhighlighter .toolbar a { + color: #a0a0a0 !important; +} +.syntaxhighlighter .toolbar a:hover { + color: red !important; +} +.syntaxhighlighter .plain, .syntaxhighlighter .plain a { + color: black !important; +} +.syntaxhighlighter .comments, .syntaxhighlighter .comments a { + color: #3f5fbf !important; +} +.syntaxhighlighter .string, .syntaxhighlighter .string a { + color: #2a00ff !important; +} +.syntaxhighlighter .keyword { + color: #7f0055 !important; +} +.syntaxhighlighter .preprocessor { + color: #646464 !important; +} +.syntaxhighlighter .variable { + color: #aa7700 !important; +} +.syntaxhighlighter .value { + color: #009900 !important; +} +.syntaxhighlighter .functions { + color: #ff1493 !important; +} +.syntaxhighlighter .constants { + color: #0066cc !important; +} +.syntaxhighlighter .script { + font-weight: bold !important; + color: #7f0055 !important; + background-color: none !important; +} +.syntaxhighlighter .color1, .syntaxhighlighter .color1 a { + color: gray !important; +} +.syntaxhighlighter .color2, .syntaxhighlighter .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter .color3, .syntaxhighlighter .color3 a { + color: red !important; +} + +.syntaxhighlighter .keyword { + font-weight: bold !important; +} +.syntaxhighlighter .xml .keyword { + color: #3f7f7f !important; + font-weight: normal !important; +} +.syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a { + color: #7f007f !important; +} +.syntaxhighlighter .xml .string { + font-style: italic !important; + color: #2a00ff !important; +} Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/styles/shCoreEclipse.css ------------------------------------------------------------------------------ svn:executable = * Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/stylesheet.css URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/stylesheet.css?rev=1163119&view=auto ============================================================================== --- incubator/odf/site/trunk/content/odftoolkit/simple/demo/stylesheet.css (added) +++ incubator/odf/site/trunk/content/odftoolkit/simple/demo/stylesheet.css Tue Aug 30 07:36:17 2011 @@ -0,0 +1,62 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { + font-family: Arial, Helvetica,sans-serif; + background-color: #FFFFFF; + color:#000000 +} + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + +div.navigation { + height: 30px; + width: 100%; + border-top: solid #000 1px; + border-bottom: solid #000 1px; + background-color: #336699; +} + +.page{ + font-family: Arial, Helvetica,sans-serif; + font-weight: bold; + font-size:19pt; + color: #0C5082; + text-align:center; +} + +.section{ + font-family: Arial, Helvetica,sans-serif; + font-weight: bold; + font-size:14pt; + color: #0C5082; +} + +.paragraph{ + color: black; + font-family: Arial, Helvetica,sans-serif; + font-size:12pt; +} + Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/stylesheet.css ------------------------------------------------------------------------------ svn:executable = * Added: incubator/odf/site/trunk/content/odftoolkit/simple/demo/table_list_convertion.zip URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/demo/table_list_convertion.zip?rev=1163119&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/table_list_convertion.zip ------------------------------------------------------------------------------ svn:executable = * Propchange: incubator/odf/site/trunk/content/odftoolkit/simple/demo/table_list_convertion.zip ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream