incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mba...@apache.org
Subject svn commit: r1172372 [3/6] - in /incubator/ooo/trunk/main/helpauthoring: ./ HelpAuthoring/ META-INF/ filter/ help/ help/en-US/ help/en-US/org.openoffice.helpauthoring/
Date Sun, 18 Sep 2011 21:34:42 GMT
Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/Validate.xba
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/Validate.xba?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/Validate.xba (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/Validate.xba Sun Sep 18 21:34:39 2011
@@ -0,0 +1,695 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Validate" script:language="StarBasic">
+&apos;############################################
+&apos;  VALIDATION ROUTINES
+&apos;
+&apos;  May, 19 2004 - fpe
+&apos;############################################
+
+Dim sSwitchType As String
+Dim sCellSwitchType As String
+Dim sCaseType As String
+Dim sCellCaseType As String
+Dim sDefaultType As String
+Dim sCellDefaultType As String
+Dim bDefaultSet As Boolean
+Dim bCellDefaultSet As Boolean
+Dim bCaseSet As Boolean
+Dim bCellCaseSet As Boolean
+Dim aTagsOpen(0) As String
+Dim aCellTagsOpen(0) As String
+Dim bWarn As Boolean
+Dim bWarnEmptyPara As Boolean
+Dim bWarnParaNoID As Boolean
+
+
+Sub ValidateXHP
+	Validate
+End Sub
+
+Sub Validate
+
+	If not IsHelpFile Then
+		msgbox(strErr_NoHelpFile)
+		Exit Sub
+	End If
+
+	oDoc = StarDesktop.CurrentComponent	
+	sSwitchType = &quot;&quot;
+	sCaseType = &quot;&quot;
+	sDefaultType = &quot;&quot;
+	bWarn = TRUE
+	bWarnEmptyPara = TRUE
+	bWarnParaNoID = TRUE
+
+	CheckMetaData(oDoc)
+	CheckHeading(oDoc)
+	
+	Enum = oDoc.Text.createEnumeration
+	Do While Enum.hasMoreElements
+
+		TextElement = Enum.nextElement
+		If TextElement.supportsService(&quot;com.sun.star.text.Paragraph&quot;) Then		&apos; we are a paragraph
+	
+			CheckSwitches(TextElement)
+			CheckParaID(TextElement)
+			CheckParaFormat(TextElement)
+			CheckTags(TextElement)
+			CheckInlineTags(TextElement)
+
+		ElseIf	TextElement.supportsService(&quot;com.sun.star.text.TextTable&quot;) Then
+
+			If sSwitchType &lt;&gt; &quot;&quot; AND (sCaseType = &quot;&quot; AND sDefaultType = &quot;&quot;) Then &apos;&lt;------
+				Terminate(&quot;Switch must be closed or case/default must be opened before a table starts.&quot;,tmpCellElement)
+			End If
+
+			CheckCell(TextElement)
+		End If
+	Loop	
+
+	If sCaseType &lt;&gt; &quot;&quot; Then
+		Terminate(&quot;Previous case (&quot;+sCaseType+&quot;) not closed!&quot;,TextElement)
+	End If
+
+	If sDefaultType &lt;&gt; &quot;&quot; Then
+		Terminate(&quot;Previous default not closed!&quot;,TextElement)
+	End If
+
+	If sSwitchType &lt;&gt; &quot;&quot; Then
+		Terminate(&quot;Previous switch (&quot;+sSwitchType+&quot;) not closed!&quot;,TextElement)
+	End If
+	
+	If ubound(aTagsOpen()) &gt; 0 Then
+		Terminate(&quot;Element &quot;+aTagsOpen(ubound(aTagsOpen()))+&quot; not closed&quot;,TextElement)
+	End If
+	
+	msgbox(&quot;Validation finished.&quot;)
+		
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECKCELL
+&apos; checks a table cell contents
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+Sub CheckCell(TE As Object)
+	On Local Error Goto ERRHANDLE:
+	
+	CellName = &quot;A1&quot;
+	Cell = TE.getCellByName(CellName)
+	tmpCellEnum = Cell.createEnumeration
+	tmpCellElement = tmpCellEnum.nextElement
+	
+	Rows = TE.getRows
+	Cols = TE.getColumns
+
+	ReDim aCellTagsOpen(0)
+	
+	For RowIndex = 1 to Rows.getCount()
+
+		For ColIndex = 1 to Cols.getCount()
+
+			CellName = Chr(64 + ColIndex) &amp; RowIndex
+			Cell = TE.getCellByName(CellName)
+			CellEnum = Cell.createEnumeration
+
+			Do While CellEnum.hasMoreElements
+
+				CellElement = CellEnum.nextElement		&apos; &lt;-- MODIFY, check closed switches within cells
+
+				If CellElement.supportsService(&quot;com.sun.star.text.Paragraph&quot;) Then
+					CheckSwitchesInCell(CellElement)
+					CheckParaID(CellElement)
+					CheckParaFormat(CellElement)
+					CheckTagsInCell(CellElement)
+					CheckInlineTags(CellElement)
+				EndIf
+
+			Loop
+			
+			If sCellCaseType &lt;&gt; &quot;&quot; Then
+				Terminate(&quot;Previous case (&quot;+sCellCaseType+&quot;) not closed!&quot;,CellElement)
+			End If
+
+			If sCellSwitchType &lt;&gt; &quot;&quot; Then
+				Terminate(&quot;Previous switch (&quot;+sCellSwitchType+&quot;) not closed!&quot;,CellElement)
+			End If
+			
+			If ubound(aCellTagsOpen()) &gt; 0 Then
+				Terminate(&quot;Element &quot;+aCellTagsOpen(ubound(aCellTagsOpen()))+&quot; not closed&quot;,CellElement)
+			End If
+	
+		Next
+	Next
+
+	ERRHANDLE:
+		If Err &lt;&gt; 0 Then
+			msgbox &quot;Error: &quot;+chr(13)+ Error$,48,&quot;D&apos;oh!&quot;
+		End If
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK PARA ID
+&apos; checks a paragraph for an ID
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+Sub CheckParaID(TE As Object)
+
+	If Left(TE.ParaStyleName,4) = &quot;hlp_&quot; AND Not(Left(TE.ParaStyleName,8) = &quot;hlp_aux_&quot;) Then
+
+		sText = TE.GetString
+        
+		If sText = &quot;&quot; Then
+			If bWarnEmptyPara Then
+				Warn(&quot;Empty Paragraph&quot;,&quot;Empty paragraphs should be avoided. Do not use empty paragraphs for formatting purpose.&quot;,TE)
+				bWarnEmptyPara = FALSE
+			End If
+		Else
+
+			TP = TE.createEnumeration
+			Ct = 0
+			posID = 0
+
+			While TP.hasmoreElements
+				Ct = Ct+1
+				TPE = TP.nextElement
+				If TPE.TextPortionType=&quot;TextField&quot; Then
+					If TPE.TextField.TextFieldMaster.Name=&quot;ID&quot; Then
+						posID = Ct
+					End If
+				End If
+				&apos; Lets cheat and allow empty strings before the ID -- otherwise we&apos;ll get
+				&apos; a validation error if a paragraph starts at the top of a page after
+				&apos; a page break (for whatever reason)
+				If TPE.String = &quot;&quot; Then
+					Ct = Ct-1
+				End If
+			Wend
+
+			If posID = 0 Then
+				If bWarnParaNoID Then
+	 				Warn(&quot;Paragraph has no id.&quot;,&quot;IDs will be assigned on safe. You can also assign an ID using the Assign Paragraph ID menu item&quot;,TPE)
+	 				bWarnParaNoID = FALSE
+					InsertNewParaData
+	 			Else
+	 				oCur = TE.getText.createTextCursorByRange(TE)
+					thiscomponent.getcurrentcontroller.select(oCur)
+					InsertNewParaData
+	 			End If
+			ElseIf posID &gt; 1 Then
+				Terminate(&quot;Paragraph ID not at the start of the paragraph. The paragraph ID must be the first element of a paragraph. Move the ID to the beginning of the paragraph&quot;,TPE)
+			End If
+
+		End If
+
+	End If
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK PARA FORMAT
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckParaFormat(TE As Object)
+
+	sText = TE.GetString
+	If Left(TE.ParaStyleName,4) &lt;&gt; &quot;hlp_&quot; AND sText &lt;&gt; &quot;&quot; Then    &apos; just disregard empty paras in wrong formats
+		Warn(&quot;Invalid paragraph format. Contents will be lost.&quot;,_
+		     &quot;Use only the paragraph styles starting with &quot;&quot;hlp_&quot;&quot;.&quot;+_
+		     &quot; Paragraphs in other formats will be lost on export&quot;,TE)
+	End If
+
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK SWITCHES
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckSwitches(TE As Object)
+
+	If TE.ParaStyleName=&quot;hlp_aux_switch&quot; Then					&apos; we are a switch or case or default
+		sText = TE.GetString									&apos; get the switch contents
+
+		If Left(sText,8) = &quot;&lt;SWITCH &quot; Then								&apos; an opening switch tag
+
+			If sSwitchType = &quot;&quot; Then									&apos; no other switch is open
+				sSwitchType = Right(sText,Len(sText)-16)
+				sSwitchType = Left(sSwitchType,InStr(sSwitchType,&quot;&quot;&quot;&quot;)-1)
+
+				If (sSwitchType &lt;&gt; &quot;sys&quot; AND sSwitchType &lt;&gt; &quot;appl&quot; AND sSwitchType &lt;&gt; &quot;distrib&quot;) Then
+					Terminate(&quot;Unknown switch type &quot;&quot;&quot;+sSwitchType+&quot;&quot;&quot;&quot;,TE)
+				End If
+
+			Else
+				Terminate(&quot;Previous switch (&quot;+sSwitchType+&quot;) not closed!&quot;,TE)
+			End If
+
+		End If	&apos; OPENING SWITCH
+			
+		If Left(sText,8) = &quot;&lt;/SWITCH&quot; Then								&apos; a closing switch tag
+
+			If sSwitchType = &quot;&quot; Then									&apos; there was no switch open
+				Terminate(&quot;No switch open!&quot;,TE)
+			Else
+				If not(bCaseSet OR bDefaultSet) Then
+					Terminate(&quot;Empty switch&quot;,TE)
+				End If
+			
+				If sCaseType &lt;&gt; &quot;&quot; Then									&apos; there is still a case open
+					Terminate(&quot;Previous case (&quot;+sCaseType+&quot;) not closed!&quot;,TE)
+				End If
+				sSwitchType = &quot;&quot;
+				bDefaultSet = FALSE
+				bCaseSet = FALSE
+			End If
+					
+		End If  &apos; CLOSING SWITCH
+		
+		If Left(sText,6) = &quot;&lt;CASE &quot; Then								&apos; an opening case tag
+					
+			If bDefaultSet Then
+				Terminate(&quot;No case after default allowed.&quot;,TE)
+			End If
+
+			If sCaseType = &quot;&quot; Then
+				sCaseType = Right(sText,Len(sText)-14)
+				sCaseType = Left(sCaseType,InStr(sCaseType,&quot;&quot;&quot;&quot;)-1)
+				bCaseSet = TRUE
+				If sSwitchType = &quot;&quot; Then
+					Terminate(&quot;Case without switch&quot;,TE)
+				End If
+			Else
+				Terminate(&quot;Previous case (&quot;+sCaseType+&quot;) not closed!&quot;,TE)
+			End If
+
+		End If  &apos; OPENING CASE
+				
+		If Left(sText,6) = &quot;&lt;/CASE&quot; Then								&apos; a closing case tag
+
+			If sCaseType = &quot;&quot; Then
+				Terminate(&quot;No case open!&quot;,TE)
+			Else
+				sCaseType = &quot;&quot;
+			End If
+
+		End If  &apos; CLOSING  CASE
+				
+		If Left(sText,8) = &quot;&lt;DEFAULT&quot; Then								&apos; an opening default tag
+
+			If sCaseType = &quot;&quot; Then
+				If (sDefaultType &lt;&gt; &quot;&quot; OR bDefaultSet) Then
+					Terminate(&quot;Multiple default not allowed.&quot;,TE)
+				Else
+					sDefaultType = &quot;DEFAULT&quot;
+								
+					If sSwitchType = &quot;&quot; Then
+						Terminate(&quot;Default without switch&quot;,TE)
+					End If
+				End If
+				sDefaultType = &quot;DEFAULT&quot;
+				bDefaultSet = TRUE
+			Else
+				Terminate(&quot;Previous case (&quot;+sCaseType+&quot;) not closed!&quot;,TE)
+			End If
+
+		End If  &apos; OPENING CASE
+				
+		If Left(sText,9) = &quot;&lt;/DEFAULT&quot; Then								&apos; a closing default tag
+
+			If sDefaultType &lt;&gt; &quot;DEFAULT&quot; Then
+				Terminate(&quot;No default open!&quot;,TE)
+			Else
+				sDefaultType = &quot;&quot;
+			End If
+
+		End If  &apos; CLOSING  CASE
+	Else  &apos; We are not hlp_aux_switch
+		If (sSwitchType &lt;&gt; &quot;&quot; AND sCaseType = &quot;&quot; AND sDefaultType = &quot;&quot;) Then
+			Terminate(&quot;Nothing allowed between switch and case or default or /case or /default and /switch&quot;, TE)
+		End If
+	End If		
+
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK SWITCHES IN A CELL
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckSwitchesInCell(CE As Object)
+
+	If CE.ParaStyleName=&quot;hlp_aux_switch&quot; Then					&apos; we are a switch or case or default
+		sText = CE.GetString									&apos; get the switch contents
+
+		If Left(sText,8) = &quot;&lt;SWITCH &quot; Then								&apos; an opening switch tag
+
+			If sCellSwitchType = &quot;&quot; Then									&apos; no other switch is open
+				sCellSwitchType = Right(sText,Len(sText)-16)
+				sCellSwitchType = Left(sCellSwitchType,InStr(sCellSwitchType,&quot;&quot;&quot;&quot;)-1)
+
+				If (sCellSwitchType &lt;&gt; &quot;sys&quot; AND sCellSwitchType &lt;&gt; &quot;appl&quot; AND sCellSwitchType &lt;&gt; &quot;distrib&quot;) Then
+					Terminate(&quot;Unknown switch type &quot;&quot;&quot;+sCellSwitchType+&quot;&quot;&quot;&quot;,CE)
+				End If
+
+			Else
+				Terminate(&quot;Previous switch (&quot;+sCellSwitchType+&quot;) not closed!&quot;,CE)
+			End If
+
+		End If	&apos; OPENING SWITCH
+			
+		If Left(sText,8) = &quot;&lt;/SWITCH&quot; Then								&apos; a closing switch tag
+
+			If sCellSwitchType = &quot;&quot; Then									&apos; there was no switch open
+				Terminate(&quot;No switch open!&quot;,CE)
+			Else
+				If not(bCellCaseSet OR bCellDefaultSet) Then
+					Terminate(&quot;Empty switch&quot;,CE)
+				End If
+			
+				If sCellCaseType &lt;&gt; &quot;&quot; Then									&apos; there is still a case open
+					Terminate(&quot;Previous case (&quot;+sCellCaseType+&quot;) not closed!&quot;,CE)
+				End If
+				sCellSwitchType = &quot;&quot;
+				bCellDefaultSet = FALSE
+				bCellCaseSet = FALSE
+			End If
+					
+		End If  &apos; CLOSING SWITCH
+		
+		If Left(sText,6) = &quot;&lt;CASE &quot; Then								&apos; an opening case tag
+
+			If bCellDefaultSet Then
+				Terminate(&quot;No case after default allowed.&quot;,CE)
+			End If
+
+			If sCellCaseType = &quot;&quot; Then
+				sCellCaseType = Right(sText,Len(sText)-14)
+				sCellCaseType = Left(sCellCaseType,InStr(sCellCaseType,&quot;&quot;&quot;&quot;)-1)
+				bCellCaseSet = TRUE
+				If sCellSwitchType = &quot;&quot; Then
+					Terminate(&quot;Case without switch&quot;,CE)
+				End If
+			Else
+				Terminate(&quot;Previous case (&quot;+sCellCaseType+&quot;) not closed!&quot;,CE)
+			End If
+
+		End If  &apos; OPENING CASE
+				
+		If Left(sText,6) = &quot;&lt;/CASE&quot; Then								&apos; a closing case tag
+
+			If sCellCaseType = &quot;&quot; Then
+				Terminate(&quot;No case open!&quot;,CE)
+			Else
+				sCellCaseType = &quot;&quot;
+			End If
+
+		End If  &apos; CLOSING  CASE
+				
+		If Left(sText,8) = &quot;&lt;DEFAULT&quot; Then								&apos; an opening default tag
+
+			If sCellCaseType = &quot;&quot; Then
+				If (sCellDefaultType &lt;&gt; &quot;&quot; OR bCellDefaultSet) Then
+					Terminate(&quot;Multiple default not allowed.&quot;,CE)
+				Else
+					sCellDefaultType = &quot;DEFAULT&quot;
+								
+					If sCellSwitchType = &quot;&quot; Then
+						Terminate(&quot;Default without switch&quot;,CE)
+					End If
+				End If
+				sCellDefaultType = &quot;DEFAULT&quot;
+				bCellDefaultSet = TRUE
+			Else
+				Terminate(&quot;Previous case (&quot;+sCellCaseType+&quot;) not closed!&quot;,CE)
+			End If
+
+		End If  &apos; OPENING CASE
+				
+		If Left(sText,9) = &quot;&lt;/DEFAULT&quot; Then								&apos; a closing default tag
+
+			If sCellDefaultType &lt;&gt; &quot;DEFAULT&quot; Then
+				Terminate(&quot;No default open!&quot;,CE)
+			Else
+				sCellDefaultType = &quot;&quot;
+			End If
+
+		End If  &apos; CLOSING  CASE
+	Else  &apos; We are not hlp_aux_switch
+		If (sCellSwitchType &lt;&gt; &quot;&quot; AND sCellCaseType = &quot;&quot; AND sCellDefaultType = &quot;&quot;) Then
+			Terminate(&quot;Nothing allowed between switch and case or default or /case or /default and /switch&quot;, CE)
+		End If
+	End If		
+
+
+End Sub
+
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; TERMINATE VALIDATION WITH AN ERROR MESSAGE
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub Terminate(sStr As String, TE As Object)
+
+	oCur = TE.getText.createTextCursorByRange(TE)
+	thiscomponent.getcurrentcontroller.select(oCur)					
+	msgbox sStr,48,&quot;D&apos;oh!&quot;
+	Stop
+
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; SHOW A WARNING
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub Warn(sWarn As String, sSolv As String, Optional TE As Object)
+
+	If bWarn Then
+		BasicLibraries.LoadLibrary(&quot;HelpAuthoring&quot;)
+		oDialog = LoadDialog(&quot;HelpAuthoring&quot;, &quot;dlgWarn&quot;)
+		oTxtWarn = oDialog.GetControl(&quot;txtWarning&quot;)
+		oTxtWarn.Text = sWarn
+		oTxtSolv = oDialog.GetControl(&quot;txtSolution&quot;)
+		oTxtSolv.Text = sSolv
+
+		If not(IsMissing(TE)) Then
+			oCur = TE.getText.createTextCursorByRange(TE)
+			thiscomponent.getcurrentcontroller.select(oCur)					
+		End If
+
+		If oDialog.Execute() = 1 Then
+			oCbWarn = oDialog.GetControl(&quot;cbWarn&quot;)
+			If oCbWarn.State = 1 Then
+				bWarn = FALSE
+			End If
+			Exit Sub
+		Else
+			Stop
+		End If
+	End If
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK DOCUMENT META DATA
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckMetaData(oDoc As Object)
+
+	sTopicID = oDoc.DocumentInfo.GetUserFieldValue(1)
+
+	If sTopicID &lt;&gt; AlphaNum(sTopicID) OR sTopicID=&quot;&quot; Then
+		sTopicID = &quot;topic_&quot;+CreateID &apos; create a topic id
+	End If
+
+	oDoc.DocumentInfo.SetUserFieldValue(1,sTopicID)
+	sCreated = oDoc.DocumentInfo.GetUserFieldValue(2)
+	sEdited = oDoc.DocumentInfo.GetUserFieldValue(3)
+	sTitle = oDoc.DocumentInfo.Title
+
+	If sTitle=&quot;&quot; OR sTitle=&quot;&lt;Set Topic Title&gt;&quot; Then
+		Enum = document.Text.createEnumeration
+		Do While Enum.hasMoreElements
+			TextElement = Enum.nextElement
+			If TextElement.supportsService(&quot;com.sun.star.text.Paragraph&quot;) Then
+				If Left(TextElement.ParaStyleName,8)=&quot;hlp_head&quot; Then
+					Enum2 = TextElement.createEnumeration
+					While Enum2.hasMoreElements
+						TextPortion = Enum2.nextElement
+						If Not(TextPortion.TextPortionType=&quot;TextField&quot;) Then
+							strg = strg + TextPortion.String
+						End If
+					Wend
+					document.DocumentInfo.Title = strg
+					Exit Do
+				End If
+			End If
+		Loop
+	End If
+
+	sIndex = oDoc.DocumentInfo.GetUserFieldValue(0)
+	
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK IF HEADING EXISTS
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckHeading(oDoc As Object)
+
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK FOR CORRECT INLINE TAGS
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckInlineTags(TE As Object)
+
+	
+
+	If Left(TE.ParaStyleName,4)=&quot;hlp_&quot; AND (Left(TE.ParaStyleName,8)&lt;&gt;&quot;hlp_aux_&quot; OR TE.ParaStyleName=&quot;hlp_aux_bookmark&quot;) Then
+	
+		Dim aTokens(0) As Object
+		Dim aInlineTagsOpen(0) As String
+		TP = TE.createEnumeration
+
+		While TP.hasmoreElements
+			sDim = ubound(aTokens())+1
+			ReDim Preserve aTokens(sDim) As Object
+			aTokens(sDim) = TP.nextElement
+		Wend
+
+		For i=1 to ubound(aTokens())
+			Token = aTokens(i)
+			
+			If Token.supportsService(&quot;com.sun.star.text.TextField&quot;) Then
+				sTag = Token.TextField.TextFieldMaster.Name
+			
+				If Right(sTag,1)=&quot;_&quot; Then   &apos; a tag starts
+		
+					sTagName = Left(sTag,Len(sTag)-1)
+					
+					&apos; check for forbidden tags in paragraphs
+					sTagFormat = TagFormatIsCorrect(sTagName, TE.ParaStyleName)
+					If sTagFormat &lt;&gt; &quot;&quot; Then
+						Terminate(sTagName+&quot; element has wrong paragraph style (&quot;+TE.ParaStyleName+&quot;).&quot;+chr(13)+&quot;Must be &quot;+sTagFormat,Token)
+					End If
+					
+					sDim = ubound(aInlineTagsOpen())+1
+					Redim Preserve aInlineTagsOpen(sDim) as String
+					aInlineTagsOpen(sDim)=sTagName
+
+				ElseIf Left(sTag,1)=&quot;_&quot; Then  &apos; a tag ends, all other cases are empty tags
+		
+					sTagName = Right(sTag,Len(sTag)-1)
+					
+					&apos; check for forbidden tags in paragraphs
+					sTagFormat = TagFormatIsCorrect(sTagName, TE.ParaStyleName)
+					If sTagFormat &lt;&gt; &quot;&quot; Then
+						Terminate(sTagName+&quot; element has wrong paragraph style (&quot;+TE.ParaStyleName+&quot;).&quot;+chr(13)+&quot;Must be &quot;+sTagFormat,Token)
+					End If
+					
+					If ubound(aInlineTagsOpen()) &gt; 0 Then
+						If aInlineTagsOpen(ubound(aInlineTagsOpen())) &lt;&gt; sTagName Then
+							Terminate(&quot;Inline Element &quot;+aInlineTagsOpen(ubound(aInlineTagsOpen()))+&quot; not closed&quot;,Token)							
+						End If
+						sDim = ubound(aInlineTagsOpen())-1
+					Else
+						Terminate(&quot;No opening tag for &quot;+sTagName,Token)
+					End If
+					Redim Preserve aInlineTagsOpen(sDim) as String
+	
+				Else &apos; empty tag
+					sTagName = sTag
+					sTagFormat = TagFormatIsCorrect(sTagName, TE.ParaStyleName)
+					If sTagFormat &lt;&gt; &quot;&quot; Then
+						Terminate(sTagName+&quot; element has wrong paragraph style (&quot;+TE.ParaStyleName+&quot;).&quot;+chr(13)+&quot;Must be &quot;+sTagFormat,Token)
+					End If
+				
+				EndIf
+			ElseIf (i &gt; 1) AND (Trim(Token.String) &lt;&gt; &quot;&quot;) Then
+				If aInlineTagsOpen(ubound(aInlineTagsOpen())) = &quot;SWITCHINLINE&quot; Then
+					Terminate(&quot;No text allowed here.&quot;,Token)
+				End If
+			End If
+		Next 
+	
+	If ubound(aInlineTagsOpen()) &gt; 0 Then
+		Terminate(&quot;Inline Element &quot;+aInlineTagsOpen(ubound(aInlineTagsOpen()))+&quot; not closed&quot;,Token)
+	End If
+	
+	End If
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK FOR CORRECT TAGS
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckTags(TE As Object)
+	If (Left(TE.ParaStyleName,8) = &quot;hlp_aux_&quot; AND TE.ParaStyleName &lt;&gt; &quot;hlp_aux_bookmark&quot;) Then
+
+	TP = TE.createEnumeration
+
+	While TP.hasmoreElements
+		TPE = TP.nextElement
+
+		If TPE.supportsService(&quot;com.sun.star.text.TextField&quot;) Then
+			sTag = TPE.TextField.TextFieldMaster.Name
+			If Right(sTag,1)=&quot;_&quot; Then   &apos; a tag starts
+		
+				sTagName = Left(sTag,Len(sTag)-1)
+				sDim = ubound(aTagsOpen())+1
+				Redim Preserve aTagsOpen(sDim) as String
+				aTagsOpen(sDim)=sTagName
+				
+			ElseIf Left(sTag,1)=&quot;_&quot; Then  &apos; a tag ends, all other cases are empty tags
+		
+				sTagName = Right(sTag,Len(sTag)-1)
+				If ubound(aTagsOpen()) &gt; 0 Then
+					If aTagsOpen(ubound(aTagsOpen())) &lt;&gt; sTagName Then
+						Terminate(&quot;No close tag for &quot;+aTagsOpen(ubound(aTagsOpen())),TPE)
+					Else
+						sDim = ubound(aTagsOpen())-1
+					End If
+				Else
+					Terminate(&quot;No opening tag for &quot;+sTagName,TPE)
+				End If
+				Redim Preserve aTagsOpen(sDim) as String
+
+			Else &apos; empty tags
+		
+			EndIf
+		End If
+	Wend
+	End If
+End Sub
+
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+&apos; CHECK FOR CORRECT TAGS IN A TABLE CELL
+&apos;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Sub CheckTagsInCell(CE As Object)
+	If (Left(CE.ParaStyleName,8) = &quot;hlp_aux_&quot; AND CE.ParaStyleName &lt;&gt; &quot;hlp_aux_bookmark&quot;) Then
+
+	CP = CE.createEnumeration
+
+	While CP.hasmoreElements
+		CPE = CP.nextElement
+
+		If CPE.supportsService(&quot;com.sun.star.text.TextField&quot;) Then
+			sTag = CPE.TextField.TextFieldMaster.Name
+			If Right(sTag,1)=&quot;_&quot; Then   &apos; a tag starts
+		
+				sTagName = Left(sTag,Len(sTag)-1)
+				sDim = ubound(aCellTagsOpen())+1
+				Redim Preserve aCellTagsOpen(sDim) as String
+				aCellTagsOpen(sDim)=sTagName
+				
+			ElseIf Left(sTag,1)=&quot;_&quot; Then  &apos; a tag ends, all other cases are empty tags
+		
+				sTagName = Right(sTag,Len(sTag)-1)
+				If ubound(aCellTagsOpen()) &gt; 0 Then
+					If aCellTagsOpen(ubound(aCellTagsOpen())) &lt;&gt; sTagName Then
+						Terminate(&quot;No close tag for &quot;+aCellTagsOpen(ubound(aCellTagsOpen())),CPE)
+					Else
+						sDim = ubound(aCellTagsOpen())-1
+					End If
+				Else
+					Terminate(&quot;No opening tag for &quot;+sTagName,CPE)
+				End If
+				Redim Preserve aCellTagsOpen(sDim) as String
+
+			EndIf
+		End If
+	Wend
+	End If
+End Sub
+
+</script:module>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/_Main.xba
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/_Main.xba?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/_Main.xba (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/_Main.xba Sun Sep 18 21:34:39 2011
@@ -0,0 +1,223 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="_Main" script:language="StarBasic">&apos; Set of Macros used for Help Authoring
+&apos; =====================================
+&apos; Version
+&apos; -------------------------------------
+&apos;
+
+&apos; ***********************************************************************
+&apos; *
+&apos; *  The Contents of this file are made available subject to the terms of
+&apos; *  either of the following licenses
+&apos; *
+&apos; *         - GNU Lesser General Public License Version 2.1
+&apos; *         - Sun Industry Standards Source License Version 1.1
+&apos; *
+&apos; *  Sun Microsystems Inc., October, 2000
+&apos; *
+&apos; *  GNU Lesser General Public License Version 2.1
+&apos; *  =============================================
+&apos; *  Copyright 2000 by Sun Microsystems, Inc.
+&apos; *  901 San Antonio Road, Palo Alto, CA 94303, USA
+&apos; *
+&apos; *  This library is free software; you can redistribute it and/or
+&apos; *  modify it under the terms of the GNU Lesser General Public
+&apos; *  License version 2.1, as published by the Free Software Foundation.
+&apos; *
+&apos; *  This library is distributed in the hope that it will be useful,
+&apos; *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+&apos; *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+&apos; *  Lesser General Public License for more details.
+&apos; *
+&apos; *  You should have received a copy of the GNU Lesser General Public
+&apos; *  License along with this library; if not, write to the Free Software
+&apos; *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+&apos; *  MA  02111-1307  USA
+&apos; *
+&apos; *
+&apos; *  Sun Industry Standards Source License Version 1.1
+&apos; *  =================================================
+&apos; *  The contents of this file are subject to the Sun Industry Standards
+&apos; *  Source License Version 1.1 (the &quot;License&quot;); You may not use this file
+&apos; *  except in compliance with the License. You may obtain a copy of the
+&apos; *  License at http://www.openoffice.org/license.html.
+&apos; *
+&apos; *  Software provided under this License is provided on an &quot;AS IS&quot; basis,
+&apos; *  WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
+&apos; *  WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+&apos; *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+&apos; *  See the License for the specific provisions governing your rights and
+&apos; *  obligations concerning the Software.
+&apos; *
+&apos; *  The Initial Developer of the Original Code is: Sun Microsystems, Inc..
+&apos; *
+&apos; *  Copyright: 2000 by Sun Microsystems, Inc.
+&apos; *
+&apos; *  All Rights Reserved.
+&apos; *
+&apos; *  Contributor(s): _______________________________________
+&apos; *
+&apos; *
+&apos; ************************************************************************
+
+Global Const Version = &quot;v3.20100805&quot;
+
+Global Const strErr_NoHelpFile = &quot;Not a Help File&quot;
+
+&apos;=======================================================
+&apos; Main
+&apos;-------------------------------------------------------
+&apos; Ensure that necessary library functions are available
+&apos;=======================================================
+Sub Main
+	GlobalScope.BasicLibraries.loadLibrary(&quot;Tools&quot;)
+End Sub
+
+&apos;=======================================================
+&apos; SetMetaDataOnSave
+&apos;-------------------------------------------------------
+&apos; Sets the document meta data. It is called when
+&apos; the document is saved. It changes the data and
+&apos; then saves it again.
+&apos;=======================================================
+Sub SetMetaDataOnSave(Path as String)
+
+	document = StarDesktop.CurrentComponent
+	sDocRoot = ReadConfig(&quot;HelpPrefix&quot;)
+
+	If Path = &quot;&quot; Then
+		Path = document.URL
+	End If
+
+	If not(IsSubDir(Path,sDocRoot)) Then &apos; doesn&apos;tr work when resaving the file since it contains the OLD url (before resave)
+		msgbox(&quot;The File&quot;+chr(13)+Path+chr(13)+&quot;is outside of your Document Root&quot;+chr(13)+sDocRoot+chr(13)+chr(13)+&quot;You may want to adjust your document root settings and re-save the file.&quot;,48,&quot;Warning&quot;)
+	Else
+		Path = Right(Path,Len(Path)-Len(sDocRoot))
+	End If
+
+	document.DocumentInfo.SetUserFieldName(0,&quot;Indexer&quot;)
+	document.DocumentInfo.SetUserFieldName(1,&quot;ID&quot;)
+&apos;	document.DocumentInfo.SetUserFieldName(2,&quot;Comment&quot;)
+	document.DocumentInfo.SetPropertyValue(&quot;Subject&quot;,Path)
+	
+
+End Sub
+
+&apos;=======================================================
+&apos; ValidateOnSave
+&apos;-------------------------------------------------------
+&apos; Ensures that the document is validated when saved
+&apos; should be bound to the &quot;Document Save&quot; event but
+&apos; currently isn&apos;t
+&apos;=======================================================
+Sub ValidateOnSave
+	BasicLibraries.LoadLibrary(&quot;HelpAuthoring&quot;)
+	document = StarDesktop.CurrentComponent
+	If document.URL &lt;&gt; &quot;&quot; Then &apos; not initial save
+		If IsHelpFile Then
+			SetMetaDataOnSave(&quot;&quot;)
+			ValidateXHP
+		End If
+	End If
+End Sub
+
+
+&apos;=======================================================
+&apos; CreateFile
+&apos;-------------------------------------------------------
+&apos; Creates a new help file based on the help template
+&apos; and calls the save dialog
+&apos;=======================================================
+Sub CreateFile
+	GlobalScope.BasicLibraries.loadLibrary(&quot;Tools&quot;)
+	oPath = createUNOService(&quot;com.sun.star.util.PathSettings&quot;)
+	arPaths = Split(oPath.Template,&quot;;&quot;)  &apos; get the paths to the templates from the configuration
+	sHelpTemplate = &quot;&quot;
+
+	&apos; change stw extension to ott extension for template
+
+	For i=0 to ubound(arPaths)  &apos; see if the template path contains the help template
+		If FileExists(arPaths(i)+&quot;/Help/xmlhelptemplate.ott&quot;) Then
+			sHelpTemplate = arPaths(i)+&quot;/Help/xmlhelptemplate.ott&quot;
+		End If
+	Next i
+
+	If sHelpTemplate = &quot;&quot; Then
+		msgbox &quot;Cannot find the help template.&quot;,256
+	Else
+		oDoc = StarDesktop.loadComponentFromURL(sHelpTemplate,&quot;_blank&quot;,0,Array())
+		SaveAs(oDoc)
+	End If
+
+End Sub
+
+&apos;=======================================================
+&apos; SaveAs
+&apos;-------------------------------------------------------
+&apos; Initially saves a new help file on creation.
+&apos; Is called from CreateFile
+&apos;=======================================================
+Sub SaveAs(oDoc As Object)
+Dim ListAny(0) as Long
+Dim oStoreProperties(0) as New com.sun.star.beans.PropertyValue
+	On Local Error Goto ERRHANDLE:
+
+	sLastSaveDir = ReadConfig(&quot;LastSaveDir&quot;)
+	sDocRoot = ReadConfig(&quot;HelpPrefix&quot;)
+
+	ListAny(0) = com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION_PASSWORD
+	oFileDialog = CreateUnoService(&quot;com.sun.star.ui.dialogs.FilePicker&quot;)
+	oFileDialog.Initialize(ListAny())
+
+	If sLastSaveDir &lt;&gt; &quot;&quot; AND IsSubDir(sLastSaveDir,sDocRoot) Then
+		oFileDialog.setDisplayDirectory(sLastSaveDir)
+	Else
+		oFileDialog.setDisplayDirectory(sDocRoot)
+	End If
+
+	oMasterKey = GetRegistryKeyContent(&quot;org.openoffice.Office.TypeDetection/&quot;)
+	oFilters() = oMasterKey.Filters
+	oFileDialog.AppendFilter(&quot;Help&quot;, &quot;*.xhp&quot;)
+
+	oFileDialog.SetTitle(&quot;Save Help File As&quot;)
+	iAccept = oFileDialog.Execute()
+	If iAccept = 1 Then
+		WriteConfig(&quot;LastSaveDir&quot;,oFileDialog.getDisplayDirectory+&quot;/&quot;)
+		sPath = oFileDialog.Files(0)
+		oStoreProperties(0).Name = &quot;FilterName&quot;
+		oStoreProperties(0).Value = &quot;XHP_Help&quot;
+		SetMetaDataOnSave(sPath)
+		oDoc.StoreAsUrl(sPath, oStoreProperties())
+	Else
+		msgbox &quot;You must save a help document before you can work on it.&quot;+chr(13)+&quot;This document will be disposed.&quot;, 48
+		oDoc.dispose
+	End If
+	oFileDialog.Dispose()
+
+	ERRHANDLE:
+		If Err &lt;&gt; 0 Then
+			msgbox &quot;Error: &quot;+chr(13)+ Error$+chr(13)+&quot;Cannot save file.&quot;+chr(13),48,&quot;Fatal Error&quot;
+			oDoc.dispose
+		End If
+End Sub
+
+Sub CheckOnLoad
+&apos;	oDoc = StarDesktop.CurrentComponent
+&apos;	sDocRoot = ReadConfig(&quot;HelpPrefix&quot;)
+&apos;	If sDocRoot=&quot;&quot; Then
+&apos;		msgbox(&quot;No document root set. Please set the root folder for your documents.&quot;)
+&apos;		sDocRoot = SetDocumentRoot
+&apos;	End If
+&apos;	msgbox(HasUnoInterfaces(oDoc, &quot;com.sun.star.lang.XServiceInfo&quot;))
+&apos;	sFName = oDoc.URL
+&apos;	msgbox(sFName+chr(13)+sDocRoot)
+&apos;	If not(IsSubDir(sFName,sDocRoot)) Then
+&apos;		msgbox(&quot;The file is located outside of your Document Root&quot;+chr(13)+sDocRoot+chr(13)+chr(13)+&quot;Please adjust your document root settings to avoid trouble with links, transcludes and images!&quot;,48,&quot;Warning!&quot;)
+&apos;	End If
+End Sub
+
+Sub DisplayVersion
+	msgbox &quot;OpenOffice.org Help Authoring Framework&quot;+chr(13)+&quot;Version &quot;+Version+chr(13)+chr(13)+&quot;(c) 2010 Oracle, Licensed under LGPL&quot;,256
+End Sub
+</script:module>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dialog.xlb
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dialog.xlb?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dialog.xlb (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dialog.xlb Sun Sep 18 21:34:39 2011
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="HelpAuthoring" library:readonly="false" library:passwordprotected="false">
+ <library:element library:name="dlgHID"/>
+ <library:element library:name="dlgIND"/>
+ <library:element library:name="dlgMeta"/>
+ <library:element library:name="dlgObjProp"/>
+ <library:element library:name="dlgTOC"/>
+ <library:element library:name="dlgComment"/>
+ <library:element library:name="dlgEmbed"/>
+ <library:element library:name="dlgSwitch"/>
+ <library:element library:name="dlgCase"/>
+ <library:element library:name="dlgTable"/>
+ <library:element library:name="dlgFind"/>
+ <library:element library:name="dlgWarn"/>
+ <library:element library:name="dlgRepeatFind"/>
+ <library:element library:name="dlgLink"/>
+ <library:element library:name="dlg_BrowseEmbed"/>
+ <library:element library:name="dlgConfigure"/>
+</library:library>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgCase.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgCase.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgCase.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgCase.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgCase" dlg:left="188" dlg:top="137" dlg:width="164" dlg:height="88" dlg:closeable="true" dlg:moveable="true" dlg:title="Select Switch Condition (Case)">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="CommandButton1" dlg:tab-index="2" dlg:left="89" dlg:top="70" dlg:width="33" dlg:height="14" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:button dlg:id="CommandButton2" dlg:tab-index="3" dlg:left="126" dlg:top="70" dlg:width="33" dlg:height="14" dlg:help-text="Applies the changes and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="4" dlg:left="4" dlg:top="66" dlg:width="156" dlg:height="2"/>
+  <dlg:combobox dlg:style-id="0" dlg:id="cbPredefined" dlg:tab-index="0" dlg:left="14" dlg:top="13" dlg:width="89" dlg:height="10" dlg:tabstop="true" dlg:spin="true"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtSpecify" dlg:tab-index="1" dlg:left="14" dlg:top="41" dlg:width="86" dlg:height="10" dlg:help-text="Specify your condition string" dlg:tabstop="true"/>
+  <dlg:radiogroup>
+   <dlg:radio dlg:id="opSpecify" dlg:tab-index="5" dlg:left="5" dlg:top="31" dlg:width="156" dlg:height="8" dlg:value="Specify">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Switch.StatusChange" script:language="StarBasic"/>
+   </dlg:radio>
+   <dlg:radio dlg:id="opPredefined" dlg:tab-index="6" dlg:left="5" dlg:top="3" dlg:width="156" dlg:height="8" dlg:value="Select predefined condition" dlg:checked="true">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Switch.StatusChange" script:language="StarBasic"/>
+   </dlg:radio>
+  </dlg:radiogroup>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgComment.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgComment.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgComment.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgComment.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgComment" dlg:left="180" dlg:top="139" dlg:width="296" dlg:height="54" dlg:closeable="true" dlg:moveable="true" dlg:title="Insert Comment">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:text dlg:id="lbComment" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="35" dlg:height="8" dlg:value="Comment" dlg:tabstop="false"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="3" dlg:left="245" dlg:top="32" dlg:width="43" dlg:height="14" dlg:help-text="Inserts the comment and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="2" dlg:left="196" dlg:top="32" dlg:width="43" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtComment" dlg:tab-index="1" dlg:left="5" dlg:top="15" dlg:width="283" dlg:height="12" dlg:tabstop="true"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgConfigure.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgConfigure.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgConfigure.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgConfigure.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgConfigure" dlg:left="206" dlg:top="149" dlg:width="180" dlg:height="114" dlg:closeable="true" dlg:moveable="true" dlg:title="Configure">
+ <dlg:bulletinboard>
+  <dlg:text dlg:id="lblHelpRootDir" dlg:tab-index="0" dlg:left="2" dlg:top="10" dlg:width="89" dlg:height="11" dlg:value="Root Directory for Help Files"/>
+  <dlg:filecontrol dlg:id="fcHelpRootDir" dlg:tab-index="1" dlg:left="2" dlg:top="20" dlg:width="170" dlg:height="15"/>
+  <dlg:filecontrol dlg:id="fcHIDConcordance" dlg:tab-index="2" dlg:left="2" dlg:top="59" dlg:width="170" dlg:height="15"/>
+  <dlg:text dlg:id="lblHIDConcordance" dlg:tab-index="3" dlg:left="2" dlg:top="49" dlg:width="89" dlg:height="11" dlg:value="Help ID Concordance File"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="4" dlg:left="133" dlg:top="85" dlg:width="38" dlg:height="15" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="5" dlg:left="92" dlg:top="85" dlg:width="38" dlg:height="15" dlg:value="Cancel" dlg:button-type="cancel"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgEmbed.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgEmbed.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgEmbed.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgEmbed.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgEmbed" dlg:left="180" dlg:top="139" dlg:width="203" dlg:height="86" dlg:closeable="true" dlg:moveable="true" dlg:title="Embed Section">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+  <dlg:style dlg:style-id="1" dlg:border="0xffffff"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:text dlg:id="lblFilename" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="78" dlg:height="8" dlg:value="File Name" dlg:tabstop="false"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtFilePath" dlg:tab-index="1" dlg:left="5" dlg:top="15" dlg:width="153" dlg:height="10" dlg:help-text="Enter file path here (relative to Document Root)" dlg:tabstop="true">
+   <script:event script:event-name="on-blur" script:location="application" script:macro-name="HelpAuthoring.Embed.UpdateFileName" script:language="StarBasic"/>
+  </dlg:textfield>
+  <dlg:button dlg:id="butBrowse" dlg:tab-index="2" dlg:left="162" dlg:top="15" dlg:width="33" dlg:height="10" dlg:help-text="Browse for a file" dlg:tabstop="true" dlg:value="Browse">
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.Embed.GetFile" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:button dlg:id="CommandButton1" dlg:tab-index="10" dlg:left="83" dlg:top="31" dlg:width="1" dlg:height="0" dlg:value="CommandButton1"/>
+  <dlg:button dlg:id="CommandButton2" dlg:tab-index="9" dlg:left="158" dlg:top="67" dlg:width="43" dlg:height="14" dlg:help-text="Inserts the comment and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="CommandButton3" dlg:tab-index="8" dlg:left="110" dlg:top="67" dlg:width="43" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:text dlg:id="lblID" dlg:tab-index="11" dlg:left="6" dlg:top="35" dlg:width="151" dlg:height="8" dlg:value="Section ID" dlg:tabstop="false"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtID" dlg:tab-index="5" dlg:left="6" dlg:top="45" dlg:width="152" dlg:height="10" dlg:help-text="Enter the ID of the section or variable to be embedded" dlg:tabstop="true"/>
+  <dlg:radiogroup>
+   <dlg:radio dlg:id="opSection" dlg:tab-index="3" dlg:disabled="true" dlg:left="1" dlg:top="-26" dlg:width="35" dlg:height="10" dlg:tabstop="true" dlg:value="b" dlg:checked="true">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Embed.SetLabel" script:language="StarBasic"/>
+   </dlg:radio>
+   <dlg:radio dlg:id="opVariable" dlg:tab-index="4" dlg:disabled="true" dlg:left="45" dlg:top="-26" dlg:width="35" dlg:height="9" dlg:tabstop="true" dlg:value="i">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Embed.SetLabel" script:language="StarBasic"/>
+   </dlg:radio>
+  </dlg:radiogroup>
+  <dlg:checkbox dlg:id="cbInsertCR" dlg:tab-index="7" dlg:left="-2" dlg:top="92" dlg:width="92" dlg:height="10" dlg:tabstop="true" dlg:value="Insert Carriage Returns" dlg:checked="true"/>
+  <dlg:button dlg:id="butBrowseIDs" dlg:tab-index="6" dlg:left="163" dlg:top="43" dlg:width="33" dlg:height="10" dlg:help-text="Browse for a file" dlg:tabstop="true" dlg:value="Browse">
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.Embed.BrowseEmbed" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:textfield dlg:style-id="1" dlg:id="txtHidFName" dlg:tab-index="12" dlg:left="102" dlg:top="-38" dlg:width="100" dlg:height="15" dlg:readonly="true"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgFind.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgFind.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgFind.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgFind.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgFind" dlg:left="188" dlg:top="135" dlg:width="135" dlg:height="50" dlg:closeable="true" dlg:moveable="true" dlg:title="Find in tags/elements">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:text dlg:id="lblFind" dlg:tab-index="2" dlg:left="5" dlg:top="5" dlg:width="126" dlg:height="10" dlg:value="Find"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtFind" dlg:tab-index="0" dlg:left="5" dlg:top="15" dlg:width="126" dlg:height="12" dlg:tabstop="true"/>
+  <dlg:button dlg:id="butOK" dlg:tab-index="3" dlg:left="97" dlg:top="31" dlg:width="33" dlg:height="14" dlg:help-text="Applies the changes and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Find" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="1" dlg:left="60" dlg:top="31" dlg:width="33" dlg:height="14" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Close" dlg:button-type="cancel"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgHID.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgHID.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgHID.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgHID.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgHID" dlg:left="188" dlg:top="137" dlg:width="194" dlg:height="51" dlg:help-text="Inserts a help ID  help IDs" dlg:closeable="true" dlg:moveable="true" dlg:title="Insert Help IDs">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:text dlg:id="lbHID" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="30" dlg:height="8" dlg:value="Help ID" dlg:tabstop="false"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtHID" dlg:tab-index="1" dlg:left="5" dlg:top="15" dlg:width="183" dlg:height="12" dlg:help-text="Enter a Help ID" dlg:tabstop="true"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="3" dlg:left="157" dlg:top="34" dlg:width="32" dlg:height="12" dlg:help-text="Applies the changes and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="2" dlg:left="123" dlg:top="34" dlg:width="32" dlg:height="12" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:text dlg:id="Label1" dlg:tab-index="4" dlg:left="33" dlg:top="63" dlg:width="0" dlg:height="0" dlg:value="Label1"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgIND.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgIND.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgIND.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgIND.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgIND" dlg:left="188" dlg:top="137" dlg:width="250" dlg:height="142" dlg:help-text="Inserts Index entries (HINT: Press &lt;INS&gt; to insert)" dlg:closeable="true" dlg:moveable="true" dlg:title="Insert Index Entries">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtLevel1" dlg:tab-index="0" dlg:left="5" dlg:top="15" dlg:width="75" dlg:height="10" dlg:help-text="Insert the first level index" dlg:tabstop="true" dlg:value="&lt;Level 1&gt;">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.IND.KeyPressedAdd" script:language="StarBasic"/>
+  </dlg:textfield>
+  <dlg:menulist dlg:style-id="0" dlg:id="lbIND" dlg:tab-index="4" dlg:left="85" dlg:top="5" dlg:width="160" dlg:height="97" dlg:help-text="Index Entries in this bookmark." dlg:tabstop="true" dlg:multiselection="true">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.IND.KeyPressedRemove" script:language="StarBasic"/>
+  </dlg:menulist>
+  <dlg:button dlg:id="butAdd" dlg:tab-index="2" dlg:left="49" dlg:top="41" dlg:width="30" dlg:height="12" dlg:help-text="Adds the index entry to the list" dlg:tabstop="true" dlg:value="Add">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.IND.AddKeyStroke" script:language="StarBasic"/>
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.IND.AddIndexEntry" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtLevel2" dlg:tab-index="1" dlg:left="5" dlg:top="27" dlg:width="75" dlg:height="10" dlg:help-text="Insert the second level index (optional)" dlg:tabstop="true" dlg:value="&lt;Level 2&gt;">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.IND.KeyPressedAdd" script:language="StarBasic"/>
+  </dlg:textfield>
+  <dlg:text dlg:id="lbIndex" dlg:tab-index="3" dlg:left="5" dlg:top="5" dlg:width="72" dlg:height="8" dlg:value="Index Entry" dlg:tabstop="false"/>
+  <dlg:button dlg:id="butRemove" dlg:tab-index="5" dlg:left="189" dlg:top="103" dlg:width="55" dlg:height="12" dlg:help-text="Removes selected index entries from the list." dlg:tabstop="true" dlg:value="Remove Selected">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.IND.RemoveKeyStroke" script:language="StarBasic"/>
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.IND.RemoveIndexEntry" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="8" dlg:left="3" dlg:top="120" dlg:width="242" dlg:height="2"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="7" dlg:left="207" dlg:top="126" dlg:width="37" dlg:height="12" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="6" dlg:left="165" dlg:top="126" dlg:width="37" dlg:height="12" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:checkbox dlg:id="cbAddTag" dlg:tab-index="9" dlg:left="5" dlg:top="103" dlg:width="157" dlg:height="10" dlg:help-text="Adds surrounding bookmark tag with ids. Deselect if you want to add index entries to an existing bookmark." dlg:value="Add parent bookmark tag" dlg:checked="true"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgLink.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgLink.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgLink.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgLink.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgLink" dlg:left="188" dlg:top="135" dlg:width="162" dlg:height="56" dlg:closeable="true" dlg:moveable="true" dlg:title="Insert Link">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="CommandButton2" dlg:tab-index="2" dlg:left="66" dlg:top="57" dlg:width="1" dlg:height="0" dlg:value="CommandButton1"/>
+  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="3" dlg:left="5" dlg:top="31" dlg:width="151" dlg:height="3"/>
+  <dlg:text dlg:id="lblTarget" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="78" dlg:height="8" dlg:value="Link Target" dlg:tabstop="false"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="4" dlg:left="114" dlg:top="37" dlg:width="43" dlg:height="14" dlg:help-text="Inserts the comment and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="5" dlg:left="66" dlg:top="37" dlg:width="43" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtFilePath" dlg:tab-index="1" dlg:left="5" dlg:top="15" dlg:width="153" dlg:height="10" dlg:help-text="Enter file path here (beginning with &quot;text/&quot;)" dlg:tabstop="true" dlg:value="text/"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgMeta.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgMeta.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgMeta.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgMeta.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgMeta" dlg:left="188" dlg:top="137" dlg:width="197" dlg:height="81" dlg:help-url="help authoring;document root" dlg:closeable="true" dlg:moveable="true" dlg:title="Help File Meta Data">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="butGetTitle" dlg:tab-index="1" dlg:left="159" dlg:top="6" dlg:width="35" dlg:height="10" dlg:help-text="Fetches the first heading as document title" dlg:tabstop="true" dlg:value="Fetch">
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.Meta.FetchTopicTitle" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:text dlg:id="lbTopicTitle" dlg:tab-index="8" dlg:left="6" dlg:top="6" dlg:width="31" dlg:height="10" dlg:value="Topic Title" dlg:tabstop="false"/>
+  <dlg:text dlg:id="lbIndexer" dlg:tab-index="7" dlg:left="6" dlg:top="23" dlg:width="31" dlg:height="10" dlg:value="Indexing" dlg:tabstop="false"/>
+  <dlg:radiogroup>
+   <dlg:radio dlg:id="opIndexInclude" dlg:tab-index="2" dlg:left="41" dlg:top="22" dlg:width="55" dlg:height="10" dlg:help-text="Includes the file in the full text index. This is the default setting." dlg:tabstop="true" dlg:value="include (default)" dlg:checked="true"/>
+  </dlg:radiogroup>
+  <dlg:button dlg:id="butOk" dlg:tab-index="5" dlg:left="161" dlg:top="62" dlg:width="33" dlg:height="14" dlg:help-text="Applies the changes and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="4" dlg:left="124" dlg:top="62" dlg:width="33" dlg:height="14" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:default="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtTitle" dlg:tab-index="0" dlg:left="41" dlg:top="6" dlg:width="115" dlg:height="10" dlg:page="2" dlg:help-text="Insert a topic title here. Click &quot;Fetch&quot; to fetch the title from the help file heading.">
+   <script:event script:event-name="on-blur" script:location="application" script:macro-name="HelpAuthoring.Meta.NormalizeMeta" script:language="StarBasic"/>
+  </dlg:textfield>
+  <dlg:radiogroup>
+   <dlg:radio dlg:id="opIndexExclude" dlg:tab-index="3" dlg:left="100" dlg:top="22" dlg:width="92" dlg:height="10" dlg:help-text="Excludes the file from the full text index. The file contents will not be found via the full text help search." dlg:tabstop="true" dlg:value="exclude"/>
+  </dlg:radiogroup>
+  <dlg:text dlg:id="Label1" dlg:tab-index="9" dlg:left="6" dlg:top="41" dlg:width="31" dlg:height="10" dlg:value="Comments" dlg:tabstop="false"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtComment" dlg:tab-index="6" dlg:left="41" dlg:top="38" dlg:width="152" dlg:height="12" dlg:help-text="Comment on file creation (read-only)." dlg:tabstop="false"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgObjProp.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgObjProp.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgObjProp.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgObjProp.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgObjProp" dlg:left="100" dlg:top="100" dlg:width="168" dlg:height="347" dlg:closeable="true" dlg:moveable="true" dlg:title="Object Data">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtProp" dlg:tab-index="0" dlg:left="5" dlg:top="39" dlg:width="156" dlg:height="83" dlg:hard-linebreaks="true" dlg:hscroll="true" dlg:vscroll="true" dlg:multiline="true" dlg:readonly="true"/>
+  <dlg:text dlg:id="lbMethods" dlg:tab-index="3" dlg:left="5" dlg:top="126" dlg:width="84" dlg:height="10" dlg:value="Methods"/>
+  <dlg:text dlg:id="lbProperties" dlg:tab-index="2" dlg:left="5" dlg:top="27" dlg:width="84" dlg:height="10" dlg:value="Properties"/>
+  <dlg:text dlg:id="lbObject" dlg:tab-index="4" dlg:left="3" dlg:top="7" dlg:width="158" dlg:height="10" dlg:value="&lt;Object&gt;"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="5" dlg:left="115" dlg:top="326" dlg:width="45" dlg:height="16" dlg:default="true" dlg:value="Close" dlg:button-type="ok"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtMeth" dlg:tab-index="1" dlg:left="5" dlg:top="138" dlg:width="156" dlg:height="83" dlg:hard-linebreaks="true" dlg:hscroll="true" dlg:vscroll="true" dlg:multiline="true" dlg:readonly="true"/>
+  <dlg:text dlg:id="lblInterfaces" dlg:tab-index="6" dlg:left="5" dlg:top="227" dlg:width="84" dlg:height="10" dlg:value="Interfaces"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtInt" dlg:tab-index="7" dlg:left="5" dlg:top="239" dlg:width="156" dlg:height="83" dlg:hard-linebreaks="true" dlg:hscroll="true" dlg:vscroll="true" dlg:multiline="true" dlg:readonly="true"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgRepeatFind.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgRepeatFind.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgRepeatFind.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgRepeatFind.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgRepeatFind" dlg:left="188" dlg:top="135" dlg:width="65" dlg:height="42" dlg:closeable="true" dlg:moveable="true" dlg:title="Repeat Find">
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="butNext" dlg:tab-index="0" dlg:left="35" dlg:top="5" dlg:width="27" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="Next &gt;&gt;">
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.Find.FindNext" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:button dlg:id="butPrev" dlg:tab-index="1" dlg:left="5" dlg:top="5" dlg:width="27" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="&lt;&lt; Prev">
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.Find.FindPrev" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:button dlg:id="butClose" dlg:tab-index="2" dlg:left="5" dlg:top="21" dlg:width="57" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="Close" dlg:button-type="cancel"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgSwitch.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgSwitch.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgSwitch.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgSwitch.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgSwitch" dlg:left="188" dlg:top="137" dlg:width="145" dlg:height="62" dlg:closeable="true" dlg:moveable="true" dlg:title="Select Switch Type">
+ <dlg:bulletinboard>
+  <dlg:radiogroup>
+   <dlg:radio dlg:id="opSwitchSystem" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="136" dlg:height="10" dlg:help-text="Set a system (OS) switch" dlg:tabstop="true" dlg:value="System (WIN, UNIX...)" dlg:checked="true"/>
+   <dlg:radio dlg:id="opSwitchAppl" dlg:tab-index="1" dlg:left="5" dlg:top="15" dlg:width="136" dlg:height="10" dlg:help-text="Set an application switch" dlg:tabstop="true" dlg:value="Application (WRITER, CALC...)"/>
+   <dlg:radio dlg:id="opSwitchDistrib" dlg:tab-index="2" dlg:left="5" dlg:top="25" dlg:width="136" dlg:height="10" dlg:help-text="Set a distribution switch" dlg:tabstop="true" dlg:value="Distribution (OpenSource, Commercial)"/>
+  </dlg:radiogroup>
+  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="5" dlg:left="5" dlg:top="39" dlg:width="136" dlg:height="2"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="4" dlg:left="108" dlg:top="43" dlg:width="33" dlg:height="14" dlg:help-text="Applies the changes and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="3" dlg:left="71" dlg:top="43" dlg:width="33" dlg:height="14" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTOC.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTOC.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTOC.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTOC.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgTOC" dlg:left="188" dlg:top="135" dlg:width="291" dlg:height="150" dlg:closeable="true" dlg:moveable="true" dlg:title="Insert TOC Entries">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="butCancel" dlg:tab-index="6" dlg:left="207" dlg:top="134" dlg:width="37" dlg:height="12" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:button dlg:id="butOk" dlg:tab-index="7" dlg:left="249" dlg:top="134" dlg:width="37" dlg:height="12" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:checkbox dlg:id="cbAddTag" dlg:tab-index="4" dlg:left="5" dlg:top="112" dlg:width="157" dlg:height="10" dlg:help-text="Adds surrounding bookmark tag with ids. Deselect if you want to add index entries to an existing bookmark." dlg:tabstop="true" dlg:value="Add parent bookmark tag" dlg:checked="true"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtTOC" dlg:tab-index="1" dlg:left="5" dlg:top="15" dlg:width="238" dlg:height="12" dlg:help-text="Enter an entry for the TOC and click &quot;Add&quot;." dlg:tabstop="true"/>
+  <dlg:button dlg:id="butAdd" dlg:tab-index="2" dlg:left="247" dlg:top="15" dlg:width="37" dlg:height="12" dlg:tabstop="true" dlg:value="Add">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.TOC.AddKeyStroke" script:language="StarBasic"/>
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.TOC.AddTOCEntry" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:button dlg:id="CommandButton1" dlg:tab-index="5" dlg:left="231" dlg:top="112" dlg:width="55" dlg:height="12" dlg:help-text="Removes selected index entries from the list." dlg:tabstop="true" dlg:value="Remove Selected">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.TOC.RemoveKeyStroke" script:language="StarBasic"/>
+   <script:event script:event-name="on-mousedown" script:location="application" script:macro-name="HelpAuthoring.TOC.RemoveTOCEntry" script:language="StarBasic"/>
+  </dlg:button>
+  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="8" dlg:left="5" dlg:top="128" dlg:width="282" dlg:height="2"/>
+  <dlg:text dlg:id="lblTOC" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="53" dlg:height="10" dlg:value="TOC Entry" dlg:tabstop="false"/>
+  <dlg:menulist dlg:style-id="0" dlg:id="lbTOC" dlg:tab-index="3" dlg:left="5" dlg:top="31" dlg:width="281" dlg:height="77" dlg:help-text="Entries for the TOC." dlg:tabstop="true" dlg:multiselection="true">
+   <script:event script:event-name="on-keydown" script:location="application" script:macro-name="HelpAuthoring.TOC.KeyPressedRemove" script:language="StarBasic"/>
+  </dlg:menulist>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTable.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTable.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTable.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgTable.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgTable" dlg:left="188" dlg:top="137" dlg:width="87" dlg:height="68" dlg:closeable="true" dlg:moveable="true" dlg:title="Insert Table">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:text dlg:id="lblRows" dlg:tab-index="4" dlg:left="5" dlg:top="19" dlg:width="37" dlg:height="10" dlg:value="Rows" dlg:tabstop="false"/>
+  <dlg:text dlg:id="lblCols" dlg:tab-index="5" dlg:left="4" dlg:top="31" dlg:width="37" dlg:height="10" dlg:value="Columns" dlg:tabstop="false"/>
+  <dlg:button dlg:id="CommandButton1" dlg:tab-index="2" dlg:left="10" dlg:top="47" dlg:width="33" dlg:height="14" dlg:help-text="Closes the dialog without applying the changes" dlg:tabstop="true" dlg:value="Cancel" dlg:button-type="cancel"/>
+  <dlg:button dlg:id="CommandButton2" dlg:tab-index="3" dlg:left="48" dlg:top="47" dlg:width="33" dlg:height="14" dlg:help-text="Applies the changes and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Ok" dlg:button-type="ok"/>
+  <dlg:numericfield dlg:style-id="0" dlg:id="numRows" dlg:tab-index="0" dlg:left="44" dlg:top="19" dlg:width="22" dlg:height="10" dlg:help-text="Enter the number of table rows" dlg:tabstop="true" dlg:decimal-accuracy="0" dlg:value="1" dlg:value-min="1" dlg:value-max="100"/>
+  <dlg:numericfield dlg:style-id="0" dlg:id="numCols" dlg:tab-index="1" dlg:left="44" dlg:top="31" dlg:width="22" dlg:height="10" dlg:help-text="Enter the number of table columns" dlg:tabstop="true" dlg:decimal-accuracy="0" dlg:value="1" dlg:value-min="1" dlg:value-max="100"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgWarn.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgWarn.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgWarn.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlgWarn.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlgWarn" dlg:left="188" dlg:top="135" dlg:width="170" dlg:height="121" dlg:closeable="true" dlg:moveable="true" dlg:title="Warning">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:background-color="0xe6e6e6" dlg:border="none"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="butTerminate" dlg:tab-index="1" dlg:left="95" dlg:top="86" dlg:width="70" dlg:height="14" dlg:tabstop="true" dlg:value="Terminate Validation" dlg:button-type="cancel"/>
+  <dlg:button dlg:id="butIgnore" dlg:tab-index="2" dlg:left="95" dlg:top="103" dlg:width="70" dlg:height="14" dlg:tabstop="true" dlg:default="true" dlg:value="Ignore and Continue" dlg:button-type="ok"/>
+  <dlg:textfield dlg:style-id="0" dlg:id="txtSolution" dlg:tab-index="3" dlg:disabled="true" dlg:left="5" dlg:top="25" dlg:width="161" dlg:height="54" dlg:tabstop="false" dlg:multiline="true" dlg:readonly="true"/>
+  <dlg:text dlg:id="txtWarning" dlg:tab-index="4" dlg:left="5" dlg:top="5" dlg:width="162" dlg:height="14"/>
+  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="5" dlg:left="5" dlg:top="19" dlg:width="162" dlg:height="6"/>
+  <dlg:checkbox dlg:id="cbWarn" dlg:tab-index="0" dlg:left="8" dlg:top="104" dlg:width="84" dlg:height="10" dlg:help-text="Disables warnings for this validation" dlg:tabstop="true" dlg:value="Switch off warnings" dlg:checked="false"/>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlg_BrowseEmbed.xdl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlg_BrowseEmbed.xdl?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlg_BrowseEmbed.xdl (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/dlg_BrowseEmbed.xdl Sun Sep 18 21:34:39 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="dlg_BrowseEmbed" dlg:left="0" dlg:top="0" dlg:width="283" dlg:height="134" dlg:closeable="true" dlg:moveable="true" dlg:title="Sections/Variables/Paragraphs">
+ <dlg:styles>
+  <dlg:style dlg:style-id="0" dlg:border="simple" dlg:font-name="Monospace" dlg:font-stylename="Regular"/>
+ </dlg:styles>
+ <dlg:bulletinboard>
+  <dlg:button dlg:id="butClose" dlg:tab-index="6" dlg:left="229" dlg:top="112" dlg:width="43" dlg:height="14" dlg:help-text="Closes the dialog without inserting the comment" dlg:tabstop="true" dlg:value="Close" dlg:button-type="cancel"/>
+  <dlg:button dlg:id="butSelect" dlg:tab-index="4" dlg:disabled="true" dlg:left="229" dlg:top="94" dlg:width="43" dlg:height="14" dlg:help-text="Inserts the comment and closes the dialog" dlg:tabstop="true" dlg:default="true" dlg:value="Select" dlg:button-type="ok"/>
+  <dlg:radiogroup>
+   <dlg:radio dlg:id="opSections" dlg:tab-index="1" dlg:left="230" dlg:top="15" dlg:width="35" dlg:height="10" dlg:help-text="Select this if the embedded item is a section (default)" dlg:tabstop="true" dlg:value="Sections" dlg:checked="true">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Embed.UpdateLIst" script:language="StarBasic"/>
+   </dlg:radio>
+   <dlg:radio dlg:id="opVariables" dlg:tab-index="2" dlg:left="230" dlg:top="25" dlg:width="35" dlg:height="10" dlg:help-text="Select this if the embedded item is an inline variable." dlg:tabstop="true" dlg:value="Variables">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Embed.UpdateLIst" script:language="StarBasic"/>
+   </dlg:radio>
+   <dlg:radio dlg:id="opParas" dlg:tab-index="3" dlg:left="230" dlg:top="35" dlg:width="45" dlg:height="10" dlg:help-text="Select this if the embedded item is an inline variable." dlg:tabstop="true" dlg:value="Paragraphs">
+    <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Embed.UpdateLIst" script:language="StarBasic"/>
+   </dlg:radio>
+  </dlg:radiogroup>
+  <dlg:text dlg:id="lblShow" dlg:tab-index="5" dlg:left="230" dlg:top="7" dlg:width="39" dlg:height="8" dlg:value="Show:"/>
+  <dlg:menulist dlg:style-id="0" dlg:id="lbElements" dlg:tab-index="0" dlg:left="5" dlg:top="5" dlg:width="215" dlg:height="123" dlg:tabstop="true">
+   <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="HelpAuthoring.Embed.CheckButton" script:language="StarBasic"/>
+  </dlg:menulist>
+ </dlg:bulletinboard>
+</dlg:window>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/script.xlb
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/script.xlb?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/script.xlb (added)
+++ incubator/ooo/trunk/main/helpauthoring/HelpAuthoring/script.xlb Sun Sep 18 21:34:39 2011
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="HelpAuthoring" library:readonly="false" library:passwordprotected="false">
+ <library:element library:name="_Main"/>
+ <library:element library:name="Helpers"/>
+ <library:element library:name="Meta"/>
+ <library:element library:name="HID"/>
+ <library:element library:name="IND"/>
+ <library:element library:name="Comment"/>
+ <library:element library:name="TOC"/>
+ <library:element library:name="Embed"/>
+ <library:element library:name="OtherElements"/>
+ <library:element library:name="Switch"/>
+ <library:element library:name="Table"/>
+ <library:element library:name="Validate"/>
+ <library:element library:name="Find"/>
+ <library:element library:name="Link"/>
+</library:library>
\ No newline at end of file

Added: incubator/ooo/trunk/main/helpauthoring/META-INF/manifest.xml
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/META-INF/manifest.xml?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/META-INF/manifest.xml (added)
+++ incubator/ooo/trunk/main/helpauthoring/META-INF/manifest.xml Sun Sep 18 21:34:39 2011
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest>
+        <manifest:file-entry manifest:full-path="HelpAuthoring/" manifest:media-type="application/vnd.sun.star.basic-library"/>
+        <manifest:file-entry manifest:media-type="application/vnd.sun.star.help" manifest:full-path="help"/>
+        <manifest:file-entry manifest:full-path="Type.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
+        <manifest:file-entry manifest:full-path="Filter.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
+        <manifest:file-entry manifest:full-path="Addons.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
+        <manifest:file-entry manifest:full-path="Paths.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
+</manifest:manifest>

Added: incubator/ooo/trunk/main/helpauthoring/Paths.xcu
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/Paths.xcu?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/Paths.xcu (added)
+++ incubator/ooo/trunk/main/helpauthoring/Paths.xcu Sun Sep 18 21:34:39 2011
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<oor:component-data oor:package="org.openoffice.Office"
+    oor:name="Paths" xmlns:install="http://openoffice.org/2004/installation"
+    xmlns:oor="http://openoffice.org/2001/registry"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+	<node oor:name="Paths">
+
+		<node oor:name="Template" oor:op="fuse">
+			<node oor:name="InternalPaths">
+				<node oor:name="%origin%/template" oor:op="fuse"/>
+			</node>
+		</node>
+
+	</node>
+</oor:component-data>

Added: incubator/ooo/trunk/main/helpauthoring/Type.xcu
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/Type.xcu?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/Type.xcu (added)
+++ incubator/ooo/trunk/main/helpauthoring/Type.xcu Sun Sep 18 21:34:39 2011
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
+<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Types">
+	<node oor:name="Types">
+        <node oor:name="XHP_Help" oor:op="replace" >
+                <prop oor:name="Extensions"><value>xhp</value></prop>
+                <prop oor:name="UIName"><value>Help (xhp)</value></prop>
+                <prop oor:name="DetectService"/>
+                <prop oor:name="URLPattern"/>
+                <prop oor:name="MediaType"><value>application/text-xhp</value></prop>
+                <prop oor:name="Preferred"><value>true</value></prop>
+                <prop oor:name="PreferredFilter"><value>XHP_Help</value></prop>
+                <prop oor:name="ClipboardFormat"/>
+        </node>
+        </node>
+</oor:component-data>

Added: incubator/ooo/trunk/main/helpauthoring/description.xml
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/helpauthoring/description.xml?rev=1172372&view=auto
==============================================================================
--- incubator/ooo/trunk/main/helpauthoring/description.xml (added)
+++ incubator/ooo/trunk/main/helpauthoring/description.xml Sun Sep 18 21:34:39 2011
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:d="http://openoffice.org/extensions/description/2006"
+			 xmlns:xlink="http://www.w3.org/1999/xlink">
+
+        <identifier value="org.openoffice.helpauthoring"/>
+
+        <version value="3.0-20100805"/>
+
+	<dependencies>
+                <OpenOffice.org-minimal-version value="3.0" d:name="OpenOffice.org 3.0"/>
+	</dependencies>
+
+	<update-information>
+	</update-information>
+
+</description>
+



Mime
View raw message