public ItemAction(GlobalChangeset gs, DocSetChangeset ds, FileChangeset fs, Change c)
 {
     globalset = gs;
     docset    = ds;
     fileset   = fs;
     change    = c;
 }
예제 #2
0
        public GlobalChangeset GetFrom(int starting_serial_id)
        {
            GlobalChangeset s = null;

            foreach (DocSetChangeset dscs in DocSetChangesets)
            {
                object o = dscs.GetFrom(starting_serial_id);
                if (o == null)
                {
                    continue;
                }
                if (s == null)
                {
                    s = new GlobalChangeset();
                }
                s.DocSetChangesets.Add(o);
            }
            return(s);
        }
예제 #3
0
		public ItemAction (GlobalChangeset gs, DocSetChangeset ds, FileChangeset fs, Change c)
		{
			globalset = gs;
			docset = ds;
			fileset = fs;
			change = c;
		}
예제 #4
0
		public FileAction (GlobalChangeset gs, DocSetChangeset ds, FileChangeset fs)
		{
			globalset = gs;
			docset = ds;
			fileset = fs;
		}
예제 #5
0
 public EditMerger(GlobalChangeset changeset, ArrayList targetDirs)
 {
     this.changeset  = changeset;
     this.targetDirs = targetDirs;
 }
예제 #6
0
        static int Main(string [] args)
        {
            string topic = null;



            for (int i = 0; i < args.Length; i++)
            {
                switch (args [i])
                {
                case "--html":
                    if (i + 1 == args.Length)
                    {
                        Console.WriteLine("--html needed argument");
                        return(1);
                    }

                    Node     n;
                    RootTree help_tree = RootTree.LoadTree();
                    string   res       = help_tree.RenderUrl(args [i + 1], out n);
                    if (res != null)
                    {
                        Console.WriteLine(res);
                        return(0);
                    }
                    else
                    {
                        return(1);
                    }

                case "--make-index":
                    RootTree.MakeIndex();
                    return(0);

                case "--help":
                    Console.WriteLine("Options are:\n" +
                                      "browser [--html TOPIC] [--make-index] [TOPIC] [--merge-changes CHANGE_FILE TARGET_DIR+]");
                    return(0);

                case "--merge-changes":
                    if (i + 2 == args.Length)
                    {
                        Console.WriteLine("--merge-changes 2+ args");
                        return(1);
                    }

                    ArrayList targetDirs = new ArrayList();

                    for (int j = i + 2; j < args.Length; j++)
                    {
                        targetDirs.Add(args [j]);
                    }

                    EditMerger e = new EditMerger(
                        GlobalChangeset.LoadFromFile(args [i + 1]),
                        targetDirs
                        );

                    e.Merge();

                    return(0);

                default:
                    topic = args [i];
                    break;
                }
            }
            Settings.RunningGUI = true;
            DocumentBrowser browser = new DocumentBrowser();

            browser.Run();
            return(0);
        }
예제 #7
0
		public EditMerger (GlobalChangeset changeset, ArrayList targetDirs)
		{
			this.changeset = changeset;
			this.targetDirs = targetDirs;
		}
예제 #8
0
		public GlobalChangeset GetFrom (int starting_serial_id)
		{
			GlobalChangeset s = null;
			
			foreach (DocSetChangeset dscs in DocSetChangesets){
				object o = dscs.GetFrom (starting_serial_id);
				if (o == null)
					continue;
				if (s == null)
					s = new GlobalChangeset ();
				s.DocSetChangesets.Add (o);
			}
			return s;
		}
 public FileAction(GlobalChangeset gs, DocSetChangeset ds, FileChangeset fs)
 {
     globalset = gs;
     docset    = ds;
     fileset   = fs;
 }