You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ja...@apache.org on 2013/02/28 23:47:38 UTC

svn commit: r1451411 - in /openoffice/branches/l10n/main/l10ntools/source: gConDB.cxx gConDB.hxx gL10nMem.hxx makefile.mk

Author: jani
Date: Thu Feb 28 22:47:38 2013
New Revision: 1451411

URL: http://svn.apache.org/r1451411
Log:
prepare for loading of cnv files, to update all languages

Added:
    openoffice/branches/l10n/main/l10ntools/source/gConDB.cxx   (with props)
    openoffice/branches/l10n/main/l10ntools/source/gConDB.hxx   (with props)
    openoffice/branches/l10n/main/l10ntools/source/gL10nMem.hxx   (with props)
Modified:
    openoffice/branches/l10n/main/l10ntools/source/makefile.mk

Added: openoffice/branches/l10n/main/l10ntools/source/gConDB.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n/main/l10ntools/source/gConDB.cxx?rev=1451411&view=auto
==============================================================================
--- openoffice/branches/l10n/main/l10ntools/source/gConDB.cxx (added)
+++ openoffice/branches/l10n/main/l10ntools/source/gConDB.cxx Thu Feb 28 22:47:38 2013
@@ -0,0 +1,42 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+#include "gConDB.hxx"
+
+
+
+/*****************************************************************************
+ **************************   G C O N D B . C X X   **************************
+ *****************************************************************************
+ * This includes the c code generated by flex
+ *****************************************************************************/
+
+
+
+/************   I N T E R F A C E   I M P L E M E N T A T I O N   ************/
+convert_db::convert_db(l10nMem& crMemory) : convert_gen_impl(crMemory) {}
+convert_db::~convert_db()                                              {}
+
+
+
+/**********************   I M P L E M E N T A T I O N   **********************/
+void convert_db::execute()
+{
+}
\ No newline at end of file

Propchange: openoffice/branches/l10n/main/l10ntools/source/gConDB.cxx
------------------------------------------------------------------------------
    svn:executable = *

Added: openoffice/branches/l10n/main/l10ntools/source/gConDB.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n/main/l10ntools/source/gConDB.hxx?rev=1451411&view=auto
==============================================================================
--- openoffice/branches/l10n/main/l10ntools/source/gConDB.hxx (added)
+++ openoffice/branches/l10n/main/l10ntools/source/gConDB.hxx Thu Feb 28 22:47:38 2013
@@ -0,0 +1,45 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+#ifndef GCONDN_HXX
+#define GCONDN_HXX
+#include "gCon.hxx"
+
+
+
+/*****************************************************************************
+ **************************   G C O N D B . H X X   **************************
+ *****************************************************************************
+ * This is the class header for loading/writing internal "object" files
+ *****************************************************************************/
+
+
+
+/********************   C L A S S   D E F I N I T I O N   ********************/
+class convert_db : public convert_gen_impl
+{
+  public:
+    convert_db(l10nMem& crMemory);
+    ~convert_db();
+
+  private:
+    void execute();
+};
+#endif
\ No newline at end of file

Propchange: openoffice/branches/l10n/main/l10ntools/source/gConDB.hxx
------------------------------------------------------------------------------
    svn:executable = *

Added: openoffice/branches/l10n/main/l10ntools/source/gL10nMem.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n/main/l10ntools/source/gL10nMem.hxx?rev=1451411&view=auto
==============================================================================
--- openoffice/branches/l10n/main/l10ntools/source/gL10nMem.hxx (added)
+++ openoffice/branches/l10n/main/l10ntools/source/gL10nMem.hxx Thu Feb 28 22:47:38 2013
@@ -0,0 +1,86 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *  
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+#ifndef GL10NMEM_HXX
+#define GL10NMEM_HXX
+
+
+
+/*****************************************************************************
+ ************************   G L 1 0 N M E M . H X X   ************************
+ *****************************************************************************
+ * This is the class definition header of the l10n localizer program,
+ * all global classes and their interrelations is defined here
+ *****************************************************************************/
+
+
+
+/********************   C L A S S   D E F I N I T I O N   ********************/
+class l10nMem_entry
+{
+  public:
+    l10nMem_entry(const std::string& srSourceFile, const std::string& srModuleName, const std::string& srKey,
+                  const std::string& srObjectType, const std::string& srLanguage,   const std::string& srText,
+          const int          iIndex);
+    ~l10nMem_entry();
+
+    std::string msSourceFile;
+    std::string msModuleName;
+    std::string msKey;
+    std::string msObjectType;
+    std::string msLanguage;
+    std::string msText;
+    int         miIndex;
+
+  private:
+};
+
+
+
+/********************   C L A S S   D E F I N I T I O N   ********************/
+class l10nMem
+{
+  public:
+    l10nMem();
+    ~l10nMem();
+
+    std::string                   showError         (int iLineNo, char *sText, bool bWarning = false);
+    bool                          isError           ();
+    bool                          checkKey          (const std::string& sKey,
+                                                     const std::string& sObjectType);
+    void                          save              (const std::string& srTargetFile);
+    void                          clear();
+    void                          setFileName       (const std::string& srSourceFile);
+    void                          setModuleName     (const std::string& srModuleName);
+    void                          setEnUsKey        (int        iLineNo,const std::string& srKey,
+                                                     const std::string& srObjectType,
+                                                     const std::string& srText, int iIndex = 0);
+    std::vector<l10nMem_entry *>& getLanguagesForKey(const std::string& srKey);
+
+  private:
+    std::string                  msCurrentModuleName;
+    std::string                  msCurrentSourceFileName;
+    std::vector<l10nMem_entry *> mcCurrentSelection;
+    std::vector<l10nMem_entry>   mcMemory;
+    bool                         mbInError;
+    int                          miStartInx;
+    int                          miLastUniqResort;
+};
+#endif

Propchange: openoffice/branches/l10n/main/l10ntools/source/gL10nMem.hxx
------------------------------------------------------------------------------
    svn:executable = *

Modified: openoffice/branches/l10n/main/l10ntools/source/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n/main/l10ntools/source/makefile.mk?rev=1451411&r1=1451410&r2=1451411&view=diff
==============================================================================
--- openoffice/branches/l10n/main/l10ntools/source/makefile.mk (original)
+++ openoffice/branches/l10n/main/l10ntools/source/makefile.mk Thu Feb 28 22:47:38 2013
@@ -168,9 +168,10 @@ APP7STDLIBS+= \
 
 # localizer for new l10n framework
 APP8TARGET= genLang 
-APP8OBJS= $(OBJ)$/gLang.obj       $(OBJ)$/gL10nMem.obj \
-          $(OBJ)$/gHandler.obj    $(OBJ)$/gConProp.obj \
-          $(OBJ)$/gConTree.obj    $(OBJ)$/gCon.obj \
+APP8OBJS= $(OBJ)$/gLang.obj       $(OBJ)$/gL10nMem.obj    \
+          $(OBJ)$/gHandler.obj    $(OBJ)$/gConProp.obj    \
+          $(OBJ)$/gConTree.obj    $(OBJ)$/gCon.obj        \
+          $(OBJ)$/gConDB.obj                              \
           $(OBJ)$/gConPoWrap.obj  $(OBJ)$/gConSrcWrap.obj \
           $(OBJ)$/gConXcsWrap.obj $(OBJ)$/gConXcuWrap.obj \
           $(OBJ)$/gConXrmWrap.obj $(OBJ)$/gConXhpWrap.obj \