]> git.lyx.org Git - features.git/commitdiff
declare specialisations, needed by the merge build. add cpp minizip file
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 4 Sep 2007 18:39:13 +0000 (18:39 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 4 Sep 2007 18:39:13 +0000 (18:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20045 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/src/support/CMakeLists.txt
src/support/convert.h

index 6da64bd778270370d583c90d13c2d06a001fa1b3..c914136b87b6808e2eb0f22f99a2e3c327851f06 100644 (file)
@@ -10,6 +10,7 @@ file(GLOB support_sources ${TOP_SRC_DIR}/src/support/${LYX_CPP_FILES})
 file(GLOB support_headers ${TOP_SRC_DIR}/src/support/${LYX_HPP_FILES})
 
 file(GLOB support_minzip_sources ${TOP_SRC_DIR}/src/support/minizip/*.c)
+file(GLOB support_minzip_cpp_sources ${TOP_SRC_DIR}/src/support/minizip/*.cpp)
 file(GLOB support_min_zip_headers ${TOP_SRC_DIR}/src/support/minizip/*.h)
 
 list(REMOVE_ITEM support_sources       
@@ -35,15 +36,9 @@ if(NOT MERGE_FILES)
        set(support_headers ${support_headers} ${support_minzip_headers})
        add_library(support ${library_type} ${support_sources} ${support_headers})
 else()
-       # move to front
-       list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/convert.cpp)
-       list(APPEND support_sources ${TOP_SRC_DIR}/src/support/convert.cpp)
-       list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/lstrings.cpp)
-       list(APPEND support_sources ${TOP_SRC_DIR}/src/support/lstrings.cpp)
-       list(REVERSE support_sources)
        lyx_const_touched_files(_allinone  support_sources)
        add_library(support ${library_type} ${_allinone_files}
-               ${support_minzip_sources})
+               ${support_minzip_sources} ${support_minzip_cpp_sources})
 endif()
 
 
index be2cb6d5b9874bd6da581cec9a7b8451622e2ca8..eb51d77c838b842ef46712126e466ba0dc7b0bb2 100644 (file)
 #ifndef CONVERT_H
 #define CONVERT_H
 
+#include "support/docstring.h"
+
 namespace lyx {
 
 template <class Target, class Source>
 Target convert(Source arg);
 
+
+template<> std::string convert<std::string>(bool b);
+template<> std::string convert<std::string>(char c);
+template<> std::string convert<std::string>(short unsigned int sui);
+template<> std::string convert<std::string>(int i);
+template<> docstring convert<docstring>(int i);
+template<> std::string convert<std::string>(unsigned int ui);
+template<> docstring convert<lyx::docstring>(unsigned int ui);
+template<> std::string convert<std::string>(unsigned long ul);
+template<> docstring convert<lyx::docstring>(unsigned long ul);
+template<> std::string convert<std::string>(long l);
+template<> docstring convert<lyx::docstring>(long l);
+template<> std::string convert<std::string>(float f);
+template<> std::string convert<std::string>(double d);
+template<> int convert<int>(std::string const s);
+template<> int convert<int>(lyx::docstring const s);
+template<> unsigned int convert<unsigned int>(std::string const s);
+template<> unsigned long convert<unsigned long>(std::string const s);
+template<> double convert<double>(std::string const s);
+template<> int convert<int>(char const * cptr);
+template<> double convert<double>(char const * cptr);
+
 } // namespace lyx
 
 #endif