AODL.Document.Import.OpenDocument.NodeProcessors.FormsProcessor.CreateDocumentForms C# (CSharp) Метод

CreateDocumentForms() приватный Метод

Creates the document forms.
private CreateDocumentForms ( XmlNode node ) : void
node System.Xml.XmlNode The node.
Результат void
		private void CreateDocumentForms(XmlNode node)
		{
			/// TODO: ADD IMPLEMENTATION!
				
				try
				{
					XmlNode nodeOfficeForms;
					nodeOfficeForms = node.SelectSingleNode("office:forms", _document.NamespaceManager);
					
					if (nodeOfficeForms != null)
					{
						foreach(XmlNode nodeChild in nodeOfficeForms)
						{
							if (this._document is TextDocument)
							{
								ODFForm f = CreateForm(nodeChild);
								(this._document as TextDocument).Forms.Add(f);
							}
						}
						nodeOfficeForms.RemoveAll();
					}
				}
				catch(Exception ex)
				{
					throw new AODLException("Exception while processing forms.", ex);
				}
		}