To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=43354


User af changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |STARTED
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Wed Dec  3 16:51:37 +0000 
2008 -------
I have now a working fix that is not perfect but maybe good enough.  I would
like to know if there are any objections against it.

Here are the details:
-Add a flag, which I called "precious" to SdPage to mark master pages which must
not be deleted automatically.  By default this flag is on.

-Master pages that come from template documents are marked as not precious so
that they (well, their copies in the current document) can be deleted 
automatically.

-When a master page is modified in any way (well in any way that makes the
document send a SFX_HINT_DOCCHANGED) it is marked as precious and thus is
protected from automatic deletion.

-The precious flag is only temporary.  That means that all master pages of a
document loaded from a file are marked as precious, even the ones that originate
from a template document and are unmodified.

-In order to be able to delete unused master pages that are marked as precious,
the context menu of the "Used in This Presentation" panel is extended by a
"Delete Master" entry.  It is active only for unused master pages regardless of
the precious flag.  Oh, and it deletes the master page for which the context
menu is opened.


Consequences:
-Master pages loaded from a file are not deleted automatically.

-Master pages that are modified are not deleted automatically.

-When you click through the available master pages only the last one remains in
the document.  Other master pages from templates are deleted (until the document
is saved, of course).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to