~ubuntu-branches/ubuntu/raring/koffice/raring

« back to all changes in this revision

Viewing changes to kexi/plugins/tables/kexitablepart.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-12-06 15:30:09 UTC
  • mfrom: (0.13.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101206153009-yf0dqbp9l7fzwxi8
Tags: 1:2.2.91-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This file is part of the KDE project
2
2
   Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3
3
   Copyright (C) 2002, 2003 Joseph Wenninger <jowenn@kde.org>
4
 
   Copyright (C) 2004 Jarosław Staniek <staniek@kde.org>
 
4
   Copyright (C) 2004-2010 Jarosław Staniek <staniek@kde.org>
5
5
 
6
6
   This library is free software; you can redistribute it and/or
7
7
   modify it under the terms of the GNU Library General Public
155
155
    return conn->alterTableName(*sch, newName);
156
156
}
157
157
 
158
 
KexiDB::SchemaData*
159
 
KexiTablePart::loadSchemaData(KexiWindow *window, const KexiDB::SchemaData& sdata,
160
 
                              Kexi::ViewMode viewMode)
 
158
KexiDB::SchemaData* KexiTablePart::loadSchemaData(KexiWindow *window, const KexiDB::SchemaData& sdata,
 
159
                              Kexi::ViewMode viewMode, bool *ownedByWindow)
161
160
{
162
161
    Q_UNUSED(viewMode);
 
162
    if (ownedByWindow)
 
163
        *ownedByWindow = false;
163
164
    return KexiMainWindowIface::global()->project()->dbConnection()->tableSchema(sdata.name());
164
165
}
165
166
 
306
307
#define KEXIPART_EXPORT_FACTORY( libname, partClass, aboutData ) \
307
308
  static KexiPart::AboutData * libname ## updateAD(KexiPart::AboutData *ad) \
308
309
  { ad->setAppName( #libname ); return ad; } \
309
 
  K_EXPORT_COMPONENT_FACTORY( libname, KGenericFactory<partClass>(libname ## updateAD(#libname)) )
 
310
   K_PLUGIN_FACTORY( libname ## Factory, registerPlugin<partClass>(); )
 
311
   K_EXPORT_PLUGIN( libname ## Factory )
310
312
*/
311
313
 
312
314
K_EXPORT_KEXI_PLUGIN( KexiTablePart, table )