Strip out some redundant logic. Add ctests for cgm device and all qt-related file devices.
Strip out some redundant logic.
Add ctests for cgm device and all qt-related file devices.

svn path=/trunk/; revision=9702

FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot