Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-09-04 Thread Thorsten Behrens
Mohammad Elahi wrote: > A link which I found exactly elaborate it: > http://wiki.services.openoffice.org/wiki/Number_labels#Label_generation_in_WW > Any way do not know whether it has been implemented, I didn't find any thing > in "Open Document Format for Office Applications (OpenDocument) Version

[Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-09-01 Thread Mohammad Elahi
Hi Michael Instead - I suggest you hack up a patch for the export filter, and > we'll get Thorsten to review that and/or turn it into an ODF extension / > proposal. > >How does that sound ? > Yes, that sounds good ;) Thanks -Elahi ___ Lib

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-09-01 Thread Michael Meeks
On Tue, 2011-08-30 at 20:24 +0430, Mohammad Elahi wrote: > But odt is a standard, can I add any property to it? Certainly - it is polite to go the standards route and propose an addition / change there to improve interop. However - I'd strongly recommend avoiding getting bogged down in th

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-31 Thread Mohammad Elahi
Hi Kohei First, let me also CC Thorsten as he is also on the TC and is more > active than I. > OK, thanks. > Can you explain in detail what actual file format change you propose, > and how it is to be used with specific use cases, using real world use > cases. The description you gave above is

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-31 Thread Kohei Yoshida
On Wed, 2011-08-31 at 00:12 +0430, Mohammad Elahi wrote: > Hi Kohei > > I was trying to make outline numbering in libreoffice more flexible by > using a string to format > numbers based on it. To use some escaped strings to represend number > from different levels. > maybe something like %0 for le

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-30 Thread Mohammad Elahi
Hi Kohei I was trying to make outline numbering in libreoffice more flexible by using a string to format numbers based on it. To use some escaped strings to represend number from different levels. maybe something like %0 for level 1 number and so on; But ODT standard lacks support for such a field

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-30 Thread Eike Rathke
Hi Mohammad, On Tuesday, 2011-08-30 20:24:18 +0430, Mohammad Elahi wrote: > > How is this made persistent, i.e. stored in a document? > > It is not persistent yet. > I think docx has the property appropriate to use for making it persistent, > but I know no such a property > in odt, it needs addi

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-30 Thread Mohammad Elahi
Hi Eike > Looks good from a first glance at the code. One question occurred to me: > How is this made persistent, i.e. stored in a document? > It is not persistent yet. I think docx has the property appropriate to use for making it persistent, but I know no such a property in odt, it needs addi

Re: [Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-30 Thread Eike Rathke
Hi Mohammad, On Tuesday, 2011-08-30 02:41:05 +0430, Mohammad Elahi wrote: > This patch is a try to make outline numbering more flexible. I just want to > know the feedback of community. Looks good from a first glance at the code. One question occurred to me: How is this made persistent, i.e. sto

[Libreoffice] [PATCH] Use a custom string to make numbering more flexible

2011-08-29 Thread Mohammad Elahi
This patch is a try to make outline numbering more flexible. I just want to know the feedback of community. To make outline numbering more flexible, a LabelText property is added to SvxNumberFormat and some elements to ui. So if the LabelText is not empty, governs the format of numbering. The plac