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


Hi Karthik,

On Tue, 2012-10-16 at 10:46 +0530, Karthik Raj wrote:
Can someone tell me in which part of the source code does the
conversion from docx and odt to text file takes place ( save as text
) ?  I need to know how the conversion occurs.

Your question sounds like containing several ones to me. First there is
no place where the conversion from a format to another happens, it's a
sequence of:
  * Import via a filter (read)
  * Layout
  * Export via another filter (save)

As for the filters code (which is what you seem to want):
  * docx and rtf import is located in the whole writerfilter module (and
bits in oox)
  * doc import is located in sw/source/filter/ww8/ww8par*.{h,c}xx
  * docx, rtf, doc export is located in sw/source/filter/ww8
  * odt import and export is split between the xmloff module and
sw/source/filter/xml
  * export as ascii text happens in
sw/source/filter/ascii/wrtasc.{h,c}xx and
sw/source/filter/ascii/ascatr.cxx

I hope this will answer your question.

--
Cedric


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.