Changeset 6811


Ignore:
Timestamp:
2004-02-17T09:50:46+13:00 (20 years ago)
Author:
mdewsnip
Message:

Additions for the GsdlCollageApplet: a classifier that displays a collage of the images in a collection. By Katrina Edgar (kde2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r6645 r6811  
    863863    disp.setmacro ("relateddoc", "document", "");
    864864
    865     // Add macros specific to the Phind lassifier
     865    // Add macros specific to the Collage/Phind classifiers
    866866    text_t &childtype = response.docInfo[0].metadata["childtype"].values[0];
     867    if (childtype == "Collage") {
     868
     869      text_t::iterator a = arg_cl.begin();
     870      text_t::iterator b = arg_cl.end();
     871
     872      bool collage = true;
     873      while (a != b) {
     874        if (*a == 46) collage = false;
     875        a++;
     876      }
     877
     878      if (collage)
     879        disp.setmacro ("collageclassifier", "document", "_collageapplet_");
     880    }
     881
    867882    if (childtype == "Phind") {
    868883
Note: See TracChangeset for help on using the changeset viewer.