Re: [libreoffice-users] Save UNO state?

2015-08-19 Thread Andrew Douglas Pitonyak
Yes, you can certainly compare properties, but it would be a bit arduous to write with a bunch of special cases. Part of the problem is understanding which properties can be ignored, and which cannot and understanding how to write them. I wrote some code (not sure where it is) that copies

Re: [libreoffice-users] Save UNO state?

2015-08-18 Thread Hi-Angel
Okay, I reported an enhancement request; let's if it could be done https://bugs.documentfoundation.org/show_bug.cgi?id=93516 2015-08-17 7:46 GMT+03:00 Hi-Angel hiangel...@gmail.com: Well, I think at some level that all comes to a simple objects. Anyway, how do you compare properties? E.g. I

[libreoffice-users] Save UNO state?

2015-08-16 Thread Hi-Angel
Often it is really hard to figure out for how to do something in UNO unless someone already did it, and left a description on the Internet. Even in the presence of MRI. So I'm wondering: perhaps is there a way to save UNO state? So that one could just save the state, change something they're

Re: [libreoffice-users] Save UNO state?

2015-08-16 Thread Hi-Angel
Well, I think at some level that all comes to a simple objects. Anyway, how do you compare properties? E.g. I was recently needed to change with UNO the first page style of Writer document. In the end it turned out to be the property «PageDescName» (a string) of the first paragraph, and that's