Examples of XInvocation


Examples of com.sun.star.script.XInvocation

    * @see com.sun.star.script.Invocation
    * @see com.sun.star.script.XInvocation
    * @see com.sun.star.io.Pipe
    */
    public void _createAdapter() {
        XInvocation xInv = null ;
        XMultiServiceFactory xMSF = null;
        try {
            xMSF = (XMultiServiceFactory)tParam.getMSF();
            Object[] args = {xMSF.createInstance
                ("com.sun.star.io.Pipe")};
View Full Code Here

Examples of com.sun.star.script.XInvocation

    * @see com.sun.star.script.Invocation
    * @see com.sun.star.script.XInvocation
    * @see com.sun.star.io.Pipe
    */
    public void _createAdapter() {
        XInvocation xInv = null ;
        XMultiServiceFactory xMSF = null;
        try {
            xMSF = (XMultiServiceFactory)tParam.getMSF();
            Object[] args = {xMSF.createInstance
                ("com.sun.star.io.Pipe")};
View Full Code Here

Examples of com.sun.star.script.XInvocation

                showCommonResourceError(xMSF);
                throw new IllegalArgumentException();
            }
            else
            {
                XInvocation xResInvoke = (XInvocation) com.sun.star.uno.UnoRuntime.queryInterface(XInvocation.class, xResource);
                xResInvoke.setValue("FileName", Module);
                return xResInvoke;
            }
        }
        catch (Exception exception)
        {
View Full Code Here

Examples of com.sun.star.script.XInvocation

      if (oResource == null){
    UNODialogs.showMessageBox(xMSF, "ErrorBox", com.sun.star.awt.VclWindowPeerAttribute.OK, "No Resource loader found" );
    throw new com.sun.star.uno.RuntimeException();
      }
            else{
    XInvocation xResInvoke = (XInvocation) UnoRuntime.queryInterface(XInvocation.class, oResource);
    xResInvoke.setValue("FileName", ShortDescription);
    return xResInvoke;
            }
        }
        catch( Exception exception){
            exception.printStackTrace(System.out);
View Full Code Here

Examples of com.sun.star.script.XInvocation


    public static boolean createSubDirectory(XMultiServiceFactory xMSF, XSimpleFileAccess xSimpleFileAccess, String Path){
    String sNoDirCreation = "";
    try{
  XInvocation xResInvoke = Tools.initResources(xMSF, "ImportWizard","imp");
  if (xResInvoke != null){
      sNoDirCreation = Tools.getResText(xResInvoke, 1050);
      String sMsgDirNotThere = Tools.getResText(xResInvoke, 1051);
      String sQueryForNewCreation = Tools.getResText(xResInvoke, 1052);
      String OSPath = convertfromURLNotation(xMSF, Path);
View Full Code Here

Examples of com.sun.star.script.XInvocation

  String NewPath = Path;
  XInterface xInterface = (XInterface) xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
        XSimpleFileAccess xSimpleFileAccess = (XSimpleFileAccess) UnoRuntime.queryInterface(XSimpleFileAccess.class, xInterface);
  if (baskbeforeOverwrite){
      if (xSimpleFileAccess.exists(Path)){
    XInvocation xResInvoke = Tools.initResources(xMSF, "ImportWizard","imp");
    String sFileexists = Tools.getResText(xResInvoke, 1053);
    String NewString = convertfromURLNotation(xMSF, Path);
    sFileexists = replaceSubString(sFileexists, NewString, "<1>");
    sFileexists = replaceSubString(sFileexists, String.valueOf((char) 13), "<CR>");
    int iLeave = UNODialogs.showMessageBox(xMSF, "QueryBox", com.sun.star.awt.VclWindowPeerAttribute.YES_NO, sFileexists);
View Full Code Here

Examples of com.sun.star.script.XInvocation


    public static void showErrorBox(XMultiServiceFactory xMSF, String ResName, String ResPrefix, int ResID, String AddTag, String AddString){
    try{
  String ProductName = getProductName(xMSF);
  XInvocation xResInvoke = Tools.initResources(xMSF, ResName, ResPrefix);
  String sErrorMessage = Tools.getResText(xResInvoke, ResID);
  sErrorMessage = replaceSubString(sErrorMessage, ProductName, "%PRODUCTNAME");
  sErrorMessage = replaceSubString(sErrorMessage, String.valueOf((char)13), "<BR>");
  sErrorMessage = replaceSubString(sErrorMessage, AddString, AddTag);
  UNODialogs.showMessageBox(xMSF, "ErrorBox", com.sun.star.awt.VclWindowPeerAttribute.OK, sErrorMessage);
View Full Code Here

Examples of com.sun.star.script.XInvocation


    public static void showErrorBox(XMultiServiceFactory xMSF, String ResName, String ResPrefix, int ResID){
    try{
  String ProductName = getProductName(xMSF);
  XInvocation xResInvoke = Tools.initResources(xMSF, ResName, ResPrefix);
  String sErrorMessage = Tools.getResText(xResInvoke, ResID);
  sErrorMessage = replaceSubString(sErrorMessage, ProductName, "%PRODUCTNAME");
  sErrorMessage = replaceSubString(sErrorMessage, String.valueOf((char)13), "<BR>");
  UNODialogs.showMessageBox(xMSF, "ErrorBox", com.sun.star.awt.VclWindowPeerAttribute.OK, sErrorMessage);
    }
View Full Code Here

Examples of com.sun.star.script.XInvocation


    public static class TerminateWizardException extends Exception{
  public TerminateWizardException(XMultiServiceFactory xMSF){
  try{
      XInvocation xResInvoke = Tools.initResources(xMSF, "AutoPilot","dbw");
      String sErrorMessage = Tools.getResText(xResInvoke, 1006);
      UNODialogs.showMessageBox(xMSF, "ErrorBox", com.sun.star.awt.VclWindowPeerAttribute.OK, sErrorMessage);
      printStackTrace(System.out);
  }
  catch(com.sun.star.uno.Exception exception){
View Full Code Here

Examples of com.sun.star.script.XInvocation


    public static class TerminateWizardException extends Exception{
  public TerminateWizardException(XMultiServiceFactory xMSF){
  try{
      XInvocation xResInvoke = Tools.initResources(xMSF, "AutoPilot","dbw");
      String sErrorMessage = Tools.getResText(xResInvoke, 1006);
      UNODialogs.showMessageBox(xMSF, "ErrorBox", com.sun.star.awt.VclWindowPeerAttribute.OK, sErrorMessage);
      printStackTrace(System.out);
  }
  catch(com.sun.star.uno.Exception exception){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.