Example #1
0
 /// <summary>
 /// Store the document
 /// </summary>
 /// <param name="storablecomponent">The storable component</param>
 /// <param name="url">The url</param>
 public static void Store(
     unoidl.com.sun.star.frame.XStorable storablecomponent, string url)
 {
     try
     {
         storablecomponent.store();
     }
     catch (System.Exception ex)
     {
         throw;
     }
 }
Example #2
0
 /// <summary>
 /// Store the document to a given url
 /// </summary>
 /// <param name="storablecomponent">The storable component</param>
 /// <param name="url">The url</param>
 public static void StoreToUrl(
     unoidl.com.sun.star.frame.XStorable storablecomponent, string url)
 {
     try
     {
         storablecomponent.storeToURL(
             PathConverter(url),
             new unoidl.com.sun.star.beans.PropertyValue[] {});
     }
     catch (System.Exception ex)
     {
         throw;
     }
 }
Example #3
0
 /** Store a document, using the StarDraw 5.0 Filter */
 public void storeDocComponent(String storeUrl)
 {
     unoidl.com.sun.star.frame.XStorable xStorable = mxDocument as XStorable;
     xStorable.storeAsURL(PathConverter(storeUrl), new unoidl.com.sun.star.beans.PropertyValue[] { });
 }