00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 #ifndef PO_PRINT_CGM_MONITOR_H
00025 #define PO_PRINT_CGM_MONITOR_H
00026 
00027 #include <HardCopy/editors/PoPrintMonitor.h>
00028 class SoDEPRECATED  PoPrintCGMMonitor : public PoPrintMonitor {
00042 
00043  public:
00044 
00045   enum PrintCGMMask {
00046     NO_PRINT_CGM_MASK    = 0x00000000,
00047     BINARY_MASK          = 0x00000001,
00048     VERSION_MASK         = 0x00000002,
00049     COLOR_TYPE_MASK      = 0x00000004,
00050     ALL_PRINT_CGM_MASK   = BINARY_MASK | VERSION_MASK | COLOR_TYPE_MASK
00051   };
00052 
00056   PoPrintCGMMonitor(SoWidget Parent = NULL,
00057                     const SbString& name = "",
00058                     SbBool buildInsideParent = TRUE);
00059 
00063   virtual ~PoPrintCGMMonitor();
00064 
00070   void setPrintCGMFilter(unsigned long inclusionMask,
00071                          unsigned long exclusionMask);
00072 
00077   void getPrintCGMFilter(unsigned long &inclusionMask,
00078                          unsigned long &exclusionMask) const;
00079 
00080   
00081  private:
00082 
00083   void buildWidget(SoWidget Parent, const SbString& name, SbBool buildInsideParent);
00084 
00085   void destroyAction();
00086 
00087   void setFilter();
00088   int getMenuItems();
00089 
00090   SbString getDefaultWidgetName() const;
00091   SbString getDefaultTitle() const;
00092   SbString getDefaultIconTitle() const;
00093 
00094   unsigned long _incPrintCGMMask;
00095   unsigned long _excPrintCGMMask;
00096 
00097  private:
00098   int _classMenusNb;
00099   SbBool _isPrintCGMSet;
00100   void writeActionIntoFile();
00101   static void writeActionIntoFileCB(void *, PoPrintCGMMonitor * monitor);
00102 };
00103 
00104 #endif //PO_PRINT_CGM_MONITOR_H
00105 
00106