Package ag.ion.bion.officelayer.application

Examples of ag.ion.bion.officelayer.application.LocalOfficeApplicationConfiguration


  public void testGetIsLandscape() {
    try {
      LocalOfficeApplication localOfficeApplication = new LocalOfficeApplication(
          null);
      LocalOfficeApplicationConfiguration configuration = new LocalOfficeApplicationConfiguration();
      configuration
          .setApplicationHomePath("c:\\Programme\\OpenOffice.org1.1.3");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();

      ITextDocument textDocument = (ITextDocument) localOfficeApplication
View Full Code Here


   */
  public void testGetParagraphText() {
    try {
      LocalOfficeApplication localOfficeApplication = new LocalOfficeApplication(
          null);
      LocalOfficeApplicationConfiguration configuration = new LocalOfficeApplicationConfiguration();
      configuration
          .setApplicationHomePath("/home/Sebastianr/OpenOffice.org1.1.1");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();

      IDocument document = localOfficeApplication
View Full Code Here

  public void testCellWidths() {
    try {
      LocalOfficeApplication localOfficeApplication = new LocalOfficeApplication(
          null);
      LocalOfficeApplicationConfiguration configuration = new LocalOfficeApplicationConfiguration();
      configuration
          .setApplicationHomePath("d:\\Programme\\OpenOffice.org1.1.3");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();
      ITextDocument textDocument = (ITextDocument) localOfficeApplication
          .getDocumentService().constructNewDocument(
View Full Code Here

  public void testETextTable() {
    IOfficeApplication officeApplication = OfficeApplicationRuntime.getLocalOfficeApplication();
    ITextDocument docu = null;
    try {
 
      LocalOfficeApplicationConfiguration localOfficeApplicationConfiguration = new LocalOfficeApplicationConfiguration();
      localOfficeApplicationConfiguration.setPort("8101");
      localOfficeApplicationConfiguration.setApplicationHomePath("d:\\Programme\\OpenOffice.org1.1.3");
      officeApplication.setConfiguration(localOfficeApplicationConfiguration);
      officeApplication.activate();
      docu = (ITextDocument)officeApplication.getDocumentService().loadDocument("file:///d:/java/eclipse/workspace/officeapi/test/testETables.sxw");
     
      ITextTable table = docu.getTextTableService().getTextTables()[0];
View Full Code Here

public class IPageStylePropertiesTest extends TestCase {

  public void testGetIsLandscape() {
    try {
      LocalOfficeApplication localOfficeApplication = new LocalOfficeApplication(null);
      LocalOfficeApplicationConfiguration configuration = new LocalOfficeApplicationConfiguration();
      configuration.setApplicationHomePath("c:\\Programme\\OpenOffice.org1.1.3");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();
     
      ITextDocument textDocument = (ITextDocument)localOfficeApplication.getDocumentService().constructNewDocument(IDocument.WRITER, new DocumentDescriptor());
      IPageService pageService = textDocument.getPageService();
View Full Code Here

   *
   */
  public void testGetParagraphText() {
    try {
      LocalOfficeApplication localOfficeApplication = new LocalOfficeApplication(null);
      LocalOfficeApplicationConfiguration configuration = new LocalOfficeApplicationConfiguration();
      configuration.setApplicationHomePath("/home/Sebastianr/OpenOffice.org1.1.1");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();
     
      IDocument document = localOfficeApplication.getDocumentService().loadDocument(new FileInputStream(new File("test/testTexts.sxw")), new DocumentDescriptor());
      if (document != null) {
View Full Code Here

  }
 
  public void testCellWidths() {
   try {    
      LocalOfficeApplication localOfficeApplication = new LocalOfficeApplication(null);
      LocalOfficeApplicationConfiguration configuration = new LocalOfficeApplicationConfiguration();
      configuration.setApplicationHomePath("d:\\Programme\\OpenOffice.org1.1.3");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();
      ITextDocument textDocument = (ITextDocument)localOfficeApplication.getDocumentService().constructNewDocument(IDocument.WRITER, new DocumentDescriptor());
     
      ITextTable textTable = textDocument.getTextTableService().constructTextTable(5, 15);
View Full Code Here

    IOfficeApplication officeApplication = OfficeApplicationRuntime
        .getLocalOfficeApplication();
    ITextDocument docu = null;
    try {

      LocalOfficeApplicationConfiguration localOfficeApplicationConfiguration = new LocalOfficeApplicationConfiguration();
      localOfficeApplicationConfiguration.setPort("8101");
      localOfficeApplicationConfiguration
          .setApplicationHomePath("d:\\Programme\\OpenOffice.org1.1.3");
      officeApplication
          .setConfiguration(localOfficeApplicationConfiguration);
      officeApplication.activate();
      docu = (ITextDocument) officeApplication
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.application.LocalOfficeApplicationConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.