WIP: CMake port
Signed-off-by: Philippe Mavridis <philippe.mavridis@yandex.com>feat/cmake-port
parent
cf85b9c285
commit
04e86613f6
@ -0,0 +1,95 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
project(koffice)
|
||||
|
||||
### Includes ##################################################################
|
||||
include(FindPkgConfig)
|
||||
include(CheckFunctionExists)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckIncludeFile)
|
||||
include(CheckLibraryExists)
|
||||
include(CheckCSourceCompiles)
|
||||
include(CheckCXXSourceCompiles)
|
||||
|
||||
include(TDEMacros)
|
||||
include(TDESetupPaths)
|
||||
include(TDEVersion)
|
||||
|
||||
### Basic project setup ########################################################
|
||||
cmake_minimum_required(VERSION ${TDE_CMAKE_MINIMUM_VERSION})
|
||||
tde_set_project_version()
|
||||
tde_setup_paths()
|
||||
|
||||
### Options ####################################################################
|
||||
option(WITH_ALL_OPTIONS "Enable all optional support" ON)
|
||||
option(WITH_LIBEXIF "Enable libexif support" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_GRAPHICSMAGICK "Enable GraphicsMagick filter" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_IMAGEMAGICK "Enable ImageMagick filter" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_OPENEXR "Enable OpenEXR support" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_KEXI_MYSQL "Enable Kexi MySQL plugin" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_KEXI_PGSQL "Enable Kexi PostgreSQL plugin" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_KEXI_MACROS "Enable Kexi macro plugin" ${WITH_ALL_OPTIONS})
|
||||
option(WITH_KROSS_PYTHON "Enable Kross Python plugin" OFF)
|
||||
option(WITH_KROSS_RUBY "Enable Kross Ruby plugin" ${WITH_ALL_OPTIONS})
|
||||
|
||||
### Components #################################################################
|
||||
option(BUILD_ALL "Build all" ON)
|
||||
option(BUILD_DOC "Build documentation" ${BUILD_ALL})
|
||||
option(BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL})
|
||||
option(BUILD_CHALK "Build Chalk" ${BUILD_ALL})
|
||||
option(BUILD_KARBON "Build Karbon" ${BUILD_ALL})
|
||||
option(BUILD_KCHART "Build KChart" ${BUILD_ALL})
|
||||
option(BUILD_KDGANTT "Build KDGantt" ${BUILD_ALL})
|
||||
option(BUILD_KEXI "Build Kexi" ${BUILD_ALL})
|
||||
option(BUILD_KFORMULA "Build KFormula" ${BUILD_ALL})
|
||||
option(BUILD_KIVIO "Build Kivio" ${BUILD_ALL})
|
||||
option(BUILD_KOSHELL "Build KOffice Workspace" ${BUILD_ALL})
|
||||
option(BUILD_KPLATO "Build KPlato" ${BUILD_ALL})
|
||||
option(BUILD_KPRESENTER "Build KPresenter" ${BUILD_ALL})
|
||||
option(BUILD_KSPREAD "Build KSpread" ${BUILD_ALL})
|
||||
option(BUILD_KUGAR "Build Kugar" ${BUILD_ALL})
|
||||
option(BUILD_KWORD "Build KWord" ${BUILD_ALL})
|
||||
option(BUILD_KROSS "Build Kross scripting library" ${BUILD_ALL})
|
||||
option(BUILD_EXAMPLE "Build KOffice example part" OFF)
|
||||
option(BUILD_TESTS "Build KOffice tests" OFF)
|
||||
|
||||
### Configuration #############################################################
|
||||
include(ConfigureChecks.cmake)
|
||||
configure_file(config.h.cmake config.h @ONLY)
|
||||
|
||||
### Subdirectories ############################################################
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(interfaces)
|
||||
add_subdirectory(autocorrect)
|
||||
add_subdirectory(kounavail)
|
||||
add_subdirectory(pics)
|
||||
# add_subdirectory(plugins)
|
||||
add_subdirectory(servicetypes)
|
||||
add_subdirectory(templates)
|
||||
# add_subdirectory(tools)
|
||||
# add_subdirectory(filters)
|
||||
#
|
||||
tde_conditional_add_project_docs(BUILD_DOC)
|
||||
tde_conditional_add_project_translations(BUILD_TRANSLATIONS)
|
||||
#
|
||||
# tde_conditional_add_subdirectory(BUILD_CHALK chalk)
|
||||
tde_conditional_add_subdirectory(BUILD_EXAMPLE example)
|
||||
# tde_conditional_add_subdirectory(BUILD_KARBON karbon)
|
||||
tde_conditional_add_subdirectory(BUILD_KCHART kchart)
|
||||
# tde_conditional_add_subdirectory(BUILD_KDGANTT kdgantt)
|
||||
tde_conditional_add_subdirectory(BUILD_KFORMULA kformula)
|
||||
# tde_conditional_add_subdirectory(BUILD_KIVIO kivio)
|
||||
# tde_conditional_add_subdirectory(BUILD_KOSHELL koshell)
|
||||
tde_conditional_add_subdirectory(BUILD_KPRESENTER kpresenter)
|
||||
# tde_conditional_add_subdirectory(BUILD_KSPREAD kspread)
|
||||
# tde_conditional_add_subdirectory(BUILD_KUGAR kugar)
|
||||
tde_conditional_add_subdirectory(BUILD_KWORD kword)
|
||||
# tde_conditional_add_subdirectory(BUILD_KPLATO kplato)
|
||||
# tde_conditional_add_subdirectory(BUILD_KEXI kexi)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,38 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### TQt/TDE ###################################################################
|
||||
find_package(TQt)
|
||||
find_package(TDE)
|
||||
tde_setup_architecture_flags()
|
||||
tde_setup_largefiles()
|
||||
|
||||
### Big Endian ################################################################
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
### System headers ############################################################
|
||||
check_include_file("unistd.h" HAVE_UNISTD_H)
|
||||
check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
|
||||
check_include_file("floatingpoint.h" HAVE_FLOATINGPOINT_H)
|
||||
check_include_file("paths.h" HAVE_PATHS_H)
|
||||
|
||||
### KOffice library ##########################################################
|
||||
if (BUILD_CHALK OR BUILD_KARBON OR BUILD_KIVIO OR BUILD_KPRESENTER)
|
||||
set(BUILD_KOPAINTER ON)
|
||||
endif()
|
||||
|
||||
include(lib/ConfigureChecks.cmake)
|
||||
include(filters/ConfigureChecks.cmake)
|
||||
include(kword/ConfigureChecks.cmake)
|
||||
|
||||
### KOffice applications ######################################################
|
||||
if (BUILD_CHALK)
|
||||
include(chalk/ConfigureChecks.cmake)
|
||||
endif()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,14 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES autocorrect.xml en_US.xml
|
||||
DESTINATION ${DATA_INSTALL_DIR}/koffice/autocorrect
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,65 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
check_symbol_exists("powf" "math.h" HAVE_MATH_POWF)
|
||||
|
||||
### XInput ####################################################################
|
||||
pkg_search_module(XINPUT xi)
|
||||
if (NOT XINPUT_FOUND)
|
||||
tde_message_fatal("XInput is required for Chalk, but was not found")
|
||||
endif()
|
||||
|
||||
### LittleCMS #################################################################
|
||||
pkg_search_module(LCMS lcms)
|
||||
if (NOT LCMS_FOUND)
|
||||
tde_message_fatal("lcms1 is required for Chalk, but was not found")
|
||||
endif()
|
||||
|
||||
### OpenGL ####################################################################
|
||||
check_include_file("GL/gl.h" HAVE_GL_H)
|
||||
check_include_file("GL/glu.h" HAVE_GLU_H)
|
||||
|
||||
if (NOT HAVE_GL_H OR NOT HAVE_GLU_H)
|
||||
tde_message_fatal("OpenGL is required for Chalk, but headers are missing")
|
||||
endif()
|
||||
|
||||
### EXIF ######################################################################
|
||||
pkg_search_module(EXIF libexif)
|
||||
if (NOT EXIF_FOUND)
|
||||
message(WARNING "libexif is missing, "
|
||||
"Chalk won't be able to import/export JPEG files")
|
||||
endif()
|
||||
|
||||
### JPEG ######################################################################
|
||||
find_package(JPEG)
|
||||
if (NOT JPEG_FOUND)
|
||||
message(WARNING "libjpeg is missing, "
|
||||
"Chalk won't be able to import/export JPEG files")
|
||||
endif()
|
||||
|
||||
### PNG #######################################################################
|
||||
find_package(PNG)
|
||||
if (NOT PNG_FOUND)
|
||||
message(WARNING "libpng is missing, "
|
||||
"Chalk won't be able to import/export PNG files")
|
||||
endif()
|
||||
|
||||
### TIFF ######################################################################
|
||||
find_package(TIFF)
|
||||
if (NOT TIFF_FOUND)
|
||||
message(WARNING "libtiff is missing, "
|
||||
"Chalk won't be able to import/export TIFF files")
|
||||
endif()
|
||||
|
||||
### poppler-tqt ###############################################################
|
||||
pkg_search_module(POPPLER poppler-tqt)
|
||||
if (NOT POPPLER_FOUND)
|
||||
message(WARNING "poppler-tqt is missing, "
|
||||
"Chalk won't be able to import PDF files")
|
||||
endif()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,18 @@
|
||||
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||
#cmakedefine __TDE_HAVE_GCC_VISIBILITY 1
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
||||
|
||||
#define VERSION "@VERSION@"
|
||||
#define PREFIX "@CMAKE_INSTALL_PREFIX@"
|
||||
|
||||
// Chalk: powf exists in math.h
|
||||
#define HAVE_POWF @HAVE_MATH_POWF@
|
||||
|
||||
// Kross: if your system has Ruby 1.9.x
|
||||
#cmakedefine HAVE_RUBY_1_9
|
||||
|
||||
// Kross: if your system has Ruby 3.x
|
||||
#cmakedefine HAVE_RUBY_3
|
@ -0,0 +1,61 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kwmf
|
||||
${CMAKE_SOURCE_DIR}/lib/kopalette
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(libexamplepart SHARED AUTOMOC
|
||||
SOURCES example_part.cpp example_view.cpp example_factory.cpp
|
||||
LINK kofficeui-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_tdeinit_executable(example AUTOMOC
|
||||
SOURCES main.cpp
|
||||
LINK kofficeui-shared
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES example.rc example_readonly.rc
|
||||
DESTINATION ${DATA_INSTALL_DIR}/example
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE example.desktop
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE examplepart.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE x-vnd.kde.example.desktop
|
||||
DESTINATION ${MIME_INSTALL_DIR}/application
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,8 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,36 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/kstore
|
||||
${CMAKE_SOURCE_DIR}/lib/kwmf
|
||||
${CMAKE_SOURCE_DIR}/lib/kopalette
|
||||
${CMAKE_SOURCE_DIR}/kchart/kdchart
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kochart SHARED AUTOMOC
|
||||
SOURCES koChart.cpp
|
||||
LINK kofficecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Headers ###################################################################
|
||||
install(FILES koChart.h DESTINATION ${INCLUDE_INSTALL_DIR}/kross/main)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,85 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kwmf
|
||||
${CMAKE_SOURCE_DIR}/lib/kopalette
|
||||
${CMAKE_SOURCE_DIR}/kchart/kdchart
|
||||
${CMAKE_SOURCE_DIR}/interfaces
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kchartcommon SHARED AUTOMOC
|
||||
SOURCES
|
||||
kchart_part.cpp kchart_view.cpp kchart_factory.cpp
|
||||
kchartColorConfigPage.cpp kchartParameterConfigPage.cpp
|
||||
kchartParameter3dConfigPage.cpp kchartBackgroundPixmapConfigPage.cpp
|
||||
kchartSubTypeChartPage.cpp kchartComboConfigPage.cpp
|
||||
kchartFontConfigPage.cpp kchartDataConfigPage.cpp kchartPieConfigPage.cpp
|
||||
kchartParameterPieConfigPage.cpp kchartConfigDialog.cpp kchartWizard.cpp
|
||||
kchartWizardLabelsLegendPage.cpp kchartWizardSelectChartSubTypePage.cpp
|
||||
kchartWizardSelectChartTypePage.cpp kchartWizardSelectDataPage.cpp
|
||||
kchartWizardSetupAxesPage.cpp kchartWizardSetupDataPage.cpp
|
||||
kchartWizardSelectDataFormatPage.cpp
|
||||
kchartDataEditor.cpp KChartViewIface.skel KChartViewIface.cpp
|
||||
kchartLegendConfigPage.cpp kchart_params.cpp KChartParamsIface.skel
|
||||
KChartParamsIface.cpp kchartHeaderFooterConfigPage.cpp
|
||||
kchartLine3dConfigPage.cpp kchartParameterPolarConfigPage.cpp
|
||||
kchartPageLayout.cpp kchartPrinterDlg.cpp
|
||||
csvimportdialog.cpp csvimportdialogui.ui
|
||||
LINK kofficeui-shared kdchart-shared kochart-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
tde_add_kpart(libkchartpart SHARED AUTOMOC
|
||||
SOURCES kchart_factory_init.cpp
|
||||
LINK kchartcommon-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
add_subdirectory(kdchart)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_tdeinit_executable(kchart AUTOMOC
|
||||
SOURCES main.cpp
|
||||
LINK kofficecore-shared
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES kchart.rc kchart_readonly.rc
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kchart
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kchart.desktop
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kchartpart.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
add_subdirectory(toolbar)
|
||||
add_subdirectory(pics)
|
||||
add_subdirectory(templates)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,56 @@
|
||||
###############################################################################
|
||||
# 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_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kdchart SHARED AUTOMOC
|
||||
SOURCES
|
||||
KDChart.cpp
|
||||
KDChartAreaPainter.cpp KDChartAxesPainter.cpp KDChartAxisParams.cpp
|
||||
KDChartBarPainter.cpp KDChartBaseSeries.cpp KDChartBWPainter.cpp
|
||||
KDChartCustomBox.cpp KDChartDataIntern.cpp KDChartHiLoPainter.cpp
|
||||
KDChartLinesPainter.cpp KDChartPainter.cpp KDChartParams.cpp
|
||||
KDChartParams_frame.cpp KDChartParams_io.cpp KDChartPiePainter.cpp
|
||||
KDChartPlaneSeries.cpp KDChartPolarPainter.cpp KDChartPropertySet.cpp
|
||||
KDChartRingPainter.cpp KDChartSeriesCollection.cpp KDChartTableBase.cpp
|
||||
KDChartTextPiece.cpp KDChartVectorSeries.cpp KDChartVectorTable.cpp
|
||||
KDChartWidget.cpp KDDrawText.cpp KDFrame.cpp KDFrameProfileSection.cpp
|
||||
KDXMLTools.cpp KDChartEnums.cpp KDChartAxisParamsWrapper.cpp
|
||||
KDChartCustomBoxWrapper.cpp KDChartParamsWrapper.cpp
|
||||
KDChartTableDataWrapper.cpp
|
||||
LINK tdecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Headers ##################################################################
|
||||
install(
|
||||
FILES
|
||||
KDChart.h
|
||||
KDChartAreaPainter.h KDChartAxesPainter.h
|
||||
KDChartBarPainter.h KDChartBaseSeries.h KDChartBWPainter.h
|
||||
KDChartDataIntern.h KDChartDataRegion.h KDChartHiLoPainter.h
|
||||
KDChartLinesPainter.h KDChartPiePainter.h KDChartPainter.h
|
||||
KDChartPolarPainter.h KDChartRingPainter.h
|
||||
KDChartSeriesCollection.h KDChartPlaneSeries.h
|
||||
KDChartVectorSeries.h KDChartTextPiece.h KDDrawText.h
|
||||
KDChartNotEnoughSpaceException.h KDChartUnknownTypeException.h
|
||||
KDChartUnknownTypeException.h KDXMLTools.h
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,26 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES
|
||||
chart_bar_beside.png chart_bar_layer.png chart_bar_percent.png
|
||||
chart_hilo_close.png chart_hilo_normal.png chart_hilo_openclose.png
|
||||
chart_area_normal.png chart_area_percent.png chart_area_stacked.png
|
||||
chart_line_normal.png chart_line_percent.png chart_line_stacked.png
|
||||
chart_polar_normal.png chart_polar_percent.png chart_polar_stacked.png
|
||||
chart_legend_top.png chart_legend_topleft.png chart_legend_topright.png
|
||||
chart_legend_nolegend.png chart_legend_left.png chart_legend_right.png
|
||||
chart_legend_bottom.png chart_legend_bottomleft.png chart_legend_bottomright.png
|
||||
chart_legend_toplefttop.png chart_legend_topleftleft.png
|
||||
chart_legend_bottomleftbottom.png chart_legend_bottomleftleft.png
|
||||
chart_legend_toprighttop.png chart_legend_toprightright.png
|
||||
chart_legend_bottomrightbottom.png chart_legend_bottomrightright.png
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kchart/pics
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,21 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES .directory BarChart.desktop Empty.desktop
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kchart/templates/chart
|
||||
)
|
||||
|
||||
install(
|
||||
FILES BarChart.chrt Empty.chrt
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kchart/templates/chart/.source
|
||||
)
|
||||
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,13 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
add_subdirectory(crystalsvg)
|
||||
# add_subdirectory(hicolor) # is empty
|
||||
add_subdirectory(locolor)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
Binary file not shown.
@ -0,0 +1,64 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kwmf
|
||||
${CMAKE_SOURCE_DIR}/lib/kopalette
|
||||
${CMAKE_SOURCE_DIR}/lib/kformula
|
||||
${CMAKE_SOURCE_DIR}/lib/kotext
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(libkformulapart SHARED AUTOMOC
|
||||
SOURCES
|
||||
kfconfig.cpp kformula_doc.cpp kformula_view.cpp kformula_factory.cpp
|
||||
kformulawidget.cpp kformula_view_iface.skel kformula_view_iface.cpp
|
||||
formulastring.cpp fsparser.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeparts-shared
|
||||
kofficeui-shared kotext-shared kformulalib-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_tdeinit_executable(kformula AUTOMOC
|
||||
SOURCES main.cpp
|
||||
LINK kofficecore-shared
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES kformula.rc kformula_readonly.rc tips
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kformula
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kformula.desktop
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kformulapart.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
add_subdirectory(pics)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,41 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kwmf
|
||||
${CMAKE_SOURCE_DIR}/lib/kopalette
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(libkounavail SHARED AUTOMOC
|
||||
SOURCES kounavail.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeparts-shared
|
||||
kofficecore-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kounavail.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,120 @@
|
||||
###############################################################################
|
||||
# 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_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kotext
|
||||
${CMAKE_SOURCE_DIR}/lib/kformula
|
||||
${CMAKE_BINARY_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}/lib/kotext
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(libkwordprivate SHARED AUTOMOC
|
||||
SOURCES
|
||||
KPrPage.cpp KPrFindReplace.cpp KPrBackDia.cpp KPrWebPresentation.cpp
|
||||
KPrView.cpp KPrMSPresentationSetup.cpp KPrBrush.cpp KPrDocument.cpp
|
||||
KPrSoundPlayer.cpp KPrPgConfDia.cpp KPrEffectDia.cpp KPrCommand.cpp
|
||||
KPrUtils.cpp KPrEffectHandler.cpp KPrPageEffects.cpp KPrTransEffectDia.cpp
|
||||
KPrObject.cpp KPrLineObject.cpp KPrRectObject.cpp KPrEllipseObject.cpp
|
||||
KPrAutoformObject.cpp KPrTextObject.cpp KPrPixmapObject.cpp
|
||||
KPrPieObject.cpp KPrPartObject.cpp KPrGroupObject.cpp KPrBackground.cpp
|
||||
KPrGradient.cpp KPrGradientCollection.cpp KPrGotoPage.cpp KPrFactory.cpp
|
||||
KPrDocumentIface.skel KPrDocumentIface.cpp
|
||||
KPrViewIface.skel KPrViewIface.cpp
|
||||
KPrObjectIface.skel KPrObjectIface.cpp
|
||||
KPrPageIface.skel KPrPageIface.cpp
|
||||
KPrSideBar.cpp insertpagedia.ui KPrConfig.cpp KPrVariableCollection.cpp
|
||||
KPrTextDocument.cpp KPrPointObject.cpp KPrFreehandObject.cpp
|
||||
KPrPolylineObject.cpp KPrBezierCurveObject.cpp KPrPolygonObject.cpp
|
||||
KPrNoteBar.cpp KPrTextObjectIface.skel KPrTextObjectIface.cpp
|
||||
KPrTextViewIface.skel KPrTextViewIface.cpp KPrPresDurationDia.cpp
|
||||
KPrPieObjectIface.skel KPrPieObjectIface.cpp
|
||||
KPrPolygonObjectIface.skel KPrPolygonObjectIface.cpp
|
||||
KPrRectObjectIface.skel KPrRectObjectIface.cpp
|
||||
KPrPixmapObjectIface.skel KPrPixmapObjectIface.cpp
|
||||
KPrAutoFormObjectIface.skel KPrAutoFormObjectIface.cpp
|
||||
KPrObject2DIface.skel KPrObject2DIface.cpp
|
||||
KPrLineObjectIface.skel KPrLineObjectIface.cpp
|
||||
KPrQuadricBezierCurveObjectIface.skel KPrQuadricBezierCurveObjectIface.cpp
|
||||
KPrCubicBezierCurveObjectIface.skel KPrCubicBezierCurveObjectIface.cpp
|
||||
KPrSVGPathParser.cpp shadowdialog.ui KPrShadowDialogImpl.cpp
|
||||
KPrTextPreview.cpp KPrRotationDialogImpl.cpp rotationpropertyui.ui
|
||||
KPrFreehandObjectIface.skel KPrFreehandObjectIface.cpp KPrStyleManager.cpp
|
||||
KPrBgSpellCheck.cpp KPrMoveHelpLineDia.cpp
|
||||
KPrPolyLineObjectIface.skel KPrPolyLineObjectIface.cpp
|
||||
KPrDuplicateObjDia.cpp KPrClosedLineObject.cpp
|
||||
KPrImportStyleDia.cpp KPrImageEffectDia.cpp imageEffectBase.ui
|
||||
KPrCustomSlideShowDia.cpp KPrPBPreview.cpp penstyle.ui KPrPenStyleWidget.cpp
|
||||
KPrRectPreview.cpp rectpropertyui.ui KPrRectProperty.cpp KPrPiePreview.cpp
|
||||
KPrPolygonPreview.cpp KPrPicturePreview.cpp
|
||||
brushpropertyui.ui gradientpropertyui.ui KPrBrushProperty.cpp
|
||||
KPrGeneralProperty.cpp polygonpropertyui.ui KPrPolygonProperty.cpp
|
||||
piepropertyui.ui KPrPieProperty.cpp picturepropertyui.ui
|
||||
KPrPictureProperty.cpp marginui.ui KPrMarginWidget.cpp KPrTextProperty.cpp
|
||||
KPrObjectProperties.cpp KPrPropertyEditor.cpp slidetransitionwidget.ui
|
||||
KPrSlideTransitionDia.cpp KPrPrinterDlg.cpp KoPointArray.cpp KPrCanvas.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeparts-shared
|
||||
tdespell2-shared kofficeui-shared kofficetext-shared kopainter-shared
|
||||
mcop-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Part #######################################################################
|
||||
tde_add_kpart(libkpresenterpart SHARED AUTOMOC
|
||||
SOURCES
|
||||
KPrFactoryInit.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_tdeinit_executable(kpresenter AUTOMOC
|
||||
SOURCES main.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared kofficecore-shared
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES kpresenter.rc kpresenter_readonly.rc
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kpresenter
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kpresenter.desktop
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kpresenterpart.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
# add_subdirectory(data)
|
||||
# add_subdirectory(dtd)
|
||||
# add_subdirectory(horizontalline)
|
||||
# add_subdirectory(templates)
|
||||
# add_subdirectory(toolbar)
|
||||
# add_subdirectory(pics)
|
||||
# add_subdirectory(mailmerge)
|
@ -0,0 +1,108 @@
|
||||
###############################################################################
|
||||
# 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_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kotext
|
||||
${CMAKE_SOURCE_DIR}/lib/kformula
|
||||
${CMAKE_BINARY_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}/lib/kotext
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(libkwordprivate SHARED AUTOMOC
|
||||
SOURCES
|
||||
KWTableFrameSet.cpp KWCanvas.cpp KWFrame.cpp KWFormulaFrameSet.cpp
|
||||
KWFactory.cpp KWDocument.cpp KWView.cpp KWViewMode.cpp KWTextParag.cpp
|
||||
KWTextDocument.cpp KWTextFrameSet.cpp KWPartFrameSet.cpp KWTextImage.cpp
|
||||
KWAnchor.cpp KWConfig.cpp KWVariable.cpp KWFrameDia.cpp KWFootNoteDia.cpp
|
||||
KWFrameStyle.cpp KWFrameStyleManager.cpp KWTableStyle.cpp
|
||||
KWTableStyleManager.cpp KWTableTemplate.cpp KWTableTemplateSelector.cpp
|
||||
KWTableDia.cpp KWInsertDia.cpp KWDeleteDia.cpp KWDocStruct.cpp
|
||||
KWInsertTOCCommand.cpp KWStyleManager.cpp KWFindReplace.cpp KWCommand.cpp
|
||||
KWStatisticsDialog.cpp KWordMailMergeDatabaseIface.skel
|
||||
kwordmailmergedatabaseiface.cpp KWMailMergeDataBase.cpp
|
||||
KWMailMergeLabelAction.cpp KWEditPersonnalExpression.cpp
|
||||
KWSplitCellDia.cpp KWInsertPicDia.cpp
|
||||
KWordDocIface.skel KWordDocIface.cpp
|
||||
KWordViewIface.skel KWordViewIface.cpp
|
||||
KWordTextFrameSetIface.skel KWordTextFrameSetIface.cpp
|
||||
KWordTextFrameSetEditIface.skel KWordTextFrameSetEditIface.cpp
|
||||
KWordFrameSetIface.skel KWordFrameSetIface.cpp
|
||||
KWordFormulaFrameSetIface.skel KWordFormulaFrameSetIface.cpp
|
||||
KWordFormulaFrameSetEditIface.skel KWordFormulaFrameSetEditIface.cpp
|
||||
KWordPictureFrameSetIface.skel KWordPictureFrameSetIface.cpp
|
||||
KWordTableFrameSetIface.skel KWordTableFrameSetIface.cpp
|
||||
KWordPartFrameSetIface.skel KWordPartFrameSetIface.cpp
|
||||
KWBgSpellCheck.cpp KWResizeTableDia.cpp KWFrameLayout.cpp
|
||||
KWConfigFootNoteDia.cpp KWCreateBookmarkDia.cpp KWImportStyleDia.cpp
|
||||
KWordFootNoteFrameSetIface.skel KWordFootNoteFrameSetIface.cpp
|
||||
KWCreateBookmarkDiaBase.ui KWSelectBookmarkDiaBase.ui
|
||||
KWSortDia.cpp KWInsertPageDia.cpp KWCollectFramesetsVisitor.cpp
|
||||
KWOasisLoader.cpp KWOasisSaver.cpp KWFrameList.cpp KWPage.cpp
|
||||
KWPageManager.cpp KWFrameSet.cpp KWFrameSetEdit.cpp KWPictureFrameSet.cpp
|
||||
KWFrameViewManager.cpp KWFrameView.cpp KWStartupWidgetBase.ui
|
||||
KWStartupWidget.cpp KWLoadingInfo.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeparts-shared
|
||||
tdespell2-shared kformulalib-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Part #######################################################################
|
||||
tde_add_kpart(libkwordpart SHARED AUTOMOC
|
||||
SOURCES
|
||||
KWFactoryInit.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared libkwordprivate-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_tdeinit_executable(kword AUTOMOC
|
||||
SOURCES main.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared kofficecore-shared
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES kword.rc kword_readonly.rc
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kword.desktop
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kwordpart.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
add_subdirectory(data)
|
||||
add_subdirectory(dtd)
|
||||
add_subdirectory(horizontalline)
|
||||
add_subdirectory(templates)
|
||||
add_subdirectory(toolbar)
|
||||
add_subdirectory(pics)
|
||||
add_subdirectory(mailmerge)
|
@ -0,0 +1,18 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
check_cxx_source_compiles("
|
||||
#include <tqglobal.h>
|
||||
#ifdef TQT_NO_SQL
|
||||
# error \"No TQt-SQL support\"
|
||||
#endif
|
||||
" HAS_TQT_SQL)
|
||||
|
||||
if (NOT HAS_TQT_SQL)
|
||||
message(WARNING "TQt-SQL support is not installed, the KWord MailMerge dialog "
|
||||
"will be compiled without SQL source support.")
|
||||
endif()
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
install(
|
||||
FILES framestyles.xml tablestyles.xml tabletemplates.xml
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
install(
|
||||
FILES kword.dtd framestyles.dtd tablestyles.dtd tabletemplates.dtd
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/dtd
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
install(
|
||||
FILES expression.xml
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/expression
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
install(
|
||||
FILES line.png
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/horizontalline
|
||||
)
|
@ -0,0 +1,41 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(kwmailmerge_classic SHARED AUTOMOC
|
||||
SOURCES
|
||||
KWClassicSerialDataSource.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared kotext-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kwserialletter_classic.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
|
||||
add_subdirectory(tdeabc)
|
||||
add_subdirectory(kspread)
|
||||
tde_conditional_add_subdirectory(HAS_TQT_SQL sql)
|
@ -0,0 +1,38 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/kspread
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(kwmailmerge_kspread SHARED AUTOMOC
|
||||
SOURCES
|
||||
kwmailmerge_kspread.cpp kwmailmerge_kspread_config.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kwmailmerge_kspread.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
@ -0,0 +1,37 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(kwmailmerge_tdeabc SHARED AUTOMOC
|
||||
SOURCES
|
||||
KWMailMergeTDEABC.cpp KWMailMergeTDEABCConfig.cpp addresspicker.ui
|
||||
LINK
|
||||
tdecore-shared tdeui-shared kjs-shared tdefx-shared tdeio-shared
|
||||
tdeparts-shared tdeabc-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Data ######################################################################
|
||||
tde_create_translated_desktop(
|
||||
SOURCE kwmailmerge_tdeabc.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
@ -0,0 +1,8 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
tde_install_icons()
|
@ -0,0 +1,10 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
add_subdirectory(CardsAndLabels)
|
||||
add_subdirectory(Envelopes)
|
||||
add_subdirectory(Wordprocessing)
|
@ -0,0 +1,22 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
set(TEMPLATE_SUBDIR "CardsAndLabels")
|
||||
file(GLOB DESKTOP_FILES *.desktop)
|
||||
file(GLOB KWORD_TEMPLATES *.kwt)
|
||||
|
||||
install(
|
||||
FILES .directory ${DESKTOP_FILES}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/templates/${TEMPLATE_SUBDIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${KWORD_TEMPLATES}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/templates/${TEMPLATE_SUBDIR}/.source
|
||||
)
|
||||
|
||||
tde_install_icons()
|
@ -0,0 +1,22 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
set(TEMPLATE_SUBDIR "Envelopes")
|
||||
file(GLOB DESKTOP_FILES *.desktop)
|
||||
file(GLOB KWORD_TEMPLATES *.kwt)
|
||||
|
||||
install(
|
||||
FILES .directory ${DESKTOP_FILES}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/templates/${TEMPLATE_SUBDIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${KWORD_TEMPLATES}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/templates/${TEMPLATE_SUBDIR}/.source
|
||||
)
|
||||
|
||||
tde_install_icons()
|
@ -0,0 +1,22 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
set(TEMPLATE_SUBDIR "Normal")
|
||||
file(GLOB DESKTOP_FILES *.desktop)
|
||||
file(GLOB KWORD_TEMPLATES *.kwt)
|
||||
|
||||
install(
|
||||
FILES .directory ${DESKTOP_FILES}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/templates/${TEMPLATE_SUBDIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${KWORD_TEMPLATES}
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kword/templates/${TEMPLATE_SUBDIR}/.source
|
||||
)
|
||||
|
||||
tde_install_icons()
|
@ -0,0 +1,8 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
tde_install_icons()
|
@ -0,0 +1,25 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
add_subdirectory(store)
|
||||
add_subdirectory(kwmf)
|
||||
add_subdirectory(kofficecore)
|
||||
add_subdirectory(kofficeui)
|
||||
add_subdirectory(koproperty)
|
||||
tde_conditional_add_subdirectory(BUILD_KROSS kross)
|
||||
|
||||
# All applications except for Kexi need the following components
|
||||
if (BUILD_CHALK OR BUILD_KARBON OR BUILD_KCHART OR BUILD_KGANTT OR
|
||||
BUILD_KFORMULA OR BUILD_KIVIO OR BUILD_KOSHELL OR BUILD_KPLATO OR
|
||||
BUILD_KPRESENTER OR BUILD_KSPREAD OR BUILD_KUGAR OR BUILD_KWORD)
|
||||
add_subdirectory(kotext)
|
||||
add_subdirectory(kformula)
|
||||
add_subdirectory(kopalette)
|
||||
tde_conditional_add_subdirectory(BUILD_KOPAINTER kopainter)
|
||||
endif()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,15 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
find_program(HAVE_MAKETDEWIDGETS maketdewidgets)
|
||||
if (NOT HAVE_MAKETDEWIDGETS)
|
||||
message(WARNING "maketdewidgets not found, won't generate Designer widgets")
|
||||
endif()
|
||||
|
||||
if (BUILD_KROSS)
|
||||
include(lib/kross/ConfigureChecks.cmake)
|
||||
endif()
|
@ -0,0 +1,70 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_SOURCE_DIR}/lib/store
|
||||
${CMAKE_SOURCE_DIR}/lib/kwmf
|
||||
${CMAKE_SOURCE_DIR}/lib/kopalette
|
||||
${CMAKE_SOURCE_DIR}/lib/kotext
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
# We have to name it kformulalib, not just kformula, since that's the name of
|
||||
# the tdeinit module for kformula.
|
||||
tde_add_library(kformulalib SHARED AUTOMOC
|
||||
SOURCES
|
||||
basicelement.cpp contextstyle.cpp formulacursor.cpp
|
||||
formulaelement.cpp indexelement.cpp kformulacontainer.cpp
|
||||
sequenceelement.cpp textelement.cpp bracketelement.cpp
|
||||
matrixelement.cpp fractionelement.cpp rootelement.cpp symbolelement.cpp
|
||||
kformulacommand.cpp kformulamimesource.cpp
|
||||
MatrixDialog.cpp sequenceparser.cpp elementtype.cpp kformuladocument.cpp
|
||||
symboltable.cpp kformulainputfilter.cpp kformulaview.cpp
|
||||
spaceelement.cpp kformulaconfigpage.cpp
|
||||
symbolaction.cpp fontstyle.cpp creationstrategy.cpp
|
||||
oasiscreationstrategy.cpp tokenstyleelement.cpp tokenelement.cpp
|
||||
identifierelement.cpp operatorelement.cpp glyphelement.cpp styleelement.cpp
|
||||
stringelement.cpp paddedelement.cpp errorelement.cpp phantomelement.cpp
|
||||
actionelement.cpp encloseelement.cpp entities.cpp operatordictionary.cpp
|
||||
numberelement.cpp
|
||||
LINK tdeui-shared kotext-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
if (BUILD_TESTS)
|
||||
tde_add_executable(koformulatest AUTOMOC
|
||||
SOURCES main.cpp kformulawidget.cpp
|
||||
LINK kformulalib-shared
|
||||
)
|
||||
endif()
|
||||
|
||||
### Headers ###################################################################
|
||||
# install(
|
||||
# FILES
|
||||
# kformulacontainer.h kformuladocument.h kformulaview.h
|
||||
# kformuladefs.h kformulaconfigpage.h
|
||||
# DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
|
||||
# )
|
||||
|
||||
### Data ######################################################################
|
||||
add_subdirectory(pics)
|
||||
add_subdirectory(fonts)
|
||||
add_subdirectory(dtd)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
install(FILES kformula.dtd DESTINATION ${DATA_INSTALL_DIR}/kformula/dtd)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,18 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
set(FONTDIR "${DATA_INSTALL_DIR}/kformula/fonts")
|
||||
install(
|
||||
FILES cmex10.ttf Arev.ttf ArevIt.ttf ArevBd.ttf ArevBI.ttf
|
||||
DESTINATION ${FONTDIR}
|
||||
)
|
||||
|
||||
install(CODE "execute_process(COMMAND mkfontscale \$ENV{DESTDIR}${FONTDIR})")
|
||||
install(CODE "execute_process(COMMAND mkfontdir \$ENV{DESTDIR}${FONTDIR})")
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
add_subdirectory(crystalsvg)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -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;
|
@ -0,0 +1,77 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kofficeui SHARED AUTOMOC
|
||||
SOURCES
|
||||
KoPageLayoutDia.cpp KoZoomAction.cpp KoTabBar.cpp
|
||||
KoPartSelectDia.cpp KoPartSelectAction.cpp
|
||||
KoRuler.cpp KoTemplateChooseDia.cpp KoTabChooser.cpp
|
||||
KoKoolBar.cpp KoTemplateCreateDia.cpp KoContextCelp.cpp
|
||||
kcoloractions.cpp KoPictureFilePreview.cpp KoUnitWidgets.cpp
|
||||
ttdeaction.cpp tkcoloractions.cpp tkcombobox.cpp ttdetoolbarbutton.cpp
|
||||
KoCharSelectDia.cpp KoInsertLink.cpp KoEditPath.cpp KoCommandHistory.cpp
|
||||
KoSelectAction.cpp Kolinewidthaction.cpp Kolinestyleaction.cpp
|
||||
KoTooluButton.cpp KoBrush.cpp KoImageResource.cpp KoToolBox.cpp
|
||||
KoZoomHandler.cpp KoGuideLineDia.cpp KoGuides.cpp KoZoomMode.cpp
|
||||
KoGeneralPropertyUi.ui KoPageLayoutColumns.cpp KoPageLayoutColumnsBase.ui
|
||||
KoPageLayoutSize.cpp KoPageLayoutHeaderBase.ui KoPageLayoutHeader.cpp
|
||||
KoPen.cpp
|
||||
LINK kofficecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Headers ###################################################################
|
||||
install(
|
||||
FILES
|
||||
KoPageLayoutDia.h KoZoomAction.h KoTabBar.h
|
||||
KoPartSelectDia.h KoPartSelectAction.h
|
||||
KoRuler.h KoTemplateChooseDia.h KoTabChooser.h
|
||||
KoKoolBar.h KoTemplateCreateDia.h KoContextCelp.h
|
||||
kcoloractions.h KoPictureFilePreview.h KoUnitWidgets.h
|
||||
ttdeaction.h tkcoloractions.h ttdetoolbarbutton.h tkcombobox.h
|
||||
KoCharSelectDia.h KoInsertLink.h KoTooluButton.h KoEditPath.h
|
||||
KoCommandHistory.h KoImageResource.h
|
||||
KoSelectAction.h Kolinewidthaction.h Kolinestyleaction.h
|
||||
KoZoomHandler.h KoGuideLineDia.h KoGuides.h
|
||||
KoPageLayoutHeader.h KoPageLayoutSize.h
|
||||
KoPageLayoutColumns.h KoBrush.h KoPen.h KoZoomMode.h
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
|
||||
)
|
||||
|
||||
### Widgets ###################################################################
|
||||
if (HAVE_MAKETDEWIDGETS)
|
||||
add_custom_command(OUTPUT kofficewidgets.cpp
|
||||
COMMAND maketdewidgets -o kofficewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/koffice.widgets
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/koffice.widgets
|
||||
)
|
||||
|
||||
tde_add_kpart(kofficewidgets AUTOMOC
|
||||
SOURCES kofficewidgets.cpp
|
||||
LINK tdeio-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer
|
||||
)
|
||||
endif()
|
||||
|
||||
### Data ######################################################################
|
||||
add_subdirectory(pics)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -1,32 +1,26 @@
|
||||
[Global]
|
||||
PluginName=KOfficeWidgets
|
||||
|
||||
[KoBuggyUnitDoubleSpinBox]
|
||||
[KoUnitDoubleSpinBox]
|
||||
ToolTip=KOffice Spin box for double precision numbers with unit display
|
||||
WhatsThis=KOffice Spin box for double precision numbers with unit display
|
||||
IncludeFile=koUnitWidgets.h
|
||||
Group=Input (KOffice)
|
||||
|
||||
[KoUnitDoubleSpinBox2]
|
||||
ToolTip=KOffice Spin box for double precision numbers with unit display
|
||||
WhatsThis=KOffice Spin box for double precision numbers with unit display
|
||||
IncludeFile=koUnitWidgets.h
|
||||
IncludeFile=KoUnitWidgets.h
|
||||
Group=Input (KOffice)
|
||||
|
||||
[KoUnitDoubleLineEdit]
|
||||
ToolTip=KOffice Line edit for double precision numbers with unit display
|
||||
WhatsThis=KOffice Line edit for double precision numbers with unit display
|
||||
IncludeFile=koUnitWidgets.h
|
||||
IncludeFile=KoUnitWidgets.h
|
||||
Group=Input (KOffice)
|
||||
|
||||
[KoUnitDoubleComboBox]
|
||||
ToolTip=KOffice Combo box for double precision numbers with unit display
|
||||
WhatsThis=KOffice Combo box for double precision numbers with unit display
|
||||
IncludeFile=koUnitWidgets.h
|
||||
IncludeFile=KoUnitWidgets.h
|
||||
Group=Input (KOffice)
|
||||
|
||||
[KoUnitDoubleSpinComboBox]
|
||||
ToolTip=KOffice Combo box (with spin control) for double precision numbers with unit display
|
||||
WhatsThis=KOffice Combo box (with spin control) for double precision numbers with unit display
|
||||
IncludeFile=koUnitWidgets.h
|
||||
IncludeFile=KoUnitWidgets.h
|
||||
Group=Input (KOffice)
|
||||
|
@ -0,0 +1,23 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
install(
|
||||
FILES
|
||||
koRulerFirst.png koRulerLeft.png koffice-logo.png
|
||||
koKoolBarDown.png koKoolBarUp.png
|
||||
koPortrait.png koLandscape.png
|
||||
DESTINATION ${DATA_INSTALL_DIR}/koffice/pics
|
||||
)
|
||||
|
||||
install(
|
||||
FILES
|
||||
kounitdoublecombobox.png kounitdoublelineedit.png
|
||||
kounitdoublespinbox2.png kounitdoublespincombobox.png
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kofficewidgets/pics
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,33 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kopainter SHARED AUTOMOC
|
||||
SOURCES
|
||||
svgpathparser.cpp koColor.cpp koFrameButton.cpp koColorSlider.cpp
|
||||
koColorChooser.cpp koIconChooser.cpp kogradientmanager.cpp
|
||||
ko_color_wheel.cpp ko_gray_widget.cpp ko_hsv_widget.cpp
|
||||
ko_rgb_widget.cpp ko_cmyk_widget.cpp
|
||||
LINK kofficeui-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,33 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kopalette SHARED AUTOMOC
|
||||
SOURCES
|
||||
kopalette.cpp kopalettemanager.cpp
|
||||
kotoolboxpalette.cpp kotabpalette.cpp
|
||||
LINK kofficecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Headers ###################################################################
|
||||
install(FILES kopalettemanager.h DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,36 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/koproperty/editors
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(koproperty SHARED AUTOMOC
|
||||
SOURCES
|
||||
property.cpp customproperty.cpp set.cpp editor.cpp
|
||||
editoritem.cpp factory.cpp widget.cpp
|
||||
LINK tdecore-shared tdeui-shared kopropertyeditors-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
add_subdirectory(editors)
|
||||
|
||||
### Data ######################################################################
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,33 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/koproperty/editors
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kopropertyeditors SHARED AUTOMOC
|
||||
SOURCES
|
||||
booledit.cpp coloredit.cpp combobox.cpp cursoredit.cpp dateedit.cpp
|
||||
datetimeedit.cpp dummywidget.cpp fontedit.cpp linestyledit.cpp
|
||||
pixmapedit.cpp pointedit.cpp rectedit.cpp sizeedit.cpp sizepolicyedit.cpp
|
||||
spinbox.cpp stringedit.cpp stringlistedit.cpp symbolcombo.cpp timeedit.cpp
|
||||
urledit.cpp
|
||||
LINK tdeui-shared tdeio-shared
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,57 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kotext SHARED AUTOMOC
|
||||
SOURCES
|
||||
KoComplexText.cpp KoRichText.cpp
|
||||
KoTextZoomHandler.cpp KoBorder.cpp
|
||||
KoTextFormat.cpp KoParagCounter.cpp KoStyleCollection.cpp KoTextCommand.cpp
|
||||
KoTextParag.cpp KoTextDocument.cpp KoTextFormatter.cpp KoParagLayout.cpp
|
||||
KoTextObject.cpp KoTextView.cpp KoAutoFormat.cpp KoAutoFormatDia.cpp
|
||||
KoParagDia.cpp KoVariable.cpp KoCustomVariablesDia.cpp
|
||||
KoChangeCaseDia.cpp KoStyleManager.cpp KoSearchDia.cpp
|
||||
timedateformatwidget.ui TimeFormatWidget.cpp DateFormatWidget.cpp
|
||||
kofonttabbase.ui KoFontTab.cpp KoTextBookmark.cpp
|
||||
kohighlightingtabbase.ui KoHighlightingTab.cpp
|
||||
kodecorationtabbase.ui KoDecorationTab.cpp
|
||||
kolayouttabbase.ui KoLayoutTab.cpp kolanguagetabbase.ui KoLanguageTab.cpp
|
||||
KoFontDiaPreview.cpp KoCompletionDia.cpp KoCompletionBase.ui
|
||||
KoTextViewIface.skel KoTextViewIface.cpp KoFontDia.cpp KoBgSpellCheck.cpp
|
||||
KoCommentDia.cpp KoSpell.cpp KoCreateStyleDia.cpp KoTextCustomItem.cpp
|
||||
KoImportStyleDia.cpp KoTextIterator.cpp KoOasisContext.cpp KoListStyleStack.cpp
|
||||
KoUserStyle.cpp KoUserStyleCollection.cpp KoParagStyle.cpp KoParagDecorationTab.ui
|
||||
LINK kofficeui-shared kohyphen-static tdespell2-shared tdeutils-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
add_subdirectory(kohyphen)
|
||||
|
||||
### Headers ###################################################################
|
||||
# install(
|
||||
# FILES
|
||||
# KoTextZoomHandler.h KoTextFormat.h KoParagCounter.h KoStyleCollection.h
|
||||
# KoTextDocument.h KoBgSpellCheck.h KoCommentDia.h KoCreateStyleDia.h
|
||||
# DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
|
||||
# )
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,41 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_SOURCE_DIR}/lib/kofficeui
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kohyphen STATIC_PIC AUTOMOC
|
||||
SOURCES hnjalloc.c hyphen.c kohyphen.cpp
|
||||
LINK tdecore-shared
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
if (BUILD_TESTS)
|
||||
tde_add_executable(kohyphentest AUTOMOC
|
||||
SOURCES kohyphentest.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared tdefx-shared tdeio-shared
|
||||
tdetexteditor kohyphen-static
|
||||
)
|
||||
endif()
|
||||
|
||||
### Data ######################################################################
|
||||
add_subdirectory(hyphdicts)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,18 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
install(
|
||||
FILES
|
||||
dicts.xml
|
||||
hyph_cs.dic hyph_en.dic hyph_hu.dic hyph_uk.dic hyph_da.dic hyph_de.dic
|
||||
hyph_en_CA.dic hyph_es.dic hyph_fr.dic hyph_it.dic hyph_nl.dic hyph_pt_BR.dic
|
||||
hyph_pt.dic hyph_pt_PT.dic hyph_ru.dic hyph_sk.dic hyph_sv.dic hyph_sl.dic
|
||||
DESTINATION ${DATA_INSTALL_DIR}/koffice/hyphdicts
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,17 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
tde_conditional_add_subdirectory(WITH_KROSS_PYTHON python)
|
||||
tde_conditional_add_subdirectory(WITH_KROSS_RUBY ruby)
|
||||
|
||||
add_subdirectory(api)
|
||||
add_subdirectory(main)
|
||||
add_subdirectory(runner)
|
||||
|
||||
if (BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
@ -0,0 +1,119 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Python ####################################################################
|
||||
if (WITH_KROSS_PYTHON)
|
||||
# find_package(Python3 COMPONENTS Interpreter Development)
|
||||
# if (NOT Python3_FOUND)
|
||||
# message(WARNING "Python developement files were not found, Python scripting support for "
|
||||
# "KOffice will not be built. If you don't need Python scripting, you "
|
||||
# "can ignore this message.")
|
||||
message(WARNING "The Python bindings of Kross don't support Python3."
|
||||
"Python scripting support for KOffice will not be built. If you don't "
|
||||
"need Python scripting, you can ignore this message.")
|
||||
set(WITH_KROSS_PYTHON OFF)
|
||||
# endif()
|
||||
endif()
|
||||
|
||||
|
||||
if (WITH_KROSS_RUBY)
|
||||
find_program(RUBY ruby)
|
||||
if (NOT RUBY)
|
||||
message(WARNING "The Ruby executable was not found. "
|
||||
"Ruby scripting support for KOffice will not be built. If you don't "
|
||||
"need Ruby scripting, you can ignore this message.")
|
||||
set(WITH_KROSS_RUBY OFF)
|
||||
else()
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(MAJOR))"
|
||||
OUTPUT_VARIABLE RUBY_MAJOR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(MINOR))"
|
||||
OUTPUT_VARIABLE RUBY_MINOR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(archdir))"
|
||||
OUTPUT_VARIABLE RUBY_ARCHDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(sitearchdir))"
|
||||
OUTPUT_VARIABLE RUBY_SITEARCHDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(sitedir))"
|
||||
OUTPUT_VARIABLE RUBY_SITEDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(libdir))"
|
||||
OUTPUT_VARIABLE RUBY_LIBDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(sitelibdir))"
|
||||
OUTPUT_VARIABLE RUBY_SITELIBDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(rubylibdir))"
|
||||
OUTPUT_VARIABLE RUBY_RUBYLIBDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(LIBRUBYARG_SHARED))"
|
||||
OUTPUT_VARIABLE RUBY_LIBRUBYARG OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
###
|
||||
if (RUBY_LIBRUBYARG)
|
||||
set(RUBY_ENABLESHARED ON)
|
||||
else()
|
||||
set(RUBY_ENABLESHARED OFF)
|
||||
endif()
|
||||
|
||||
###
|
||||
set(RUBY_SERIES "${RUBY_MAJOR}.${RUBY_MINOR}")
|
||||
set(RUBY_VERSION_DEFS "")
|
||||
|
||||
if (RUBY_SERIES VERSION_GREATER_EQUAL "1.9")
|
||||
set(HAVE_RUBY_1_9 1)
|
||||
set(RUBY_VERSION_DEFS "${RUBY_VERSION_DEFS} -DHAVE_RUBY_1_9")
|
||||
endif()
|
||||
|
||||
if (RUBY_SERIES VERSION_GREATER_EQUAL "3.0")
|
||||
set(HAVE_RUBY_3 1)
|
||||
set(RUBY_VERSION_DEFS "${RUBY_VERSION_DEFS} -DHAVE_RUBY_3")
|
||||
endif()
|
||||
|
||||
###
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.key?(%q(rubyhdrdir))"
|
||||
OUTPUT_VARIABLE RUBY_HAS_INCLUDEDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
if (RUBY_HAS_INCLUDEDIR STREQUAL "true")
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(rubyhdrdir))"
|
||||
OUTPUT_VARIABLE RUBY_INCLUDEDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.key?(%q(rubyarchhdrdir))"
|
||||
OUTPUT_VARIABLE RUBY_HAS_ARCHINCLUDEDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
if (RUBY_HAS_ARCHINCLUDEDIR STREQUAL "true")
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(rubyarchhdrdir))"
|
||||
OUTPUT_VARIABLE RUBY_ARCHINCLUDEDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
else()
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(arch))"
|
||||
OUTPUT_VARIABLE RUBY_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
set(RUBY_ARCHINCLUDEDIR "${RUBY_INCLUDEDIR}/${RUBY_ARCH}")
|
||||
endif()
|
||||
|
||||
set(RUBY_CFLAGS "-I${RUBY_INCLUDEDIR} -I${RUBY_ARCHINCLUDEDIR}")
|
||||
else()
|
||||
execute_process(COMMAND ${RUBY} -r rbconfig -e "puts RbConfig::CONFIG.fetch(%q(archdir))"
|
||||
OUTPUT_VARIABLE RUBY_INCLUDEDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
set(RUBY_CFLAGS "-I${RUBY_INCLUDEDIR}")
|
||||
message("set RUBY_CFLAGS 2 ${RUBY_CFLAGS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
###
|
||||
if (NOT EXISTS "${RUBY_INCLUDEDIR}/ruby/config.h" AND
|
||||
NOT EXISTS "${RUBY_ARCHINCLUDEDIR}/ruby/config.h")
|
||||
message(WARNING "Ruby development files were not found, or Ruby <= 1.8.1 was found, "
|
||||
"Ruby scripting support for KOffice will not be built. If you don't "
|
||||
"need Ruby scripting, you can ignore this message.")
|
||||
set(WITH_KROSS_RUBY OFF)
|
||||
else()
|
||||
message(STATUS "Ruby executable: ${RUBY}")
|
||||
message(STATUS "Ruby archdir: ${RUBY_ARCHDIR}")
|
||||
message(STATUS "Ruby sitearchdir: ${RUBY_SITEARCHDIR}")
|
||||
message(STATUS "Ruby sitedir: ${RUBY_SITEDIR}")
|
||||
message(STATUS "Ruby sitelibdir: ${RUBY_SITELIBDIR}")
|
||||
message(STATUS "Ruby libdir: ${RUBY_LIBDIR}")
|
||||
message(STATUS "Ruby includedir: ${RUBY_INCLUDEDIR}")
|
||||
message(STATUS "Ruby librubyarg: ${RUBY_LIBRUBYARG}")
|
||||
message(STATUS "Ruby cflags: ${RUBY_CFLAGS}")
|
||||
endif()
|
||||
endif()
|
@ -0,0 +1,38 @@
|
||||
###############################################################################
|
||||
# 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_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(libkrossapi SHARED AUTOMOC
|
||||
SOURCES
|
||||
object.cpp variant.cpp list.cpp dict.cpp exception.cpp callable.cpp
|
||||
eventaction.cpp eventsignal.cpp eventslot.cpp eventscript.cpp
|
||||
qtobject.cpp script.cpp interpreter.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Headers ###################################################################
|
||||
install(
|
||||
FILES
|
||||
callable.h class.h dict.h eventaction.h event.h eventscript.h eventsignal.h
|
||||
eventslot.h exception.h function.h interpreter.h list.h module.h object.h
|
||||
proxy.h qtobject.h script.h value.h variant.h
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/kross/api
|
||||
)
|
@ -0,0 +1,39 @@
|
||||
###############################################################################
|
||||
# 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/kross/
|
||||
${CMAKE_BINARY_DIR}/lib/kross/
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(libkrossmain SHARED AUTOMOC
|
||||
SOURCES
|
||||
krossconfig.cpp mainmodule.cpp scriptcontainer.cpp manager.cpp
|
||||
scriptaction.cpp scriptguiclient.cpp wdgscriptsmanagerbase.ui
|
||||
wdgscriptsmanager.cpp
|
||||
LINK
|
||||
tdecore-shared tdeio-shared tdeui-shared tdenewstuff-shared
|
||||
libkrossapi-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
### Headers ###################################################################
|
||||
install(
|
||||
FILES
|
||||
krossconfig.h mainmodule.h manager.h scriptaction.h scriptcontainer.h
|
||||
scriptguiclient.h wdgscriptsmanager.h
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
###############################################################################
|
||||
# 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/kross
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
${RUBY_INCLUDEDIR}
|
||||
${RUBY_INCLUDEDIR}/ruby
|
||||
${RUBY_ARCHINCLUDEDIR}
|
||||
${RUBY_ARCHINCLUDEDIR}/ruby
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
add_compile_options(${RUBY_LIBRUBYARG})
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_kpart(krossruby SHARED AUTOMOC
|
||||
SOURCES
|
||||
rubyinterpreter.cpp rubyextension.cpp rubyscript.cpp rubymodule.cpp
|
||||
rubywrapper.c
|
||||
LINK
|
||||
tdecore-shared libkrossapi-shared libkrossmain-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,27 @@
|
||||
###############################################################################
|
||||
# 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_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_executable(krossrunner AUTOMOC
|
||||
SOURCES main.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared tdefx-shared tdeio-shared
|
||||
tdetexteditor-shared libkrossapi-shared libkrossmain-shared
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,27 @@
|
||||
###############################################################################
|
||||
# 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_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Programs ##################################################################
|
||||
tde_add_executable(krosstest AUTOMOC
|
||||
SOURCES
|
||||
testobject.cpp testaction.cpp testplugin.cpp testwindow.cpp main.cpp
|
||||
LINK
|
||||
tdecore-shared tdeui-shared tdefx-shared dcop-shared tdetexteditor-shared
|
||||
libkrossapi-shared libkrossmain-shared
|
||||
)
|
@ -0,0 +1,36 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
### Libraries #################################################################
|
||||
tde_add_library(kwmf SHARED AUTOMOC
|
||||
SOURCES kwmf.cpp qwmf.cpp
|
||||
LINK tdecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
tde_add_library(kowmf SHARED AUTOMOC
|
||||
SOURCES
|
||||
kowmfreadprivate.cpp kowmfstack.cpp
|
||||
kowmfread.cpp kowmfwrite.cpp kowmfpaint.cpp
|
||||
LINK tdecore-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,34 @@
|
||||
###############################################################################
|
||||
# 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/kofficecore
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
tde_add_library(kstore SHARED AUTOMOC
|
||||
SOURCES
|
||||
KoStore.cpp KoTarStore.cpp KoDirectoryStore.cpp KoZipStore.cpp
|
||||
KoStoreDrag.cpp KoStoreBase.cpp KoXmlWriter.cpp
|
||||
LINK tdecore-shared tdeui-shared tdeio-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES KoStore.h KoStoreDevice.h KoXmlWriter.h
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
|
||||
)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
add_subdirectory(crystalsvg)
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,11 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
tde_install_icons()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,18 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
### Data ######################################################################
|
||||
foreach(DESKTOP_FILE kofficepart.desktop kofilter.desktop koplugin.desktop
|
||||
kochart.desktop kofilterwrapper.desktop)
|
||||
tde_create_translated_desktop(
|
||||
SOURCE ${DESKTOP_FILE}
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
PO_DIR koffice-desktops
|
||||
)
|
||||
endforeach()
|
||||
|
||||
# kate: indent-width 2; replace-tabs true;
|
@ -0,0 +1,22 @@
|
||||
###############################################################################
|
||||
# Trinity KOffice #
|
||||
# --------------- #
|
||||
# This file is licensed under the terms of GNU GPL v3 or later. #
|
||||
# Improvements and feedback are welcome. #
|
||||
###############################################################################
|
||||
|
||||
set(TEMPLATE_SUBDIR "Normal")
|
||||
file(GLOB DESKTOP_FILES *.desktop)
|
||||
file(GLOB KWORD_TEMPLATES *.kwt)
|
||||
|
||||
install(
|
||||
FILES
|
||||
Presentation.desktop TextDocument.desktop SpreadSheet.desktop
|
||||
Illustration.desktop
|
||||
DESTINATION ${TEMPLATES_INSTALL_DIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES Presentation.kpt TextDocument.kwt SpreadSheet.kst Illustration.karbon
|
||||
DESTINATION ${TEMPLATES_INSTALL_DIR}/.source
|
||||
)
|
Loading…
Reference in New Issue