~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to plugins/colorspaces/cmyk_u8/cmyk_plugin.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
* cmyk_u8_plugin.cc -- Part of Krita
3
 
*
4
 
* Copyright (c) 2004 Boudewijn Rempt (boud@valdyas.org)
5
 
* Copyright (c) 2005 Adrian Page <adrian@pagenet.plus.com>
6
 
*
7
 
*  This program is free software; you can redistribute it and/or modify
8
 
*  it under the terms of the GNU General Public License as published by
9
 
*  the Free Software Foundation; either version 2 of the License, or
10
 
*  (at your option) any later version.
11
 
*
12
 
*  This program is distributed in the hope that it will be useful,
13
 
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
*  GNU General Public License for more details.
16
 
*
17
 
*  You should have received a copy of the GNU General Public License
18
 
*  along with this program; if not, write to the Free Software
19
 
*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
 
*/
21
 
 
22
 
#include <kgenericfactory.h>
23
 
#include <KoColorSpaceRegistry.h>
24
 
#include <KoBasicHistogramProducers.h>
25
 
#include "cmyk_plugin.h"
26
 
#include "kis_cmyk_colorspace.h"
27
 
 
28
 
typedef KGenericFactory<CMYKU8Plugin> CMYKU8PluginFactory;
29
 
K_EXPORT_COMPONENT_FACTORY( kritacmykplugin, CMYKU8PluginFactory( "kocolorspaces" ) )
30
 
 
31
 
 
32
 
CMYKU8Plugin::CMYKU8Plugin(QObject *parent, const QStringList &)
33
 
    : QObject(parent)
34
 
{
35
 
    
36
 
    KoColorSpaceRegistry * f = KoColorSpaceRegistry::instance();
37
 
 
38
 
    KoColorSpaceFactory * csf = new KisCmykU8ColorSpaceFactory();
39
 
    f->add(csf);
40
 
    
41
 
    KoHistogramProducerFactoryRegistry::instance()->add(
42
 
            new KoBasicHistogramProducerFactory<KoBasicU8HistogramProducer>
43
 
            (KoID("CMYK8HISTO", i18n("CMYK8 Histogram")), csf->id()) );
44
 
 
45
 
}
46
 
 
47
 
CMYKU8Plugin::~CMYKU8Plugin()
48
 
{
49
 
}
50
 
 
51
 
#include "cmyk_plugin.moc"