Exemple #1
0
        public ODFForm(XmlNode node, IDocument document)
        {
            Document  = document;
            this.Node = node;

            _controls           = new ODFControlsCollection();
            _controls.Inserted += ControlsCollection_Inserted;
            _controls.Removed  += ControlsCollection_Removed;
            _controls.Clearing += ControlsCollection_Clearing;

            _properties           = new FormPropertyCollection();
            _properties.Inserted += PropertyCollection_Inserted;
            _properties.Removed  += PropertyCollection_Removed;

            _formCollection           = new ODFFormCollection();
            _formCollection.Inserted += FormCollection_Inserted;
            _formCollection.Removed  += FormCollection_Removed;
        }
Exemple #2
0
        public ODFForm(XElement node, IDocument document)
        {
            Document = document;
            Node     = node;

            Controls           = new ODFControlsCollection();
            Controls.Inserted += ControlsCollection_Inserted;
            Controls.Removed  += ControlsCollection_Removed;
            Controls.Clearing += ControlsCollection_Clearing;

            Properties           = new FormPropertyCollection();
            Properties.Inserted += PropertyCollection_Inserted;
            Properties.Removed  += PropertyCollection_Removed;

            _formCollection           = new ODFFormCollection();
            _formCollection.Inserted += FormCollection_Inserted;
            _formCollection.Removed  += FormCollection_Removed;
        }
Exemple #3
0
        /// <summary>
        /// Creates an ODFForm
        /// </summary>
        /// <param name="document">Parent document</param>
        /// <param name="name">Form name</param>
        public ODFForm(IDocument document, string name)
        {
            Document = document;
            CreateBasicNode();
            this.ControlImplementation = "ooo:com.sun.star.form.component.Form";
            this.ApplyFilter           = XmlBoolean.True;
            this.CommandType           = CommandType.Table;
            this.Name = name;

            _controls           = new ODFControlsCollection();
            _controls.Inserted += ControlsCollection_Inserted;
            _controls.Removed  += ControlsCollection_Removed;
            _controls.Clearing += ControlsCollection_Clearing;

            _properties           = new FormPropertyCollection();
            _properties.Inserted += PropertyCollection_Inserted;
            _properties.Removed  += PropertyCollection_Removed;

            _formCollection           = new ODFFormCollection();
            _formCollection.Inserted += FormCollection_Inserted;
            _formCollection.Removed  += FormCollection_Removed;
        }
Exemple #4
0
		public ODFForm(XmlNode node, IDocument document)
		{
			Document = document;
			this.Node = node;
			
			_controls = new ODFControlsCollection();
			_controls.Inserted +=ControlsCollection_Inserted;
			_controls.Removed +=ControlsCollection_Removed;
			_controls.Clearing += ControlsCollection_Clearing;

			_properties = new FormPropertyCollection();
			_properties.Inserted += PropertyCollection_Inserted;
			_properties.Removed += PropertyCollection_Removed;

			_formCollection = new ODFFormCollection();
			_formCollection.Inserted += FormCollection_Inserted;
			_formCollection.Removed += FormCollection_Removed;
		}
Exemple #5
0
		/// <summary>
		/// Creates an ODFForm
		/// </summary>
		/// <param name="document">Parent document</param>
		/// <param name="name">Form name</param>
		public ODFForm(IDocument document, string name)
		{
			Document = document;
			CreateBasicNode();
			this.ControlImplementation = "ooo:com.sun.star.form.component.Form";
			this.ApplyFilter = XmlBoolean.True;
			this.CommandType = CommandType.Table;
			this.Name = name;

			_controls = new ODFControlsCollection();
			_controls.Inserted += ControlsCollection_Inserted;
			_controls.Removed += ControlsCollection_Removed;
			_controls.Clearing += ControlsCollection_Clearing;

			_properties = new FormPropertyCollection();
			_properties.Inserted += PropertyCollection_Inserted;
			_properties.Removed += PropertyCollection_Removed;

			_formCollection = new ODFFormCollection();
			_formCollection.Inserted += FormCollection_Inserted;
			_formCollection.Removed += FormCollection_Removed;
			
		}