Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CleanUp headers #21

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions LibreOfficeWriter.au3
Original file line number Diff line number Diff line change
Expand Up @@ -1345,31 +1345,6 @@ Func _LOWriter_EndnotesGetList(ByRef $oDoc)
Return ($iCount > 0) ? SetError($__LOW_STATUS_SUCCESS, $iCount, $aoEndnotes) : SetError($__LOW_STATUS_SUCCESS, 0, 1)
EndFunc ;==>_LOWriter_EndnotesGetList

; #FUNCTION# ====================================================================================================================
; Name ..........: _LOWriter_FontExists
; Description ...: Tests whether a Document has a specific font available by name.
; Syntax ........: _LOWriter_FontExists(Byref $oDoc, $sFontName)
; Parameters ....: $oDoc - [in/out] an object. A Document object returned by previous DocOpen, DocConnect, or
; + DocCreate function.
; $sFontName - a string value. The Font name to search for.
; Return values .: Success: Boolean.
; Failure: 0 and sets the @Error and @Extended flags to non-zero.
; --Input Errors--
; @Error 1 @Extended 1 Return 0 = $oDoc not an Object.
; @Error 1 @Extended 2 Return 0 = $sFontName not a String.
; --Initialization Errors--
; @Error 2 @Extended 1 Return 0 = Failed to retrieve Font list.
; --Success--
; @Error 0 @Extended 0 Return Boolean = Success. Returns True if Font is contained in the document, else
; + False.
; Author ........: donnyh13
; Modified ......:
; Remarks .......: This function may cause a processor usage spike for a moment or two. If you wish to eliminate this, comment
; out the current sleep function and place a sleep(10) in its place.
; Related .......:
; Link ..........:
; Example .......: Yes
; ===============================================================================================================================
; #FUNCTION# ====================================================================================================================
; Name ..........: _LOWriter_FootnoteDelete
; Description ...: Delete a Footnote.
Expand Down
25 changes: 25 additions & 0 deletions LibreOfficeWriter_Font.au3
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@
;_LOWriter_FontsList
; ===============================================================================================================================

; #FUNCTION# ====================================================================================================================
; Name ..........: _LOWriter_FontExists
; Description ...: Tests whether a Document has a specific font available by name.
; Syntax ........: _LOWriter_FontExists(Byref $oDoc, $sFontName)
; Parameters ....: $oDoc - [in/out] an object. A Document object returned by previous DocOpen, DocConnect, or
; + DocCreate function.
; $sFontName - a string value. The Font name to search for.
; Return values .: Success: Boolean.
; Failure: 0 and sets the @Error and @Extended flags to non-zero.
; --Input Errors--
; @Error 1 @Extended 1 Return 0 = $oDoc not an Object.
; @Error 1 @Extended 2 Return 0 = $sFontName not a String.
; --Initialization Errors--
; @Error 2 @Extended 1 Return 0 = Failed to retrieve Font list.
; --Success--
; @Error 0 @Extended 0 Return Boolean = Success. Returns True if Font is contained in the document, else
; + False.
; Author ........: donnyh13
; Modified ......:
; Remarks .......: This function may cause a processor usage spike for a moment or two. If you wish to eliminate this, comment
; out the current sleep function and place a sleep(10) in its place.
; Related .......:
; Link ..........:
; Example .......: Yes
; ===============================================================================================================================
Func _LOWriter_FontExists(ByRef $oDoc, $sFontName)
Local $oCOM_ErrorHandler = ObjEvent("AutoIt.Error", __LOWriter_InternalComErrorHandler)
#forceref $oCOM_ErrorHandler
Expand Down