https://bz.apache.org/ooo/show_bug.cgi?id=126667

--- Comment #2 from mroe <[email protected]> ---
(In reply to orcmid from comment #1)
> There is an already-available approach on Micosoft Windows.  The built-in
> WordPad utility has a "Date and Time" button.


Maybe AOO can adapt the Windows Notepad feature:
| Notepad also has a simple built-in logging function.
| Each time a file that starts with .LOG is opened,
| the program inserts a text timestamp on the last line of the file.

see: https://en.wikipedia.org/wiki/Notepad_%28software%29
or simply try.

> I suppose macros could be used for this.  There might be some already.  That
> does require more expertise and not be easy to find/use by casual users.

A simple sample:

Sub InsertTimeStamp_mr()
    Dim oDoc As Object
    Dim oController As Object
    Dim oCursor As Object
    oDoc = ThisComponent
    oController = oDoc.getCurrentController()
    oCursor = oController.getViewCursor()
    oCursor.gotoEnd( FALSE )
    oCursor.setString( chr( 13 ) & Now() )
    oCursor.gotoEnd( FALSE )
End Sub

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to