[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Fwd: RFC: ideas for a simple OpenDocument API
From:       Bart Coppens <kde () bartcoppens ! be>
Date:       2006-12-22 20:20:55
Message-ID: 200612222120.55324.kde () bartcoppens ! be
[Download RAW message or body]

Looks relevant to KOffice, forwarding from kde-core-devel.

----------  Forwarded Message  ----------

Subject: RFC: ideas for a simple OpenDocument API
Date: Friday 22 December 2006 21:16
From: Kevin Krammer <kevin.krammer@gmx.at>
To: kde-core-devel@kde.org

Hi folks,

I'd like to get some comments on an idea that keeps popping up in my head:

having a (very) simple API for creating basic documents and retrieving some
information from documents.

Simple in the sense that a developer should not have to know about format
internals. The API can be limited to a subset of features the format would be
capable off, e.g. creation of a spread sheet document could just support
tables with simple cell types, not support cell borders, etc

Simple also in the sense that it does not have to be roundtrip capable, i.e.
reading and writing the document might loose more advanced stuff

Simple also in the sense of convenience functions (warning, pseudo code
ahead):

ODF::SpreadSheet ODF::SpreadSheet::fromQTableModel(QAbtractTableModel* model)

QDF::TextDocument ODF::TextDocument::fromQTextDocument(QTextDocument*
document)

or the other way around

QTextDocument* ODF::TextDocument::toQTextDocument()

Use cases:

- Use import from/export to spreadsheet additionally to CSV

- Copy&Paste selections from KatePart *including* syntax highlighting

- Copy&Paste from browser when selection contains formatting/colors

- Copy&Paste from browser when selections contains tables

- Copy&Paste from browser when selection contains images

- Dumping all meta data of a selection of files into a list of tables

- Creating presentation slide show from a selection of image files

More or less having it available for Import/Export, Drag&Drop, Copy&Paste
whenever applicable.

Cheers,
Kevin

--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

-------------------------------------------------------
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic