I was looking for a Qt implementation (since Qt already support export of rich text to odt) but found none of them.
Then I was astonished that I can't find any C++ class to read/write ods files.
I need to import/export tables with basic formating and was thinking that using a open source format would be a good idea. But it looks like it is mission impossible in C++
I wrote a Qt5 library for working with .ods, check it out:
https://github.com/f35f22fan/QOds
The Calligra framework will let you do this just fine, and since you're looking for a Qt based thing, then that would probably be your best option :) Further information on using Calligra for development can be found here: http://community.kde.org/Calligra
Not exactily what you wanted but check this out:
OpenOffice API
Related
Basically, I want to be to be able to pass data between Excel cells and
my C++ program. I don't have any experience in Excel/C++ interactions and I haven't been able to find a coherent explanation or documentation on any websites. If someone could link me some references or provide one themselves it would be much appreciated. Thanks.
If this is for a Windows system, you could always use one of the available managed Excel libraries, such as OfficeWriter or Aspose.
There also might be similar libraries specifically for c++, I know we (OfficeWriter) used to make one.
Edit: Looks like there are a few out there, like LibXL and BasicExcel.
If the application will run on an end user machine with Excel installed, you can easily use the Excel interop and keep Excel hidden.
In addition to LibXL and BasicExcel mentioned by smoore, there is:
ExcelFormat Library is an improved version of the BasicExcel library and will allow you to read and write simple values. It is free.
xlslib will also read and write simple values, I have not tried it tho. It is also free.
Number Duck, is a commercial library that I have written, It supports reading and writing values, formulas and pictures. The website has examples of how to use the features.
Is there a Library that implements XDebug's DBGP in C/C++?
I'm interested in wrtting debugger and if such library exists will save me a lot!
I want to add the debugger to my editor coded in C++ Language but it is an editor for PHP Files.
None Exists. There was one from GSOC (App not a library) but I cannot take time to read and convert to my needs plus its written for wx2.8
So I will roll a class to Just glue up with my Editor
Edit
I ended using that one as I said.
Inside there is buggy libDBGp but I will fix it myself huh!
If you are interested its here (thanks to GitHub)
There are a few GDB based libraries that help debugger frontend writers like libgdb. DBGP is a very stupid and protocol with very small feature set - not enough for debugging C++.
For windows there is nothing like this. You can read the PDB database but it's pretty difficult. I spend a week to see how far i can get but wasn't very successfull. only the theory is easy. It might be better to write a frontend for the command line debugger windbg just like in the old days where you had to do this for GDB.
We want to persist some user settings int he GUI part of our code. I used to do Win32 programming exclusively and the typical way this was done was with registry settings.
I assume that this should be done with configuration files, but was wondering if there was a library or cross platform wrapper that made key/value pair persistence very easy.
Qt's QSettings class handles this:
http://doc.qt.nokia.com/4.6/qsettings.html
Boost.PropertyTree supports XML, JSON, INI config files.
There is also JSON for a lighter alternative of XML. Lots of implementations on that page too.
Qt 4 has a class for it, named QSettings. Looks exactly like what you need.
Why not use an XML as the configuration file. Then you only have to find a cross platform XML library which is easier IMO.
Here is a list of nice XML parsing solutions for C++.
Old school Berkley DB comes to mind.
Have a look at Tokyo Cabinet or at Embedded InnoDB.
In the old days we used .ini files in windows. Here is a portable version of an ini file read/write library
It will work on Windows as well as Linux.
I am unable to find any open source libraries to render ODF documents using C++. I found ODKit suporting Java and AODL for .NET C#.
Does any one have any idea or provide me any pointers.
I found a Qt source to parse ODF. Qt already has built in ODF writer.
KOffice supports ODF and is written in C++. I suspect they may have solved whatever it is you are trying to solve. http://www.koffice.org
It may not be the most elegant solution but OpenOffice itself is capable of rendering and the OOoSDK can be used from C++ as seen here for writer and here for spreadsheet.
There is none. You're better AODL or any of the other libs available (python, perl, java, etc) and doing a binding to it
KOffice can be an idea, but if I just want to display an odt file in a nice Qt QWidget, but I don't want to depends on DBus and a lots of Kde feature.
The Idea is to take a look a Flake and KoText libs as Thomas Zanders says on this Forum.
Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar files (with recurrences)? It can be free or commercial.
there is a parser in PHP for iCal, you can downloaded and check the code to suit your language.
for vCal/vCard parsing there's a C Library.
for Google Calendar I couldn't find any exact answer, so, try to Google it.
For vCal you can try the CCard project on SourceForge:
http://sourceforge.net/projects/ccard
It's a C library but it states Windows as a supported platform.
*Edit: balexandre already linked to it :)
The only problem with the CCard project is that it's a generic parser (similar to what I already have implemented myself) - what would be really valuable to me is something that "understands" all varieties of recurrences and such. Those differ between vCal and iCal as well, adding to the complexity.