Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Tue, 2011-03-01 at 10:05 +0100, Zongbo Zhang wrote:
Hi,

Could anyone here please tell me:  1. where I can find the source code
 for tooltips of 'deletion' and 'insertion'?

So, technique for finding these is basically...

find . -name "*.src" -exec grep "STRING" {} /dev/null \;

which gives...

sw/ui/docvw/docvw.src as "STR_REDLINE_INSERT", now search for
STR_REDLINE_INSERT in the .cxx files, the one for the tooltips is

sw/source/ui/docvw/edtwin2.cxx where "lcl_GetRedlineHelp" makes the
string, and Help::ShowBalloon shows it

 2. when an odt file was
 saved, where are those 'deletion' or 'insertion ' info saved? are they
 saved in a xml file?      if so, where can I find the xml file?

Yeah, best thing to do here is to turn off
tools->options->load/save->generic "size optimization for ODF format",
and now save a document without redlines, then turn on redlines make a
change, and save to some new document.

Now you can simply unzip the old document and the new document, and
examine the difference in the streams contained inside the documents to
quickly find out how they are stored. The ODF spec will in theory have
the full details of what everything is.

Turning off "size optimization for ODF format" gives a human-readable
output, while with it on, you get no newlines, so one single xml line.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.