Examples of XStandaloneDocumentInfo


Examples of com.sun.star.document.XStandaloneDocumentInfo

  java.util.Vector TitleVector = null;
  java.util.Vector NameVector = null;
  String[] NameList;

  XInterface xDocInterface = (XInterface) xMSF.createInstance("com.sun.star.document.StandaloneDocumentInfo");
  XStandaloneDocumentInfo xDocInfo = (XStandaloneDocumentInfo) UnoRuntime.queryInterface(XStandaloneDocumentInfo.class, xDocInterface);

  XInterface xInterface = (XInterface) xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
        XSimpleFileAccess xSimpleFileAccess = (XSimpleFileAccess) UnoRuntime.queryInterface(XSimpleFileAccess.class, xInterface);

  NameList = xSimpleFileAccess.getFolderContents(FolderName, false);
  TitleVector = new java.util.Vector(NameList.length);
  NameVector = new java.util.Vector(NameList.length);
  int FileCount = NameList.length;
  int FilterLen = FilterName.length();
  String CurFileName = "";
  for (int i = 0; i<FileCount; i++){
      CurFileName = NameList[i];
      int s = CurFileName.indexOf(FilterName + "-");
      if (CurFileName.indexOf(FilterName + "-")!= -1){
    xDocInfo.loadFromURL(CurFileName);
    NameVector.addElement(CurFileName);
    TitleVector.addElement(AnyConverter.toString(getUNOPropertyValue(xDocInterface, "Title")));
      }
  }
  String[]LocNameList = new String[NameVector.size()];
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.