Index: configmgr/prj/build.lst
===================================================================
RCS file: /cvsroot/thaioo/OpenOffice_Test/configmgr/prj/build.lst,v
retrieving revision 1.1.1.1
diff -a -u -r1.1.1.1 build.lst
--- configmgr/prj/build.lst	15 Sep 2004 05:32:46 -0000	1.1.1.1
+++ configmgr/prj/build.lst	30 Sep 2004 05:53:01 -0000
@@ -1,6 +1,7 @@
 cg	configmgr	:	offapi comphelper cppuhelper vos NULL
 cg	configmgr								usr1	-	all	cg_mkout NULL
 cg	configmgr\source\cmdtools				nmake	-	all	cg_cmdtools cg_misc NULL
+cg      configmgr\source\cmdtools\unx                           nmake   -       all     cg_cmdtools_uiunx cg_misc NULL
 cg	configmgr\source\cppugen				nmake	-	all	cg_cppugen NULL
 cg	configmgr\source\misc					nmake	-	all	cg_misc cg_cppugen NULL
 cg	configmgr\source\data					nmake	-	all	cg_data cg_cppugen NULL
Index: configmgr/source/cmdtools/unx/interface.c
===================================================================
RCS file: configmgr/source/cmdtools/unx/interface.c
diff -N configmgr/source/cmdtools/unx/interface.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ configmgr/source/cmdtools/unx/interface.c	30 Sep 2004 05:53:01 -0000
@@ -0,0 +1,143 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include "interface.h"
+
+// When click cancel button
+gint on_btnCancel_clicked (GtkWidget *widget, gpointer data)
+{
+	gtk_main_quit();
+	return FALSE;
+}
+
+// When click ok button
+gint on_btnOk_clicked (GtkWidget *widget, gpointer data)
+{
+	gint gintStatusReturn;
+	
+	// Check language to choose
+	if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (data)))
+	{
+		gintStatusReturn = system ("./setofficelang.bin -f th");
+		g_print ("Set language to Thai - ");
+	} else {
+		gintStatusReturn = system ("./setofficelang.bin -f en-US");
+		g_print ("Set language to English - ");
+	}
+	// Check return status
+	switch (gintStatusReturn)
+	{
+		case 0:
+			g_print ("Setting language successfull\n");
+			break;
+		case 1:
+			g_print ("The language is not supported by this officeinstallation\n");
+			break;
+		case 2:
+			g_print ("Invalid arguments\n");
+			break;
+		case 3:
+			g_print ("An internal error occurred\n");
+	}
+	gtk_main_quit();
+	return FALSE;
+}
+
+GtkWidget*
+create_wdMenuSetting (void)
+{
+  GtkWidget *wdMenuSetting;
+  GtkWidget *vbox1;
+  GtkWidget *vbox2;
+  GtkWidget *vbox3;
+  GtkWidget *vbox4;
+  GtkWidget *vbox5;
+  GtkWidget *alignment1;
+  GtkWidget *vbox15;
+  GtkWidget *lbSelLang;
+  GtkWidget *vbox16;
+  GtkWidget *rbThai;
+  GSList *rbThai_group = NULL;
+  GtkWidget *rbEnglish;
+  GtkWidget *hbox4;
+  GtkWidget *btnOk;
+  GtkWidget *btnCancel;
+
+  wdMenuSetting = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  gtk_window_set_title (GTK_WINDOW (wdMenuSetting), "OpenOfficeTLE Menu Setting");
+  gtk_window_set_position (GTK_WINDOW (wdMenuSetting), GTK_WIN_POS_CENTER);
+  gtk_window_unmaximize (GTK_WINDOW (wdMenuSetting));
+  gtk_window_set_destroy_with_parent (GTK_WINDOW (wdMenuSetting), TRUE);
+
+  vbox1 = gtk_vbox_new (TRUE, 0);
+  gtk_widget_show (vbox1);
+  gtk_container_add (GTK_CONTAINER (wdMenuSetting), vbox1);
+
+  vbox2 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox2);
+  gtk_box_pack_start (GTK_BOX (vbox1), vbox2, TRUE, TRUE, 0);
+
+  vbox3 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox3);
+  gtk_box_pack_start (GTK_BOX (vbox2), vbox3, TRUE, TRUE, 0);
+
+  vbox4 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox4);
+  gtk_box_pack_start (GTK_BOX (vbox3), vbox4, TRUE, TRUE, 0);
+
+  vbox5 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox5);
+  gtk_box_pack_start (GTK_BOX (vbox4), vbox5, TRUE, TRUE, 0);
+
+  alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment1);
+  gtk_box_pack_start (GTK_BOX (vbox5), alignment1, TRUE, TRUE, 0);
+
+  vbox15 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox15);
+  gtk_container_add (GTK_CONTAINER (alignment1), vbox15);
+
+  lbSelLang = gtk_label_new ("กรุณาเลือกภาษา");
+  gtk_widget_show (lbSelLang);
+  gtk_box_pack_start (GTK_BOX (vbox15), lbSelLang, FALSE, FALSE, 5);
+  gtk_label_set_justify (GTK_LABEL (lbSelLang), GTK_JUSTIFY_LEFT);
+
+  vbox16 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox16);
+  gtk_box_pack_start (GTK_BOX (vbox15), vbox16, TRUE, FALSE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (vbox16), 10);
+
+  rbThai = gtk_radio_button_new_with_mnemonic (NULL, "ภาษาไทย");
+  gtk_widget_show (rbThai);
+  gtk_box_pack_start (GTK_BOX (vbox16), rbThai, TRUE, TRUE, 0);
+  gtk_radio_button_set_group (GTK_RADIO_BUTTON (rbThai), rbThai_group);
+  rbThai_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (rbThai));
+
+  rbEnglish = gtk_radio_button_new_with_mnemonic (NULL, "English Language");
+  gtk_widget_show (rbEnglish);
+  gtk_box_pack_start (GTK_BOX (vbox16), rbEnglish, TRUE, TRUE, 0);
+  gtk_radio_button_set_group (GTK_RADIO_BUTTON (rbEnglish), rbThai_group);
+  rbThai_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (rbEnglish));
+
+  hbox4 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox4);
+  gtk_box_pack_start (GTK_BOX (vbox15), hbox4, TRUE, TRUE, 4);
+
+  btnOk = gtk_button_new_with_mnemonic ("OK");
+//  g_signal_connect (G_OBJECT (btnOk), "clicked", G_CALLBACK (on_btnOk_clicked), (gint) gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rbThai)));
+  g_signal_connect (G_OBJECT (btnOk), "clicked", G_CALLBACK (on_btnOk_clicked), (gpointer) rbThai);
+  gtk_widget_show (btnOk);
+  gtk_box_pack_start (GTK_BOX (hbox4), btnOk, TRUE, TRUE, 5);
+
+  btnCancel = gtk_button_new_with_mnemonic ("Cancel");
+  g_signal_connect (G_OBJECT (btnCancel), "clicked", G_CALLBACK (on_btnCancel_clicked), (gpointer) "");
+  gtk_widget_show (btnCancel);
+  gtk_box_pack_start (GTK_BOX (hbox4), btnCancel, TRUE, TRUE, 5);
+
+  return wdMenuSetting;
+}
Index: configmgr/source/cmdtools/unx/interface.h
===================================================================
RCS file: configmgr/source/cmdtools/unx/interface.h
diff -N configmgr/source/cmdtools/unx/interface.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ configmgr/source/cmdtools/unx/interface.h	30 Sep 2004 05:53:01 -0000
@@ -0,0 +1,9 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#include <stdio.h>
+#include <gdk/gdkkeysyms.h>
+#include <gtk/gtk.h> 
+
+GtkWidget* create_wdMenuSetting (void);
Index: configmgr/source/cmdtools/unx/makefile.mk
===================================================================
RCS file: configmgr/source/cmdtools/unx/makefile.mk
diff -N configmgr/source/cmdtools/unx/makefile.mk
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ configmgr/source/cmdtools/unx/makefile.mk	30 Sep 2004 05:53:01 -0000
@@ -0,0 +1,109 @@
+#*************************************************************************
+#
+#   $RCSfile: setofficelangui.patch,v $
+#
+#   $Revision: 1.1 $
+#
+#   last change: $Author: ott $ $Date: 2004-10-18 15:24:32 $
+#
+#   The Contents of this file are made available subject to the terms of
+#   either of the following licenses
+#
+#          - GNU Lesser General Public License Version 2.1
+#          - Sun Industry Standards Source License Version 1.1
+#
+#   Sun Microsystems Inc., October, 2000
+#
+#   GNU Lesser General Public License Version 2.1
+#   =============================================
+#   Copyright 2000 by Sun Microsystems, Inc.
+#   901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+#   This library is free software; you can redistribute it and/or
+#   modify it under the terms of the GNU Lesser General Public
+#   License version 2.1, as published by the Free Software Foundation.
+#
+#   This library is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#   Lesser General Public License for more details.
+#
+#   You should have received a copy of the GNU Lesser General Public
+#   License along with this library; if not, write to the Free Software
+#   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+#   MA  02111-1307  USA
+#
+#
+#   Sun Industry Standards Source License Version 1.1
+#   =================================================
+#   The contents of this file are subject to the Sun Industry Standards
+#   Source License Version 1.1 (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.openoffice.org/license.html.
+#
+#   Software provided under this License is provided on an "AS IS" basis,
+#   WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+#   WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+#   MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+#   See the License for the specific provisions governing your rights and
+#   obligations concerning the Software.
+#
+#   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+#   Copyright: 2000 by Sun Microsystems, Inc.
+#
+#   All Rights Reserved.
+#
+#   Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+PRJINC=$(PRJ)$/source
+
+PRJNAME=configmgr
+
+TARGET=setofficelangui
+TARGETTYPE=CUI
+LIBTARGET=NO
+
+ENABLE_EXCEPTIONS=TRUE
+
+# --- Settings -----------------------------------------------------
+.INCLUDE :  svpre.mk
+.INCLUDE :  settings.mk
+.INCLUDE :  sv.mk
+
+# --- Files --------------------------------------------------------
+CDEFS += -DDLL_VERSION=\"$(UPD)$(DLLPOSTFIX)\"
+
+CFLAGS+=`pkg-config --cflags gtk+-2.0`
+
+APPSTDLIBS=\
+			$(SALLIB) \
+			$(CPPULIB)	\
+			$(CPPUHELPERLIB)
+
+OBJFILES=\
+	$(OBJ)$/setofficelangui.obj \
+	$(OBJ)$/interface.obj 
+
+
+# --- Apps --------------------------------------------------------
+APP1STDLIBS = $(APPSTDLIBS) \
+		`pkg-config --libs gtk+-2.0` $(DYNAMIC) -lXext -lX11 -ldl -lnsl
+
+.IF "$(GUI)"=="UNX"
+APP1TARGET= $(TARGET).bin
+.ELSE
+APP1TARGET= $(TARGET)
+.ENDIF
+
+APP1OBJS=	\
+	$(OBJ)$/setofficelangui.obj \
+	$(OBJ)$/interface.obj 
+
+.INCLUDE :  target.mk
+
Index: configmgr/source/cmdtools/unx/setofficelangui.c
===================================================================
RCS file: configmgr/source/cmdtools/unx/setofficelangui.c
diff -N configmgr/source/cmdtools/unx/setofficelangui.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ configmgr/source/cmdtools/unx/setofficelangui.c	30 Sep 2004 05:53:01 -0000
@@ -0,0 +1,45 @@
+/*
+ * Initial main.c file generated by Glade. Edit as required.
+ * Glade will not overwrite this file.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include "interface.h"
+
+// When window1 delete
+gint on_window1_delete_event (GtkWidget *widget, GdkEvent *event, gpointer data)
+{
+	gtk_main_quit();
+	return FALSE;
+}
+
+int main (int argc, char *argv[])
+{
+  GtkWidget *window1;
+
+#ifdef ENABLE_NLS
+  bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
+#endif
+
+  gtk_set_locale ();
+  gtk_init (&argc, &argv);
+
+  /*
+   * The following code was added by Glade to create one of each component
+   * (except popup menus), just so that you see something after building
+   * the project. Delete any components that you don't want shown initially.
+   */
+  window1 = create_wdMenuSetting ();
+
+  g_signal_connect (G_OBJECT (window1), "delete_event", G_CALLBACK (on_window1_delete_event), NULL);
+  
+  gtk_widget_show (window1);
+
+  gtk_main ();
+  return 0;
+}
Index: scp/inc/gid.inc
===================================================================
RCS file: /cvsroot/thaioo/OpenOffice_Test/scp/inc/gid.inc,v
retrieving revision 1.3
diff -a -u -r1.3 gid.inc
--- scp/inc/gid.inc	17 Sep 2004 15:23:08 -0000	1.3
+++ scp/inc/gid.inc	30 Sep 2004 05:57:18 -0000
@@ -575,6 +575,7 @@
 // =========================================================
 #define GID_FILE_BIN_SETUP                          gid_File_Bin_Setup
 #define GID_FILE_BIN_SETOFFICELANG                  gid_File_Bin_Setofficelang
+#define GID_FILE_BIN_SETOFFICELANGUI                  gid_File_Bin_Setofficelangui
 #define GID_FILE_BIN_SCLIENT_BIN                    gid_File_Bin_Sclient_Bin
 #define Gid_FILE_BIN_GETSTYLEGNOME                  gid_File_Bin_Getstylegnome
 #define GID_FILE_BIN_PKGCHK                         gid_File_Bin_Pkgchk
Index: scp/source/office/files.scp
===================================================================
RCS file: /cvsroot/thaioo/OpenOffice_Test/scp/source/office/files.scp,v
retrieving revision 1.3
diff -a -u -r1.3 files.scp
--- scp/source/office/files.scp	17 Sep 2004 15:30:38 -0000	1.3
+++ scp/source/office/files.scp	30 Sep 2004 05:57:18 -0000
@@ -345,6 +345,19 @@
 End
 #endif
 
+#if defined( OSL_PRODUCT ) || defined (C01_PRODUCT)
+File GID_FILE_BIN_SETOFFICELANGUI
+		BIN_FILE_BODY;
+		Dir				= GID_DIR_PROGRAM;
+		Styles			= (PACKED);
+	#ifdef UNX
+		Name			= "setofficelangui.bin";
+	#else
+		Name			= "setofficelangui.exe";
+	#endif
+End
+#endif
+
 File GID_FILE_BIN_PKGCHK
 		BIN_FILE_BODY;
 		Dir				= GID_DIR_PROGRAM;
