[packages/kde4-koffice] - dead; replaced by kde4-calligra

arekm arekm at pld-linux.org
Mon Feb 11 08:48:52 CET 2013


commit 2dec2414ce72eb8e15cd2c769b46eca0e275690a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 11 08:48:48 2013 +0100

    - dead; replaced by kde4-calligra

 kde4-koffice-libwpg02.patch          | 1323 ----------------------------------
 kde4-koffice.spec                    |  945 ------------------------
 koffice-2.3.3-no-qdebug-pixmap.patch |   11 -
 3 files changed, 2279 deletions(-)
---
diff --git a/kde4-koffice.spec b/kde4-koffice.spec
deleted file mode 100644
index 5450abf..0000000
--- a/kde4-koffice.spec
+++ /dev/null
@@ -1,945 +0,0 @@
-# TODO
-# -- The following OPTIONAL packages could NOT be located on your system.
-# -- Consider installing them to enable more features from this software.
-# + OpenCTL, 0.9.2 or higher: OpenCTL is needed for some color spaces (High Dynamic Range Color Spaces, YCbCr and LMS) <http://www.openctl.org>
-# + Spnav: Spnav is the library which is required by the space navigator device plugin <http://spacenav.sourceforge.net/>
-# + pstoedit: The Karbon eps import filter will not be built. <http://www.pstoedit.net/>
-#
-# Conditional build:
-%bcond_without	pdf		# build without PDF support
-
-%define		_state		stable
-%define		orgname		koffice
-%define		kdever		4.8.0
-%define		qtver		4.8.0
-
-Summary:	KOffice - powerful office suite for KDE
-Summary(pl.UTF-8):	KOffice - potężny pakiet biurowy dla KDE
-Summary(pt_BR.UTF-8):	Suíte de aplicativos office para o KDE
-Summary(ru.UTF-8):	Набор оффисных программ для KDE
-Summary(uk.UTF-8):	Набір офісних програм для KDE
-Summary(zh_CN.UTF-8):	KDE 的办公应用软件集。
-Name:		kde4-koffice
-Version:	2.3.3
-Release:	19
-License:	GPL/LGPL
-Group:		X11/Applications
-Source0:	ftp://ftp.kde.org/pub/kde/%{_state}/%{orgname}-%{version}/%{orgname}-%{version}.tar.bz2
-# Source0-md5:	1ebb955d54b6d6032999cc92e4b13bfe
-URL:		http://www.koffice.org/
-Patch0:		%{name}-libwpg02.patch
-Patch1:		koffice-2.3.3-no-qdebug-pixmap.patch
-BuildRequires:	GraphicsMagick-devel
-BuildRequires:	OpenEXR-devel
-BuildRequires:	OpenGL-GLU-devel
-BuildRequires:	QtXmlPatterns-devel
-BuildRequires:	automoc4 >= 0.9.88
-BuildRequires:	boost-devel
-BuildRequires:	bzip2-devel
-BuildRequires:	cmake >= 2.8.0
-BuildRequires:	eigen >= 1:2.0.12-3
-BuildRequires:	exiv2-devel
-BuildRequires:	fftw3-devel
-BuildRequires:	giflib-devel
-BuildRequires:	glew-devel
-BuildRequires:	gmm-devel
-BuildRequires:	gsl-devel
-BuildRequires:	kde4-kdelibs-devel >= %{kdever}
-BuildRequires:	kde4-kdepimlibs-devel >= %{kdever}
-BuildRequires:	lcms-devel >= 1.18
-BuildRequires:	libexif-devel >= 0.6.12
-BuildRequires:	libjpeg-devel
-BuildRequires:	kde4-libkdcraw-devel >= %{kdever}
-BuildRequires:	kde4-libkexiv2-devel >= %{kdever}
-BuildRequires:	kde4-libkipi-devel >= %{kdever}
-BuildRequires:	kde4-libksane-devel >= %{kdever}
-BuildRequires:	libpng-devel
-BuildRequires:	libpqxx-devel
-BuildRequires:	libtiff-devel
-BuildRequires:	libwpd-devel >= 0.9
-BuildRequires:	libwpg-devel >= 0.2
-BuildRequires:	libxml2-devel >= 0:2.4.8
-BuildRequires:	libxslt-devel >= 1.0.7
-BuildRequires:	mysql-devel
-BuildRequires:	kde4-okular-devel >= %{kdever}
-BuildRequires:	openjpeg-devel >= 1.3
-BuildRequires:	pkgconfig
-%if %{with pdf}
-BuildRequires:	poppler-Qt-devel >= 0.6
-%endif
-BuildRequires:	python-devel >= 2.2
-BuildRequires:	qca-devel >= 2.0.0
-BuildRequires:	qimageblitz-devel
-BuildRequires:	qt4-build >= %{qtver}
-BuildRequires:	qt4-qmake >= %{qtver}
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.600
-BuildRequires:	soprano-devel
-BuildRequires:	sqlite3-devel >= 3.6.23
-BuildRequires:	wv2-devel >= 0.4.1
-BuildRequires:	xbase-devel
-BuildRequires:	zlib-devel
-Requires:	wv2 >= 0.4.1
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-KOffice is an integrated office suite for K Desktop Environment.
-KOffice contains:
-- KWord - word processor
-- KSpread - spreadsheet
-- KPresenter - presentations
-- Kivio - A Visio(R)-style flowcharting application
-- KChart - diagram generator
-- Karbon - A vector-based drawing application
-- Krita - A pixel-based drawing application like The GIMP
-- Kugar - A tool for generating business quality reports
-
-%description -l pl.UTF-8
-KOffice jest zintegrowanym pakietem biurowym dla środowiska KDE.
-Pakiet między innymi zawiera:
-- KWord - procesor tekstu
-- KSpread - arkusz kalkulacyjny
-- KPresenter - tworzenie prezentacji
-- Kivio - aplikacja wzorowana na Visio(R)
-- KChart - generator wykresów
-- Karbon - aplikacja do edycji grafiki wektorowej
-- Krita - aplikacja do edycji grafiki bitmapowej
-
-%description -l ru.UTF-8
-Оффисные программы для K Desktop Environment 2.0. Содержит: KWord
-(текстовый процессор), KSpread (электронная таблица), KPresenter
-(презентации) и KChart (генератор диаграмм).
-
-%description -l uk.UTF-8
-Офісні програми для K Desktop Environment 2.0. Містить: KWord
-(текстовий процесор), KSpread (електронна таблиця), KPresenter
-(презентації) та KChart (генератор діаграм).
-
-%package devel
-Summary:	KOffice - header files
-Summary(es.UTF-8):	Header files for compiling applications that use koffice libraries
-Summary(pl.UTF-8):	KOffice - pliki nagłówkowe
-Summary(pt_BR.UTF-8):	Arquivos de inclusão necessários à compilação de aplicações que usem as bibliotecas do koffice
-Group:		X11/Development/Libraries
-Requires:	%{name}-common = %{version}-%{release}
-
-%description devel
-This package includes the header files you will need to compile
-applications that use koffice libraries.
-
-%description devel -l pl.UTF-8
-Ten pakiet zawiera pliki nagłówkowe potrzebne przy kompilowaniu
-programów używających bibliotek KOffice.
-
-%description devel -l pt_BR.UTF-8
-Arquivos de inclusão necessários à compilação de aplicações que usem
-as bibliotecas do koffice.
-
-%package common
-Summary:	KOffice - common files and libraries
-Summary(pl.UTF-8):	KOffice - wspólne pliki i biblioteki
-Summary(pt_BR.UTF-8):	Arquivos requeridos por todos os softwares koffice
-Group:		X11/Applications
-Requires:	kde4-kdebase-workspace >= %{kdever}
-
-%description common
-KOffice is an integrated office suite for K Desktop Environment.
-KOffice contains:
-- KWord - word processor
-- KSpread - spreadsheet
-- KPresenter - presentations
-- Kivio - A Visio(R)-style flowcharting application
-- KChart - diagram generator
-- Karbon - A vector-based drawing application
-- Krita - A pixel-based drawing application
-
-Package contains common files and libraries needs by KOffice
-applications.
-
-%description common -l pl.UTF-8
-KOffice jest zintegrowanym pakietem biurowym dla środowiska KDE.
-Pakiet między innymi zawiera:
-- KWord - procesor tekstu
-- KSpread - arkusz kalkulacyjny
-- KPresenter - tworzenie prezentacji
-- Kivio - aplikacja wzorowana na Visio(R)
-- KChart - generator wykresów
-- Karbon - aplikacja do edycji grafiki wektorowej
-- Krita - aplikacja do edycji grafiki bitmapowej
-
-Pakiet zawiera wspólne pliki i biblioteki wymagane przez aplikacje
-KOffice.
-
-%description common -l pt_BR.UTF-8
-Arquivos requeridos por todos os softwares koffice.
-
-%package karbon
-Summary:	KOffice - Karbon
-Summary(pl.UTF-8):	KOffice - Karbon
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description karbon
-Karbon is a vector graphics application within koffice.
-
-%description karbon -l pl.UTF-8
-Karbon to aplikacja koffice służąca do rysowania grafiki wektorowej,
-
-%package kchart
-Summary:	KOffice - KChart
-Summary(pl.UTF-8):	KOffice - KChart
-Summary(pt_BR.UTF-8):	Gerador de diagramas do KOffice
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kchart
-KChart is KOffice part for generating diagrams from data, e.g. pie and
-bar charts.
-
-%description kchart -l pl.UTF-8
-KChart jest aplikacją służącą do generowania wykresów.
-
-%description kchart -l pt_BR.UTF-8
-Gerador de diagramas do KOffice.
-
-%package kexi
-Summary:	KOffice - Kexi
-Summary(pl.UTF-8):	KOffice - Kexi
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kexi
-Kexi is KOffice part for using database system such as MySQL.
-
-%description kexi -l pl.UTF-8
-Kexi jest aplikacją służącą do korzystania z systemów baz danych
-takich jak MySQL.
-
-%package kformula
-Summary:	KOffice - kformula
-Summary(pl.UTF-8):	KOffice - kformula
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kformula
-KFormula is KOffice part for creating formulas, equations, etc...
-
-%description kformula -l pl.UTF-8
-KFormula jest aplikacją służącą do tworzenia wzorów, równań itp.
-
-%package kivio
-Summary:	KOffice - kivio
-Summary(pl.UTF-8):	KOffice - kivio
-Summary(pt_BR.UTF-8):	Editor de fluxogramas do KOffice
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kivio
-Kivio on the surface is your everyday flowcharting program. Underneath
-this skin, however, lies much more. Kivio will offer basic
-flowcharting abilities, but with a twist. Objects are scriptable, and
-a backend plugin system will offer the ability to make objects do just
-about anything. Feed it a directory of C++ header files, or even Java
-files, and let it generate a graphical class map for you. Give it a
-network and let it explore and map out the network for you. All this
-is possible through the scripting/plugin architecture Kivio will
-possess.
-
-%description kivio -l pl.UTF-8
-Kivio jest programem typu flowcharting. Pod tym pojęciem jednak kryje
-się znacznie więcej. Kivio dostarcza najpotrzebniejsze funkcje, ale
-wszystkie obiekty można rozszerzać za pomocą języka skryptowego, a
-system wtyczek backendowych oferuje możliwość tworzenia obiektów
-dotyczących prawie wszystkiego. Kivio można nakarmić katalogiem plików
-nagłówkowych C++ lub plików Javy i pozwolić wygenerować graficzną mapę
-klas. Po podaniu sieci przejrzy ją i stworzy jej mapę. Wszystko to
-jest możliwe poprzez architekturę skryptów i wtyczek Kivio.
-
-%description kivio -l pt_BR.UTF-8
-Editor de fluxogramas do KOffice.
-
-%package kplato
-Summary:	KOffice - KPlato
-Summary(pl.UTF-8):	KOffice - KPlato
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kplato
-KPlato is a project management application.
-
-%package kpresenter
-Summary:	KOffice - KPresenter
-Summary(pl.UTF-8):	KOffice - KPresenter
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kpresenter
-KPresenter is a presentation application of the KOffice, similar to MS
-PowerPoint in the windows world. You can use it for doing screen
-presentations or transparencies.
-
-%description kpresenter -l pl.UTF-8
-KPresenter jest aplikacją KOffice do tworzenia prezentacji, podobną do
-MS PowerPoint. Możesz użyć jej do tworzenia wizualnych prezentacji.
-
-%package krita
-Summary:	KOffice - Krita
-Summary(pl.UTF-8):	KOffice - Krita
-Summary(pt_BR.UTF-8):	Ferramenta de desenho vetorial do KOffice
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description krita
-Krita is a painting and image editing application for KOffice. It
-supports many color spaces like RGB, grayscale, CMYK, Lab, YCBCR and
-LMS, in 8 and 16 bits per channel
-
-%description krita -l pl.UTF-8
-Krita jest aplikacją do edycji grafiki bitmapowej. Wspiera różne
-przestrzenie barw, jak np. RGB, skala szarości, CMYK, Lab, YCBCR oraz
-LMS - zarówno w trybie 8 jak i 16 bitowym na kanał.
-
-%package kspread
-Summary:	KOffice - KSpread
-Summary(pl.UTF-8):	KOffice - KSpread
-Summary(pt_BR.UTF-8):	Planilha eletrônica do KOffice
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kspread
-KSpread is the spread sheet of the KOffice, similar to MS Excel.
-
-%description kspread -l pl.UTF-8
-KSpread jest arkuszem kalkulacyjnym, podobnym do MS Excel.
-
-%description kspread -l pt_BR.UTF-8
-Planilha eletrônica do KOffice.
-
-%package kword
-Summary:	KOffice - KWord
-Summary(pl.UTF-8):	KOffice - KWord
-Summary(pt_BR.UTF-8):	Processador de texto do KOffice
-Group:		X11/Applications
-Requires:	%{name}-common = %{version}-%{release}
-
-%description kword
-KWord is a FrameMaker-like wordprocessor application for KOffice. So
-it can be used for DTP, but also for "normal" wordprocessing (like
-writing letters, reports, etc.).
-
-%description kword -l pl.UTF-8
-KWord jest ramkowym procesorem tekstu. Może być użyty do DTP, ale
-również do zwykłej edycji tekstu (jak pisanie listów, raportów, itp.).
-
-%description kword -l pt_BR.UTF-8
-Processador de texto do KOffice.
-
-%prep
-%setup -q -n %{orgname}-%{version}
-%patch0 -p1
-%patch1 -p1
-
-%build
-install -d build
-cd build
-%cmake \
-	../
-
-%{__make}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%{__make} -C build install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	kde_htmldir=%{_kdedocdir} \
-	kde_libs_htmldir=%{_kdedocdir}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post	common	-p /sbin/ldconfig
-%postun	common	-p /sbin/ldconfig
-
-%post	karbon	-p /sbin/ldconfig
-%postun	karbon	-p /sbin/ldconfig
-
-%post	kchart	-p /sbin/ldconfig
-%postun	kchart	-p /sbin/ldconfig
-
-%post	kexi	-p /sbin/ldconfig
-%postun	kexi	-p /sbin/ldconfig
-
-%post	kformula	-p /sbin/ldconfig
-%postun	kformula	-p /sbin/ldconfig
-
-%post	kplato	-p /sbin/ldconfig
-%postun	kplato	-p /sbin/ldconfig
-
-%post	kpresenter	-p /sbin/ldconfig
-%postun	kpresenter	-p /sbin/ldconfig
-
-%post	krita	-p /sbin/ldconfig
-%postun	krita	-p /sbin/ldconfig
-
-%post	kspread	-p /sbin/ldconfig
-%postun	kspread	-p /sbin/ldconfig
-
-%post	kword	-p /sbin/ldconfig
-%postun	kword	-p /sbin/ldconfig
-
-%files common
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/koconverter
-%attr(755,root,root) %{_libdir}/libkdchart.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkdchart.so.?
-%attr(755,root,root) %{_libdir}/libkochart.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkochart.so.?
-%attr(755,root,root) %{_libdir}/libkopageapp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkopageapp.so.?
-%attr(755,root,root) %{_libdir}/libkotext.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkotext.so.?
-%attr(755,root,root) %ghost %{_libdir}/libkoproperty.so.?
-%attr(755,root,root) %{_libdir}/libkoproperty.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkoreport.so.?
-%attr(755,root,root) %{_libdir}/libkoreport.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkowv2.so.?
-%attr(755,root,root) %{_libdir}/libkowv2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmsooxml.so.?
-%attr(755,root,root) %{_libdir}/libmsooxml.so.*.*.*
-%attr(755,root,root) %{_libdir}/libkowmf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkowmf.so.?
-%attr(755,root,root) %{_libdir}/libkwmf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkwmf.so.?
-%attr(755,root,root) %{_libdir}/libkwordexportfilters.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkwordexportfilters.so.?
-%attr(755,root,root) %ghost %{_libdir}/libkoplugin.so.?
-%attr(755,root,root) %{_libdir}/libkoplugin.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkowidgets.so.?
-%attr(755,root,root) %{_libdir}/libkowidgets.so.*.*.*
-%attr(755,root,root) %{_libdir}/libkarbonui.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkarbonui.so.?
-%attr(755,root,root) %{_libdir}/libkpresenterprivate.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkpresenterprivate.so.?
-%attr(755,root,root) %{_libdir}/kde4/kofficescan.so
-%attr(755,root,root) %{_libdir}/kde4/kofficethumbnail.so
-%attr(755,root,root) %{_libdir}/kde4/generickofilter.so
-%attr(755,root,root) %{_libdir}/kde4/xslt*port*.so
-%attr(755,root,root) %{_libdir}/kde4/kounavailpart.so
-%attr(755,root,root) %{_libdir}/kde4/kofficedockers.so
-%attr(755,root,root) %{_libdir}/kde4/kolcmsengine.so
-%attr(755,root,root) %{_libdir}/kde4/kprvariables.so
-%attr(755,root,root) %{_libdir}/kde4/koreport_barcodeplugin.so
-%attr(755,root,root) %{_libdir}/kde4/koreport_chartplugin.so
-%attr(755,root,root) %{_libdir}/kde4/koreport_shapeplugin.so
-#%attr(755,root,root) %{_libdir}/kde4/vectorshape.so
-%attr(755,root,root) %{_libdir}/kde4/videoshape.so
-%{_datadir}/apps/koffice
-%{_datadir}/kde4/services/kofficethumbnail.desktop
-%{_datadir}/kde4/services/kofficedockers.desktop
-%{_datadir}/kde4/services/kounavail.desktop
-%{_datadir}/kde4/services/xslt_*.desktop
-%{_datadir}/kde4/services/generic_filter.desktop
-%{_datadir}/kde4/services/kolcmsengine.desktop
-%{_datadir}/kde4/services/kprvariables.desktop
-#%{_datadir}/kde4/services/vectorshape.desktop
-%{_datadir}/kde4/services/videoshape.desktop
-%{_datadir}/kde4/services/koreport_barcodeplugin.desktop
-%{_datadir}/kde4/services/koreport_chartplugin.desktop
-%{_datadir}/kde4/services/koreport_shapeplugin.desktop
-%{_datadir}/mime/packages/msooxml-all.xml
-%{_datadir}/kde4/servicetypes/*
-%dir %{_datadir}/templates/.source
-%{_desktopdir}/kde4/koffice.desktop
-%{_iconsdir}/oxygen/*/actions/*.png
-%exclude %{_iconsdir}/oxygen/scalable
-%{_kdedocdir}/en/koffice
-%{_datadir}/color/icc/pigment
-#
-# Files i dunno what to do with
-#
-%attr(755,root,root) %{_libdir}/kde4/artistictextshape.so
-%attr(755,root,root) %{_libdir}/kde4/autocorrect.so
-%attr(755,root,root) %{_libdir}/kde4/changecase.so
-%attr(755,root,root) %{_libdir}/kde4/defaulttools.so
-%attr(755,root,root) %{_libdir}/kde4/divineproportionshape.so
-%attr(755,root,root) %{_libdir}/kde4/kopabackgroundtool.so
-%attr(755,root,root) %{_libdir}/kde4/krossmodulekplato.so
-%attr(755,root,root) %{_libdir}/kde4/krossmodulekspread.so
-%attr(755,root,root) %{_libdir}/kde4/krossmodulekword.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadsolver.so
-%attr(755,root,root) %{_libdir}/kde4/Filterkpr2odf.so
-%attr(755,root,root) %{_libdir}/kde4/applixspreadimport.so
-%attr(755,root,root) %{_libdir}/kde4/csvexport.so
-%attr(755,root,root) %{_libdir}/kde4/csvimport.so
-%attr(755,root,root) %{_libdir}/kde4/dbaseimport.so
-%attr(755,root,root) %{_libdir}/kde4/gnumericexport.so
-%attr(755,root,root) %{_libdir}/kde4/gnumericimport.so
-%attr(755,root,root) %{_libdir}/kde4/opencalcexport.so
-%attr(755,root,root) %{_libdir}/kde4/opencalcimport.so
-%attr(755,root,root) %{_libdir}/kde4/qproimport.so
-%attr(755,root,root) %{_libdir}/kde4/wpexport.so
-%attr(755,root,root) %{_libdir}/kde4/wpimport.so
-%attr(755,root,root) %{_libdir}/kde4/wpgimport.so
-%attr(755,root,root) %{_libdir}/kde4/musicshape.so
-%attr(755,root,root) %{_libdir}/kde4/pathshapes.so
-%attr(755,root,root) %{_libdir}/kde4/pictureshape.so
-%attr(755,root,root) %{_libdir}/kde4/spellcheck.so
-%attr(755,root,root) %{_libdir}/kde4/spreadsheetshape.so
-%attr(755,root,root) %{_libdir}/kde4/textshape.so
-%attr(755,root,root) %{_libdir}/kde4/textvariables.so
-%attr(755,root,root) %{_libdir}/kde4/commentshape.so
-%attr(755,root,root) %{_libdir}/kde4/kodocinfopropspage.so
-%attr(755,root,root) %{_libdir}/kde4/okularGenerator_odp.so
-%attr(755,root,root) %{_libdir}/kde4/pluginshape.so
-%attr(755,root,root) %ghost %{_libdir}/libkokross.so.?
-%attr(755,root,root) %{_libdir}/libkokross.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkoodf.so.?
-%attr(755,root,root) %{_libdir}/libkoodf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkomain.so.?
-%attr(755,root,root) %{_libdir}/libkomain.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libflake.so.?
-%attr(755,root,root) %{_libdir}/libflake.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpigmentcms.so.?
-%attr(755,root,root) %{_libdir}/libpigmentcms.so.*.*.*
-%{_datadir}/kde4/services/Filterkpr2odf.desktop
-%{_datadir}/kde4/services/artistictextshape.desktop
-%{_datadir}/kde4/services/autocorrect.desktop
-%{_datadir}/kde4/services/changecase.desktop
-%{_datadir}/kde4/services/defaulttools.desktop
-%{_datadir}/kde4/services/divineproportionshape.desktop
-%{_datadir}/kde4/services/kopabackgroundtool.desktop
-%{_datadir}/kde4/services/krossmodulekplato.desktop
-%{_datadir}/kde4/services/krossmodulekspread.desktop
-%{_datadir}/kde4/services/krossmodulekword.desktop
-%{_datadir}/kde4/services/musicshape.desktop
-%{_datadir}/kde4/services/pathshapes.desktop
-%{_datadir}/kde4/services/pictureshape.desktop
-%{_datadir}/kde4/services/spellcheck.desktop
-%{_datadir}/kde4/services/textshape.desktop
-%{_datadir}/kde4/services/textvariables.desktop
-%{_datadir}/kde4/services/commentshape.desktop
-%{_datadir}/kde4/services/html-odf_export.desktop
-%{_datadir}/kde4/services/kodocinfopropspage.desktop
-%{_datadir}/kde4/services/libokularGenerator_odp.desktop
-%{_datadir}/kde4/services/okularOdp.desktop
-%{_datadir}/kde4/services/pluginshape.desktop
-%{_desktopdir}/kde4/okularApplication_odp.desktop
-# these libs actually need to be here, to prevent LOOPS
-%attr(755,root,root) %{_libdir}/libkarboncommon.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkarboncommon.so.?
-%attr(755,root,root) %ghost %{_libdir}/libkritaimage.so.?
-%attr(755,root,root) %{_libdir}/libkritaimage.so.*.*.*
-%attr(755,root,root) %{_libdir}/libkwordprivate.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkwordprivate.so.?
-%attr(755,root,root) %ghost %{_libdir}/libkritaui.so.?
-%attr(755,root,root) %{_libdir}/libkritaui.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkspreadcommon.so.?
-%attr(755,root,root) %{_libdir}/libkspreadcommon.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkplatokernel.so.?
-%attr(755,root,root) %{_libdir}/libkplatokernel.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkplatomodels.so.?
-%attr(755,root,root) %{_libdir}/libkplatomodels.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkplatoprivate.so.?
-%attr(755,root,root) %{_libdir}/libkplatoprivate.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkplatoui.so.?
-%attr(755,root,root) %{_libdir}/libkplatoui.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkspreadodf.so.?
-%attr(755,root,root) %{_libdir}/libkspreadodf.so.*.*.*
-
-%files karbon
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/karbon
-%attr(755,root,root) %{_libdir}/libkdeinit4_karbon.so
-%attr(755,root,root) %{_libdir}/kde4/*karbon*.so
-%{_datadir}/apps/karbon
-%{_datadir}/config/karbonrc
-%{_datadir}/kde4/services/karbon*
-%{_datadir}/templates/.source/Illustration.karbon
-%{_datadir}/templates/Illustration.desktop
-%{_desktopdir}/kde4/karbon.desktop
-%{_datadir}/kde4/services/ServiceMenus/karbon_konqi.desktop
-%{_kdedocdir}/en/karbon
-
-%files kchart
-%defattr(644,root,root,755)
-#%attr(755,root,root) %ghost %{_libdir}/kchartcommon.so.?
-#%attr(755,root,root) %{_libdir}/kchartcommon.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libchartshapelib.so.?
-%attr(755,root,root) %{_libdir}/libchartshapelib.so.*.*.*
-#%attr(755,root,root) %{_libdir}/kde4/kchart*.so
-%attr(755,root,root) %{_libdir}/kde4/chartshape.so
-#%{_datadir}/apps/kchart
-%{_datadir}/kde4/services/kchart*.desktop
-%{_datadir}/kde4/services/chartshape.desktop
-%{_datadir}/kde4/services/ServiceMenus/kchart_konqi.desktop
-#%{_iconsdir}/hicolor/*/apps/kchart.png
-#%{_kdedocdir}/en/kchart
-
-%files kexi
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/kexi
-%attr(755,root,root) %ghost %{_libdir}/libkexicore.so.?
-%attr(755,root,root) %{_libdir}/libkexicore.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexidatatable.so.?
-%attr(755,root,root) %{_libdir}/libkexidatatable.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexidb.so.?
-%attr(755,root,root) %{_libdir}/libkexidb.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexiextendedwidgets.so.?
-%attr(755,root,root) %{_libdir}/libkexiextendedwidgets.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexiformutils.so.?
-%attr(755,root,root) %{_libdir}/libkexiformutils.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexiguiutils.so.?
-%attr(755,root,root) %{_libdir}/libkexiguiutils.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkeximain.so.?
-%attr(755,root,root) %{_libdir}/libkeximain.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkeximigrate.so.?
-%attr(755,root,root) %{_libdir}/libkeximigrate.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexirelationsview.so.?
-%attr(755,root,root) %{_libdir}/libkexirelationsview.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkexiutils.so.?
-%attr(755,root,root) %{_libdir}/libkexiutils.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkformdesigner.so.?
-%attr(755,root,root) %{_libdir}/libkformdesigner.so.*.*.*
-%attr(755,root,root) %{_libdir}/kde4/kexidb_mysqldriver.so
-%attr(755,root,root) %{_libdir}/kde4/kexidb_sqlite3driver.so
-%attr(755,root,root) %{_libdir}/kde4/kexidb_xbasedriver.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_csv_importexport.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_form.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_migration.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_query.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_report.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_script.so
-%attr(755,root,root) %{_libdir}/kde4/kexihandler_table.so
-%attr(755,root,root) %{_libdir}/kde4/keximigrate_kspread.so
-%attr(755,root,root) %{_libdir}/kde4/keximigrate_mdb.so
-%attr(755,root,root) %{_libdir}/kde4/keximigrate_mysql.so
-%attr(755,root,root) %{_libdir}/kde4/keximigrate_txt.so
-%attr(755,root,root) %{_libdir}/kde4/keximigrate_xbase.so
-%attr(755,root,root) %{_libdir}/kde4/kexirelationdesignshape.so
-%attr(755,root,root) %{_libdir}/kde4/kexidb_sybasedriver.so
-%attr(755,root,root) %{_libdir}/kde4/keximigrate_sybase.so
-%attr(755,root,root) %{_libdir}/kde4/kformdesigner_containers.so
-%attr(755,root,root) %{_libdir}/kde4/kformdesigner_kexidbwidgets.so
-%attr(755,root,root) %{_libdir}/kde4/kformdesigner_stdwidgets.so
-%attr(755,root,root) %{_libdir}/kde4/krossmodulekexidb.so
-%{_desktopdir}/kde4/kexi.desktop
-%{_datadir}/apps/kexi
-%{_datadir}/config/kexirc
-%dir %{_datadir}/kde4/services/kexi
-%{_datadir}/kde4/services/kexi/kexicsv_importexporthandler.desktop
-%{_datadir}/kde4/services/kexi/kexiformhandler.desktop
-%{_datadir}/kde4/services/kexi/keximigrationhandler.desktop
-%{_datadir}/kde4/services/kexi/kexiqueryhandler.desktop
-%{_datadir}/kde4/services/kexi/kexireporthandler.desktop
-%{_datadir}/kde4/services/kexi/kexiscripthandler.desktop
-%{_datadir}/kde4/services/kexi/kexitablehandler.desktop
-%{_datadir}/kde4/services/kexidb_mysqldriver.desktop
-%{_datadir}/kde4/services/kexidb_sqlite3driver.desktop
-%{_datadir}/kde4/services/kexidb_xbasedriver.desktop
-%{_datadir}/kde4/services/keximigrate_kspread.desktop
-%{_datadir}/kde4/services/keximigrate_mdb.desktop
-%{_datadir}/kde4/services/keximigrate_mysql.desktop
-%{_datadir}/kde4/services/keximigrate_txt.desktop
-%{_datadir}/kde4/services/keximigrate_xbase.desktop
-%{_datadir}/kde4/services/kexirelationdesignshape.desktop
-%{_datadir}/kde4/services/kexidb_sybasedriver.desktop
-%{_datadir}/kde4/services/keximigrate_sybase.desktop
-%dir %{_datadir}/kde4/services/kformdesigner
-%{_datadir}/kde4/services/kformdesigner/kformdesigner_containers.desktop
-%{_datadir}/kde4/services/kformdesigner/kformdesigner_kexidbfactory.desktop
-%{_datadir}/kde4/services/kformdesigner/kformdesigner_stdwidgets.desktop
-%{_kdedocdir}/en/kexi
-
-%files kformula
-%defattr(644,root,root,755)
-#%%attr(755,root,root) %{_bindir}/kformula
-#%%attr(755,root,root) %{_libdir}/libkdeinit_kformula.so
-%attr(755,root,root) %ghost %{_libdir}/libkformulalib.so.?
-%attr(755,root,root) %{_libdir}/libkformulalib.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkformulaprivate.so.?
-%attr(755,root,root) %{_libdir}/libkformulaprivate.so.*.*.*
-%attr(755,root,root) %{_libdir}/kde4/formulashape.so
-%attr(755,root,root) %{_libdir}/kde4/excelimporttodoc.so
-#%%attr(755,root,root) %{_libdir}/kde4/kformulapart.so
-%attr(755,root,root) %{_libdir}/kde4/icalendarexport.so
-%attr(755,root,root) %{_libdir}/kde4/xlsximport.so
-%attr(755,root,root) %{_libdir}/kde4/paragraphtool.so
-#%%{_desktopdir}/kde4/kformula.desktop
-%{_datadir}/kde4/services/ServiceMenus/kformula_konqi.desktop
-%{_datadir}/kde4/services/formulashape.desktop
-#%%{_datadir}/kde4/services/kformulapart.desktop
-%{_datadir}/kde4/services/paragraphtool.desktop
-%{_datadir}/apps/formulashape
-#%%{_datadir}/apps/kformula
-%{_kdedocdir}/en/kformula
-
-%files kivio
-%defattr(644,root,root,755)
-%{_datadir}/kde4/services/ServiceMenus/kivio_konqi.desktop
-
-%files kplato
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/kplato
-%attr(755,root,root) %{_bindir}/kplatowork
-%attr(755,root,root) %{_libdir}/libkdeinit4_kplatowork.so
-%attr(755,root,root) %ghost %{_libdir}/libkplatoworkapp.so.?
-%attr(755,root,root) %{_libdir}/libkplatoworkapp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkplatoworkfactory.so.?
-%attr(755,root,root) %{_libdir}/libkplatoworkfactory.so.*.*.*
-%attr(755,root,root) %{_libdir}/libkdeinit4_kplato.so
-%attr(755,root,root) %{_libdir}/kde4/kplatopart.so
-%attr(755,root,root) %{_libdir}/kde4/kplatoworkpart.so
-%{_desktopdir}/kde4/kplatowork.desktop
-%{_datadir}/apps/kplato
-%{_datadir}/apps/kplatowork
-%{_datadir}/kde4/services/kplatopart.desktop
-%{_datadir}/kde4/services/kplato_icalendar_export.desktop
-%{_datadir}/kde4/services/kplatoworkpart.desktop
-%{_desktopdir}/kde4/kplato.desktop
-%{_datadir}/config/kplatorc
-%{_datadir}/config.kcfg/kplatosettings.kcfg
-%{_datadir}/config/kplatoworkrc
-%{_iconsdir}/hicolor/*/apps/kplato.png
-%{_iconsdir}/hicolor/*/mimetypes/application-x-vnd.kde.kplato.png
-
-%files kpresenter
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/kpresenter
-%attr(755,root,root) %{_libdir}/libkdeinit4_kpresenter.so
-%attr(755,root,root) %{_libdir}/kde4/kpresenter*.so
-%attr(755,root,root) %{_libdir}/kde4/pptximport.so
-%attr(755,root,root) %{_libdir}/kde4/powerpointimport.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_barwipe.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_clockwipe.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_edgewipe.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_iriswipe.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_matrixwipe.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_slidewipe.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_fade.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_spacerotation.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_pageeffect_swapeffect.so
-%attr(755,root,root) %{_libdir}/kde4/kpr_shapeanimation_example.so
-%{_datadir}/apps/kpresenter
-%{_datadir}/config/kpresenterrc
-%{_datadir}/kde4/services/ServiceMenus/kpresenter_konqi.desktop
-%{_datadir}/templates/.source/Presentation.kpt
-%{_datadir}/templates/Presentation.desktop
-%{_datadir}/kde4/services/kpresenter*.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_barwipe.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_clockwipe.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_edgewipe.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_iriswipe.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_matrixwipe.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_slidewipe.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_fade.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_spacerotation.desktop
-%{_datadir}/kde4/services/kpr_pageeffect_swapeffect.desktop
-%{_datadir}/kde4/services/kpr_shapeanimation_example.desktop
-%{_desktopdir}/kde4/kpresenter.desktop
-%{_iconsdir}/hicolor/*/apps/kpresenter.png
-%{_kdedocdir}/en/kpresenter
-
-%files krita
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/krita
-%attr(755,root,root) %{_libdir}/libkdeinit4_krita.so
-%attr(755,root,root) %ghost %{_libdir}/libkritalibbrush.so.?
-%attr(755,root,root) %{_libdir}/libkritalibbrush.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkritalibpaintop.so.?
-%attr(755,root,root) %{_libdir}/libkritalibpaintop.so.*.*.*
-#%attr(755,root,root) %ghost %{_libdir}/libkrossmodulekrita.so.?
-#%attr(755,root,root) %{_libdir}/libkrossmodulekrita.so.*.*.*
-%attr(755,root,root) %{_libdir}/kde4/krita_colorspaces_extensions.so
-%attr(755,root,root) %{_libdir}/kde4/kritabigbrother.so
-%attr(755,root,root) %{_libdir}/kde4/kritablurfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritacolorgenerator.so
-%attr(755,root,root) %{_libdir}/kde4/kritacolorrange.so
-%attr(755,root,root) %{_libdir}/kde4/kritacolorselectorng.so
-%attr(755,root,root) %{_libdir}/kde4/kritacolorsfilters.so
-%attr(755,root,root) %{_libdir}/kde4/kritacolorspaceconversion.so
-%attr(755,root,root) %{_libdir}/kde4/kritaconvolutionfilters.so
-%attr(755,root,root) %{_libdir}/kde4/kritacurvepaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritadefaultdockers.so
-%attr(755,root,root) %{_libdir}/kde4/kritadefaultpaintops.so
-%attr(755,root,root) %{_libdir}/kde4/kritadefaulttools.so
-%attr(755,root,root) %{_libdir}/kde4/kritadeformpaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritadigitalmixer.so
-%attr(755,root,root) %{_libdir}/kde4/kritadodgeburn.so
-%attr(755,root,root) %{_libdir}/kde4/kritadropshadow.so
-%attr(755,root,root) %{_libdir}/kde4/kritadynapaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritaembossfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritaexample.so
-%attr(755,root,root) %{_libdir}/kde4/kritaextensioncolorsfilters.so
-%attr(755,root,root) %{_libdir}/kde4/kritaextensionsmanager.so
-%attr(755,root,root) %{_libdir}/kde4/kritafastcolortransferfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritafilterop.so
-%attr(755,root,root) %{_libdir}/kde4/kritagridpaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritahairypaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritahatchingpaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritahistogram.so
-%attr(755,root,root) %{_libdir}/kde4/kritaimageenhancement.so
-%attr(755,root,root) %{_libdir}/kde4/kritaimagesize.so
-#%attr(755,root,root) %{_libdir}/kde4/kritakscolorspacesplugin.so
-%attr(755,root,root) %{_libdir}/kde4/kritalayercompose.so
-%attr(755,root,root) %{_libdir}/kde4/kritalevelfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritametadataeditor.so
-%attr(755,root,root) %{_libdir}/kde4/kritamodifyselection.so
-%attr(755,root,root) %{_libdir}/kde4/kritanoisefilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritaparticlepaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritapixelizefilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritaraindropsfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritarandompickfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritarotateimage.so
-%attr(755,root,root) %{_libdir}/kde4/kritaroundcornersfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritarulerassistanttool.so
-%attr(755,root,root) %{_libdir}/kde4/kritaselectiontools.so
-%attr(755,root,root) %{_libdir}/kde4/kritaseparatechannels.so
-%attr(755,root,root) %{_libdir}/kde4/kritashearimage.so
-%attr(755,root,root) %{_libdir}/kde4/kritasketchpaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritasmallcolorselector.so
-%attr(755,root,root) %{_libdir}/kde4/kritaspecificcolorselector.so
-%attr(755,root,root) %{_libdir}/kde4/kritaspraypaintop.so
-%attr(755,root,root) %{_libdir}/kde4/kritatogether.so
-%attr(755,root,root) %{_libdir}/kde4/kritatonemapping.so
-%attr(755,root,root) %{_libdir}/kde4/kritatoolcrop.so
-%attr(755,root,root) %{_libdir}/kde4/kritatooldyna.so
-%attr(755,root,root) %{_libdir}/kde4/kritatoolgrid.so
-%attr(755,root,root) %{_libdir}/kde4/kritatoolperspectivegrid.so
-%attr(755,root,root) %{_libdir}/kde4/kritatoolpolygon.so
-%attr(755,root,root) %{_libdir}/kde4/kritatoolpolyline.so
-%attr(755,root,root) %{_libdir}/kde4/kritatoolstar.so
-%attr(755,root,root) %{_libdir}/kde4/kritatooltransform.so
-%attr(755,root,root) %{_libdir}/kde4/kritatrianglecolorselector.so
-%attr(755,root,root) %{_libdir}/kde4/kritaunsharpfilter.so
-%attr(755,root,root) %{_libdir}/kde4/kritawavefilter.so
-%attr(755,root,root) %{_libdir}/kde4/krita_raw_import.so
-%attr(755,root,root) %{_libdir}/kde4/kritabmpexport.so
-%attr(755,root,root) %{_libdir}/kde4/kritabmpimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritagifimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritajp2export.so
-%attr(755,root,root) %{_libdir}/kde4/kritajp2import.so
-%attr(755,root,root) %{_libdir}/kde4/kritajpegexport.so
-%attr(755,root,root) %{_libdir}/kde4/kritajpegimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritaoraexport.so
-%attr(755,root,root) %{_libdir}/kde4/kritaoraimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritapart.so
-%attr(755,root,root) %{_libdir}/kde4/kritapngexport.so
-%attr(755,root,root) %{_libdir}/kde4/kritapngimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritappmexport.so
-%attr(755,root,root) %{_libdir}/kde4/kritappmimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritatiffexport.so
-%attr(755,root,root) %{_libdir}/kde4/kritatiffimport.so
-%attr(755,root,root) %{_libdir}/kde4/kritaxcfimport.so
-%if %{with pdf}
-%attr(755,root,root) %{_libdir}/kde4/kritapdfimport.so
-%{_desktopdir}/kde4/krita_pdf.desktop
-%endif
-%{_desktopdir}/kde4/krita_raw.desktop
-%{_datadir}/kde4/services/ServiceMenus/krita_konqi.desktop
-%{_datadir}/apps/krita
-%{_datadir}/apps/kritaplugins
-%{_desktopdir}/kde4/krita_gif.desktop
-%{_desktopdir}/kde4/krita_ppm.desktop
-%{_desktopdir}/kde4/krita_xcf.desktop
-%{_desktopdir}/kde4/krita.desktop
-%{_desktopdir}/kde4/krita_bmp.desktop
-%{_desktopdir}/kde4/krita_jp2.desktop
-%{_desktopdir}/kde4/krita_jpeg.desktop
-%{_desktopdir}/kde4/krita_ora.desktop
-%{_desktopdir}/kde4/krita_png.desktop
-%{_desktopdir}/kde4/krita_tiff.desktop
-%{_datadir}/config/kritarc
-%{_datadir}/config/krita.knsrc
-%{_datadir}/color/icc/krita
-%{_datadir}/kde4/services/krita*.desktop
-%{_datadir}/templates/Illustration.desktop
-%{_datadir}/mime/packages/krita_ora.xml
-%{_iconsdir}/hicolor/*/apps/krita.png
-
-%files kspread
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/kspread
-%attr(755,root,root) %{_libdir}/libkdeinit4_kspread.so
-%attr(755,root,root) %{_libdir}/kde4/kspread_plugin_tool_calendar.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadbitopsmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadconversionmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreaddatabasemodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreaddatetimemodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadengineeringmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadfinancialmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadinformationmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadlogicmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadmathmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadreferencemodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadstatisticalmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadtextmodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadtrigonometrymodule.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadhtmlexport.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadhtmlimport.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadlatexexport.so
-%attr(755,root,root) %{_libdir}/kde4/kspreadpart.so
-%attr(755,root,root) %{_libdir}/kde4/spreadsheetshape.so
-%{_datadir}/apps/kspread
-%{_desktopdir}/kde4/kspread.desktop
-%{_datadir}/kde4/services/ServiceMenus/kspread_konqi.desktop
-%{_datadir}/templates/.source/SpreadSheet.kst
-%{_datadir}/templates/SpreadSheet.desktop
-%{_datadir}/kde4/services/kspread*.desktop
-%{_datadir}/kde4/services/spreadsheetshape.desktop
-%{_datadir}/config/kspreadrc
-%{_datadir}/config.kcfg/kspread.kcfg
-%{_iconsdir}/hicolor/*/apps/kspread.png
-%{_kdedocdir}/en/kspread
-
-%files kword
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/kthesaurus
-%attr(755,root,root) %{_bindir}/kword
-%attr(755,root,root) %{_libdir}/libkdeinit4_kword.so
-%attr(755,root,root) %{_libdir}/libkword*export*.so
-%attr(755,root,root) %ghost %{_libdir}/libkwordexportfilters.so.?
-%attr(755,root,root) %{_libdir}/libkdeinit4_kthesaurus.so
-%attr(755,root,root) %{_libdir}/kde4/abiword*port.so
-%attr(755,root,root) %{_libdir}/kde4/docximport.so
-%attr(755,root,root) %{_libdir}/kde4/hancomwordimport.so
-%attr(755,root,root) %{_libdir}/kde4/applixwordimport.so
-%attr(755,root,root) %{_libdir}/kde4/ascii*port.so
-%attr(755,root,root) %{_libdir}/kde4/docbookexport.so
-%attr(755,root,root) %{_libdir}/kde4/html*port.so
-%attr(755,root,root) %{_libdir}/kde4/palmdoc*port.so
-%attr(755,root,root) %{_libdir}/kde4/amipro*port.so
-%attr(755,root,root) %{_libdir}/kde4/wm*port.so
-%attr(755,root,root) %{_libdir}/kde4/rtf*port.so
-%attr(755,root,root) %{_libdir}/kde4/thesaurustool.so
-%attr(755,root,root) %{_libdir}/kde4/mswordodf_import.so
-%attr(755,root,root) %{_libdir}/kde4/kword*.so
-%attr(755,root,root) %{_libdir}/kde4/oowriter*port.so
-%{_datadir}/apps/kword
-%dir %{_datadir}/apps/xsltfilter
-%dir %{_datadir}/apps/xsltfilter/export
-%dir %{_datadir}/apps/xsltfilter/export/kword
-%dir %{_datadir}/apps/xsltfilter/export/kword/xslfo
-%{_datadir}/apps/xsltfilter/export/kword/xslfo/*.xsl
-%{_datadir}/config/kwordrc
-%{_datadir}/kde4/services/ServiceMenus/kword_konqi.desktop
-%{_datadir}/kde4/services/kword*.desktop
-%{_datadir}/kde4/services/thesaurustool.desktop
-# this is the mailmerge service info for qtsqldb and classic
-%{_datadir}/templates/.source/TextDocument.kwt
-%{_datadir}/templates/TextDocument.desktop
-%{_desktopdir}/kde4/KThesaurus.desktop
-%{_desktopdir}/kde4/kword.desktop
-%{_iconsdir}/hicolor/*/apps/kword.png
-%{_kdedocdir}/en/thesaurus
-
-%files devel
-%defattr(644,root,root,755)
-%exclude %{_libdir}/libkdeinit4_*.so
-#%%exclude %{_libdir}/libkdeinit_*.so
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/*.h
-%{_includedir}/changetracker
-%{_includedir}/kexi
-%{_includedir}/styles
-%{_datadir}/apps/cmake/modules/FindKOfficeLibs.cmake
diff --git a/kde4-koffice-libwpg02.patch b/kde4-koffice-libwpg02.patch
deleted file mode 100644
index e2a55a2..0000000
--- a/kde4-koffice-libwpg02.patch
+++ /dev/null
@@ -1,1323 +0,0 @@
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/CMakeLists.txt koffice-2.3.1-libwpg02/filters/karbon/wpg/import/CMakeLists.txt
---- koffice-2.3.1/filters/karbon/wpg/import/CMakeLists.txt	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/CMakeLists.txt	2011-01-18 07:40:25.000000000 +0100
-@@ -1,16 +1,11 @@
- 
--
- include_directories(${CMAKE_BINARY_DIR}/filters/ ${WPD_INCLUDE_DIR} ${LIBWPG_INCLUDE_DIR}/)
- 
--set(wpgimport_PART_SRCS 
--WPGImport.cpp 
--OdgExporter.cxx
--FileOutputHandler.cxx
--GraphicsElement.cxx)
-+set(wpgimport_PART_SRCS WPGImport.cpp)
- 
- kde4_add_plugin(wpgimport ${wpgimport_PART_SRCS})
- 
--target_link_libraries(wpgimport komain ${LIBWPG_LIBRARIES} ${LIBWPG_STREAM_LIBRARIES})
-+target_link_libraries(wpgimport komain ${LIBWPG_LIBRARIES} ${LIBWPG_STREAM_LIBRARIES} ${WPD_LIBRARIES})
- 
- install(TARGETS wpgimport DESTINATION ${PLUGIN_INSTALL_DIR})
- install(FILES karbon_wpg_import.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.cxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.cxx
---- koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.cxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.cxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,95 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Fridrich Strba (fridrich.strba at bluewin.ch)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the 
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
-- * Boston, MA  02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#include "FileOutputHandler.hxx"
--
--FileOutputHandler::FileOutputHandler(std::ostringstream &contentStream) :
--	mbIsTagOpened(false),
--	mContentStream(contentStream)
--{
--}
--
--void FileOutputHandler::startDocument()
--{
--}
--
--void FileOutputHandler::startElement(const char *psName, const std::vector<std::pair<std::string, std::string> > &xPropList)
--{
--	if (mbIsTagOpened)
--	{
--		mContentStream << ">";
--		mbIsTagOpened = false;
--	}
--	mContentStream << "<" << psName;
--
--	for (std::vector<std::pair<std::string, std::string> >::const_iterator i = xPropList.begin(); i != xPropList.end(); i++)
--	{
--		mContentStream << " " <<  (*i).first.c_str() << "=\"" << (*i).second.c_str() << "\"";
--	}
--	mbIsTagOpened = true;
--	msOpenedTagName = psName;
--}
--
--void FileOutputHandler::endElement(const char *psName)
--{
--	if (mbIsTagOpened)
--	{
--		if( msOpenedTagName == psName )
--		{
--			mContentStream << "/>";
--			mbIsTagOpened = false;
--		}
--		else // should not happen, but handle it
--		{
--			mContentStream << ">";
--			mContentStream << "</" << psName << ">";
--			mbIsTagOpened = false;
--		}
--	}
--	else
--	{
--		mContentStream << "</" << psName << ">";
--		mbIsTagOpened = false;
--	}
--}
--
--void FileOutputHandler::characters(const std::string &sCharacters)
--{
--	if (mbIsTagOpened)
--	{
--		mContentStream << ">";
--		mbIsTagOpened = false;
--	}
--	mContentStream << sCharacters.c_str();
--}
--
--void FileOutputHandler::endDocument()
--{
--	if (mbIsTagOpened)
--	{
--		mContentStream << ">";
--		mbIsTagOpened = false;
--	}
--}
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.hxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.hxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,49 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Fridrich Strba (fridrich.strba at bluewin.ch)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the 
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
-- * Boston, MA  02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#ifndef FILEOUTPUTHANDLER_H
--#define FILEOUTPUTHANDLER_H
--
--#include <iostream>
--#include <sstream>
--#include <string>
--#include "GraphicsHandler.hxx"
--
--class FileOutputHandler : public GraphicsHandler
--{
--  public:
--        explicit FileOutputHandler(std::ostringstream &contentStream);
--        virtual void startDocument();
--        virtual void endDocument();
--        virtual void startElement(const char *psName, const std::vector<std::pair<std::string, std::string> > &xPropList);
--        virtual void endElement(const char *psName);
--        virtual void characters(const std::string &sCharacters);
--
--  private:
--	bool mbIsTagOpened;
--	std::string msOpenedTagName;
--	std::ostringstream &mContentStream;
--};
--#endif
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.cxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.cxx
---- koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.cxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.cxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,66 +0,0 @@
--/* GraphicsElement: The items we are collecting to be put into the Writer
-- * document: paragraph and spans of text, as well as section breaks.
-- *
-- * Copyright (C) 2002-2003 William Lachance (william.lachance at sympatico.ca)
-- * 
-- * This program is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Lesser General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This program is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the 
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
-- * Boston, MA  02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- *
-- */
--
--/* "This product is not manufactured, approved, or supported by 
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#include "GraphicsElement.hxx"
--#include "GraphicsHandler.hxx"
--#include <string.h>
--
--#define ASCII_SPACE 0x0020
--
--void TagGraphicsElement::print() const
--{
--}
--
--void OpenTagGraphicsElement::write(GraphicsHandler *pHandler) const
--{
--	pHandler->startElement(getTagName().c_str(), maAttrList);
--}
--
--void OpenTagGraphicsElement::print() const
--{ 
--	TagGraphicsElement::print(); 	
--}
--
--void OpenTagGraphicsElement::addAttribute(const std::string &szAttributeName, const std::string &sAttributeValue)
--{
--	std::pair<std::string, std::string> tmpAttribute;
--	tmpAttribute.first = szAttributeName;
--	tmpAttribute.second = sAttributeValue;
--        maAttrList.push_back(tmpAttribute);
--}
--
--void CloseTagGraphicsElement::write(GraphicsHandler *pHandler) const
--{
--
--	pHandler->endElement(getTagName().c_str());
--}
--
--void CharDataGraphicsElement::write(GraphicsHandler *pHandler) const
--{
--	pHandler->characters(msData);
--}
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.hxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.hxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,84 +0,0 @@
--/* GraphicsElement: The items we are collecting to be put into the Writer
-- * document: paragraph and spans of text, as well as section breaks.
-- *
-- * Copyright (C) 2002-2003 William Lachance (william.lachance at sympatico.ca)
-- * 
-- * This program is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Lesser General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This program is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the 
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
-- * Boston, MA  02111-1301 USA
-- *
-- * For further information visit http://libwpd.sourceforge.net
-- *
-- */
--
--/* "This product is not manufactured, approved, or supported by 
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#ifndef _GRAPHICSELEMENT_H
--#define _GRAPHICSELEMENT_H
--#include <string>
--#include <map>
--#include <vector>
--
--#include "GraphicsHandler.hxx"
--
--class GraphicsElement
--{
--public:	
--	virtual ~GraphicsElement() {}
--	virtual void write(GraphicsHandler *pHandler) const = 0;
--	virtual void print() const {}
--};
--
--class TagGraphicsElement : public GraphicsElement
--{
--public:
--	explicit TagGraphicsElement(const char *szTagName) : msTagName(szTagName) {}
--	const std::string &getTagName() const { return msTagName; }
--	virtual void print() const;
--private:
--	const std::string msTagName;
--};
--
--class OpenTagGraphicsElement : public TagGraphicsElement
--{
--public:
--	explicit OpenTagGraphicsElement(const char *szTagName) : TagGraphicsElement(szTagName) {}
--	~OpenTagGraphicsElement() {}
--	void addAttribute(const std::string &szAttributeName, const std::string &sAttributeValue);
--	virtual void write(GraphicsHandler *pHandler) const;
--	virtual void print () const;
--private:
--	std::vector<std::pair<std::string, std::string> > maAttrList;
--};
--
--class CloseTagGraphicsElement : public TagGraphicsElement
--{
--public:
--	explicit CloseTagGraphicsElement(const char *szTagName) : TagGraphicsElement(szTagName) {}
--	virtual void write(GraphicsHandler *pHandler) const;
--};
--
--class CharDataGraphicsElement : public GraphicsElement
--{
--public:
--	CharDataGraphicsElement(const char *sData) : GraphicsElement(), msData(sData) {}
--	virtual void write(GraphicsHandler *pHandler) const;
--private:
--	std::string msData;
--};
--
--
--#endif
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/GraphicsHandler.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsHandler.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/GraphicsHandler.hxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsHandler.hxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,43 +0,0 @@
--/*
-- * Copyright (C) 2004 William Lachance (wlach at interlog.com)
-- * Copyright (C) 2004 Net Integration Technologies (http://www.net-itech.com)
-- *
-- * This program is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU General Public License
-- * as published by the Free Software Foundation; either version 2
-- * of the License, or (at your option) any later version.
-- *
-- * This program is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- * GNU General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the 
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
-- * Boston, MA  02111-1301 USA
-- *
-- *  Contributor(s): Martin Gallwey (gallwey at sun.com)
-- *
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--#ifndef _GRAPHICSHANDLER_H
--#define _GRAPHICSHANDLER_H
--#include <string>
--#include <map>
--#include <vector>
--
--class GraphicsHandler
--{
--public:
--	virtual ~GraphicsHandler() {}
--        virtual void startDocument() = 0;
--        virtual void endDocument() = 0;
--        virtual void startElement(const char *psName, const std::vector< std::pair <std::string, std::string> > &xPropList) = 0;
--        virtual void endElement(const char *psName) = 0;
--        virtual void characters(const std::string &sCharacters) = 0;
--};
--#endif
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.cxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.cxx
---- koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.cxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.cxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,662 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Ariya Hidayat (ariya at kde.org)
-- * Copyright (C) 2006 Fridrich Strba (fridrich.strba at bluewin.ch)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA  02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#include "OdgExporter.hxx"
--#include "GraphicsElement.hxx"
--#include "GraphicsHandler.hxx"
--#include <locale.h>
--
--static std::string doubleToString(const double value)
--{
--  std::ostringstream tempStream;
--  tempStream << value;
--  std::string decimalPoint(localeconv()->decimal_point);
--  if ((decimalPoint.size() == 0) || (decimalPoint == "."))
--    return tempStream.str();
--  std::string stringValue(tempStream.str());
--  if (!stringValue.empty())
--  {
--    std::string::size_type pos;
--    while ((pos = stringValue.find(decimalPoint)) != std::string::npos)
--          stringValue.replace(pos,decimalPoint.size(),".");
--  }
--  return stringValue;
--}
--
--
--OdgExporter::OdgExporter(GraphicsHandler *pHandler, const bool isFlatXML):
--        mpHandler(pHandler),
--        m_fillRule(AlternatingFill),
--        m_gradientIndex(1),
--        m_dashIndex(1),
--        m_styleIndex(1),
--        m_width(0.0f),
--        m_height(0.0f),
--        m_isFlatXML(isFlatXML)
--{
--}
--
--OdgExporter::~OdgExporter()
--{
--        for (std::vector <GraphicsElement *>::iterator iterStroke = mStrokeDashElements.begin();
--                iterStroke != mStrokeDashElements.end(); iterStroke++)
--                delete (*iterStroke);
--
--        for (std::vector <GraphicsElement *>::iterator iterGradient = mGradientElements.begin();
--                iterGradient != mGradientElements.end(); iterGradient++)
--                delete (*iterGradient);
--
--        for (std::vector <GraphicsElement *>::iterator iterAutomaticStyles = mAutomaticStylesElements.begin();
--                iterAutomaticStyles != mAutomaticStylesElements.end(); iterAutomaticStyles++)
--                delete (*iterAutomaticStyles);
--
--        for (std::vector<GraphicsElement *>::iterator bodyIter = mBodyElements.begin();
--                bodyIter != mBodyElements.end(); bodyIter++)
--                delete (*bodyIter);
--}
--
--void OdgExporter::startGraphics(double width, double height)
--{
--        m_gradientIndex = 1;
--        m_dashIndex = 1;
--        m_styleIndex = 1;
--        m_width = width;
--        m_height = height;
--
--
--        mpHandler->startDocument();
--        OpenTagGraphicsElement tmpOfficeDocumentContent("office:document");
--        tmpOfficeDocumentContent.addAttribute("xmlns:office", "urn:oasis:names:tc:opendocument:xmlns:office:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:style", "urn:oasis:names:tc:opendocument:xmlns:style:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:text", "urn:oasis:names:tc:opendocument:xmlns:text:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:draw", "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:dc", "http://purl.org/dc/elements/1.1/");
--        tmpOfficeDocumentContent.addAttribute("xmlns:svg", "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:fo", "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:config", "urn:oasis:names:tc:opendocument:xmlns:config:1.0");
--        tmpOfficeDocumentContent.addAttribute("xmlns:ooo", "http://openoffice.org/2004/office");
--        tmpOfficeDocumentContent.addAttribute("office:version", "1.0");
--        if (m_isFlatXML)
--                        tmpOfficeDocumentContent.addAttribute("office:mimetype", "application/x-vnd.oasis.openoffice.drawing");
--        tmpOfficeDocumentContent.write(mpHandler);
--
--        OpenTagGraphicsElement("office:settings").write(mpHandler);
--
--        OpenTagGraphicsElement configItemSetOpenElement("config:config-item-set");
--        configItemSetOpenElement.addAttribute("config:name", "ooo:view-settings");
--        configItemSetOpenElement.write(mpHandler);
--
--        OpenTagGraphicsElement configItemOpenElement1("config:config-item");
--        configItemOpenElement1.addAttribute("config:name", "VisibleAreaTop");
--        configItemOpenElement1.addAttribute("config:type", "int");
--        configItemOpenElement1.write(mpHandler);
--        mpHandler->characters("0");
--        mpHandler->endElement("config:config-item");
--
--        OpenTagGraphicsElement configItemOpenElement2("config:config-item");
--        configItemOpenElement2.addAttribute("config:name", "VisibleAreaLeft");
--        configItemOpenElement2.addAttribute("config:type", "int");
--        configItemOpenElement2.write(mpHandler);
--        mpHandler->characters("0");
--        mpHandler->endElement("config:config-item");
--
--        OpenTagGraphicsElement configItemOpenElement3("config:config-item");
--        configItemOpenElement3.addAttribute("config:name", "VisibleAreaWidth");
--        configItemOpenElement3.addAttribute("config:type", "int");
--        configItemOpenElement3.write(mpHandler);
--        m_value.str("");
--        m_value << (unsigned)(2540 * width);
--        mpHandler->characters(m_value.str());
--        mpHandler->endElement("config:config-item");
--
--        OpenTagGraphicsElement configItemOpenElement4("config:config-item");
--        configItemOpenElement4.addAttribute("config:name", "VisibleAreaHeight");
--        configItemOpenElement4.addAttribute("config:type", "int");
--        configItemOpenElement4.write(mpHandler);
--        m_value.str("");
--        m_value << (unsigned)(2540 * height);
--        mpHandler->characters(m_value.str());
--        mpHandler->endElement("config:config-item");
--
--        mpHandler->endElement("config:config-item-set");
--
--        mpHandler->endElement("office:settings");
--
--}
--
--void OdgExporter::endGraphics()
--{
--        OpenTagGraphicsElement("office:styles").write(mpHandler);
--
--        for (std::vector <GraphicsElement *>::const_iterator iterStroke = mStrokeDashElements.begin();
--                iterStroke != mStrokeDashElements.end(); iterStroke++)
--                (*iterStroke)->write(mpHandler);
--
--        for (std::vector <GraphicsElement *>::const_iterator iterGradient = mGradientElements.begin();
--                iterGradient != mGradientElements.end(); iterGradient++)
--                (*iterGradient)->write(mpHandler);
--
--        mpHandler->endElement("office:styles");
--
--        OpenTagGraphicsElement("office:automatic-styles").write(mpHandler);
--
--        for (std::vector <GraphicsElement *>::const_iterator iterAutomaticStyles = mAutomaticStylesElements.begin();
--                iterAutomaticStyles != mAutomaticStylesElements.end(); iterAutomaticStyles++)
--                (*iterAutomaticStyles)->write(mpHandler);
--
--        OpenTagGraphicsElement tmpStylePageLayoutOpenElement("style:page-layout");
--        tmpStylePageLayoutOpenElement.addAttribute("style:name", "PM0");
--        tmpStylePageLayoutOpenElement.write(mpHandler);
--
--        OpenTagGraphicsElement tmpStylePageLayoutPropertiesOpenElement("style:page-layout-properties");
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-top", "0in");
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-bottom", "0in");
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-left", "0in");
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-right", "0in");
--        m_value.str("");
--        m_value <<  doubleToString(m_width) << "in";
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:page-width", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(m_height)  << "in";
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:page-height", m_value.str());
--        m_value.str("");
--        tmpStylePageLayoutPropertiesOpenElement.addAttribute("style:print-orientation", "portrait");
--        tmpStylePageLayoutPropertiesOpenElement.write(mpHandler);
--
--        mpHandler->endElement("style:page-layout-properties");
--
--        mpHandler->endElement("style:page-layout");
--
--        OpenTagGraphicsElement tmpStyleStyleOpenElement("style:style");
--        tmpStyleStyleOpenElement.addAttribute("style:name", "dp1");
--        tmpStyleStyleOpenElement.addAttribute("style:family", "drawing-page");
--        tmpStyleStyleOpenElement.write(mpHandler);
--
--        OpenTagGraphicsElement tmpStyleDrawingPagePropertiesOpenElement("style:drawing-page-properties");
--        // tmpStyleDrawingPagePropertiesOpenElement.addAttribute("draw:background-size", "border");
--        tmpStyleDrawingPagePropertiesOpenElement.addAttribute("draw:fill", "none");
--        tmpStyleDrawingPagePropertiesOpenElement.write(mpHandler);
--
--        mpHandler->endElement("style:drawing-page-properties");
--
--        mpHandler->endElement("style:style");
--
--        mpHandler->endElement("office:automatic-styles");
--
--        OpenTagGraphicsElement("office:master-styles").write(mpHandler);
--
--        OpenTagGraphicsElement tmpStyleMasterPageOpenElement("style:master-page");
--        tmpStyleMasterPageOpenElement.addAttribute("style:name", "Default");
--        tmpStyleMasterPageOpenElement.addAttribute("style:page-layout-name", "PM0");
--        tmpStyleMasterPageOpenElement.addAttribute("draw:style-name", "dp1");
--        tmpStyleMasterPageOpenElement.write(mpHandler);
--
--        mpHandler->endElement("style:master-page");
--
--        mpHandler->endElement("office:master-styles");
--
--        OpenTagGraphicsElement("office:body").write(mpHandler);
--
--        OpenTagGraphicsElement("office:drawing").write(mpHandler);
--
--        OpenTagGraphicsElement tmpDrawPageOpenElement("draw:page");
--        tmpDrawPageOpenElement.addAttribute("draw:name", "page1");
--        tmpDrawPageOpenElement.addAttribute("draw:style-name", "dp1");
--        tmpDrawPageOpenElement.addAttribute("draw:master-page-name", "Default");
--        tmpDrawPageOpenElement.write(mpHandler);
--
--        for (std::vector<GraphicsElement *>::const_iterator bodyIter = mBodyElements.begin();
--                bodyIter != mBodyElements.end(); bodyIter++)
--        {
--                (*bodyIter)->write(mpHandler);
--        }
--
--        mpHandler->endElement("draw:page");
--        mpHandler->endElement("office:drawing");
--        mpHandler->endElement("office:body");
--        mpHandler->endElement("office:document");
--
--        mpHandler->endDocument();
--}
--
--void OdgExporter::setPen(const libwpg::WPGPen& pen)
--{
--        m_pen = pen;
--}
--
--void OdgExporter::setBrush(const libwpg::WPGBrush& brush)
--{
--        m_brush = brush;
--}
--
--void OdgExporter::setFillRule(FillRule rule)
--{
--        m_fillRule = rule;
--}
--
--void OdgExporter::startLayer(unsigned int)
--{
--}
--
--void OdgExporter::endLayer(unsigned int)
--{
--}
--
--void OdgExporter::drawRectangle(const libwpg::WPGRect& rect, double rx, double )
--{
--        writeStyle();
--        OpenTagGraphicsElement *pDrawRectElement = new OpenTagGraphicsElement("draw:rect");
--        m_value.str("");
--        m_value << "gr" << m_styleIndex-1;
--        pDrawRectElement->addAttribute("draw:style-name", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(rect.x1) << "in";
--        pDrawRectElement->addAttribute("svg:x", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(rect.y1) << "in";
--        pDrawRectElement->addAttribute("svg:y", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(rect.x2-rect.x1) << "in";
--        pDrawRectElement->addAttribute("svg:width", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(rect.y2-rect.y1) << "in";
--        pDrawRectElement->addAttribute("svg:height", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(rx) << "in";
--        // FIXME: what to do when rx != ry ?
--        pDrawRectElement->addAttribute("draw:corner-radius", m_value.str());
--        m_value.str("");
--        mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawRectElement));
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:rect")));
--}
--
--void OdgExporter::drawEllipse(const libwpg::WPGPoint& center, double rx, double ry)
--{
--        writeStyle();
--        OpenTagGraphicsElement *pDrawEllipseElement = new OpenTagGraphicsElement("draw:ellipse");
--        m_value.str("");
--        m_value << "gr" << m_styleIndex-1;
--        pDrawEllipseElement->addAttribute("draw:style-name", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(center.x - rx) << "in";
--        pDrawEllipseElement->addAttribute("svg:x", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(center.y - ry) << "in";
--        pDrawEllipseElement->addAttribute("svg:y", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(2 * rx) << "in";
--        pDrawEllipseElement->addAttribute("svg:width", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(2 * ry) << "in";
--        pDrawEllipseElement->addAttribute("svg:height", m_value.str());
--        m_value.str("");
--        mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawEllipseElement));
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:ellipse")));
--}
--
--void OdgExporter::drawPolygon(const libwpg::WPGPointArray& vertices)
--{
--        if(vertices.count() < 2)
--                return;
--
--        if(vertices.count() == 2)
--        {
--                const libwpg::WPGPoint& p1 = vertices[0];
--                const libwpg::WPGPoint& p2 = vertices[1];
--
--                writeStyle();
--                OpenTagGraphicsElement *pDrawLineElement = new OpenTagGraphicsElement("draw:line");
--                m_value.str("");
--                m_value << "gr" << m_styleIndex-1;
--                pDrawLineElement->addAttribute("draw:style-name", m_value.str());
--                m_value.str("");
--                pDrawLineElement->addAttribute("draw:text-style-name", "P1");
--                pDrawLineElement->addAttribute("draw:layer", "layout");
--                m_value << doubleToString(p1.x)  << "in";
--                pDrawLineElement->addAttribute("svg:x1", m_value.str());
--                m_value.str("");
--                m_value << doubleToString(p1.y)  << "in";
--                pDrawLineElement->addAttribute("svg:y1", m_value.str());
--                m_value.str("");
--                m_value  << doubleToString(p2.x)  << "in";
--                pDrawLineElement->addAttribute("svg:x2", m_value.str());
--                m_value.str("");
--                m_value << doubleToString(p2.y)  << "in";
--                pDrawLineElement->addAttribute("svg:y2", m_value.str());
--                m_value.str("");
--                mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawLineElement));
--                mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:line")));
--        }
--        else
--        {
--                // draw as path
--                libwpg::WPGPath path;
--                path.moveTo(vertices[0]);
--                for(unsigned long ii = 1; ii < vertices.count(); ii++)
--                        path.lineTo(vertices[ii]);
--                path.closed = true;
--                drawPath(path);
--        }
--}
--
--void OdgExporter::drawPath(const libwpg::WPGPath& path)
--{
--        if(path.count() == 0)
--                return;
--
--        // try to find the bounding box
--        // this is simple convex hull technique, the bounding box might not be
--        // accurate but that should be enough for this purpose
--        libwpg::WPGPoint p = path.element(0).point;
--        libwpg::WPGPoint q = path.element(0).point;
--        for(unsigned k = 0; k < path.count(); k++)
--        {
--                libwpg::WPGPathElement element = path.element(k);
--                p.x = (p.x > element.point.x) ? element.point.x : p.x;
--                p.y = (p.y > element.point.y) ? element.point.y : p.y;
--                q.x = (q.x < element.point.x) ? element.point.x : q.x;
--                q.y = (q.y < element.point.y) ? element.point.y : q.y;
--                if(element.type == libwpg::WPGPathElement::CurveToElement)
--                {
--                        p.x = (p.x > element.extra1.x) ? element.extra1.x : p.x;
--                        p.y = (p.y > element.extra1.y) ? element.extra1.y : p.y;
--                        q.x = (q.x < element.extra1.x) ? element.extra1.x : q.x;
--                        q.y = (q.y < element.extra1.y) ? element.extra1.y : q.y;
--                        p.x = (p.x > element.extra2.x) ? element.extra2.x : p.x;
--                        p.y = (p.y > element.extra2.y) ? element.extra2.y : p.y;
--                        q.x = (q.x < element.extra2.x) ? element.extra2.x : q.x;
--                        q.y = (q.y < element.extra2.y) ? element.extra2.y : q.y;
--                }
--        }
--        double vw = q.x - p.x;
--        double vh = q.y - p.y;
--
--        writeStyle();
--
--        OpenTagGraphicsElement *pDrawPathElement = new OpenTagGraphicsElement("draw:path");
--        m_value.str("");
--        m_value << "gr" << m_styleIndex-1;
--        pDrawPathElement->addAttribute("draw:style-name", m_value.str());
--        m_value.str("");
--        pDrawPathElement->addAttribute("draw:text-style-name", "P1");
--        pDrawPathElement->addAttribute("draw:layer", "layout");
--        m_value << doubleToString(p.x)  << "in";
--        pDrawPathElement->addAttribute("svg:x", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(p.y)  << "in";
--        pDrawPathElement->addAttribute("svg:y", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(vw) << "in";
--        pDrawPathElement->addAttribute("svg:width", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(vh) << "in";
--        pDrawPathElement->addAttribute("svg:height", m_value.str());
--        m_value.str("");
--        m_value << "0 0 " << (int)(vw*2540) << " " << (int)(vh*2540);
--        pDrawPathElement->addAttribute("svg:viewBox", m_value.str());
--        m_value.str("");
--
--        for(unsigned i = 0; i < path.count(); i++)
--        {
--                libwpg::WPGPathElement element = path.element(i);
--                libwpg::WPGPoint point = element.point;
--                switch(element.type)
--                {
--                        // 2540 is 2.54*1000, 2.54 in = 1 in
--                        case libwpg::WPGPathElement::MoveToElement:
--                                m_value << "M" << (int)((point.x-p.x)*2540) << " ";
--                                m_value << (int)((point.y-p.y)*2540);
--                                break;
--
--                        case libwpg::WPGPathElement::LineToElement:
--                                m_value << "L" << (int)((point.x-p.x)*2540) << " ";
--                                m_value << (int)((point.y-p.y)*2540);
--                                break;
--
--                        case libwpg::WPGPathElement::CurveToElement:
--                                m_value << "C" << (int)((element.extra1.x-p.x)*2540) << " ";
--                                m_value << (int)((element.extra1.y-p.y)*2540) << " ";
--                                m_value << (int)((element.extra2.x-p.x)*2540) << " ";
--                                m_value << (int)((element.extra2.y-p.y)*2540) << " ";
--                                m_value << (int)((point.x-p.x)*2540) << " ";
--                                m_value << (int)((point.y-p.y)*2540);
--                                break;
--
--                        default:
--                                break;
--                }
--        }
--        if(path.closed)
--                m_value << " Z";
--        pDrawPathElement->addAttribute("svg:d", m_value.str());
--        m_value.str("");
--        mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawPathElement));
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:path")));
--}
--
--
--void OdgExporter::drawBitmap(const libwpg::WPGBitmap& bitmap)
--{
--        OpenTagGraphicsElement *pDrawFrameElement = new OpenTagGraphicsElement("draw:frame");
--        m_value.str("");
--        m_value << doubleToString(bitmap.rect.x1) << "in";
--        pDrawFrameElement->addAttribute("svg:x", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(bitmap.rect.y1) << "in";
--        pDrawFrameElement->addAttribute("svg:y", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(bitmap.rect.height()) << "in";
--        pDrawFrameElement->addAttribute("svg:height", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(bitmap.rect.width()) << "in";
--        pDrawFrameElement->addAttribute("svg:width", m_value.str());
--        mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawFrameElement));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("draw:image")));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("office:binary-data")));
--
--        libwpg::WPGString base64Binary;
--        bitmap.generateBase64DIB(base64Binary);
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CharDataGraphicsElement(base64Binary.cstr())));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("office:binary-data")));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:image")));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:frame")));
--}
--
--void OdgExporter::drawImageObject(const libwpg::WPGBinaryData& binaryData)
--{
--        if (binaryData.mimeType.length() <= 0)
--                return;
--        OpenTagGraphicsElement *pDrawFrameElement = new OpenTagGraphicsElement("draw:frame");
--        m_value.str("");
--        m_value << doubleToString(binaryData.rect.x1) << "in";
--        pDrawFrameElement->addAttribute("svg:x", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(binaryData.rect.y1) << "in";
--        pDrawFrameElement->addAttribute("svg:y", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(binaryData.rect.height()) << "in";
--        pDrawFrameElement->addAttribute("svg:height", m_value.str());
--        m_value.str("");
--        m_value << doubleToString(binaryData.rect.width()) << "in";
--        pDrawFrameElement->addAttribute("svg:width", m_value.str());
--        mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawFrameElement));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("draw:image")));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("office:binary-data")));
--
--        libwpg::WPGString base64Binary = binaryData.getBase64Data();
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CharDataGraphicsElement(base64Binary.cstr())));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("office:binary-data")));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:image")));
--
--        mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:frame")));
--}
--
--
--static std::string colorToHex(const libwpg::WPGColor& color)
--{
--        char hexdigits[] = "0123456789abcdef";
--        char buffer[] = "123456";
--        buffer[0] = hexdigits[(color.red >> 4) & 15];
--        buffer[1] = hexdigits[color.red & 15];
--        buffer[2] = hexdigits[(color.green >> 4) & 15];
--        buffer[3] = hexdigits[color.green & 15];
--        buffer[4] = hexdigits[(color.blue >> 4) & 15];
--        buffer[5] = hexdigits[color.blue & 15];
--        return std::string(buffer);
--}
--
--void OdgExporter::writeStyle()
--{
--        m_value.str("");
--        m_name.str("");
--
--        if(!m_pen.solid && (m_pen.dashArray.count() >=2 ) )
--        {
--                // ODG only supports dashes with the same length of spaces inbetween
--                // here we take the first space and assume everything else the same
--                // note that dash length is written in percentage
--                double distance = m_pen.dashArray.at(1);
--                OpenTagGraphicsElement *tmpDrawStrokeDashElement = new OpenTagGraphicsElement("draw:stroke-dash");
--                tmpDrawStrokeDashElement->addAttribute("draw:style", "rect");
--                m_value << "Dash_" << m_dashIndex++;
--                tmpDrawStrokeDashElement->addAttribute("draw:name", m_value.str());
--                m_value.str("");
--                m_value << doubleToString(distance*100) << "%";
--                tmpDrawStrokeDashElement->addAttribute("draw:distance", m_value.str());
--                m_value.str("");
--                for(unsigned i = 0; i < m_pen.dashArray.count()/2; i++)
--                {
--                        m_name << "draw:dots" << i+1;
--                        tmpDrawStrokeDashElement->addAttribute(m_name.str(), "1");
--                        m_name.str("");
--                        m_name << "draw:dots" << i+1 << "-length";
--                        m_value << doubleToString(100*m_pen.dashArray.at(i*2)) << "%";
--                        tmpDrawStrokeDashElement->addAttribute(m_name.str(), m_value.str());
--                        m_name.str("");
--                        m_value.str("");
--                }
--                mStrokeDashElements.push_back(static_cast<GraphicsElement *>(tmpDrawStrokeDashElement));
--                mStrokeDashElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:stroke-dash")));
--        }
--
--        if(m_brush.style == libwpg::WPGBrush::Gradient)
--        {
--                OpenTagGraphicsElement *tmpDrawGradientElement = new OpenTagGraphicsElement("draw:gradient");
--                tmpDrawGradientElement->addAttribute("draw:style", "linear");
--                m_value << "Gradient_" << m_gradientIndex++;
--                tmpDrawGradientElement->addAttribute("draw:name", m_value.str());
--                m_value.str("");
--
--                // ODG angle unit is 0.1 degree
--                double angle = -m_brush.gradient.angle();
--                while(angle < 0)
--                        angle += 360;
--                while(angle > 360)
--                        angle -= 360;
--
--                m_value << (unsigned)(angle*10);
--                tmpDrawGradientElement->addAttribute("draw:angle", m_value.str());
--                m_value.str("");
--
--                libwpg::WPGColor startColor = m_brush.gradient.stopColor(0);
--                libwpg::WPGColor stopColor = m_brush.gradient.stopColor(1);
--                m_value << "#" << colorToHex(startColor);
--                tmpDrawGradientElement->addAttribute("draw:start-color", m_value.str());
--                m_value.str("");
--                m_value << "#" << colorToHex(stopColor);
--                tmpDrawGradientElement->addAttribute("draw:end-color", m_value.str());
--                m_value.str("");
--                tmpDrawGradientElement->addAttribute("draw:start-intensity", "100%");
--                tmpDrawGradientElement->addAttribute("draw:end-intensity", "100%");
--                tmpDrawGradientElement->addAttribute("draw:border", "0%");
--                mGradientElements.push_back(static_cast<GraphicsElement *>(tmpDrawGradientElement));
--                mGradientElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:gradient")));
--        }
--
--        OpenTagGraphicsElement *tmpStyleStyleElement = new OpenTagGraphicsElement("style:style");
--        m_value << "gr" << m_styleIndex;
--        tmpStyleStyleElement->addAttribute("style:name", m_value.str());
--        m_value.str("");
--        tmpStyleStyleElement->addAttribute("style:family", "graphic");
--        tmpStyleStyleElement->addAttribute("style:parent-style-name", "standard");
--        mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(tmpStyleStyleElement));
--
--        OpenTagGraphicsElement *tmpStyleGraphicPropertiesElement = new OpenTagGraphicsElement("style:graphic-properties");
--
--        if(m_pen.width > 0.0)
--        {
--                m_value << doubleToString(m_pen.width) << "in";
--                tmpStyleGraphicPropertiesElement->addAttribute("svg:stroke-width", m_value.str());
--                m_value.str("");
--                m_value << "#" << colorToHex(m_pen.foreColor);
--                tmpStyleGraphicPropertiesElement->addAttribute("svg:stroke-color", m_value.str());
--                m_value.str("");
--
--                if(!m_pen.solid)
--                {
--                        tmpStyleGraphicPropertiesElement->addAttribute("draw:stroke", "dash");
--                        m_value << "Dash_" << m_dashIndex-1;
--                        tmpStyleGraphicPropertiesElement->addAttribute("draw:stroke-dash", m_value.str());
--                        m_value.str("");
--                }
--        }
--        else
--                tmpStyleGraphicPropertiesElement->addAttribute("draw:stroke", "none");
--
--        if(m_brush.style == libwpg::WPGBrush::NoBrush)
--                tmpStyleGraphicPropertiesElement->addAttribute("draw:fill", "none");
--
--        if(m_brush.style == libwpg::WPGBrush::Solid)
--        {
--                tmpStyleGraphicPropertiesElement->addAttribute("draw:fill", "solid");
--                m_value << "#" << colorToHex(m_brush.foreColor);
--                tmpStyleGraphicPropertiesElement->addAttribute("draw:fill-color", m_value.str());
--                m_value.str("");
--        }
--
--        if(m_brush.style == libwpg::WPGBrush::Gradient)
--        {
--                tmpStyleGraphicPropertiesElement->addAttribute("draw:fill", "gradient");
--                m_value << "Gradient_" << m_gradientIndex-1;
--                tmpStyleGraphicPropertiesElement->addAttribute("draw:fill-gradient-name", m_value.str());
--                m_value.str("");
--        }
--
--        mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(tmpStyleGraphicPropertiesElement));
--        mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("style:graphic-properties")));
--
--        mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("style:style")));
--        m_styleIndex++;
--}
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.hxx	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.hxx	1970-01-01 01:00:00.000000000 +0100
-@@ -1,116 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Ariya Hidayat (ariya at kde.org)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the 
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
-- * Boston, MA  02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#ifndef __ODGEXPORTER_H__
--#define __ODGEXPORTER_H__
--
--#include <iostream>
--#include <sstream>
--#include <string>
--
--#include <libwpg/libwpg.h>
--#include "GraphicsElement.hxx"
--
--class OdgExporter : public libwpg::WPGPaintInterface {
--public:
--	explicit OdgExporter(GraphicsHandler *pHandler,
--			     const bool isFlatXML = false);
--	~OdgExporter();
--
--#if LIBWPG_VERSION_MINOR<2
--	void startGraphics(double imageWidth, double imageHeight);
--	void endGraphics();
--	void startLayer(unsigned int id);
--	void endLayer(unsigned int id);
--
--	void setPen(const libwpg::WPGPen& pen);
--	void setBrush(const libwpg::WPGBrush& brush);
--	void setFillRule(FillRule rule);
--
--	void drawRectangle(const libwpg::WPGRect& rect, double rx, double ry);
--	void drawEllipse(const libwpg::WPGPoint& center, double rx, double ry);
--	void drawPolygon(const libwpg::WPGPointArray& vertices);
--	void drawPath(const libwpg::WPGPath& path);
--	void drawBitmap(const libwpg::WPGBitmap& bitmap);
--	void drawImageObject(const libwpg::WPGBinaryData& binaryData);
--
--private:
--	std::vector <GraphicsElement *> mBodyElements;
--	std::vector <GraphicsElement *> mAutomaticStylesElements;
--	std::vector <GraphicsElement *> mStrokeDashElements;
--	std::vector <GraphicsElement *> mGradientElements;
--	GraphicsHandler *mpHandler;
--
--	libwpg::WPGPen m_pen;
--	libwpg::WPGBrush m_brush;
--	FillRule m_fillRule;
--	int m_gradientIndex;
--	int m_dashIndex;
--	int m_styleIndex;
--	void writeStyle();
--	std::ostringstream m_value, m_name;
--	double m_width, m_height;
--	const bool m_isFlatXML;
--#else
--	virtual void startGraphics(const ::WPXPropertyList &propList);
--	virtual void endGraphics();
--	virtual void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient);
--	virtual void startLayer(const ::WPXPropertyList &propList);
--	virtual void endLayer();
--	virtual void drawRectangle(const ::WPXPropertyList& propList);
--	virtual void drawEllipse(const ::WPXPropertyList& propList);
--	virtual void drawPolygon(const ::WPXPropertyListVector &vertices);
--	virtual void drawPath(const ::WPXPropertyListVector &path);
--	virtual void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData);
--	virtual void startEmbeddedGraphics(const ::WPXPropertyList &propList);
--	virtual void endEmbeddedGraphics();
--	virtual void drawPolyline(const ::WPXPropertyListVector &vertices);
--	virtual void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path);
--	virtual void endTextObject();
--	virtual void startTextLine(const ::WPXPropertyList &propList);
--	virtual void endTextLine();
--	virtual void startTextSpan(const ::WPXPropertyList &propList);
--	virtual void endTextSpan();
--	virtual void insertText(const ::WPXString &str);
--
--
--private:
--	std::vector <GraphicsElement *> mBodyElements;
--	std::vector <GraphicsElement *> mAutomaticStylesElements;
--	std::vector <GraphicsElement *> mStrokeDashElements;
--	std::vector <GraphicsElement *> mGradientElements;
--	GraphicsHandler *mpHandler;
--
--	int m_gradientIndex;
--	int m_dashIndex;
--	int m_styleIndex;
--	void writeStyle();
--	std::ostringstream m_value, m_name;
--	double m_width, m_height;
--	const bool m_isFlatXML;
--#endif
--};
--
--#endif // __ODGEXPORTER_H__
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/WPGImport.cpp koffice-2.3.1-libwpg02/filters/karbon/wpg/import/WPGImport.cpp
---- koffice-2.3.1/filters/karbon/wpg/import/WPGImport.cpp	2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/WPGImport.cpp	2011-01-02 17:46:15.000000000 +0100
-@@ -20,28 +20,26 @@
- #include <WPGImport.h>
- #include <WPGImport.moc>
- 
--#include <QBuffer>
--#include <QByteArray>
--#include <QString>
--
--#include <kdebug.h>
- #include <KoFilterChain.h>
- #include <KoGlobal.h>
- #include <KoUnit.h>
-+#include <KoXmlWriter.h>
-+
- #include <kpluginfactory.h>
-+#include <KDebug>
- 
--#include <KoXmlWriter.h>
-+
-+#include <QtCore/QString>
-+#include <QtCore/QFile>
- 
- #include <libwpg/libwpg.h>
- #if LIBWPG_VERSION_MINOR<2
- #include <libwpg/WPGStreamImplementation.h>
- #else
- #include <libwpd-stream/libwpd-stream.h>
-+#include <libwpd/libwpd.h>
- #endif
- 
--#include "FileOutputHandler.hxx"
--#include "OdgExporter.hxx"
--
- #include <iostream>
- 
- K_PLUGIN_FACTORY(WPGImportFactory, registerPlugin<WPGImport>();)
-@@ -56,35 +54,13 @@
- {
- }
- 
--static QByteArray createManifest()
--{
--    KoXmlWriter* manifestWriter;
--    QByteArray manifestData;
--    QBuffer manifestBuffer(&manifestData);
--
--    manifestBuffer.open(QIODevice::WriteOnly);
--    manifestWriter = new KoXmlWriter(&manifestBuffer);
--
--    manifestWriter->startDocument("manifest:manifest");
--    manifestWriter->startElement("manifest:manifest");
--    manifestWriter->addAttribute("xmlns:manifest", "urn:oasis:names:tc:openoffice:xmlns:manifest:1.0");
--    manifestWriter->addManifestEntry("/", "application/vnd.oasis.opendocument.graphics");
--    //manifestWriter->addManifestEntry( "styles.xml", "text/xml" );
--    manifestWriter->addManifestEntry("content.xml", "text/xml");
--    manifestWriter->endElement();
--    manifestWriter->endDocument();
--    delete manifestWriter;
--
--    return manifestData;
--}
--
- 
- KoFilter::ConversionStatus WPGImport::convert(const QByteArray& from, const QByteArray& to)
- {
-     if (from != "application/x-wpg")
-         return KoFilter::NotImplemented;
- 
--    if (to != "application/vnd.oasis.opendocument.graphics")
-+    if (to != "image/svg+xml")
-         return KoFilter::NotImplemented;
- 
- #if LIBWPG_VERSION_MINOR<2
-@@ -96,6 +72,7 @@
-             input = olestream;
-         }
-     }
-+    libwpg::WPGString output;
- #else
-     WPXInputStream* input = new WPXFileStream(m_chain->inputFile().toLocal8Bit());
-     if (input->isOLEStream()) {
-@@ -105,59 +82,31 @@
-             input = olestream;
-         }
-      }
-+     ::WPXString output;
- #endif
- 
-     if (!libwpg::WPGraphics::isSupported(input)) {
--        std::cerr << "ERROR: Unsupported file format (unsupported version) or file is encrypted!" << std::endl;
-+        kWarning() << "ERROR: Unsupported file format (unsupported version) or file is encrypted!";
-         delete input;
-         return KoFilter::NotImplemented;
-     }
- 
--    // do the conversion
--    std::ostringstream tmpStringStream;
--    FileOutputHandler tmpHandler(tmpStringStream);
--    OdgExporter exporter(&tmpHandler);
--    libwpg::WPGraphics::parse(input, &exporter);
--    delete input;
--
--
--    // create output store
--    KoStore* storeout;
--    storeout = KoStore::createStore(m_chain->outputFile(), KoStore::Write,
--                                    "application/vnd.oasis.opendocument.graphics", KoStore::Zip);
--
--    if (!storeout) {
--        kWarning() << "Couldn't open the requested file.";
--        return KoFilter::FileNotFound;
--    }
--
--#if 0
--    if (!storeout->open("styles.xml")) {
--        kWarning() << "Couldn't open the file 'styles.xml'.";
--        return KoFilter::CreationError;
-+    if (!libwpg::WPGraphics::generateSVG(input, output)) {
-+        kWarning() << "ERROR: SVG Generation failed!";
-+        delete input;
-+        return KoFilter::ParsingError;
-     }
--    //storeout->write( createStyles() );
--    storeout->close();
--#endif
- 
--    if (!storeout->open("content.xml")) {
--        kWarning() << "Couldn't open the file 'content.xml'.";
--        return KoFilter::CreationError;
--    }
--    storeout->write(tmpStringStream.str().c_str());
--    storeout->close();
-+    delete input;
- 
--    // store document manifest
--    storeout->enterDirectory("META-INF");
--    if (!storeout->open("manifest.xml")) {
--        kWarning() << "Couldn't open the file 'META-INF/manifest.xml'.";
--        return KoFilter::CreationError;
-+    QFile outputFile(m_chain->outputFile());
-+    if(!outputFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
-+        kWarning() << "ERROR: Could not open output file" << m_chain->outputFile();
-+        return KoFilter::InternalError;
-     }
--    storeout->write(createManifest());
--    storeout->close();
- 
--    // we are done!
--    delete storeout;
-+    outputFile.write(output.cstr());
-+    outputFile.close();
- 
-     return KoFilter::OK;
- }
-
diff --git a/koffice-2.3.3-no-qdebug-pixmap.patch b/koffice-2.3.3-no-qdebug-pixmap.patch
deleted file mode 100644
index 7fa2ff7..0000000
--- a/koffice-2.3.3-no-qdebug-pixmap.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -up koffice-2.3.3/plugins/chartshape/kdchart/kdchart/KDChartBackgroundAttributes.cpp.no-qdebug-pixmap koffice-2.3.3/plugins/chartshape/kdchart/kdchart/KDChartBackgroundAttributes.cpp
---- koffice-2.3.3/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp.no-qdebug-pixmap	2011-02-17 13:10:38.000000000 +0100
-+++ koffice-2.3.3/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp	2011-09-08 15:03:31.932039128 +0200
-@@ -150,7 +150,6 @@ QDebug operator<<(QDebug dbg, const KDCh
- 	<< "visible="<<ba.isVisible()
- 	<< "brush="<<ba.brush()
- 	<< "pixmapmode="<<ba.pixmapMode()
--	<< "pixmap="<<ba.pixmap()
- 	<< ")";
-     return dbg;
- }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kde4-koffice.git/commitdiff/2dec2414ce72eb8e15cd2c769b46eca0e275690a



More information about the pld-cvs-commit mailing list