Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSOdsRow_p.h 00003 ------------------- 00004 begin : 16/12/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQSODSROW_P_H_ 00020 #define AQSODSROW_P_H_ 00021 00022 #include "AQSOdsStyle_p.h" 00023 #include "AQSOdsAutoChart_p.h" 00024 #include "AQSOdsImage_p.h" 00025 #include "AQSOdsColor_p.h" 00026 00027 // @AQ_PTR_INDIRECTION@ 00028 00029 class AQSOdsRow : public AQSVoidPtr 00030 { 00031 Q_OBJECT 00032 00033 AQ_DECLARE_AQS_VOID_AQOBJECT(OdsRow, VoidPtr); 00034 00035 protected: 00036 void specializedInternalFinish() { 00037 if (!wrap_) 00038 delete o_; 00039 } 00040 00041 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00042 public slots: 00043 void close(); 00044 AQOdsRow *opIn(AQOdsChart *, uint = 0, uint = 0); 00045 AQOdsRow *opIn(AQSOdsChart *, uint = 0, uint = 0); 00046 AQOdsRow *opIn(AQOdsImage *, uint = 0, uint = 0); 00047 AQOdsRow *opIn(AQSOdsImage *, uint = 0, uint = 0); 00048 AQOdsRow *opIn(AQOdsStyle *); 00049 AQOdsRow *opIn(AQSOdsStyle *); 00050 AQOdsRow *opIn(const QString &, uint = 0, uint = 0); 00051 AQOdsRow *opIn(double, uint = 0, uint = 0); 00052 AQOdsRow *coveredCell(); 00053 AQOdsRow *addBgColor(AQOdsColor *); 00054 AQOdsRow *addBgColor(AQSOdsColor *); 00055 AQOdsRow *addFgColor(AQOdsColor *); 00056 AQOdsRow *addFgColor(AQSOdsColor *); 00057 00058 protected: 00059 static void *construct(const QSArgumentList &args) { 00060 QMap<int, QStringList> candidates; 00061 candidates[1].append(QString::fromLatin1("AQOdsSheet*")); 00062 QString sgt(castArgsSignature(args, candidates)); 00063 if (sgt == QString::fromLatin1("AQOdsSheet*")) 00064 return new AQOdsRow(*argValue<AQOdsSheet *>(args[0])); 00065 return 0; 00066 } 00067 00068 public: 00069 static QMap<int, QStringList> candidateConstructors() { 00070 QMap<int, QStringList> candidates; 00071 candidates[1].append(QString::fromLatin1("AQOdsSheet*")); 00072 return candidates; 00073 } 00074 //@AQ_END_DEF_PUB_SLOTS@ 00075 }; 00076 00077 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00078 inline void AQSOdsRow::close() 00079 { 00080 AQ_CALL_VOID(close()); 00081 } 00082 inline AQOdsRow *AQSOdsRow::opIn(AQOdsChart *arg0, uint arg1, uint arg2) 00083 { 00084 AQ_CALL_RET_PTR(opIn(*arg0, arg1, arg2), AQOdsRow); 00085 } 00086 inline AQOdsRow *AQSOdsRow::opIn(AQSOdsChart *arg0, uint arg1, uint arg2) 00087 { 00088 AQ_CALL_RET_PTR(opIn(*arg0, arg1, arg2), AQOdsRow); 00089 } 00090 inline AQOdsRow *AQSOdsRow::opIn(AQOdsImage *arg0, uint arg1, uint arg2) 00091 { 00092 AQ_CALL_RET_PTR(opIn(*arg0, arg1, arg2), AQOdsRow); 00093 } 00094 inline AQOdsRow *AQSOdsRow::opIn(AQSOdsImage *arg0, uint arg1, uint arg2) 00095 { 00096 AQ_CALL_RET_PTR(opIn(*arg0, arg1, arg2), AQOdsRow); 00097 } 00098 inline AQOdsRow *AQSOdsRow::opIn(AQOdsStyle *arg0) 00099 { 00100 AQ_CALL_RET_PTR(opIn(*arg0), AQOdsRow); 00101 } 00102 inline AQOdsRow *AQSOdsRow::opIn(AQSOdsStyle *arg0) 00103 { 00104 AQ_CALL_RET_PTR(opIn(*arg0), AQOdsRow); 00105 } 00106 inline AQOdsRow *AQSOdsRow::opIn(const QString &arg0, uint arg1, uint arg2) 00107 { 00108 AQ_CALL_RET_PTR(opIn(arg0, arg1, arg2), AQOdsRow); 00109 } 00110 inline AQOdsRow *AQSOdsRow::opIn(double arg0, uint arg1, uint arg2) 00111 { 00112 AQ_CALL_RET_PTR(opIn(arg0, arg1, arg2), AQOdsRow); 00113 } 00114 inline AQOdsRow *AQSOdsRow::coveredCell() 00115 { 00116 AQ_CALL_RET_PTR(coveredCell(), AQOdsRow); 00117 } 00118 inline AQOdsRow *AQSOdsRow::addBgColor(AQOdsColor *arg0) 00119 { 00120 AQ_CALL_RET_PTR(addBgColor(*arg0), AQOdsRow); 00121 } 00122 inline AQOdsRow *AQSOdsRow::addBgColor(AQSOdsColor *arg0) 00123 { 00124 AQ_CALL_RET_PTR(addBgColor(*arg0), AQOdsRow); 00125 } 00126 inline AQOdsRow *AQSOdsRow::addFgColor(AQOdsColor *arg0) 00127 { 00128 AQ_CALL_RET_PTR(addFgColor(*arg0), AQOdsRow); 00129 } 00130 inline AQOdsRow *AQSOdsRow::addFgColor(AQSOdsColor *arg0) 00131 { 00132 AQ_CALL_RET_PTR(addFgColor(*arg0), AQOdsRow); 00133 } 00134 //@AQ_END_IMP_PUB_SLOTS@ 00135 00136 #endif /* AQSODSROW_P_H_ */ 00137 // @AQOBJECT_VOID@