[libreoffice-users] odd error in 5.0 writer
Has anyone witnessed this strange happening? I was working with the formatting of a book, using a template created by Createspace. This template has worked perfectly until 5.0. However, while working with it, I noticed text started disappearing (see attached image). I could remove the formatting of the text and it would reappear... only to immediately disappear the second I reformat. It seems to be randomly happening. I can't attach the file this is happening to, because the book has yet to be published. I can, however, attach the blank template. I wound up having to install the LibreOffice from the default Elementary OS repo (LO 4.2) which worked just fine. -- /Jack Wallen/ Award winning author of dark, twisty fiction And tech journalist Find out more on Get Jack'd http://www.monkeypantz.net TechRepublic http://www.techrepublic.com and Linux.com. http://www.linux.com -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
[libreoffice-users] HEHELP!! Link not always working with yosemite/posted question in Ask page, profile showing 0 questions
Hi, I apologize if this is not the right place, but I am getting desperate: first, my question is NOT showing to the users in the Ask page after 2 days I posted. Here are the screenshot of the question, and the 0 questions in my profile Captcha was properly typed after question. The problem is that I did get the link in my text twice or 3 times out of 100 I tried, and I never downloaded the java thing, so I probably shouldn't, so I can't figure what made it go right. Libre Office 4.4.3.2, Yosemite 10 10 4 Place cursor in text, target: URL, frame: leave blank no selection from menu, Form: button Assign Macro: trigger hyperlink, my text title, click blue OK button back to hyperlink window/apply/ok the cell promptly appears but doesn't bring to link, and just shows selection dots around it. Attached link window and what the cell looks like when clicked Best regards dona bozzi -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Re: Save UNO state?
Yay, that's actually cool! I added to my function also a maximum level. With level 5 it produces ≈23Mb output which is a miserable 267604 lines, vimdiff works fine with that. def printUNO(parent, listChecked, maxLevel): try: for propName in dir(parent): if str(propName)[0].islower(): #function, skip continue try: property = getattr(parent, propName) except Exception: #inspect.UnknownPropertyException: wtf, that doesn't work continue if str(property).startswith('pyuno'): if ( not any(propName == s for s in listChecked) and len(listChecked) maxLevel): l = list(listChecked) l.append(propName) printUNO(property, l, maxLevel) continue print(propName + ': ' + str(property) + '\n') except Exception: #in this awful API we can't even catch exception by name return Although I still couldn't find where defined a global OutLineNumbering of Writer, I think that code should work for most of tasks. 2015-08-22 21:54 GMT+03:00 X Roemer x-roe...@web.de: Hi, I wrote some code some time ago. The code also checks the differences between two states of an object. The first part is similar to yours, it's also a recursive function, but it creates a dict and you can use a level to stop searching, so you won't get an infinite cycle. The second part - I think, I used some code from stackoverflow - compares two nested dicts with each other and prints out the results. It works best inside of an extension, where you can keep objects alive. so it would be: level = 2 self.res1 = get_attribs(object,level ) #do something # and start the function again with: self.res2 = get_attribs(object,level ) findDiff(self.res1, self.res2) Regards, Xaver Here's the code: ctx = uno.getComponentContext() smgr = ctx.ServiceManager desktop = smgr.createInstanceWithContext( com.sun.star.frame.Desktop,ctx) doc = desktop.getCurrentComponent() current_Contr = doc.CurrentController viewcursor = current_Contr.ViewCursor object = doc max_lvl = 3 def get_attribs(obj,lvl): results = {} for key in dir(obj): try: value = getattr(obj, key) if 'callable' in str(type(value)): continue except : #print(key) continue if key not in results: if type(value) in ( type(None), type(True), type(1), type(.1), type('string'), type(()), type([]), type(b''), type(r''), type(u'') ): results.update({key: value}) elif lvl max_lvl: try: results.update({key: get_attribs(value,lvl+1)}) except: pass return results diff = [] def findDiff(d1, d2, path=): for k in d1.keys(): if not d2.has_key(k): print path, : print k + as key not in d2, \n else: if type(d1[k]) is dict: if path == : path = k else: path = path + - + k findDiff(d1[k],d2[k], path) else: if d1[k] != d2[k]: diff.append((path,k,d1[k],d2[k])) path = '' res1 = get_attribs(object,1) viewcursor.gotoEnd(False) viewcursor.setString('Test ') res2 = get_attribs(object,1) findDiff(res1, res2) for d in diff: print(d) time.sleep(.4) Am 22.08.2015 um 20:24 schrieb Piet van Oostrum: Hi-Angel wrote: Okay, I wrote a python code that explores every property, and doesn't fall into an infinite cycle. It is [...] However it produces too much output, e.g. from a test document it produced 1gb of output. I think the problem is that most elements still appears in output many times — the check that in backtrace wasn't the current element is ensures only that it wouldn't fall in an infinite cycle. You can get an infinite cycle at any level, so only checking at the top level is not good enough. You will have to check at each node. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
[libreoffice-users] Re: odd error in 5.0 writer
Jack Wallen wrote Has anyone witnessed this strange happening? I was working with the formatting of a book, using a template created by Createspace. This template has worked perfectly until 5.0. However, while working with it, I noticed text started disappearing (see attached image). I could remove the formatting of the text and it would reappear... only to immediately disappear the second I reformat. It seems to be randomly happening. I can't attach the file this is happening to, because the book has yet to be published. I can, however, attach the blank template. I wound up having to install the LibreOffice from the default Elementary OS repo (LO 4.2) which worked just fine. Could you be more specific? Under which OS? Were you using 5.0.5 or 5.0.1.2? Did you test the latest stable build i.e. 4.4.5? Using any branch until it reaches release x.x.3 or x.x.4 for production is usually a bad idea (because of regressions) unlike what marketing says... The User mailing list does not allow to add attachments to the emails, but you can attach files to the Nabble topic if register http://nabble.documentfoundation.org/odd-error-in-5-0-writer-td4158002.html If the same template doesn't cause that problem in 4.2 then it is a regression and should be reported in https://bugs.documentfoundation.org/ -- View this message in context: http://nabble.documentfoundation.org/odd-error-in-5-0-writer-tp4158002p4158028.html Sent from the Users mailing list archive at Nabble.com. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted