Package ag.ion.bion.officelayer.clone

Examples of ag.ion.bion.officelayer.clone.CloneException


    this.serviceFactory = (XMultiServiceFactory)com.sun.star.uno.UnoRuntime.queryInterface(XMultiServiceFactory.class, document.getXTextDocument());
    try {
      analyseParagraph(paragraph);
    }
    catch(TextException excep) {
      CloneException cloneException =  new CloneException(excep.getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
View Full Code Here


           return new ClonedObject(newParagraph, newParagraph.getClass());
         else
           return null;
      }
      else {
        throw new CloneException("Error constructing TextContentService to clone paragraph");
      }
    }
    catch(Exception excep) {
      CloneException cloneException =  new CloneException(excep.getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
View Full Code Here

         rangeCloneService.cloneToPositionNoReturn(position, adoptContent,propertyKeysContainer);
         return null;        
       }
      }
      catch(TextException exception) {
        CloneException cloneException = new CloneException(exception.getMessage());
        cloneException.initCause(exception);
        throw cloneException;
      }
    }
    else {
      CloneException cloneException =  new CloneException("Error cloning cell. No target selected or another error occred.");
      throw cloneException;
    }
  }
View Full Code Here

       
      cellPropertyStore = cell.getCellPropertyStore(0,0);
      firstCellCharacterPropertyStore = cell.getCharacterPropertyStore();
    }
    catch(TextException excep) {
      CloneException cloneException =  new CloneException(excep.getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
View Full Code Here

        ITextTableCell tableCell = table.getCell(verticalPosition, horizontalPosition);
        recreateCell(tableCell, adoptContent, false, propertyKeysContainer);
      }
    }
    catch (Exception exception) {
      CloneException cloneException =  new CloneException(exception.getMessage());
      cloneException.initCause(exception);
      throw cloneException;
    }
  }
View Full Code Here

        return new ClonedObject(tableCell, tableCell.getClass());
      else
        return null;
    }
    catch(Exception excep) {
      CloneException cloneException =  new CloneException(excep.getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
View Full Code Here

        return new ClonedObject(newTable, newTable.getClass());
      else
        return null;
    }
    catch (Exception exception) {
      CloneException cloneException = new CloneException(exception.getMessage());
      cloneException.initCause(exception);
      throw cloneException;
    }
  }
View Full Code Here

          cellCloneServices[i][h] = currentTableCell.getCloneService();
        }
      }
    }
    catch(TextException exception) {
      CloneException cloneException =  new CloneException(exception.getMessage());
      cloneException.initCause(exception);
      throw cloneException;
    }
  }
View Full Code Here

   *
   * @author Miriam Sutter
   */
  public ETextTableCloneService (IETextTable textTable, ITextDocument textDocument) throws CloneException {
    if(textTable == null) {
      throw new CloneException("The submitted table is not valid");
    }
    if(textDocument == null) {
      throw new CloneException("The submitted text document is not valid");
    }
    if(!(textTable instanceof ETextTable)) {
      throw new CloneException("The submitted table is not valid");
    }
    this.textTable = (ETextTable)textTable;
    this.textDocument = textDocument;
  }
View Full Code Here

      table = (ITextTable)textTables[i].getCloneService().cloneToPosition(destinationPosition,propertyKeysContainer);
      try {
        eTextTable.addTable(table);
      }
      catch(TextException textException) {
        CloneException cloneException = new CloneException("Error while cloning table");
        cloneException.initCause(textException);
        throw cloneException;
      }
    }
    if(generateReturnValue)
      return new ClonedObject(eTextTable, eTextTable.getClass());
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.clone.CloneException

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.