~ubuntu-branches/ubuntu/lucid/skrooge/lucid

« back to all changes in this revision

Viewing changes to skrooge_report/skgreportplugin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-07-28 15:38:43 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090728153843-91b74m0vcam50krt
Tags: 0.2.9-0ubuntu1
* New upstream release
* Added kubuntu_01_cmake_fix.patch:
  Fix FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
{
127
127
        QStringList output;
128
128
        output.push_back ( i18n ( "<p>... you can double click on a value in \"%1\" to show corresponding operations.</p>", title() ) );
129
 
        output.push_back ( i18n ( "<p>... you can open a report from selection done in other pages.</p>" ) );
 
129
        output.push_back ( i18n ( "<p>... you can open reports for selections made in other pages.</p>" ) );
130
130
        output.push_back ( i18n ( "<p>... you can export reports in many formats.</p>" ) );
131
131
        return output;
132
132
}
145
145
 
146
146
                int nb=selection.count();
147
147
                if ( nb>0 ) {
148
 
                        QDomDocument doc ( "SKGML" );
149
148
                        QString wc;
150
149
                        QString title;
151
150
                        QString table=selection.at ( 0 ).getRealTable();
222
221
                        }
223
222
 
224
223
                        //Call report plugin
225
 
                        QDomElement root = doc.createElement ( "parameters" );
226
 
                        doc.appendChild ( root );
 
224
                        QDomDocument doc("SKGML");
 
225
                        doc.setContent ( currentBankDocument->getParameter("SKGREPORT_DEFAULT_PARAMETERS") );
 
226
                        QDomElement root = doc.documentElement();
 
227
                        if (root.isNull()) {
 
228
                                root=doc.createElement("parameters");
 
229
                                doc.appendChild(root);
 
230
                        }
 
231
 
227
232
                        root.setAttribute ( "operationWhereClause", wc );
228
233
                        root.setAttribute ( "title", title );
229
234
                        root.setAttribute ( "title_icon", "view-statistics" );