Fai la tua domanda

# lomacar's profile - attività

 2020-05-01 22:26:53 +0200 received badge ● Domande famose (source) 2020-04-30 16:46:13 +0200 received badge ● Domanda gettonata (source) 2020-02-14 08:54:42 +0200 ha modificato una domanda Speed up macro insertion of many text frames Macro: combine text frames for faster insertion I have a macro that inserts a lot of text frames and adds text in each f 2020-02-14 08:52:57 +0200 ha modificato una risposta Speed up macro insertion of many text frames This answer on another question changed my life! https://ask.libreoffice.org/en/question/150701/how-to-disable-screen-up 2020-02-14 08:50:19 +0200 ha accettato una risposta Speed up macro insertion of many text frames I have a macro that inserts a lot of text frames and adds text in each frame as it goes along and applies styles to the text and whatnot (see code mockup below). The problem is, it runs rather slowly. It takes about 5 seconds to insert 15-20 frames, and I figure that is because it is manipulating the Writer document as it is going along inserting each frame. Is there a way to build all the frames and manipulate their contents and then insert them all at once into the document? And would that actually speed things up? I tried moving the insertion command to the end, but then the macro crashed at "oFrame.Text.String =". (This happens inside a for-loop.) oFrame = ThisComponent.createInstance( "com.sun.star.text.TextFrame" ) oFrame.widthType = 0 oFrame.FrameStyleName = "My Special Frame" oFrame.Text.AnchorType = com.sun.star.text.TextContentAnchorType.AS_CHARACTER oFrame.Text.VertOrient = 7 ... ... ... ThisComponent.Text.insertTextContent( viewCursor.Start, oFrame, false ) oFrame.Text.String = "[important stuff]" [do stuff to the text in the frame]  UPDATE: This question doesn't really matter so much anymore, because it seems like LibreOffice was just being slow for no reason. After restarting, my existing code runs much faster. UPDATE2: The macro does slow down a lot when the document gets larger. 2020-02-13 22:30:59 +0200 ha modificato una domanda Speed up macro insertion of many text frames Macro: combine text frames for faster insertion I have a macro that inserts a lot of text frames and adds text in each f 2020-01-26 07:44:53 +0200 received badge ● Domanda notevole (source) 2020-01-26 00:24:38 +0200 ha accettato una risposta unable to continue numbering I have been working on a paper for the last few years that is at 210 pages now. It uses a paragraph style called Ex. (as in 'example'), which is set to use the numbering style Numbering 123. It has worked flawlessly this whole time. The numbers automatically count up sequentially, and at the beginning of each new chapter I manually tell the numbering to restart. I recently upgraded from 6.2.0 to 6.3.4, and suddenly for the first time I had a case where the numbering restarted at (1) without my approval. I was able to manually tell it to continue previous numbering, but it caused a disturbing chain reaction where I had to tell each following numbered example to continue previous numbering too. Well now it has gotten worse. Whenever I apply the Ex. style to a page it always restarts at (1) and there is no way to make it continue the numbering. Under the right-click bullets and numbering menu there is simply no such option. Instead, if you select "Restart Numbering" and then re-open that right-click menu, it will show the icon next to Restart Numbering highlighted blue. And if you click it again the highlight will turn off. I don't know what that is all about. Either way, it makes no difference. If you go to the main menu Format > Lists, then "Continue previous numbering" is greyed out. I reverted to 6.2.0 and the problem persists!!! I tried copying the paragraph style to a blank document and the problem persists! But if I create a new paragraph style that also uses Numbering 123, it works fine. What has happened? How do I fix it? Update: If I change the misbehaving paragraph to use List 1 style, strangely the numbering then does continue rather than restart at (1). I thought the normal behaviour is to NOT continue numbering between different list styles. There is still no option to continue or restart numbering for the paragraph, it just continues if it is List 1 and restarts if it is THE SAME numbering style as the previous examples (Numbering 123). If I try changing the Ex. style to use List 1, Writer crashes. Update 2: I'm not sure but it seems that maybe the inability to continue line numbering only applied to the last examples in my paper. At least now, when I add an Ex. paragraph earlier in the paper, it shows up as (1) still, but I am able to tell it to continue line numbering. I found out that last heading line was preventing the "continue previous numbering" option from appearing for paragraphs that came after it. If I changed the heading to something else like Text Body, then I could set the following Ex. paragraphs to continue previous numbering. Then I set the heading back to the Heading 3 style and "continue previous numbering" still works. Of course none of this makes sense. I still have ... 2020-01-25 23:47:30 +0200 ha modificato una domanda unable to continue numbering unable to continue numbering I have been working on a paper for the last few years that is at 210 pages now. It uses a p 2020-01-25 21:19:06 +0200 received badge ● Domanda gettonata (source) 2020-01-25 21:15:13 +0200 ha modificato una domanda unable to continue numbering unable to continue numbering I have been working on a paper for the last few years that is at 210 pages now. It uses a p 2020-01-25 00:14:22 +0200 ha modificato una domanda Applying a paragraph style overwrites direct formatting Applying a paragraph style overwrites direct formatting Somehow I haven't noticed this before, so I don't know if it is 2020-01-24 14:03:05 +0200 received badge ● Domanda notevole (source) 2020-01-24 10:41:24 +0200 received badge ● Domanda gettonata (source) 2019-11-20 04:30:36 +0200 received badge ● Domande famose (source) 2019-11-18 17:48:31 +0200 received badge ● Domande famose (source) 2019-10-17 17:30:08 +0200 received badge ● Domanda notevole (source) 2019-05-13 05:34:40 +0200 received badge ● Domanda notevole (source) 2019-05-06 21:38:08 +0200 received badge ● Domande famose (source) 2019-04-13 17:16:45 +0200 received badge ● Domande famose (source) 2019-03-10 12:03:48 +0200 ha commentato una risposta Insert cross-reference without punctuation Disappointing. But thanks for the info. 2019-03-10 11:59:53 +0200 ha commentato una domanda insert cross-reference without punctuation Oh weird, my question got posted twice somehow? 2019-03-10 11:54:32 +0200 ha commentato una domanda insert cross-reference without punctuation Excuse me? Where is the question that this is a duplicate of? 2019-03-10 10:10:26 +0200 received badge ● Domanda gettonata (source) 2019-03-09 09:12:16 +0200 ha posto una domanda insert cross-reference without punctuation insert cross-reference without punctuation I am creating a template for use in writing academic papers. The template mak 2019-03-09 08:50:47 +0200 ha posto una domanda Insert cross-reference without punctuation Insert cross-reference without punctuation I am creating a template for use in writing academic papers. The template mak 2019-03-08 07:08:43 +0200 ha commentato una domanda Clean up/optimize an odt file? I would like this too. 2019-03-07 09:56:18 +0200 received badge ● Domande famose (source) 2019-03-07 09:17:03 +0200 ha accettato una risposta How do you reset styles to default? In particular I am trying to reset a messed up list style to default. I know for paragraph, character and frame styles, there is a "Standard" button when you are modifying a style, but it only works for the tab you are on apparently. For some inexplicable reason the Standard button does not exist when modifying page or list styles. And I thought there was a way to just select a style or multiple styles and press a button to reset them, but now I don't see it. Is this just a big hole in the design of LibreOffice that has never been addressed? 2019-03-07 09:15:16 +0200 ha risposto a una domanda How do you reset styles to default? OK, well, there might not be a button to reset a list style, but I figured out the simplest way to effectively reset a d 2019-03-06 09:22:13 +0200 ha commentato una risposta How do you reset styles to default? I am talking about editing styles. Not clearing direct formatting. 2019-03-06 03:26:53 +0200 ha commentato una risposta How do you reset styles to default? I don't think your answer is correct. In my experience, the Reset button only reverts modifications that you made while 2019-03-06 03:02:40 +0200 ha commentato una risposta How do you reset styles to default? What is that supposed to do? It doesn't seem to answer my question. 2019-03-05 20:16:28 +0200 received badge ● Domanda notevole (source) 2019-03-05 14:46:08 +0200 received badge ● Domanda gettonata (source) 2019-03-05 13:13:40 +0200 ha posto una domanda How do you reset styles to default? How do you reset styles to default? In particular I am trying to reset a messed up list style to default. I know for par 2019-03-02 00:44:54 +0200 ha commentato una domanda Why do captions not work when they are small caps? Oh wow. I assumed it was hiding behind, because if I delete the image the category label is there. Thanks for your furth 2019-03-01 20:51:27 +0200 received badge ● Domanda gettonata (source) 2019-03-01 10:09:09 +0200 ha posto una domanda Why do captions not work when they are small caps? Why do captions not work when they are small caps? Why is it that if you insert a caption on an image in Writer, and the 2019-02-27 10:21:21 +0200 ha commentato una risposta wish: purge unused styles Well, I can't post an answer, because the the thread is locked, so I will just comment here. I just thought of another w 2019-02-26 08:36:31 +0200 received badge ● Domanda notevole (source) 2019-01-03 20:40:09 +0200 received badge ● Domande famose (source) 2018-12-31 03:48:56 +0200 ha commentato una risposta Fix uneven header spacing Strangely, at least in my case, the header Spacing and Height settings have no effect on the left page. And yes, the pag 2018-12-31 03:27:30 +0200 ha commentato una risposta Fix uneven header spacing I am having the same kind of problem. Thank you for your suggestions, but the header only uses one paragraph style and t