On Tue, Dec 12, 2017 at 03:53:41PM +0100, Michael Stahl wrote:
> On 12.12.2017 14:22, Jens Tröger wrote:
> > Michael, I the case you describe would I not see the same UNO object
> > address for the same paragraph in the document? But iterating over the
> > ToC’s paragraphs as described previously
Disclaimer: I have not taken the time to look at the problem, but, if
you have a text range, or have the ability to get a text range out of
what you have, then you can compare the starting and ending positions.
You might need to create a text cursor from the range to do this. I do
not have th
On 12.12.2017 14:22, Jens Tröger wrote:
> Michael, I the case you describe would I not see the same UNO object address
> for the same paragraph in the document? But iterating over the ToC’s
> paragraphs as described previously in this thread, I get for the index view:
>
> pyuno object
> (co
Michael, I the case you describe would I not see the same UNO object address
for the same paragraph in the document? But iterating over the ToC’s paragraphs
as described previously in this thread, I get for the index view:
pyuno object
(com.sun.star.text.XTextContent)0x7feddb8d2638{implemen
On 12.12.2017 11:04, Jens Tröger wrote:
> Thanks Miklos!
>
> Interesting detail though: for any number of XTextContent objects (i.e.
> paragraphs with implementationName=SwXParagraph) which represent _the same_
> paragraph in the document, there’s no real way to tell that these objects do,
> in
Thanks Miklos!
Interesting detail though: for any number of XTextContent objects (i.e.
paragraphs with implementationName=SwXParagraph) which represent _the same_
paragraph in the document, there’s no real way to tell that these objects do,
in fact, represent the same paragraph?
Huh. Cheers,
J
Hi Jens,
On Mon, Dec 11, 2017 at 11:32:49PM +0100, Jens Tröger
wrote:
> How can I correlate these index_par objects with the paragraphs that I
> visit using the document's paragraph enumeration:
>
> parenum = document.Text.createEnumeration()
>
Hi Mikos,
Thank you for your emails and suggestions thus far. I've played around
with this some more and one question remains.
If I get the actual index object:
indeces = document.getDocumentIndexes()
toc = indeces.getByName('Table of Content1') # Assume it exists!
and then I create a text
I did file a bug: https://bugs.documentfoundation.org/show_bug.cgi?id=114363
I wouldn’t know where to start fixing the bug though… 🤔
Cheers,
Jens
> On Dec 11, 2017, at 17:42, Mike Kaganski wrote:
>
> On 12/11/2017 10:40 AM, Miklos Vajna wrote:
>> Hi,
>> On Fri, Dec 08, 2017 at 10:19:29AM +010
On 12/11/2017 10:40 AM, Miklos Vajna wrote:
Hi,
On Fri, Dec 08, 2017 at 10:19:29AM +0100, Jens Tröger
wrote:
Same happens for 5.4.3.2 and 6.0 (dev) as well. I've got a tiny test
DOCX here which demonstrates the problem, should I file a bug? Also, it
seems to happen only for top-level entrie
Hi,
On Fri, Dec 08, 2017 at 10:19:29AM +0100, Jens Tröger
wrote:
> Same happens for 5.4.3.2 and 6.0 (dev) as well. I've got a tiny test
> DOCX here which demonstrates the problem, should I file a bug? Also, it
> seems to happen only for top-level entries (i.e. Heading 1) but deeper
> nested on
On Fri, Dec 08, 2017 at 10:03:57AM +0100, Miklos Vajna wrote:
> […]
>
> > Second, calling update() _duplicated_ each and every entry in the ToC
> > which looks like a bug to me (LO 5.3.6.1)…
>
> 5.3 is quite old, almost EOL; to discuss problems on this dev list, the
> best is if you first try yo
Hi,
On Thu, Dec 07, 2017 at 07:51:56PM +0100, Jens Tröger
wrote:
> Two things. First, I had to call update() on the ToC document index
> object in order to get all links in the document.
Aha, sounds like the two questions from your previous mail are for the
ToC object which is created from the
Two things. First, I had to call update() on the ToC document index
object in order to get all links in the document. Second, calling
update() _duplicated_ each and every entry in the ToC which looks like a
bug to me (LO 5.3.6.1)…
I’m still curious though: iterating over the paragraphs, is there
Thanks Miklos,
Actually, what I find odd is that I don’t see any `text.HyperLinkURL`
attributes with internal references—all text portions in paragraphs of the ToC
are empty strings.
Yet, the document does have a ToC index object, but I somehow I can’t associate
that object with the text parag
Hi Jens,
On Thu, Dec 07, 2017 at 06:04:08AM +0100, Jens Tröger
wrote:
> While walking all paragraphs of a Writer document and visiting their text
> content, I come across text portions (the Heading N) which have Bookmarks
> whose name is something like “_Toc263250771”. However, when I walk the
Hello,
While walking all paragraphs of a Writer document and visiting their text
content, I come across text portions (the Heading N) which have Bookmarks
whose name is something like “_Toc263250771”. However, when I walk the
paragraphs and text portions that actually make up the ToC of the docum
17 matches
Mail list logo