Re: Printing...
Vaclav Slavik <[email protected]>
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
HERMIER Christophe wrote:
> I guess this is quite an issue... (portability etc.)
(Not really, wxWindows provides all that's needed...)
> Is there a plan to provide a "print" function ?
No.
> Translators love paper there nothing I can do about it :-(
>
> A possible workaround could be to generate an HTML page with
> a table and all translations...
I think this would be better than printing (i.e. it is something that
may be useful to more people than printing only) and it would
certainly be _much_ easier to implement because you wouldn't have to
worry about layouting the pages and writing all the wxWindows
printing code.
> If that's easy to do I could have a look at the source (given some
> starting pointers....)
> and do it myself....
That would be great and I'd certainly include the patch! You can find
the API to access catalogs in catalog.h, class Catalog. Currently
loaded catalog is in member variable m_catalog (edframe.cpp) and
iterating over all strings in the catalog is as simple as
for (size_t i =0; i < m_catalog->GetCount(); i++)
{
const CatalogData& entry = (*m_catalog)[i];
// ...output HTML using
// entry.GetString,GetTranslation,IsFuzzy,IsTranslated etc...
}
> Another one : is it possible to wrap long lines in the list (by now
> lines seems to be cut to an arbitrary length) ?
No, wxListCtrl control (or the native list controls, I think) doesn't
support this. They're cut if they can't fit into the column width of
half the window's size.
Regards,
Vaclav
--
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x465264C9
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/4EPaxDYa/UZSZMkRAqsTAJ4rr5kwQR/FO62V6tYGQSpFSqwG3QCglg2m ByCthLf/5dgC0+OSkLu5sXc= =06rY -----END PGP SIGNATURE-----