Exemplo n.º 1
0
 public PageContentDownloader(ref XWord2003AddIn addin, string pageFullName, IXWikiClient client, Dictionary <String, ConversionManager> pageConverters)
 {
     this.addin          = addin;
     this.pageFullName   = pageFullName;
     this.client         = client;
     this.pageConverters = pageConverters;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Save user settings for grammar and spelling checking.
 /// </summary>
 /// <param name="addin">A reference to the <code>XWikiAddin</code>.</param>
 public static void Save(ref XWord2003AddIn addin)
 {
     wordOptions = addin.Application.Options;
     checkGrammarAsYouType = wordOptions.CheckGrammarAsYouType;
     checkGrammarWithSpelling = wordOptions.CheckGrammarWithSpelling;
     checkSpellingAsYouType = wordOptions.CheckSpellingAsYouType;
 }
 /// <summary>
 /// Save user settings for grammar and spelling checking.
 /// </summary>
 /// <param name="addin">A reference to the <code>XWikiAddin</code>.</param>
 public static void Save(ref XWord2003AddIn addin)
 {
     wordOptions              = addin.Application.Options;
     checkGrammarAsYouType    = wordOptions.CheckGrammarAsYouType;
     checkGrammarWithSpelling = wordOptions.CheckGrammarWithSpelling;
     checkSpellingAsYouType   = wordOptions.CheckSpellingAsYouType;
 }
Exemplo n.º 4
0
 public AttachmentUploader(XWord2003AddIn addin, string space, string page, IXWikiClient client, string[] fileNames)
 {
     this.addin     = addin;
     this.client    = client;
     this.space     = space;
     this.page      = page;
     this.fileNames = fileNames;
 }
Exemplo n.º 5
0
 public AttachmentDownloader(XWord2003AddIn addin, string pageFullName, string attachmentName, string path, IXWikiClient client)
 {
     this.addin          = addin;
     this.pageFullName   = pageFullName;
     this.attachmentName = attachmentName;
     this.path           = path;
     this.client         = client;
     this.fileInfo       = null;
 }
Exemplo n.º 6
0
        public AttachmentUploader(XWord2003AddIn addin, string pageFullName, IXWikiClient client, string[] fileNames)
        {
            this.addin     = addin;
            this.client    = client;
            this.fileNames = fileNames;

            if (pageFullName != null)
            {
                if (!this.client.LoggedIn)
                {
                    client.Login(addin.Username, addin.Password);
                }
                int index = pageFullName.IndexOf(".");
                space = pageFullName.Substring(0, index);
                page  = pageFullName.Substring(index + 1);
            }
            else
            {
                result = false;
            }
        }
Exemplo n.º 7
0
 public HTMLDocumentOpener(XWord2003AddIn addin, string path)
 {
     this.addin    = addin;
     this.path     = path;
     this.document = null;
 }