Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Not really, Tom. It may sound crazy to some but it doesn't to me.
It all depends on what you need to achieve.

In my case, we're generating odt docs in a webdav repository and serving them to LO clients.
We want the clients to always save to the same location, same file name. It wouldn't make any sense 
at all to "save as" and would only give us problems.
No problems with backups either or file formats.

So, in short, it's not crazy.

Still, you're not suggesting how to do it for the "save" event. I believe that associating a macro 
to an event doesn't disable that event to be executed but it "adds" the macro function to whatever 
event you're linking to. So I can't really override that event with a macro.

So basically my question is the following (stripping out stuff that might sound crazy):

How do I override an "event" and replace it with a macro.

Simple example (a tad crazy): user clicks "save" toolbar button and macro prints a "hello world" 
message BUT file is not saved. 

Sounds simple... but haven't got the hang of it yet.

Thanks,

Vieri


--- On Tue, 6/11/13, Tom Davies <tomdavies04@yahoo.co.uk> wrote:

Hi :)
Errr, that seems like a fairly crazy thing to do.  Surely
the opposite would be better?  Normal save overwrites the
previous version of the document and makes it difficult to
create back-ups.  Plus it restricts what formats can be
used.  If someone opens a document in some stupid format
such as DocX it would be advantageous to save in something
more reliable and longer-lasting

Sorry chap!
Apols and regards from 
Tom :)  





________________________________
From: Vieri <rentorbuy@yahoo.com>
To: users@global.libreoffice.org

Sent: Tuesday, 11 June 2013, 8:36
Subject: [libreoffice-users] disable "save as" in odt
document


Hi,

I'm trying to do something apparently quite simple.
I'd like to disable the "save as" button in toolbar and
menu and leave the "save" action enabled.
In other words, I'd like the user to just be able to
"save" and not "save as".

How can I do this?

I tried setting a custom macro so it's associated to the
"save as" event. I'd save the macro in the .odt (not
application-wide). All's well except for the fact that when
the user tries to "save as" then the custom macro is called
AND the normal "save as" process is also called. My custom
macro just prints a message on the screen saying something
like "Please SAVE, don't SAVE AS". How can I "block" LO from
my macro so it doesn't continue with the standard "save as"
procedure?

I tried deleting the "save as" entries from the
Tools->customize sections but it seems to remove "save
as" at the app level, not at the document level.

Any suggestions greatly appreciated,

Vieri



-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and
cannot be deleted



-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.