diff options
Diffstat (limited to 'lib')
24 files changed, 707 insertions, 20 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 00000000..645b05fc --- /dev/null +++ b/lib/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/ConfigureChecks.cmake b/lib/ConfigureChecks.cmake new file mode 100644 index 00000000..5dc7d756 --- /dev/null +++ b/lib/ConfigureChecks.cmake @@ -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()
\ No newline at end of file diff --git a/lib/kformula/CMakeLists.txt b/lib/kformula/CMakeLists.txt new file mode 100644 index 00000000..ee3df6cc --- /dev/null +++ b/lib/kformula/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kformula/dtd/CMakeLists.txt b/lib/kformula/dtd/CMakeLists.txt new file mode 100644 index 00000000..b8bf11ee --- /dev/null +++ b/lib/kformula/dtd/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kformula/fonts/CMakeLists.txt b/lib/kformula/fonts/CMakeLists.txt new file mode 100644 index 00000000..74379d97 --- /dev/null +++ b/lib/kformula/fonts/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kformula/kformulacontainer.cpp b/lib/kformula/kformulacontainer.cpp index a6123154..5499fe91 100644 --- a/lib/kformula/kformulacontainer.cpp +++ b/lib/kformula/kformulacontainer.cpp @@ -528,7 +528,7 @@ void Container::saveMathML( TQTextStream& stream, bool oasisFormat ) { TQDomDocument doc; if ( !oasisFormat ) { - doc = document()->createMathMLDomDocument(); + doc = document()->createMathMLDomDocument(); } rootElement()->writeMathML( doc, doc, oasisFormat ); stream << doc; diff --git a/lib/kformula/kformuladocument.cpp b/lib/kformula/kformuladocument.cpp index 3efd3780..d39fb886 100644 --- a/lib/kformula/kformuladocument.cpp +++ b/lib/kformula/kformuladocument.cpp @@ -125,7 +125,7 @@ int Document::formulaCount() bool Document::loadXML( const TQDomDocument& doc ) { setCreationStrategy( "Ordinary" ); - + //clear(); TQDomElement root = doc.documentElement(); @@ -205,12 +205,12 @@ TQDomDocument Document::createDomDocument() */ TQDomDocument Document::createMathMLDomDocument() { - TQDomDocumentType dt = + TQDomDocumentType dt = TQDomImplementation().createDocumentType( "math", "-//W3C//DTD MathML 2.0//EN", "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd"); TQDomDocument doc( dt ); - doc.insertBefore( doc.createProcessingInstruction( "xml", + doc.insertBefore( doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ), doc.documentElement() ); return doc; @@ -1212,10 +1212,10 @@ void DocumentWrapper::setEnabled( bool enabled ) getAddLowerLeftAction()->setEnabled( enabled ); getAddUpperRightAction()->setEnabled( enabled ); getAddLowerRightAction()->setEnabled( enabled ); - + getAddGenericUpperAction()->setEnabled( enabled ); getAddGenericLowerAction()->setEnabled( enabled ); - + if ( enabled ) { getAddGenericUpperAction()-> @@ -1277,6 +1277,7 @@ void DocumentWrapper::setEnabled( bool enabled ) void DocumentWrapper::enableMatrixActions( bool b) { + if (!m_hasActions) return; getAppendColumnAction()->setEnabled( b ); getInsertColumnAction()->setEnabled( b ); getRemoveColumnAction()->setEnabled( b ); diff --git a/lib/kformula/pics/CMakeLists.txt b/lib/kformula/pics/CMakeLists.txt new file mode 100644 index 00000000..bb28270c --- /dev/null +++ b/lib/kformula/pics/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kformula/pics/crystalsvg/CMakeLists.txt b/lib/kformula/pics/crystalsvg/CMakeLists.txt new file mode 100644 index 00000000..f3304540 --- /dev/null +++ b/lib/kformula/pics/crystalsvg/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kofficecore/CMakeLists.txt b/lib/kofficecore/CMakeLists.txt new file mode 100644 index 00000000..c3868bdf --- /dev/null +++ b/lib/kofficecore/CMakeLists.txt @@ -0,0 +1,87 @@ +############################################################################### +# Trinity KOffice # +# --------------- # +# This file is licensed under the terms of GNU GPL v3 or later. # +# Improvements and feedback are welcome. # +############################################################################### + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/lib/store + ${CMAKE_SOURCE_DIR}/lib/kwmf + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +### Libraries ################################################################# +tde_add_library(kofficecore SHARED AUTOMOC + SOURCES + KoDocument.cpp KoGlobal.cpp KoUnit.cpp KoFilterManager.cpp + KoMainWindow.cpp KoApplication.cpp KoQueryTrader.cpp + KoFilter.cpp KoFilterChain.cpp KoDocumentInfo.cpp + KoPictureKey.cpp KoPictureBase.cpp KoPicture.cpp KoPictureShared.cpp + KoPictureImage.cpp KoPictureClipart.cpp KoPictureCollection.cpp + KoPictureEps.cpp KoPictureWmf.cpp + KoView.cpp KoFrame.cpp KoContainerHandler.cpp KoDocumentChild.cpp + KoDocumentInfoDlg.cpp KoFactory.cpp KoChild.cpp + koDocumentInfoAboutWidget.ui koDocumentInfoAuthorWidget.ui + koDocumentInfoUserMetadataWidget.ui + KoApplicationIface.cpp KoApplicationIface.skel + KoDocumentIface.cpp KoDocumentIface.skel KoViewIface.cpp KoViewIface.skel + KoMainWindowIface.cpp KoMainWindowIface.skel kofficeversion.cpp + KoOasisStyles.cpp KoOasisSettings.cpp KoOasisLoadingContext.cpp + KoStyleStack.cpp KoGenStyles.cpp KoPageLayout.cpp + KoFileDialog.cpp KoXmlNS.cpp KoDom.cpp Koversiondialog.cpp KoOasisStore.cpp + kkbdaccessextensions.cpp koDetailsPaneBase.ui koOpenPaneBase.ui + KoOpenPane.cpp KoTemplates.cpp KoDetailsPane.cpp KoSpeaker.cpp KoRect.cpp + LINK + tdeio-shared tdefx-shared tdeabc-shared tdeprint-shared tdeparts-shared + kstore-shared kwmf-shared kowmf-shared + DESTINATION ${LIB_INSTALL_DIR} +) + +tde_add_kpart(kodocinfopropspage SHARED AUTOMOC + SOURCES KoDocInfoPropsFactory.cpp + LINK tdecore-shared tdeio-shared tdefx-shared kjs-shared kofficecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +### Headers ################################################################### +install( + FILES + KoContainerHandler.h + KoFilter.h KoFilterChain.h + KoGlobal.h KoUnit.h KoDocument.h + KoMainWindow.h + KoApplication.h KoQueryTrader.h + KoFilterManager.h + KoDocumentInfo.h + KoView.h KoFrame.h KoDocumentChild.h + KoDocumentInfoDlg.h KoFactory.h KoChild.h + KoApplicationIface.h KoDocumentIface.h KoViewIface.h KoMainWindowIface.h + KoPictureKey.h KoPicture.h KoPictureCollection.h kofficeversion.h + KoOasisStyles.h KoStyleStack.h KoGenStyles.h KoOasisSettings.h + KoPageLayout.h KoXmlNS.h KoDom.h Koversiondialog.h + kkbdaccessextensions.h + koffice_export.h KoOpenPane.h + KoSpeaker.h KoOasisLoadingContext.h + KoPoint.h + + DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice +) + +### Data ###################################################################### +install(FILES koffice_shell.rc DESTINATION ${DATA_INSTALL_DIR}/koffice) +tde_create_translated_desktop( + SOURCE kodocinfopropspage.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR koffice-desktops +) + +# kate: indent-width 2; replace-tabs true;
\ No newline at end of file diff --git a/lib/kofficeui/CMakeLists.txt b/lib/kofficeui/CMakeLists.txt new file mode 100644 index 00000000..868ed230 --- /dev/null +++ b/lib/kofficeui/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kofficeui/koffice.widgets b/lib/kofficeui/koffice.widgets index 9a3f0ba1..336d6056 100644 --- a/lib/kofficeui/koffice.widgets +++ b/lib/kofficeui/koffice.widgets @@ -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) diff --git a/lib/kofficeui/pics/CMakeLists.txt b/lib/kofficeui/pics/CMakeLists.txt new file mode 100644 index 00000000..1d14be12 --- /dev/null +++ b/lib/kofficeui/pics/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kopainter/CMakeLists.txt b/lib/kopainter/CMakeLists.txt new file mode 100644 index 00000000..0bb476ce --- /dev/null +++ b/lib/kopainter/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kopalette/CMakeLists.txt b/lib/kopalette/CMakeLists.txt new file mode 100644 index 00000000..3ac6edde --- /dev/null +++ b/lib/kopalette/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/koproperty/CMakeLists.txt b/lib/koproperty/CMakeLists.txt new file mode 100644 index 00000000..a22303ef --- /dev/null +++ b/lib/koproperty/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/koproperty/editors/CMakeLists.txt b/lib/koproperty/editors/CMakeLists.txt new file mode 100644 index 00000000..b201dc53 --- /dev/null +++ b/lib/koproperty/editors/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kotext/CMakeLists.txt b/lib/kotext/CMakeLists.txt new file mode 100644 index 00000000..afc0688c --- /dev/null +++ b/lib/kotext/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kotext/kohyphen/CMakeLists.txt b/lib/kotext/kohyphen/CMakeLists.txt new file mode 100644 index 00000000..a9718a46 --- /dev/null +++ b/lib/kotext/kohyphen/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kotext/kohyphen/hyphdicts/CMakeLists.txt b/lib/kotext/kohyphen/hyphdicts/CMakeLists.txt new file mode 100644 index 00000000..95f8bb96 --- /dev/null +++ b/lib/kotext/kohyphen/hyphdicts/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/kotext/kohyphen/kohyphentest.cpp b/lib/kotext/kohyphen/kohyphentest.cpp index 0f083631..5a0d3ac0 100644 --- a/lib/kotext/kohyphen/kohyphentest.cpp +++ b/lib/kotext/kohyphen/kohyphentest.cpp @@ -6,6 +6,7 @@ #include <tqstringlist.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include "kohyphen.h" #include <kdebug.h> @@ -40,7 +41,8 @@ void check_hyphenation( const TQStringList& tests, const TQStringList& results, int main (int argc, char ** argv) { - TDEApplication app(argc, argv, "KoHyphenator test"); + TDECmdLineArgs::init(argc, argv, "kohyphentest", "KoHyphenator test", 0, 0, true); + TDEApplication app; try { hypher = KoHyphenator::self(); @@ -54,8 +56,12 @@ int main (int argc, char ** argv) TQStringList::ConstIterator it, itres; //testing Czech language, this text is in UTF-8! - TQStringList cs_tests = TQStringList() << "Žluťoučký" << "kůň" << "úpěl" << - "ďábelské" << "ódy"; + TQStringList cs_tests; + cs_tests << TQString::fromLocal8Bit("Žluťoučký") + << TQString::fromLocal8Bit("kůň") + << TQString::fromLocal8Bit("úpěl") + << TQString::fromLocal8Bit("ďábelské") + << TQString::fromLocal8Bit("ódy"); for ( it = cs_tests.begin(); it != cs_tests.end() ; ++it ) kdDebug() << (*it) << " hyphenates like this: " << hypher->hyphenate((*it), "cs") << endl; diff --git a/lib/kross/ConfigureChecks.cmake b/lib/kross/ConfigureChecks.cmake new file mode 100644 index 00000000..05feb550 --- /dev/null +++ b/lib/kross/ConfigureChecks.cmake @@ -0,0 +1,17 @@ +############################################################################### +# Trinity KOffice # +# --------------- # +# This file is licensed under the terms of GNU GPL v3 or later. # +# Improvements and feedback are welcome. # +############################################################################### + +### Python #################################################################### +# FIXME: Kross Python plugin cannot be built since it is incompatible with +# Python >= 3. +if (WITH_KROSS_PYTHON) + tde_message_fatal("Kross is uncompatible with Python >= 3.") +endif() + +if (WITH_KROSS_RUBY) +# TODO +endif()
\ No newline at end of file diff --git a/lib/kwmf/CMakeLists.txt b/lib/kwmf/CMakeLists.txt new file mode 100644 index 00000000..6a4c9a5f --- /dev/null +++ b/lib/kwmf/CMakeLists.txt @@ -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;
\ No newline at end of file diff --git a/lib/store/CMakeLists.txt b/lib/store/CMakeLists.txt new file mode 100644 index 00000000..6d845908 --- /dev/null +++ b/lib/store/CMakeLists.txt @@ -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;
\ No newline at end of file |