OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

saving point

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
jelaih
OOo Enthusiast
OOo Enthusiast


Joined: 23 Feb 2005
Posts: 152

PostPosted: Thu Apr 20, 2006 10:10 pm    Post subject: saving point Reply with quote

Hello,
Is there a way to go back to a certain saving point in a document, whether the last saving point or the fisrt saving point? Somewhat a special type of UNDO?

I am using 1.1.4, WinXP

Hope somebody knows. Thanks!
_________________
codebits... Smile
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Thu Apr 20, 2006 11:13 pm    Post subject: Re: saving point Reply with quote

jelaih wrote:
Hope somebody knows.

Never heard or read about a feature like that. So I would say, there is none.

With kind regards
hol.sten
Back to top
View user's profile Send private message
9point9
Moderator
Moderator


Joined: 31 Aug 2004
Posts: 3875
Location: UK

PostPosted: Thu Apr 20, 2006 11:28 pm    Post subject: Reply with quote

Check every version into a change control system. SVN would be good. If you could then write macros to check it in with every save it would be very good.
_________________
Arch Linux
OOo 3.2.0

OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/
Back to top
View user's profile Send private message Visit poster's website
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Fri Apr 21, 2006 11:36 am    Post subject: Reply with quote

OOo has a Versions capability build in.

Create document and save it (this will enable File > Versions) . Click File > Versions and check Always save...

The part I need to remember is that in order to make a version of the original you need to click the Save New Version button (you do not need to put anything in the pop up box).

After this initial version is stored you have 2 options. Anytime you are editing you can go back to the Versions dialog and save a version or if you simply close the document a version will be saved. A simple Save will not create a version.

Old versions can be compared to the current version and edits can be accepted or rejected.

Old versions can be opened as read only but you can Save As them.
Back to top
View user's profile Send private message
jelaih
OOo Enthusiast
OOo Enthusiast


Joined: 23 Feb 2005
Posts: 152

PostPosted: Fri Apr 21, 2006 8:57 pm    Post subject: Reply with quote

hi johnv, thanks! I learned something new from you.

Do you, by any chance, know where OOo stores the versions of the each file or it was cached on its memory? I would like to know path/directory. I think I will be needing this for the macro I want to make.

Thanks again!
_________________
codebits... Smile
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Sat Apr 22, 2006 2:37 am    Post subject: Reply with quote

jelaih wrote:
I learned something new from you.

Me too Smile

jelaih wrote:
Do you, by any chance, know where OOo stores the versions of the each file

Inside the file itself. Try to open your versioned file with a zip tool (like 7zip). Besides the files you see there regularly, you'll find a folder "versions". Inside this folder you'll find files named "version1", "version2", ... Unzip this "versionX" files too and you'll see that they are regular OOo files, although they have no regular OOo extension. So if you want to use this files inside a macro, it looks to me that you have to do a tough unzipping job.

With kind regards
hol.sten
Back to top
View user's profile Send private message
jelaih
OOo Enthusiast
OOo Enthusiast


Joined: 23 Feb 2005
Posts: 152

PostPosted: Sun Apr 23, 2006 11:49 pm    Post subject: Reply with quote

wow!thanks hol.sten =) I learned something new from you too.. =)

Unzipping wouldn't be a problem anymore, what bothers me is that I want to automatically "Save New Version" without going to File->Versions...Was there an available command or dispatch inorder to run versioning?

For example, After running a macro that will put emphasis to a certain part in my document, I want my macro to automatically "Save New Version" without clicking on the dialog box from the Menu File =) So that if I make necesarry changes afterwards, It would be easier for me to go back to my previous saving point =)

Is that possible?
_________________
codebits... Smile
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon Apr 24, 2006 7:58 am    Post subject: Reply with quote

You can record a macro to do this automatically. It does not open the comment window so you will only get the date, time and author.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group