| 2986 | } |
| 2987 | |
| 2988 | static std::vector<std::pair<std::string, std::string> > |
| 2989 | png_texts (const lay::LayoutViewBase *view, const db::DBox &box) |
| 2990 | { |
| 2991 | std::vector<std::pair<std::string, std::string> > texts; |
| 2992 | |
| 2993 | // Unfortunately the PNG writer does not allow writing of long strings. |
| 2994 | // We separate the description into a set of keys: |
| 2995 | |
| 2996 | for (unsigned int i = 0; i < view->cellviews (); ++i) { |
| 2997 | if (view->cellview (i).is_valid ()) { |
| 2998 | std::string name = view->cellview (i)->layout ().cell_name (view->cellview (i).cell_index ()); |
| 2999 | texts.push_back (std::make_pair (std::string ("Cell") + tl::to_string (int (i) + 1), name)); |
| 3000 | } |
| 3001 | } |
| 3002 | |
| 3003 | texts.push_back (std::make_pair (std::string ("Rect"), box.to_string ())); |
| 3004 | |
| 3005 | return texts; |
| 3006 | } |
| 3007 | |
| 3008 | #if defined(HAVE_QT) && !defined(PREFER_LIBPNG_FOR_SAVE) |
| 3009 | void |