summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore')
-rw-r--r--lib/kofficecore/CMakeLists.txt87
-rw-r--r--lib/kofficecore/KoDocument.cpp6
-rw-r--r--lib/kofficecore/KoMainWindow.cpp6
-rw-r--r--lib/kofficecore/KoSpeaker.cpp6
4 files changed, 96 insertions, 9 deletions
diff --git a/lib/kofficecore/CMakeLists.txt b/lib/kofficecore/CMakeLists.txt
new file mode 100644
index 000000000..c3868bdf8
--- /dev/null
+++ b/lib/kofficecore/CMakeLists.txt
@@ -0,0 +1,87 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib/store
+ ${CMAKE_SOURCE_DIR}/lib/kwmf
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_library(kofficecore SHARED AUTOMOC
+ SOURCES
+ KoDocument.cpp KoGlobal.cpp KoUnit.cpp KoFilterManager.cpp
+ KoMainWindow.cpp KoApplication.cpp KoQueryTrader.cpp
+ KoFilter.cpp KoFilterChain.cpp KoDocumentInfo.cpp
+ KoPictureKey.cpp KoPictureBase.cpp KoPicture.cpp KoPictureShared.cpp
+ KoPictureImage.cpp KoPictureClipart.cpp KoPictureCollection.cpp
+ KoPictureEps.cpp KoPictureWmf.cpp
+ KoView.cpp KoFrame.cpp KoContainerHandler.cpp KoDocumentChild.cpp
+ KoDocumentInfoDlg.cpp KoFactory.cpp KoChild.cpp
+ koDocumentInfoAboutWidget.ui koDocumentInfoAuthorWidget.ui
+ koDocumentInfoUserMetadataWidget.ui
+ KoApplicationIface.cpp KoApplicationIface.skel
+ KoDocumentIface.cpp KoDocumentIface.skel KoViewIface.cpp KoViewIface.skel
+ KoMainWindowIface.cpp KoMainWindowIface.skel kofficeversion.cpp
+ KoOasisStyles.cpp KoOasisSettings.cpp KoOasisLoadingContext.cpp
+ KoStyleStack.cpp KoGenStyles.cpp KoPageLayout.cpp
+ KoFileDialog.cpp KoXmlNS.cpp KoDom.cpp Koversiondialog.cpp KoOasisStore.cpp
+ kkbdaccessextensions.cpp koDetailsPaneBase.ui koOpenPaneBase.ui
+ KoOpenPane.cpp KoTemplates.cpp KoDetailsPane.cpp KoSpeaker.cpp KoRect.cpp
+ LINK
+ tdeio-shared tdefx-shared tdeabc-shared tdeprint-shared tdeparts-shared
+ kstore-shared kwmf-shared kowmf-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+tde_add_kpart(kodocinfopropspage SHARED AUTOMOC
+ SOURCES KoDocInfoPropsFactory.cpp
+ LINK tdecore-shared tdeio-shared tdefx-shared kjs-shared kofficecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+### Headers ###################################################################
+install(
+ FILES
+ KoContainerHandler.h
+ KoFilter.h KoFilterChain.h
+ KoGlobal.h KoUnit.h KoDocument.h
+ KoMainWindow.h
+ KoApplication.h KoQueryTrader.h
+ KoFilterManager.h
+ KoDocumentInfo.h
+ KoView.h KoFrame.h KoDocumentChild.h
+ KoDocumentInfoDlg.h KoFactory.h KoChild.h
+ KoApplicationIface.h KoDocumentIface.h KoViewIface.h KoMainWindowIface.h
+ KoPictureKey.h KoPicture.h KoPictureCollection.h kofficeversion.h
+ KoOasisStyles.h KoStyleStack.h KoGenStyles.h KoOasisSettings.h
+ KoPageLayout.h KoXmlNS.h KoDom.h Koversiondialog.h
+ kkbdaccessextensions.h
+ koffice_export.h KoOpenPane.h
+ KoSpeaker.h KoOasisLoadingContext.h
+ KoPoint.h
+
+ DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
+)
+
+### Data ######################################################################
+install(FILES koffice_shell.rc DESTINATION ${DATA_INSTALL_DIR}/koffice)
+tde_create_translated_desktop(
+ SOURCE kodocinfopropspage.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR koffice-desktops
+)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp
index 59d160e74..fd26f2e02 100644
--- a/lib/kofficecore/KoDocument.cpp
+++ b/lib/kofficecore/KoDocument.cpp
@@ -376,9 +376,9 @@ bool KoDocument::exp0rt( const KURL & _url )
bool KoDocument::saveFile()
{
kdDebug(30003) << "KoDocument::saveFile() doc='" << url().url() <<"'"<< endl;
-
+
// set local again as it can happen that it gets resetted
- // so that all saved numbers have a . and not e.g a , as a
+ // so that all saved numbers have a . and not e.g a , as a
// decimal seperator
setlocale( LC_NUMERIC, "C" );
@@ -1266,7 +1266,7 @@ TQPixmap KoDocument::generatePreview( const TQSize& size )
TQString KoDocument::autoSaveFile( const TQString & path ) const
{
// set local again as it can happen that it gets resetted
- // so that all saved numbers have a . and not e.g a , as a
+ // so that all saved numbers have a . and not e.g a , as a
// decimal seperator
setlocale( LC_NUMERIC, "C" );
diff --git a/lib/kofficecore/KoMainWindow.cpp b/lib/kofficecore/KoMainWindow.cpp
index 747a21e4a..65792b648 100644
--- a/lib/kofficecore/KoMainWindow.cpp
+++ b/lib/kofficecore/KoMainWindow.cpp
@@ -1636,9 +1636,9 @@ void KoMainWindow::slotEmailFile()
if (!fileURL.isEmpty())
{
tdeApp->invokeMailer(TQString(), TQString(), TQString(), theSubject,
- TQString(), //body
- TQString(),
- urls); // attachments
+ TQString(), //body
+ TQString(),
+ urls); // attachments
}
}
diff --git a/lib/kofficecore/KoSpeaker.cpp b/lib/kofficecore/KoSpeaker.cpp
index 3637b90b8..83c0de179 100644
--- a/lib/kofficecore/KoSpeaker.cpp
+++ b/lib/kofficecore/KoSpeaker.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* This file is part of the KDE/KOffice project.
* Copyright (C) 2005, Gary Cramblitt <garycramblitt@comcast.net>
*
@@ -371,10 +371,10 @@ bool KoSpeaker::maybeSayWidget(TQWidget* w, const TQPoint& pos /*=TQPoint()*/)
else
if (w->inherits("TQComboBox"))
text = dynamic_cast<TQComboBox *>(w)->currentText();
- else
+ else
if (w->inherits("TQLineEdit"))
text = dynamic_cast<TQLineEdit *>(w)->text();
- else
+ else
if (w->inherits("TQTextEdit"))
text = dynamic_cast<TQTextEdit *>(w)->text();
else