Re: [dev] Styles not updating from linked template

2006-03-23 Thread Cor Nouws

Hi Laurent,

Laurent Godard wrote:

A firm with 40 people, say 2 open-docs each a day, using 2.0.2 for 3 
months  ... that makes 6400 documents only ;-)



(pls note that I work 16 weeks in three months :-)


this is why i suggested an easy to use addon for end-users


Indeed.
You mean an addon automatically detecting the state of an active 
document and doing the repair?


Cor





--
Cor Nouws
www.nouenoff.nl - www.bsooo.nl - http://nl.openoffice.org
Open. For business.

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



Re: [dev] Styles not updating from linked template

2006-03-22 Thread Laurent Godard

Hi Mathias


This strange looking macro will set an internal switch in the document
meta data that enables the template update procedure.
BTW: the same macro will re-enable the update procedure in case you have
switched it off by answering the question do you want to update your
styles with No.



yes it is strange :-)
some magics behind ;-)


You can execute this macro on every document if you want (e.g. by
assigning it to the OnLoad event on application level), if the
document is not based on a template it will not be modified by this macro.



Do you think an addon would be valuable ?
With a macro looping over all opened documents for example
(the OnLMoad event is not applicable in this case unless chosen by user)

Laurent

--
Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org
Indesko  http://www.indesko.com
Nuxeo CPS  http://www.nuxeo.com - http://www.cps-project.org
Livre Programmation OpenOffice.org, Eyrolles 2004

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



Re: [dev] Styles not updating from linked template

2006-03-21 Thread Mikhail Voitenko
Hi Jean,

The problems seems not to be reported till now.
I have just submitted a new issue for the problem you have described:
http://www.openoffice.org/issues/show_bug.cgi?id=63440

Thanks,
Mikhail.

Jean Hollis Weber wrote:
 If this is not the right list for this question, please let me 
 know where to ask it. I was directed here from the OOoAuthors 
 list by Rick Barnes.
 
 Someone on the Writer forum reported this: the message you used
 to get when opening a document linked to a template, asking if
 you wanted to apply your current styles (after the styles in
 the template were changed), no longer appears in OOo2.0.2, and
 there seems to be no way to have the document's styles update if
 you want it to. I have confirmed this, but I don't know when the
 function (and the message) disappeared from OOo, because I
 haven't used linked templates since 1.1.x.
 
 Does anyone on this list know if this problem has been reported
 and if so, what the issue number is? (I can never find anything
 by searching IssueTracker.) I certainly hope it wasn't a
 deliberate omission, because this is a very important feature for
 many people, esp. those involved in a group project such as
 writing chapters of a book.
 
 Thanks! -- Jean
 
 -
 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]



Re: [dev] Styles not updating from linked template

2006-03-21 Thread Mathias Bauer
Mikhail Voitenko wrote:

 Hi Jean,
 
 The problems seems not to be reported till now.
 I have just submitted a new issue for the problem you have described:
 http://www.openoffice.org/issues/show_bug.cgi?id=63440

The problem lies in documents created with OOo2.0.2. A fix will be
available for 2.0.3. You will have to fix documents created with 2.0.2
though because the fix only can prevent the creation of further
documents containing the error. Fortunately you can fix your documents
already now and get the updating procedure back. Please do it in the
following way:

Load the document you want to fix, execute the following macro on it:

Sub FixDocument
  TemplateName = ThisComponent.DocumentInfo.Template
  if TemplateName   then
ThisComponent.DocumentInfo.Template = TemplateName
  end if
End Sub

and then save the document. Next time when you open this document you
will have the update from template feature back.

This strange looking macro will set an internal switch in the document
meta data that enables the template update procedure.
BTW: the same macro will re-enable the update procedure in case you have
switched it off by answering the question do you want to update your
styles with No.

You can execute this macro on every document if you want (e.g. by
assigning it to the OnLoad event on application level), if the
document is not based on a template it will not be modified by this macro.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

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