summaryrefslogtreecommitdiffstats
path: root/uui
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:07:07 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:07:07 +0000
commitfd069bee7e57ad529c3c0974559fd2d84ec3151a (patch)
treeef2eddeefb786feaf966d6a1c0c291872c0ae420 /uui
parentInitial revision (diff)
downloadcore-fd069bee7e57ad529c3c0974559fd2d84ec3151a.tar.gz
core-fd069bee7e57ad529c3c0974559fd2d84ec3151a.zip
initial import
Diffstat (limited to 'uui')
-rw-r--r--uui/prj/d.lst4
-rw-r--r--uui/source/cookiedg.cxx186
-rw-r--r--uui/source/cookiedg.hrc79
-rw-r--r--uui/source/cookiedg.hxx105
-rw-r--r--uui/source/cookiedg.src393
-rw-r--r--uui/source/iahndl.cxx925
-rw-r--r--uui/source/iahndl.hxx138
-rw-r--r--uui/source/ids.hrc97
-rw-r--r--uui/source/ids.src171
-rw-r--r--uui/source/logindlg.cxx351
-rw-r--r--uui/source/logindlg.hrc91
-rw-r--r--uui/source/logindlg.hxx151
-rw-r--r--uui/source/logindlg.src388
-rw-r--r--uui/source/makefile.mk83
-rw-r--r--uui/source/services.cxx187
-rw-r--r--uui/util/makefile.mk96
16 files changed, 3445 insertions, 0 deletions
diff --git a/uui/prj/d.lst b/uui/prj/d.lst
new file mode 100644
index 000000000000..43b9f0e3276a
--- /dev/null
+++ b/uui/prj/d.lst
@@ -0,0 +1,4 @@
+..\%__SRC%\bin\uui*.dll %_DEST%\bin%_EXT%\uui*.dll
+..\%__SRC%\bin\uui*.res %_DEST%\bin%_EXT%\uui*.res
+..\%__SRC%\lib\libuui*.* %_DEST%\lib%_EXT%\libuui*.*
+..\%__SRC%\lib\iuui.lib %_DEST%\lib%_EXT%\iuui.lib
diff --git a/uui/source/cookiedg.cxx b/uui/source/cookiedg.cxx
new file mode 100644
index 000000000000..f211ac5bf3d6
--- /dev/null
+++ b/uui/source/cookiedg.cxx
@@ -0,0 +1,186 @@
+/*************************************************************************
+ *
+ * $RCSfile: cookiedg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef SVTOOLS_HTTPCOOK_HXX
+#include <svtools/httpcook.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef UUI_COOKIEDG_HRC
+#include <cookiedg.hrc>
+#endif
+#ifndef UUI_COOKIEDG_HXX
+#include <cookiedg.hxx>
+#endif
+#ifndef UUI_IDS_HRC
+#include <ids.hrc>
+#endif
+
+// CookiesDialog ---------------------------------------------------------
+
+IMPL_LINK( CookiesDialog, ButtonHdl_Impl, PushButton *, pBtn )
+{
+ short nRet = ( &maSendBtn == pBtn ) ? RET_OK : RET_CANCEL;
+ EndDialog( nRet );
+ return 1;
+}
+
+// -----------------------------------------------------------------------
+CookiesDialog::CookiesDialog( Window* pParent,
+ CntHTTPCookieRequest* pRequest,
+ ResMgr* pResMgr ) :
+
+ ModalDialog( pParent, ResId( DLG_COOKIES, pResMgr ) ),
+
+ maCookieFB ( this, ResId( FB_COOKIES ) ),
+ maCookieFT ( this, ResId( FT_COOKIES ) ),
+ maInFutureLine ( this, ResId( FL_COOKIES ) ),
+ maInFutureSendBtn ( this, ResId( RB_INFUTURE_SEND ) ),
+ maInFutureIgnoreBtn ( this, ResId( RB_INFUTURE_IGNORE ) ),
+ maInFutureInteractiveBtn( this, ResId( RB_INFUTURE_INTERACTIVE ) ),
+ maInFutureGB ( this, ResId( GB_INFUTURE ) ),
+ maIgnoreBtn ( this, ResId( BTN_COOKIES_CANCEL ) ),
+ maSendBtn ( this, ResId( BTN_COOKIES_OK ) ),
+
+ mpCookieRequest ( pRequest )
+
+{
+ FreeResource();
+
+ Link aLink( LINK( this, CookiesDialog, ButtonHdl_Impl ) );
+ maIgnoreBtn.SetClickHdl( aLink );
+ maSendBtn.SetClickHdl( aLink );
+ const Bitmap& rBitmap = maCookieFB.GetBitmap();
+ Size aSize = rBitmap.GetSizePixel();
+ SetMapMode( MapMode( MAP_APPFONT ) );
+ Size aLogicSize = PixelToLogic( aSize );
+ Point aPoint( 6 ,
+ 6 + ( 145 - aLogicSize.Height() ) / 2 );
+ maCookieFB.SetPosSizePixel( LogicToPixel( aPoint ), aSize );
+ maCookieFB.Show();
+
+ USHORT nOffset = CNTHTTP_COOKIE_REQUEST_RECV == mpCookieRequest->m_eType
+ ? 0 : STR_COOKIES_SEND_START - STR_COOKIES_RECV_START;
+ INetURLObject aObj( mpCookieRequest->m_rURL );
+ SetText( String( ResId( STR_COOKIES_RECV_TITLE + nOffset, pResMgr ) ) );
+ String aMsg( ResId( STR_COOKIES_RECV_START + nOffset, pResMgr ) );
+ aMsg.SearchAndReplaceAscii( "${HOST}", aObj.GetHost() );
+ aMsg.SearchAndReplaceAscii( "${PATH}", aObj.GetPath() );
+ String aTemplate( ResId( STR_COOKIES_RECV_COOKIES, pResMgr ) );
+ List& rList =mpCookieRequest->m_rCookieList;
+ String aPair, aCookie;
+
+ for ( USHORT i = (USHORT)rList.Count(); i--; )
+ {
+ CntHTTPCookie* pCookie = (CntHTTPCookie*)rList.GetObject(i);
+
+ if ( CNTHTTP_COOKIE_POLICY_INTERACTIVE == pCookie->m_nPolicy )
+ {
+ aCookie = aTemplate;
+ aCookie.SearchAndReplaceAscii( "${DOMAIN}", pCookie->m_aDomain );
+ aCookie.SearchAndReplaceAscii( "${PATH}", pCookie->m_aPath );
+ aPair = pCookie->m_aName;
+ aPair += '=';
+ aPair += pCookie->m_aValue;
+ aCookie.SearchAndReplaceAscii( "${COOKIE}", aPair );
+ aMsg += aCookie;
+ }
+ }
+ maInFutureInteractiveBtn.Check( TRUE );
+ maCookieFT.SetText( aMsg );
+}
+
+// -----------------------------------------------------------------------
+
+short CookiesDialog::Execute()
+{
+ maSendBtn.GrabFocus();
+ short nRet = ModalDialog::Execute();
+ USHORT nStatus = CNTHTTP_COOKIE_POLICY_INTERACTIVE;
+
+ if ( maInFutureSendBtn.IsChecked() )
+ nStatus = CNTHTTP_COOKIE_POLICY_ACCEPTED;
+
+ if ( maInFutureIgnoreBtn.IsChecked() )
+ nStatus = CNTHTTP_COOKIE_POLICY_BANNED;
+ List& rList = mpCookieRequest->m_rCookieList;
+
+ for ( USHORT i = (USHORT)rList.Count(); i--; )
+ {
+ USHORT& rStatus = ( (CntHTTPCookie*)rList.GetObject(i) )->m_nPolicy;
+
+ if ( rStatus == CNTHTTP_COOKIE_POLICY_INTERACTIVE )
+ rStatus = nStatus;
+ }
+
+ if ( nRet == RET_OK )
+ mpCookieRequest->m_nRet = CNTHTTP_COOKIE_POLICY_ACCEPTED;
+ else
+ mpCookieRequest->m_nRet = CNTHTTP_COOKIE_POLICY_BANNED;
+
+ return nRet;
+}
+
diff --git a/uui/source/cookiedg.hrc b/uui/source/cookiedg.hrc
new file mode 100644
index 000000000000..3a16d173119e
--- /dev/null
+++ b/uui/source/cookiedg.hrc
@@ -0,0 +1,79 @@
+/*************************************************************************
+ *
+ * $RCSfile: cookiedg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_COOKIEDG_HRC
+#define UUI_COOKIEDG_HRC
+
+//============================================================================
+#define FB_COOKIES 10
+#define FT_COOKIES 11
+#define FL_COOKIES 12
+
+#define RB_INFUTURE_SEND 20
+#define RB_INFUTURE_IGNORE 21
+#define RB_INFUTURE_INTERACTIVE 22
+#define GB_INFUTURE 23
+
+#define BTN_COOKIES_CANCEL 30
+#define BTN_COOKIES_OK 31
+
+#endif // UUI_COOKIEDG_HRC
+
diff --git a/uui/source/cookiedg.hxx b/uui/source/cookiedg.hxx
new file mode 100644
index 000000000000..850c47e1a7f6
--- /dev/null
+++ b/uui/source/cookiedg.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: cookiedg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_COOKIEDG_HXX
+#define UUI_COOKIEDG_HXX
+
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+
+struct CntHTTPCookieRequest;
+
+//============================================================================
+class CookiesDialog : public ModalDialog
+{
+ FixedBitmap maCookieFB;
+ FixedText maCookieFT;
+ FixedLine maInFutureLine;
+ RadioButton maInFutureSendBtn;
+ RadioButton maInFutureIgnoreBtn;
+ RadioButton maInFutureInteractiveBtn;
+ GroupBox maInFutureGB;
+ PushButton maIgnoreBtn;
+ PushButton maSendBtn;
+
+ CntHTTPCookieRequest* mpCookieRequest;
+
+ DECL_LINK( ButtonHdl_Impl, PushButton * );
+
+public:
+ CookiesDialog( Window* pParent, CntHTTPCookieRequest* pRequest,
+ ResMgr* pResMgr );
+
+ virtual short Execute();
+};
+
+#endif // UUI_COOKIEDG_HXX
+
diff --git a/uui/source/cookiedg.src b/uui/source/cookiedg.src
new file mode 100644
index 000000000000..a20c4598da56
--- /dev/null
+++ b/uui/source/cookiedg.src
@@ -0,0 +1,393 @@
+/*************************************************************************
+ *
+ * $RCSfile: cookiedg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_COOKIEDG_HRC
+#include <cookiedg.hrc>
+#endif
+#ifndef UUI_IDS_HRC
+#include <ids.hrc>
+#endif
+
+ModalDialog DLG_COOKIES
+{
+ HelpId = HID_DLG_COOKIES ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 295 , 193 ) ;
+ Moveable = TRUE ;
+ FixedBitmap FB_COOKIES
+ {
+ Border = True ;
+ Hide = TRUE ;
+ Fixed = Bitmap
+ {
+ File = "cookie.bmp" ;
+ };
+ };
+ FixedText FT_COOKIES
+ {
+ SVLook = TRUE ;
+ WordBreak = True ;
+ Pos = MAP_APPFONT ( 65 , 6 ) ;
+ Size = MAP_APPFONT ( 224 , 145 ) ;
+ };
+ FixedLine FL_COOKIES
+ {
+ Pos = MAP_APPFONT ( 6 , 155 ) ;
+ Size = MAP_APPFONT ( 283 , 1 ) ;
+ };
+ RadioButton RB_INFUTURE_SEND
+ {
+ Pos = MAP_APPFONT ( 12 , 171 ) ;
+ Size = MAP_APPFONT ( 52 , 10 ) ;
+ Text = "b~ermitteln" ;
+ Text [ English ] = "~Transmit" ;
+ Text [ portuguese ] = "~Enviar" ;
+ Text [ english_us ] = "~Send" ;
+ Text [ portuguese_brazilian ] = "bermitteln" ;
+ Text [ swedish ] = "~Acceptera" ;
+ Text [ danish ] = "Accepter" ;
+ Text [ italian ] = "Trasm~etti" ;
+ Text [ spanish ] = "~Aceptar" ;
+ Text [ french ] = "~Accepter" ;
+ Text [ dutch ] = "~Zenden" ;
+ Text[ chinese_simplified ] = "(~S)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wylij";
+ Text[ japanese ] = "󂯓(~S)";
+ Text[ chinese_traditional ] = "(~S)";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~S)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Gnder";
+ };
+ RadioButton RB_INFUTURE_IGNORE
+ {
+ Pos = MAP_APPFONT ( 67 , 171 ) ;
+ Size = MAP_APPFONT ( 52 , 10 ) ;
+ Text = "I~gnorieren" ;
+ Text [ English ] = "I~gnore" ;
+ Text [ english_us ] = "I~gnore" ;
+ Text [ portuguese_brazilian ] = "Ignorieren" ;
+ Text [ swedish ] = "I~gnorera" ;
+ Text [ danish ] = "Ignorer" ;
+ Text [ italian ] = "I~gnora" ;
+ Text [ spanish ] = "I~gnorar" ;
+ Text [ french ] = "I~gnorer" ;
+ Text [ dutch ] = "~Negeren" ;
+ Text [ portuguese ] = "I~gnorar" ;
+ Text[ chinese_simplified ] = "(~G)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Ignoruj";
+ Text[ japanese ] = "(~G)";
+ Text[ chinese_traditional ] = "(~G)";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~G)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Yok say";
+ };
+ RadioButton RB_INFUTURE_INTERACTIVE
+ {
+ Pos = MAP_APPFONT ( 122 , 171 ) ;
+ Size = MAP_APPFONT ( 52 , 10 ) ;
+ Text = "I~nteraktiv" ;
+ Text [ English ] = "I~nteractive" ;
+ Text [ portuguese ] = "In~teractivo" ;
+ Text [ english_us ] = "I~nteractive" ;
+ Text [ portuguese_brazilian ] = "Interaktiv" ;
+ Text [ swedish ] = "I~nteraktiv" ;
+ Text [ danish ] = "Interaktiv" ;
+ Text [ italian ] = "I~nterattivo" ;
+ Text [ spanish ] = "~Interactivo" ;
+ Text [ french ] = "~Avertir" ;
+ Text [ dutch ] = "In~teractief" ;
+ Text[ chinese_simplified ] = "ʽ(~N)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Interaktywny";
+ Text[ japanese ] = "mF(~N)";
+ Text[ chinese_traditional ] = "T{(~N)";
+ Text[ greek ] = "";
+ Text[ korean ] = "ȭ(~N)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Etkileimli";
+ };
+ GroupBox GB_INFUTURE
+ {
+ Pos = MAP_APPFONT ( 6 , 160 ) ;
+ Size = MAP_APPFONT ( 174 , 27 ) ;
+ Text = "Zuknftige Handhabung fr diese Cookies" ;
+ Text [ English ] = "Allgemeine Handhabung" ;
+ Text [ english_us ] = "Future Cookie Handling" ;
+ Text [ portuguese_brazilian ] = "Zuknftige Handhabung" ;
+ Text [ swedish ] = "Framtida hantering av dessa cookies" ;
+ Text [ danish ] = "Fremtidig hndtering af disse cookies" ;
+ Text [ italian ] = "Gestione futura dei cookies" ;
+ Text [ spanish ] = "Futuro tratamiento de estas cookies" ;
+ Text [ french ] = "Traitement futur des prsents Cookies" ;
+ Text [ dutch ] = "Toekomstige handhaving voor deze cookies" ;
+ Text [ portuguese ] = "Tratamento futuro para estes cookies" ;
+ Text[ chinese_simplified ] = "Щ Cookie ķʽ";
+ Text[ russian ] = " Cookies ";
+ Text[ polish ] = "Obsuga tych plikw cookie w przyszoci";
+ Text[ japanese ] = "̍̑菇";
+ Text[ chinese_traditional ] = "Bz Cookie 覡";
+ Text[ greek ] = " Cookies";
+ Text[ korean ] = " Cookie ";
+ Text[ arabic ] = " ((Cookies ";
+ Text[ turkish ] = "Cookie'lerde uygulanacak kurallar";
+ };
+ PushButton BTN_COOKIES_CANCEL
+ {
+ Pos = MAP_APPFONT ( 186 , 173 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Ignorieren" ;
+ Text [ English ] = "~Ignorieren" ;
+ Text [ english_us ] = "~Ignore" ;
+ Text [ portuguese_brazilian ] = "~Ignorieren" ;
+ Text [ swedish ] = "~Ignorera" ;
+ Text [ danish ] = "Ignorer" ;
+ Text [ italian ] = "~Ignora" ;
+ Text [ spanish ] = "~Ignorar" ;
+ Text [ french ] = "~Ignorer" ;
+ Text [ dutch ] = "N~egeren" ;
+ Text [ portuguese ] = "~Ignorar" ;
+ Text[ chinese_simplified ] = "(~I)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Zignoruj";
+ Text[ japanese ] = "(~I)";
+ Text[ chinese_traditional ] = "(~I)";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~I)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Yok say";
+ };
+ PushButton BTN_COOKIES_OK
+ {
+ Pos = MAP_APPFONT ( 239 , 173 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ DefButton = TRUE ;
+ Text = "~bermitteln" ;
+ Text [ English ] = "~Accept" ;
+ Text [ portuguese ] = "~Enviar" ;
+ Text [ english_us ] = "~Send" ;
+ Text [ portuguese_brazilian ] = "~bermitteln" ;
+ Text [ swedish ] = "~Acceptera" ;
+ Text [ danish ] = "Accepter" ;
+ Text [ italian ] = "~Trasmetti" ;
+ Text [ spanish ] = "~Aceptar" ;
+ Text [ french ] = "~Accepter" ;
+ Text [ dutch ] = "~Zenden" ;
+ Text[ chinese_simplified ] = "(~S)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wylij";
+ Text[ japanese ] = "󂯓(~S)";
+ Text[ chinese_traditional ] = "(~S)";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~S)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Gnder";
+ };
+};
+
+String STR_COOKIES_RECV_START
+{
+ Text = "Der Server '${HOST}' mchte ein oder mehrere Cookies setzen.\nCookies sind Informationen, die sich auf bestimmte Klassen von URLs beziehen. Fordert StarOffice spter ein Dokument an, welches der URL nach einer Klasse eines vorher empfangenen Cookies entspricht, wird diese Information von StarOffice an den Server gesendet. So knnen sich Server den Zustand einer WWW Anwendung (z.B. in den Warenkorb gelegte Artikel in einem Einkaufssystem) merken.\n\nFolgende Cookies sollen gesetzt werden:\n\n" ;
+ Text [ English ] = "The '${HOST}' server wishes to set one or more cookies. Cookies contain information referring to certain classes of URLs. If StarOffice later requests a document with a URL which corresponds to the class of a previously set cookie, StarOffice will send the information to the server. In this way, the server can recognize the status of a WWW application.\n\nThe following cookies will be set:\n\n" ;
+ Text [ portuguese ] = "O servidor '${HOST}' deseja instalar um ou mais cookies.\nCookies so informaes que se referem a determinadas classes de URLs. Se o StarOffice pedir mais tarde um documento com um URL correspondente a uma classe de um cookie previamente instalado, essa informao ser enviada pelo StarOffice ao servidor. Desta forma os servidores podero reconhecer o estado de uma aplicao WWW (por ex. artigos colocados no cesto de mercadorias num sistema de compras).\n\nSero definidos os seguintes cookies:\n\n" ;
+ Text [ english_us ] = "The '${HOST}' server wishes to set one or more cookies.\nCookies contain information referring to certain URL classes. If StarOffice later requests a document with a URL corresponding to the class of a previously set cookie, StarOffice will send this information to the server. This allows a server to recognize the status of a WWW application, e.g., when shopping online.\n\nThe following Cookies should be set:\n\n" ;
+ Text [ portuguese_brazilian ] = "Der Server '${HOST}' mchte ein oder mehrere Cookies setzen.\nCookies sind Informationen, die sich auf bestimmte Klassen von URLs beziehen. Fordert StarOffice spaeter ein Dokument an, welches der URL nach einer Klasse eines vorher empfangenen Cookies entspricht, wird diese Information von StarOffice an den Server gesendet. So knnen sich Server den Zustand einer WWW Anwendung (z.B. in den Warenkorb gelegte Artikel in einem Einkaufssystem) merken.\n\nFolgende Cookies sollen gesetzt werden:\n\n" ;
+ Text [ swedish ] = "Servern '${HOST}' vill stta en eller flera cookies.\nCookies innehller information som refererar till vissa URL-klasser. Denna information snds frn StarOffice till servern om StarOffice vid ett senare tillflle krver ett dokument som motsvarar webbadressen (URL) enligt en klass fr en tidigare mottagen cookie. P s stt kan servern knna igen tillstndet hos en WWW-tillmpning (t.ex. varor i en varukorg nr Du handlar online).\n\nFljande cookies skall tilldelas:\n\n" ;
+ Text [ danish ] = "Serveren '${HOST}' nsker at stte en eller flere cookies.\nCookies er informationer, som relaterer til bestemte URL-klasser. Lser StarOffice senere et dokument, hvis URLs klasse svarer til en fr modtaget cookie, sender StarOffice denne information til serveren. Sledes kan serveren kontrollere en WWW-applikations tilstand (f.eks. varer i din indkbskurv nr du handler online).\n\nFlgende cookies skal sttes:\n\n" ;
+ Text [ italian ] = "Il server '${HOST}' vorrebbe impostare uno o pi cookies.\nI cookies sono informazioni che si riferiscono a determinate classi di URL. Se in seguito StarOffice richiede un documento, che corrisponde all'URL secondo una classe di un cookie precedentemente ricevuto, questa informazione viene inviata al server. In tal modo i server possono memorizzare lo stato di un'applicazione WWW (ad esempio gli articoli introdotti nel \"carrello\" di un supermercato elettronico).\n\n necessario impostare i seguenti cookies:\n\n" ;
+ Text [ spanish ] = "El servidor '${HOST}' desea instalar una o ms cookies.\nLas cookies son informaciones referentes a determinadas clases de URLs. Si StarOffice solicita ms tarde un documento que de acuerdo con su URL corresponda a una clase de una cookie recibida anteriormente, StarOffice enviar esta informacin al servidor. De esta forma los servidores pueden recordar el estado de una aplicacin www (p.ej. los artculos de una cesta de compra en un sistema de compras).\n\nLas siguientes cookies se debern instalar:\n\n" ;
+ Text [ french ] = "Le serveur '${HOST}' tente d'envoyer un ou plusieurs Cookies.\nLes Cookies sont des informations se rapportant certaines classes d'URL. Plus tard, si StarOffice requiert un document dont l'URL correspond la classe d'un Cookie dj reu, cette information est envoye au serveur. Ceci permet aux serveurs de reconnatre l'tat d'une application WWW (par ex. les articles placs dans le panier d'un systme d'achat).\n\nLes Cookies suivants vont tre placs :\n\n" ;
+ Text [ dutch ] = "Server '${HOST}' wil een of meer cookies zetten.\nCookies zijn gegevens die betrekking hebben op bepaalde klassen van URLs. Vraagt StarOffice later een document op dat wat URL betreft met de klasse van een eerder ontvangen cookie overeenkomt, dan wordt deze informatie aan de server gezonden. Zo kan een server de toestand van een WWW-toepassing (zoals bijv. de in een boodschappenmand gelegde artikelen in een winkel) onthouden.\n\nDe volgende cookies moeten worden gezet:\n\n" ;
+ Text[ chinese_simplified ] = " '${HOST}' ҪһCookies\nCookiesйضURLsϢStarOfficeԺҪһһνܵcookieURLĵôStarOfficeͻὫϢݸܹϳάӦó״̬(ϵͳɹڵƷ)\n\nҪµCookies:\n\n";
+ Text[ russian ] = " '${HOST}' Cooki.\n Cookie , URL. StarOffice - URL, Cookie, StarOffice . , WWW (. online).\n\n Cookie:\n\n";
+ Text[ polish ] = "Serwer '${HOST}' chce osadzi jeden lub wicej plikw typu Cookies.\nCookies s to informacje, ktre odnosz si do okrelonych klas URL. Jeli StarOffice zada pniej dokumentu, ktry odpowiada URL wedug klasy wczeniej odbieranego pliku Cookies, to ta informacja zostanie przesana przez StarOffice do serwera. W ten sposb serwer zapamituje stan aplikacji WWW (n.p. wrzucone do koszyka artykuy w systemie zakupw.\n\nNastpujce Cookies maj zosta osadzone:\n\n";
+ Text[ japanese ] = "ް '${HOST}' 1ˆȏ̸̐ݒ肪KvłB\nURL̂׽Ɋ֘AłBłɎMĂ鸯ƓURL޷Ă StarOffice vƂȀ StarOffice 绰ްɑ܂BĻް WWW ̎gp(ײݍw̍ۂɔ̒ɓꂽiȂ)oĂ܂B\n\nȉ̸ݒ肵܂B\n\n";
+ Text[ chinese_traditional ] = "A'${HOST}' nǰe@өΦh cookie C\ncookie tURL{wTCStarOffice bU@ШD˸ۦPƮɴN|ӵ{wˬdURL۲Ūcookie}NTǰeACoˡAANDzϥΪs(puWPtΪxt~W)C\n\n{bnإߦpU cookie:\n\n";
+ Text[ greek ] = " '${HOST}' cookies. \n Cookies , URL. StarOffice, URL Cookie , StarOffice . '' WWW .. online.\n\n Cookie :\n\n";
+ Text[ korean ] = "'${HOST}' ϳ Ǵ ̻ Cookie մϴ.\nCookie URL Ư Ŭ õ Դϴ. ߿ StarOffice URL Cookie Ŭ ´ 䱸ϸ StarOffice Դϴ. ׷ WWW ( ¶ ο) ν ֽϴ. \n\n Cookie Ǿ մϴ:\n\n";
+ Text[ arabic ] = " '${HOST}' .\n (Cookies) (URLs). StarOffice StarOffice . WWW ( ).\n\n :\n\n";
+ Text[ turkish ] = "Sunucu '${HOST}' bir ya da birden ok Cookie gndermek istiyor.\nCookie'ler, belirli URL snflarna ilikin bilgilerdir. StarOffice ileride daha nceden alnm bir Cookie snfnn URL'si ile rten bir belge talep ettiinde, bu bilgi StarOffice tarafndan ilgili sunucuya gnderilir. Bylece sunucu, bir WWW uygulamasnn son durumunu (rn. bir alveri sisteminde, sepete konulan rnleri) kaydedebilir. \n\nu Cookie'ler bilgisayarnzda belirlenmi olmal:\n\n";
+};
+
+String STR_COOKIES_RECV_COOKIES
+{
+ Text = "Domain: ${DOMAIN}, Pfad: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ text [ English ] = "Domain: ${DOMAIN}, Pfad: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ portuguese ] = "Domnio: ${DOMAIN}, Atalho: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ english_us ] = "Domain: ${DOMAIN}, Path: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ portuguese_brazilian ] = "Domain: ${DOMAIN}, Pfad: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ swedish ] = "Domn: ${DOMAIN}, Skvg: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ danish ] = "Domne: ${DOMAIN}, Sti: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ italian ] = "Domain: ${DOMAIN}, Percorso: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ spanish ] = "Dominio: ${DOMAIN}, Ruta: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ french ] = "Domaine : ${DOMAIN}, Chemin : ${PATH}, Cookie : ${COOKIE}.\n" ;
+ Text [ dutch ] = "Domein: ${DOMAIN}, Pad: ${PATH}, Cookie: ${COOKIE}\n" ;
+ Text[ chinese_simplified ] = "${DOMAIN} ·${PATH}Cookie${COOKIE}\n";
+ Text[ russian ] = ": ${DOMAIN}, : ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ polish ] = "Domena: ${DOMAIN}, cieka: ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ japanese ] = "Ҳ: ${DOMAIN}߽: ${PATH}A: ${COOKIE}B\n";
+ Text[ chinese_traditional ] = "G${DOMAIN}A|G${PATH}, CookieG${COOKIE}C\n";
+ Text[ greek ] = ": ${DOMAIN}, : ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ korean ] = ": ${DOMAIN}, : ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ arabic ] = ": ${DOMAIN}, : ${PATH}, : ${COOKIE}.\n";
+ Text[ turkish ] = "Etki alan: ${DOMAIN}, Veri yolu: ${PATH}, Cookie: ${COOKIE}.\n";
+};
+
+String STR_COOKIES_RECV_TITLE
+{
+ Text = "Cookieempfang" ;
+ Text [ English ] = "Cookieempfang" ;
+ Text [ portuguese ] = "Recepo de cookies" ;
+ Text [ english_us ] = "Cookie Reception" ;
+ Text [ portuguese_brazilian ] = "Cookieempfang" ;
+ Text [ swedish ] = "Cookiemottagning" ;
+ Text [ danish ] = "Cookiemodtagelse" ;
+ Text [ italian ] = "Ricevimento cookie" ;
+ Text [ spanish ] = "Recepcin de cookies" ;
+ Text [ french ] = "Rception de Cookies" ;
+ Text [ dutch ] = "Cookieontvangst" ;
+ Text[ chinese_simplified ] = " Cookie";
+ Text[ russian ] = " Cookie";
+ Text[ polish ] = "Pobieranie plikw cookie";
+ Text[ japanese ] = "̎M";
+ Text[ chinese_traditional ] = " Cookie";
+ Text[ greek ] = " Cookie";
+ Text[ korean ] = "Cookie ";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Cookie al";
+};
+
+String STR_COOKIES_SEND_START
+{
+ Text = "StarOffice hat fr den Server '${HOST}' Cookies gespeichert, die beim Anfordern des Dokumentes ${PATH} verschickt werden sollen.\nCookies sind Informationen, die sich auf bestimmte Klassen von URLs beziehen. Sie werden von manchen Servern beim Aufruf bestimmter Dokumente an StarOffice geschickt und dort gespeichert. Fordert StarOffice spter ein Dokument an, welches der URL nach einer Klasse eines vorher empfangenen Cookies entspricht, wird diese Information von StarOffice an den Server gesendet. So knnen sich Server den Zustand einer WWW Anwendung (z.B. in den Warenkorb gelegte Artikel in einem Einkaufssystem) merken.\n\nFolgende Cookies sollen gesetzt werden:\n\n" ;
+ Text [ English ] = "StarOffice has saved cookies for the '${HOST}' server, which will be set when the document ${PATH} is requested.\n Cookies contain information referring to certain classes of URLs. They are sent by some servers to StarOffice when certain documents are activated. If StarOffice later requests a document with a URL which corresponds to the class of a previously set cookie, StarOffice will send the information to the server. In this way, the server can recognize the status of a WWW application. \n\nThe following cookies will be set:\n\n" ;
+ Text [ portuguese ] = "O StarOffice guardou cookies para o servidor '${HOST}'. Estes sero enviados quando o documento ${PATH} for aberto.\nCookies so informaes sobre determinadas classes de URLs. Estes sero enviados por alguns servidores para o StarOffice quando a se abrirem ou se guardarem determinados documentos. Se o StarOffice carregar um documento que, de acordo com o URL, corresponda a uma das classes de cookies recebidas anteriormente. Esta informao ser enviada pelo StarOffice ao servidor correspondente. Desta forma os servidores podero controlar o estado de uma aplicao WWW (por ex. os artigos colocados num cesto de mercadorias quando faz compras online).\n Devero ser instalados os seguintes cookies:\n\n" ;
+ Text [ english_us ] = "StarOffice has saved cookies for the server '${HOST}' which will be sent when requesting the document ${PATH}.\nCookies contain information which refers to certain URL classes. They are sent by some servers to StarOffice where they are saved when certain documents are accessed. If StarOffice loads a document that, according to the URL, corresponds to a class of one of the previously received Cookies, StarOffice will send this information to that server. This enables a server to keep track of the status of a WWW application, e.g., when shopping online.\n\nThe following Cookies should be set:\n\n" ;
+ Text [ portuguese_brazilian ] = "StarOffice hat fr den Server '${HOST}' Cookies gespeichert, die beim Anfordern des Dokumentes ${PATH} verschickt werden sollen.\nCookies sind Informationen, die sich auf bestimmte Klassen von URLs beziehen. Sie werden von manchen Servern beim Aufruf bestimmter Dokumente an StarOffice geschickt und dort gespeichert. Fordert StarOffice spaeter ein Dokument an, welches der URL nach einer Klasse eines vorher empfangenen Cookies entspricht, wird diese Information von StarOffice an den Server gesendet. So knnen sich Server den Zustand einer WWW Anwendung (z.B. in den Warenkorb gelegte Artikel in einem Einkaufssystem) merken.\n\nFolgende Cookies sollen gesetzt werden:\n\n" ;
+ Text [ swedish ] = "StarOffice har sparat cookies fr servern '${HOST}, som skall skickas d dokumentet ${PATH} krvs.\nCookies r information som refererar till vissa URL-klasser. De skickas av vissa servrar till StarOffice och sparas dr nr vissa dokument ppnas. Denna information skickas av StarOffice till servern om StarOffice vid ett senare tillflle krver ett dokument, som motsvarar en klass hos en tidigare tilldelad cookie. P s stt kan servern knna igen tillstndet fr en WWW-tillmpning (t.ex. varor i en varukorg nr Du handlar online).\n\nFljande cookies skall tilldelas:\n\n" ;
+ Text [ danish ] = "StarOffice har gemt cookies for serveren '${HOST}', som skal sendes, nr dokmentet ${PATH} lses.\nCookies er informationer, som relaterer til bestemte URL-klasser. De bliver sendt til StarOffice af nogle servere og gemt der, nr bestemte dokumenter lses. Lser StarOffice senere et dokument, hvis URLs klasse svarer til en fr modtaget cookie, sender StarOffice denne information til serveren. Sledes kan serveren kontrollere en WWW-applikations tilstand (f.eks. varer i din indkbskurv nr du handler online).\n\nFlgende cookies skal sttes:\n\n" ;
+ Text [ italian ] = "StarOffice ha salvato per il server '${HOST}' dei cookies da inviare al momento della richiesta del documento ${PATH}.\nI cookies sono informazioni che si riferiscono a determinate classi di URL. Vengono inviati da alcuni server quando si richiamano determinati documenti a StarOffice e qui salvati. Se StarOffice in seguito richiede un documento che corrisponde all'URL di una classe di un cookie precedentemente ricevuto, tale informazione viene inviata da StarOffice al server. In tal modo i server possono memorizzare lo stato di un'applicazione WWW (ad esempio gli articoli introdotti nel \"carrello\" di un supermercato elettronico).\n\n necessarion impostare i seguenti cookies:\n\n" ;
+ Text [ spanish ] = "StarOffice ha guardado cookies para el servidor '${HOST}' que sern enviadas cuando se solicite el documento ${PATH}.\nLas cookies son informaciones referentes a determinadas clases de URLs. Cuando se solicita un documento, algunos servidores las envan a StarOffice y las guardan all. Si StarOffice solicita ms tarde un documento que de acuerdo con su URL corresponda a una clase de una cookie recibida anteriormente, StarOffice enviar esta informacin al servidor. As, los servidores pueden recordar el estado de una aplicacin www, como por ejemplo los artculos en la cesta de un sistema de compras.\n\nEstas son las cookies a instalar:\n\n" ;
+ Text [ french ] = "StarOffice a enregistr des Cookies pour le serveur '${HOST}', qui seront envoys au moment de la requte du document ${PATH}.\nLes Cookies sont des informations se rapportant certaines classes d'URL. Plus tard, si StarOffice requiert un document dont l'URL correspond la classe d'un Cookie dj reu, cette information est envoye au serveur. Ceci permet aux serveurs de reconnatre l'tat d'une application WWW (par ex. les articles placs dans le panier d'un systme d'achat).\n\nLes Cookies suivants vont tre placs : \n\n" ;
+ Text [ dutch ] = "StarOffice heeft voor server '${HOST}' cookies opgeslagen die bij het opvragen van het document ${PATH} worden verzonden.\nCookies zijn gegevens die betrekking hebben op bepaalde klassen van URLs . Ze worden door enkele servers bij het oproepen van bepaalde documenten aan StarOffice gezonden en daar opgeslagen. Vraagt StarOffice later een document op dat wat de URL betreft overeenkomt met een klasse van een eerder ontvangen cookie, dan wordt deze informatie door StarOffice aan de server gezonden. Zo kunnen servers de toestand van een WWW-applicatie (zoals bijv. de in een boodschappenmand gelegde artikelen in een winkel) onthouden.\n\nDe volgende cookies moeten worden gezet:\n\n" ;
+ Text[ chinese_simplified ] = "StarOfficeΪ'${HOST}'Cookie´ĵ${PATH}ʱͻᷢЩCookies\nCookieйضURLsϢڵضĵʱЩͻStarOfficeCookiesStarOffice䡣StarOfficeԺҪһǰܵCookiesULRĵôStarOfficeͻὫϢݸܹϳάӦó״̬(ϵͳɹڵƷ)\n\nҪ趨µCookies:\n\n";
+ Text[ russian ] = "StarOffice '${HOST}' Cookie, ${PATH}.\n Cookie , URL. StarOffice . StarOffice - URL, Cookie, StarOffice . , WWW (. online).\n\n Cookie:\n\n";
+ Text[ polish ] = "StarOffice zapisa dla serwera '${HOST}' Cookies, ktre zostan wysane przy zadaniu dokumentu ${PATH}.\nCookies s informacjami, ktre odnosz si do okrelonych klas URL. Bd one wysyane do StarOffice przez niektre serwery przy wywoaniu okrelonych dokumentw i zostan tam zapisane. Jeli StarOffice zada pniej dokumentu, ktry odpowiada URL wedug klasy wczeniej otrzymywanego Cookies, to ta informacja zostanie przekazana przez StarOffice do serwera. W ten sposb serwer moe zapamita stan aplikacji WWW (n.p. woone do koszyka artykuy w systemie zakupw).\n\nOsadzone maj by nastpujce Cookies:\n\n\\";
+ Text[ japanese ] = "StarOffice ͻް '${HOST}' pɁA޷ ${PATH} v̍ۂɑM鸯ۑ܂B\n UR L̂׽Ɋ֘AŁA޷Â̻ްĂяoꂽۂ StarOffice ɑMAŕۑ܂BłɎMƓ URL ޷Ă StarOffice vƂȀ StarOffice 绰ްɑ܂BĻް WWW ̎gp(ײݍw̍ۂɔ̒ɓꂽiȂ)oĂ܂B\n\nȉ̸ݒ肵܂B\n\n";
+ Text[ chinese_traditional ] = "StarOffice wgOsFA'${HOST}' ǰe cookie CStarOffice bU@ШD˸ۦP${PATH}ɴN|ӵ{wˬdURL۲Ūcookie}NTǰeACoˡAANDzϥΪs(puWPtΪxt~W)C\n\n{bnإߦpU cookie:\n\n";
+ Text[ greek ] = " StarOffice cookies '${HOST}', ${PATH}.\n Cookies , URL. StarOffice . StarOffice , URL Cookie , StarOffice . '' WWW .. online.\n\n Cookie :\n\n";
+ Text[ korean ] = "StarOffice '$(HOST)' ${PATH} 䱸 Cookie Ͽϴ .\nCookie URL Ư Ŭ õ Դϴ. Cookie Ư ҷ 鿡 StarOffice ű⿡ ˴ϴ. ߿ StarOffice URL Cookie Ŭ ´ 䱸ϸ StarOffice Դϴ. ׷ WWW ( ¶ ο) ν ֽϴ. \n\n Cookie Ǿ մϴ:\n\n";
+ Text[ arabic ] = " StarOffice (Cookies) '${HOST}'. .${PATH}\n .(URLs) StarOffice ɡ StarOffice. StarOffice StarOffice . WWW ( ).\n\n :\n\n";
+ Text[ turkish ] = "StarOffice, sunucu '${HOST}' iin Cookie'ler kaydetti. Bunlar, ${PATH} belgesi talep edildiinde StarOffice tarafndan gnderilir.\nCookie'ler, belirli URL snflarna ilikin bilgilerdir. StarOffice ileride daha nceden alnm bir Cookie snfnn URL'si ile rten bir belge talep ettiinde, bu bilgi StarOffice tarafndan ilgili sunucuya gnderilir. Bylece sunucu, bir WWW uygulamasnn son durumunu (rn. bir alveri sisteminde, sepete konulan rnleri) kaydedebilir. \n\nu Cookie'ler bilgisayarnzda belirlenecek:\n\n";
+};
+
+String STR_COOKIES_SEND_COOKIES
+{
+ Text = "Domain: ${DOMAIN}, Pfad: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ English ] = "Domain: ${DOMAIN}, Pfad: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ portuguese ] = "Domnio: ${DOMAIN}, Atalho: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ english_us ] = "Domain: ${DOMAIN}, Path: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ portuguese_brazilian ] = "Domain: ${DOMAIN}, Pfad: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ swedish ] = "Domn: ${DOMAIN}, Skvg: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ danish ] = "Domne: ${DOMAIN}, Sti: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ italian ] = "Dominio: ${DOMAIN}, Percorso: ${PATH}, cookie: ${COOKIE}.\n" ;
+ Text [ spanish ] = "Dominio: ${DOMAIN}, Ruta: ${PATH}, Cookie: ${COOKIE}.\n" ;
+ Text [ french ] = "Domaine : ${DOMAIN}, Chemin : ${PATH}, Cookie : ${COOKIE}.\n" ;
+ Text [ dutch ] = "Domein: ${DOMAIN}, Pad: ${PATH}, Cookie: ${COOKIE}\n" ;
+ Text[ chinese_simplified ] = "${DOMAIN}·${PATH}Cookie${COOKIE}\n";
+ Text[ russian ] = ": ${DOMAIN}, : ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ polish ] = "Domena: ${DOMAIN}, cieka: ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ japanese ] = "Ҳ: ${DOMAIN}A߽: ${PATH}A: ${COOKIE}B\n";
+ Text[ chinese_traditional ] = "G${DOMAIN}A|G${PATH}ACookie G${COOKIE}C\n";
+ Text[ greek ] = ": ${DOMAIN}, : ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ korean ] = ": ${DOMAIN}, : ${PATH}, Cookie: ${COOKIE}.\n";
+ Text[ arabic ] = ": ${DOMAIN}, : ${PATH}, : ${COOKIE}.\n";
+ Text[ turkish ] = "Etki alan: ${DOMAIN}, Veri yolu: ${PATH}, Cookie: ${COOKIE}.\n";
+};
+
+String STR_COOKIES_SEND_TITLE
+{
+ Text = "Cookies versenden" ;
+ Text [ English ] = "Cookies versenden" ;
+ Text [ portuguese ] = "Enviar cookies" ;
+ Text [ english_us ] = "Send Cookies" ;
+ Text [ portuguese_brazilian ] = "Cookies versenden" ;
+ Text [ swedish ] = "Skicka cookies" ;
+ Text [ danish ] = "Send cookies" ;
+ Text [ italian ] = "Trasmetti cookie" ;
+ Text [ spanish ] = "Enviar cookies" ;
+ Text [ french ] = "Envoi de Cookies" ;
+ Text [ dutch ] = "Cookies verzenden" ;
+ Text[ chinese_simplified ] = "ķ Cookie";
+ Text[ russian ] = " Cookies";
+ Text[ polish ] = "Wylij pliki cookie";
+ Text[ japanese ] = "̑M";
+ Text[ chinese_traditional ] = "ǰe Cookie";
+ Text[ greek ] = " Cookies";
+ Text[ korean ] = "Cookies ";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Cookies gnder";
+};
+
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
new file mode 100644
index 000000000000..dcfe0865c2f3
--- /dev/null
+++ b/uui/source/iahndl.cxx
@@ -0,0 +1,925 @@
+/*************************************************************************
+ *
+ * $RCSfile: iahndl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _EHDL_HXX
+#include <svtools/ehdl.hxx>
+#endif
+#ifndef _SVTOOLS_HRC
+#include <svtools/svtools.hrc>
+#endif
+
+#ifndef _COM_SUN_STAR_TASK_CLASSIFIEDINTERACTIONREQUEST_HPP_
+#include <com/sun/star/task/ClassifiedInteractionRequest.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TASK_XINTERACTIONABORT_HPP_
+#include <com/sun/star/task/XInteractionAbort.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TASK_XINTERACTIONAPPROVE_HPP_
+#include <com/sun/star/task/XInteractionApprove.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TASK_XINTERACTIONDISAPPROVE_HPP_
+#include <com/sun/star/task/XInteractionDisapprove.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TASK_XINTERACTIONRETRY_HPP_
+#include <com/sun/star/task/XInteractionRetry.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_AUTHENTICATIONREQUEST_HPP_
+#include <com/sun/star/ucb/AuthenticationRequest.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_HANDLECOOKIESREQUEST_HPP_
+#include <com/sun/star/ucb/HandleCookiesRequest.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVEBADTRANSFERURLEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveBadTransferURLException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVECHAOSEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveCHAOSException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVEFILEIOEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveFileIOException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVEIOEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveIOException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKCONNECTEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkConnectException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKGENERALEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkGeneralException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKOFFLINEEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkOffLineException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKREADEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkReadException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKRESOLVENAMEEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkResolveNameException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVENETWORKWRITEEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveNetworkWriteException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_INTERACTIVEWRONGMEDIUMEXCEPTION_HPP_
+#include <com/sun/star/ucb/InteractiveWrongMediumException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XINTERACTIONCOOKIEHANDLING_HPP_
+#include <com/sun/star/ucb/XInteractionCookieHandling.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XINTERACTIONSUPPLYAUTHENTICATION_HPP_
+#include <com/sun/star/ucb/XInteractionSupplyAuthentication.hpp>
+#endif
+#ifndef _CPPUHELPER_TYPEPROVIDER_HXX_
+#include <cppuhelper/typeprovider.hxx>
+#endif
+#ifndef SVTOOLS_HTTPCOOK_HXX
+#include <svtools/httpcook.hxx>
+#endif
+#ifndef _LOGINERR_HXX
+#include <svtools/loginerr.hxx>
+#endif
+#ifndef _EINF_HXX
+#include <tools/errinf.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SV_WRKWIN_HXX
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _VOS_MUTEX_HXX_
+#include <vos/mutex.hxx>
+#endif
+
+#ifndef UUI_COOKIEDG_HXX
+#include <cookiedg.hxx>
+#endif
+#ifndef UUI_IAHNDL_HXX
+#include <iahndl.hxx>
+#endif
+#ifndef UUI_IDS_HRC
+#include <ids.hrc>
+#endif
+#ifndef UUI_LOGINDLG_HXX
+#include <logindlg.hxx>
+#endif
+
+using namespace com::sun::star;
+
+namespace unnamed_uui_iahndl {} using namespace unnamed_uui_iahndl;
+ // unnamed namespaces don't work well yet...
+
+//============================================================================
+namespace unnamed_uui_iahndl {
+
+class SimpleErrorContext: public ErrorContext
+{
+ UniString m_aContext;
+
+public:
+ SimpleErrorContext(UniString const & rTheContext): m_aContext(rTheContext)
+ {}
+
+ virtual BOOL GetString(ULONG, UniString & rCtxStr);
+};
+
+//============================================================================
+USHORT executeErrorDialog(ULONG nID, USHORT nMask);
+
+//============================================================================
+void executeLoginDialog(LoginErrorInfo & rInfo);
+
+//============================================================================
+void executeCookieDialog(CntHTTPCookieRequest & rRequest);
+
+}
+
+//============================================================================
+//
+// UUIInteractionHandler
+//
+//============================================================================
+
+// static
+sal_Char const UUIInteractionHandler::m_aImplementationName[]
+ = "UUIInteractionHandler";
+
+//============================================================================
+// virtual
+uno::Any SAL_CALL UUIInteractionHandler::queryInterface(uno::Type const &
+ rType)
+ throw (uno::RuntimeException)
+{
+ uno::Any
+ aRet(cppu::queryInterface(rType,
+ static_cast< lang::XServiceInfo * >(this),
+ static_cast< lang::XTypeProvider * >(this),
+ static_cast< task::XInteractionHandler * >(
+ this)));
+ return aRet.hasValue() ? aRet : OWeakObject::queryInterface(rType);
+}
+
+//============================================================================
+// virtual
+void SAL_CALL UUIInteractionHandler::acquire() throw (uno::RuntimeException)
+{
+ OWeakObject::acquire();
+}
+
+//============================================================================
+// virtual
+void SAL_CALL UUIInteractionHandler::release() throw (uno::RuntimeException)
+{
+ OWeakObject::release();
+}
+
+//============================================================================
+// virtual
+rtl::OUString SAL_CALL UUIInteractionHandler::getImplementationName()
+ throw (uno::RuntimeException)
+{
+ return rtl::OUString::createFromAscii(m_aImplementationName);
+}
+
+//============================================================================
+// virtual
+sal_Bool SAL_CALL UUIInteractionHandler::supportsService(rtl::OUString const &
+ rServiceName)
+ throw (uno::RuntimeException)
+{
+ uno::Sequence< rtl::OUString > aNames(getSupportedServiceNames_static());
+ for (sal_Int32 i = 0; i < aNames.getLength(); ++i)
+ if (aNames[i] == rServiceName)
+ return true;
+ return false;
+}
+
+//============================================================================
+// virtual
+uno::Sequence< rtl::OUString > SAL_CALL
+UUIInteractionHandler::getSupportedServiceNames()
+ throw (uno::RuntimeException)
+{
+ return getSupportedServiceNames_static();
+}
+
+//============================================================================
+// virtual
+uno::Sequence< uno::Type > SAL_CALL UUIInteractionHandler::getTypes()
+ throw (uno::RuntimeException)
+{
+ static cppu::OTypeCollection * pCollection = 0;
+ if (!pCollection)
+ {
+ osl::Guard< osl::Mutex > aGuard(osl::Mutex::getGlobalMutex());
+ if (!pCollection)
+ {
+ static cppu::OTypeCollection
+ aTheCollection(
+ getCppuType(
+ static_cast< uno::Reference< lang::XServiceInfo >
+ const * >(
+ 0)),
+ getCppuType(
+ static_cast< uno::Reference< lang::XTypeProvider >
+ const * >(
+ 0)),
+ getCppuType(
+ static_cast<
+ uno::Reference< task::XInteractionHandler >
+ const * >(
+ 0)));
+ pCollection = &aTheCollection;
+ }
+ }
+ return pCollection->getTypes();
+}
+
+//============================================================================
+// virtual
+uno::Sequence< sal_Int8 > SAL_CALL
+UUIInteractionHandler::getImplementationId() throw (uno::RuntimeException)
+{
+ static cppu::OImplementationId * pID = 0;
+ if (!pID)
+ {
+ osl::Guard< osl::Mutex > aGuard(osl::Mutex::getGlobalMutex());
+ if (!pID)
+ {
+ static cppu::OImplementationId aTheID(false);
+ pID = &aTheID;
+ }
+ }
+ return pID->getImplementationId();
+}
+
+//============================================================================
+// virtual
+void SAL_CALL
+UUIInteractionHandler::handle(
+ uno::Reference< task::XInteractionRequest > const & rRequest)
+ throw (uno::RuntimeException)
+{
+ if (!rRequest.is())
+ return;
+
+ uno::Any aTheRequest(rRequest->getRequest());
+ uno::Sequence< uno::Reference< task::XInteractionContinuation > >
+ aContinuations(rRequest->getContinuations());
+
+ ucb::AuthenticationRequest aAuthenticationRequest;
+ if (aTheRequest >>= aAuthenticationRequest)
+ {
+ uno::Reference< task::XInteractionAbort > xAbort;
+ uno::Reference< task::XInteractionRetry > xRetry;
+ uno::Reference< ucb::XInteractionSupplyAuthentication >
+ xSupplyAuthentication;
+ for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ if (!xAbort.is())
+ {
+ xAbort = uno::Reference< task::XInteractionAbort >(
+ aContinuations[i], uno::UNO_QUERY);
+ if (xAbort.is())
+ continue;
+ }
+ if (!xRetry.is())
+ {
+ xRetry = uno::Reference< task::XInteractionRetry >(
+ aContinuations[i], uno::UNO_QUERY);
+ if (xRetry.is())
+ continue;
+ }
+ if (!xSupplyAuthentication.is())
+ {
+ xSupplyAuthentication
+ = uno::Reference< ucb::XInteractionSupplyAuthentication >(
+ aContinuations[i], uno::UNO_QUERY);
+ if (xSupplyAuthentication.is())
+ continue;
+ }
+ }
+ bool bRemember;
+ bool bRememberPersistent;
+ if (xSupplyAuthentication.is())
+ {
+ ucb::RememberAuthentication eDefault;
+ uno::Sequence< ucb::RememberAuthentication >
+ aModes(xSupplyAuthentication->
+ getRememberPasswordModes(eDefault));
+ bRemember = eDefault != ucb::RememberAuthentication_NO;
+ bRememberPersistent = false;
+ for (sal_Int32 i = 0; i < aModes.getLength(); ++i)
+ if (aModes[i] == ucb::RememberAuthentication_PERSISTENT)
+ {
+ bRememberPersistent = true;
+ break;
+ }
+ }
+ else
+ {
+ bRemember = false;
+ bRememberPersistent = false;
+ }
+ LoginErrorInfo aInfo;
+ aInfo.SetTitle(aAuthenticationRequest.ServerName);
+ aInfo.SetServer(aAuthenticationRequest.ServerName);
+ if (aAuthenticationRequest.HasRealm
+ || aAuthenticationRequest.HasAccount)
+ aInfo.SetAccount(aAuthenticationRequest.Account);
+ if (aAuthenticationRequest.HasUserName)
+ aInfo.SetUserName(aAuthenticationRequest.UserName);
+ if (aAuthenticationRequest.HasPassword)
+ aInfo.SetPassword(aAuthenticationRequest.Password);
+ aInfo.SetErrorText(aAuthenticationRequest.Diagnostic);
+ aInfo.SetPersistentPassword(bRememberPersistent);
+ aInfo.SetSavePassword(bRemember);
+ aInfo.SetModifyAccount(aAuthenticationRequest.HasAccount);
+ aInfo.SetModifyUserName(aAuthenticationRequest.HasUserName
+ && xSupplyAuthentication.is()
+ && xSupplyAuthentication->canSetUserName());
+ executeLoginDialog(aInfo);
+ switch (aInfo.GetResult())
+ {
+ case ERRCODE_BUTTON_OK:
+ if (xSupplyAuthentication.is())
+ {
+ xSupplyAuthentication->setUserName(aInfo.GetUserName());
+ xSupplyAuthentication->setPassword(aInfo.GetPassword());
+ xSupplyAuthentication->
+ setRememberPassword(
+ aInfo.GetIsSavePassword() ?
+ bRememberPersistent ?
+ ucb::RememberAuthentication_PERSISTENT :
+ ucb::RememberAuthentication_SESSION :
+ ucb::RememberAuthentication_NO);
+ xSupplyAuthentication->setAccount(aInfo.GetAccount());
+ xSupplyAuthentication->select();
+ }
+ break;
+
+ case ERRCODE_BUTTON_RETRY:
+ if (xRetry.is())
+ xRetry->select();
+ break;
+
+ default:
+ if (xAbort.is())
+ xAbort->select();
+ break;
+ }
+ return;
+ }
+
+ ucb::HandleCookiesRequest aCookiesRequest;
+ if (aTheRequest >>= aCookiesRequest)
+ {
+ List aCookies;
+ {for (sal_Int32 i = 0; i < aCookiesRequest.Cookies.getLength(); ++i)
+ {
+ CntHTTPCookie * pCookie = new CntHTTPCookie;
+ pCookie->m_aName = UniString(aCookiesRequest.Cookies[i].Name);
+ pCookie->m_aValue = UniString(aCookiesRequest.Cookies[i].Value);
+ pCookie->m_aDomain = UniString(aCookiesRequest.Cookies[i].Domain);
+ pCookie->m_aPath = UniString(aCookiesRequest.Cookies[i].Path);
+ pCookie->m_aExpires
+ = DateTime(Date(aCookiesRequest.Cookies[i].Expires.Day,
+ aCookiesRequest.Cookies[i].Expires.Month,
+ aCookiesRequest.Cookies[i].Expires.Year),
+ Time(aCookiesRequest.Cookies[i].Expires.Hours,
+ aCookiesRequest.Cookies[i].Expires.Minutes,
+ aCookiesRequest.Cookies[i].Expires.Seconds,
+ aCookiesRequest.Cookies[i].Expires.
+ HundredthSeconds));
+ pCookie->m_nFlags = aCookiesRequest.Cookies[i].Secure ?
+ CNTHTTP_COOKIE_FLAG_SECURE : 0;
+ switch (aCookiesRequest.Cookies[i].Policy)
+ {
+ case ucb::CookiePolicy_CONFIRM:
+ pCookie->m_nPolicy = CNTHTTP_COOKIE_POLICY_INTERACTIVE;
+ break;
+
+ case ucb::CookiePolicy_ACCEPT:
+ pCookie->m_nPolicy = CNTHTTP_COOKIE_POLICY_ACCEPTED;
+ break;
+
+ case ucb::CookiePolicy_IGNORE:
+ pCookie->m_nPolicy = CNTHTTP_COOKIE_POLICY_BANNED;
+ break;
+ }
+ aCookies.Insert(pCookie, LIST_APPEND);
+ }}
+ CntHTTPCookieRequest aRequest(aCookiesRequest.URL,
+ aCookies,
+ aCookiesRequest.Request
+ == ucb::CookieRequest_RECEIVE ?
+ CNTHTTP_COOKIE_REQUEST_RECV :
+ CNTHTTP_COOKIE_REQUEST_SEND);
+ executeCookieDialog(aRequest);
+ for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ uno::Reference< ucb::XInteractionCookieHandling >
+ xCookieHandling(aContinuations[i], uno::UNO_QUERY);
+ if (xCookieHandling.is())
+ {
+ switch (aRequest.m_nRet)
+ {
+ case CNTHTTP_COOKIE_POLICY_INTERACTIVE:
+ xCookieHandling->
+ setGeneralPolicy(ucb::CookiePolicy_CONFIRM);
+ break;
+
+ case CNTHTTP_COOKIE_POLICY_ACCEPTED:
+ xCookieHandling->
+ setGeneralPolicy(ucb::CookiePolicy_ACCEPT);
+ break;
+
+ case CNTHTTP_COOKIE_POLICY_BANNED:
+ xCookieHandling->
+ setGeneralPolicy(ucb::CookiePolicy_IGNORE);
+ break;
+ }
+ for (sal_Int32 j = 0; j < aCookiesRequest.Cookies.getLength();
+ ++j)
+ if (aCookiesRequest.Cookies[j].Policy
+ == ucb::CookiePolicy_CONFIRM)
+ switch (static_cast< CntHTTPCookie * >(
+ aCookies.GetObject(j))->
+ m_nPolicy)
+ {
+ case CNTHTTP_COOKIE_POLICY_ACCEPTED:
+ xCookieHandling->
+ setSpecificPolicy(aCookiesRequest.
+ Cookies[j],
+ true);
+ break;
+
+ case CNTHTTP_COOKIE_POLICY_BANNED:
+ xCookieHandling->
+ setSpecificPolicy(aCookiesRequest.
+ Cookies[j],
+ false);
+ break;
+ }
+ xCookieHandling->select();
+ break;
+ }
+ }
+ while (aCookies.Count() != 0)
+ delete static_cast< CntHTTPCookie * >(
+ aCookies.Remove(aCookies.Count() - 1));
+ return;
+ }
+
+ task::InteractionClassification eClassification
+ = task::InteractionClassification_ERROR;
+ task::ClassifiedInteractionRequest aClassifiedInteractionRequest;
+ if (aTheRequest >>= aClassifiedInteractionRequest)
+ eClassification = aClassifiedInteractionRequest.Classification;
+
+ sal_uInt32 nErrorID = ERRCODE_NONE;
+ bool bErrorFlags = false;
+ SimpleErrorContext * pContext = 0;
+ bool bExecuted = false;
+ USHORT nButton;
+ ucb::InteractiveIOException aIOException;
+ ucb::InteractiveNetworkException aNetworkException;
+ ucb::InteractiveCHAOSException aCHAOSException;
+ ucb::InteractiveBadTransferURLException aTransferException;
+ ucb::InteractiveWrongMediumException aWrongMediumException;
+ if (aTheRequest >>= aIOException)
+ {
+ static sal_uInt32 const aID[ucb::IOErrorCode_WRONG_VERSION + 1]
+ = { ERRCODE_IO_ABORT, // ABORT
+ ERRCODE_IO_ACCESSDENIED, // ACCESS_DENIED
+ ERRCODE_IO_ALREADYEXISTS, // ALREADY_EXISTING
+ ERRCODE_IO_BADCRC, // BAD_CRC
+ ERRCODE_IO_CANTCREATE, // CANT_CREATE
+ ERRCODE_IO_CANTREAD, // CANT_READ
+ ERRCODE_IO_CANTSEEK, // CANT_SEEK
+ ERRCODE_IO_CANTTELL, // CANT_TELL
+ ERRCODE_IO_CANTWRITE, // CANT_WRITE
+ ERRCODE_IO_CURRENTDIR, // CURRENT_DIRECTORY
+ ERRCODE_IO_DEVICENOTREADY, // DEVICE_NOT_READY
+ ERRCODE_IO_NOTSAMEDEVICE, // DIFFERENT_DEVICES
+ ERRCODE_IO_GENERAL, // GENERAL
+ ERRCODE_IO_INVALIDACCESS, // INVALID_ACCESS
+ ERRCODE_IO_INVALIDCHAR, // INVALID_CHARACTER
+ ERRCODE_IO_INVALIDDEVICE, // INVALID_DEVICE
+ ERRCODE_IO_INVALIDLENGTH, // INVALID_LENGTH
+ ERRCODE_IO_INVALIDPARAMETER, // INVALID_PARAMETER
+ ERRCODE_IO_ISWILDCARD, // IS_WILDCARD
+ ERRCODE_IO_LOCKVIOLATION, // LOCKING_VIOLATION
+ ERRCODE_IO_MISPLACEDCHAR, // MISPLACED_CHARACTER
+ ERRCODE_IO_NAMETOOLONG, // NAME_TOO_LONG
+ ERRCODE_IO_NOTEXISTS, // NOT_EXISTING
+ ERRCODE_IO_NOTEXISTSPATH, // NOT_EXISTING_PATH
+ ERRCODE_IO_NOTSUPPORTED, // NOT_SUPPORTED
+ ERRCODE_IO_NOTADIRECTORY, // NO_DIRECTORY
+ ERRCODE_IO_NOTAFILE, // NO_FILE
+ ERRCODE_IO_OUTOFSPACE, // OUT_OF_DISK_SPACE
+ ERRCODE_IO_TOOMANYOPENFILES, // OUT_OF_FILE_HANDLES
+ ERRCODE_IO_OUTOFMEMORY, // OUT_OF_MEMORY
+ ERRCODE_IO_PENDING, // PENDING
+ ERRCODE_IO_RECURSIVE, // RECURSIVE
+ ERRCODE_IO_UNKNOWN, // UNKNOWN
+ ERRCODE_IO_WRITEPROTECTED, // WRITE_PROTECTED
+ ERRCODE_IO_WRONGFORMAT, // WRONG_FORMAT
+ ERRCODE_IO_WRONGVERSION }; // WRONG_VERSION
+ nErrorID = aID[aIOException.Code];
+ bErrorFlags = true;
+
+ ucb::InteractiveFileIOException aFileIOException;
+ if (aTheRequest >>= aFileIOException)
+ {
+ vos::OGuard aGuard(Application::GetSolarMutex());
+
+ ResMgr * pManager
+ = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui));
+ UniString aTheContext(ResId(STR_ERROR_FILEIO, pManager));
+ delete pManager;
+
+ aTheContext.SearchAndReplaceAscii("($URL1)",
+ aFileIOException.FileName);
+ pContext = new SimpleErrorContext(aTheContext);
+ }
+ }
+ else if (aTheRequest >>= aNetworkException)
+ {
+ ucb::InteractiveNetworkOffLineException aOffLineException;
+ ucb::InteractiveNetworkResolveNameException aResolveNameException;
+ ucb::InteractiveNetworkConnectException aConnectException;
+ ucb::InteractiveNetworkReadException aReadException;
+ ucb::InteractiveNetworkWriteException aWriteException;
+ nErrorID = (aTheRequest >>= aOffLineException) ?
+ ERRCODE_INET_OFFLINE :
+ (aTheRequest >>= aResolveNameException) ?
+ *new StringErrorInfo(ERRCODE_INET_NAME_RESOLVE,
+ aResolveNameException.Server) :
+ (aTheRequest >>= aConnectException) ?
+ *new StringErrorInfo(ERRCODE_INET_CONNECT,
+ aConnectException.Server) :
+ (aTheRequest >>= aReadException) ?
+ *new StringErrorInfo(ERRCODE_INET_READ,
+ aReadException.Diagnostic) :
+ (aTheRequest >>= aWriteException) ?
+ *new StringErrorInfo(ERRCODE_INET_WRITE,
+ aWriteException.Diagnostic) :
+ ERRCODE_INET_GENERAL;
+ }
+ else if (aTheRequest >>= aCHAOSException)
+ nErrorID
+ = aCHAOSException.Arguments.getLength() >= 2 ?
+ *new TwoStringErrorInfo(aCHAOSException.ID,
+ aCHAOSException.Arguments[0],
+ aCHAOSException.Arguments[1]) :
+ aCHAOSException.Arguments.getLength() == 1 ?
+ *new StringErrorInfo(aCHAOSException.ID,
+ aCHAOSException.Arguments[0]) :
+ aCHAOSException.ID;
+ else if (aTheRequest >>= aTransferException)
+ {
+ DBG_ERROR("UUIInteractionHandler::handle():"
+ " Can't handle TransferException");
+ nButton = ERRCODE_BUTTON_CANCEL;
+ bExecuted = true;
+ }
+ else if (aTheRequest >>= aWrongMediumException)
+ {
+ vos::OGuard aGuard(Application::GetSolarMutex());
+
+ ResMgr * pManager
+ = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui));
+ UniString aText(ResId(STR_ERROR_WRONGMEDIUM, pManager));
+ delete pManager;
+
+ sal_Int32 nMedium;
+ aWrongMediumException.Medium >>= nMedium;
+ aText.SearchAndReplaceAscii("$$",
+ UniString::CreateFromInt32(nMedium + 1));
+
+ ErrorBox aErrorBox(0, WB_OK_CANCEL, aText);
+ nButton = aErrorBox.Execute();
+ bExecuted = true;
+ }
+
+ sal_uInt16 nFlags = 0;
+ if (bErrorFlags)
+ {
+ bool bCanApprove = false;
+ for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ if (uno::Reference< task::XInteractionApprove >::query(
+ aContinuations[i]).
+ is())
+ bCanApprove = true;
+ else if (uno::Reference< task::XInteractionDisapprove >::query(
+ aContinuations[i]).
+ is())
+ nFlags |= ERRCODE_BUTTON_NO;
+ else if (uno::Reference< task::XInteractionAbort >::query(
+ aContinuations[i]).
+ is())
+ nFlags |= ERRCODE_BUTTON_CANCEL;
+ else if (uno::Reference< task::XInteractionRetry >::query(
+ aContinuations[i]).
+ is())
+ nFlags |= ERRCODE_BUTTON_RETRY;
+ }
+ if (bCanApprove)
+ nFlags |= nFlags & ERRCODE_BUTTON_NO ? ERRCODE_BUTTON_YES :
+ ERRCODE_BUTTON_NO;
+ switch (eClassification)
+ {
+ case task::InteractionClassification_ERROR:
+ nFlags |= ERRCODE_MSG_ERROR;
+ break;
+
+ case task::InteractionClassification_WARNING:
+ nFlags |= ERRCODE_MSG_WARNING;
+ break;
+
+ case task::InteractionClassification_INFO:
+ nFlags |= ERRCODE_MSG_INFO;
+ break;
+
+ case task::InteractionClassification_QUERY:
+ nFlags |= ERRCODE_MSG_QUERY;
+ break;
+ }
+ }
+
+ if (!bExecuted)
+ nButton
+ = executeErrorDialog(nErrorID, bErrorFlags ? nFlags : USHRT_MAX);
+
+ if (pContext)
+ {
+ vos::OGuard aGuard(Application::GetSolarMutex());
+ delete pContext;
+ }
+
+ switch (nButton)
+ {
+ case ERRCODE_BUTTON_OK:
+ case ERRCODE_BUTTON_YES:
+ {for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ uno::Reference< task::XInteractionApprove >
+ xApprove(aContinuations[i], uno::UNO_QUERY);
+ if (xApprove.is())
+ {
+ xApprove->select();
+ break;
+ }
+ }}
+ break;
+
+ case ERRCODE_BUTTON_CANCEL:
+ {for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ uno::Reference< task::XInteractionAbort >
+ xAbort(aContinuations[i], uno::UNO_QUERY);
+ if (xAbort.is())
+ {
+ xAbort->select();
+ break;
+ }
+ }}
+ break;
+
+ case ERRCODE_BUTTON_RETRY:
+ {for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ uno::Reference< task::XInteractionRetry >
+ xRetry(aContinuations[i], uno::UNO_QUERY);
+ if (xRetry.is())
+ {
+ xRetry->select();
+ break;
+ }
+ }}
+ break;
+
+ case ERRCODE_BUTTON_NO:
+ {for (sal_Int32 i = 0; i < aContinuations.getLength(); ++i)
+ {
+ uno::Reference< task::XInteractionDisapprove >
+ xDisapprove(aContinuations[i], uno::UNO_QUERY);
+ if (xDisapprove.is())
+ {
+ xDisapprove->select();
+ break;
+ }
+ }}
+ break;
+ }
+}
+
+//============================================================================
+// static
+uno::Sequence< rtl::OUString >
+UUIInteractionHandler::getSupportedServiceNames_static()
+{
+ uno::Sequence< rtl::OUString > aNames(1);
+ aNames[0] = rtl::OUString::createFromAscii(
+ "com.sun.star.uui.InteractionHandler");
+ return aNames;
+}
+
+//============================================================================
+// static
+uno::Reference< uno::XInterface >
+#if SUPD >= 590
+SAL_CALL
+#endif // SUPD
+UUIInteractionHandler::createInstance(
+ uno::Reference< lang::XMultiServiceFactory > const &)
+{
+ return static_cast< uno::XWeak * >(static_cast< cppu::OWeakObject * >(
+ new UUIInteractionHandler));
+}
+
+//============================================================================
+//
+// SimpleErrorContext
+//
+//============================================================================
+
+// virtual
+BOOL SimpleErrorContext::GetString(ULONG, UniString & rCtxStr)
+{
+ rCtxStr = m_aContext;
+ return true;
+}
+
+//============================================================================
+//
+// executeErrorDialog
+//
+//============================================================================
+
+namespace unnamed_uui_iahndl {
+
+USHORT executeErrorDialog(ULONG nID, USHORT nMask)
+{
+ vos::OGuard aGuard(Application::GetSolarMutex());
+
+ ResMgr * pManager1 = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(ofa));
+ SfxErrorHandler * pHandler1
+ = new SfxErrorHandler(RID_ERRHDL, ERRCODE_AREA_TOOLS,
+ ERRCODE_AREA_LIB1 - 1, pManager1);
+ ResMgr * pManager2 = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(cnt));
+ SfxErrorHandler * pHandler2
+ = new SfxErrorHandler(RID_CHAOS_START + 12, ERRCODE_AREA_CHAOS,
+ ERRCODE_AREA_CHAOS_END, pManager2);
+ // cf. chaos/source/inc/cntrids.hrc, where
+ // #define RID_CHAOS_ERRHDL (RID_CHAOS_START + 12)
+
+ // Needed because within ErrorHandler::HanldeError() ResIds are created
+ // without a ResMgr---they require a default ResMgr:
+ ResMgr * pDefaultManager = Resource::GetResManager();
+ Resource::SetResManager(pManager1);
+
+ USHORT nButton = ErrorHandler::HandleError(nID, nMask);
+
+ Resource::SetResManager(pDefaultManager);
+
+ delete pHandler2;
+ delete pManager2;
+ delete pHandler1;
+ delete pManager1;
+ return nButton;
+}
+
+//============================================================================
+//
+// executeLoginDialog
+//
+//============================================================================
+
+void executeLoginDialog(LoginErrorInfo & rInfo)
+{
+ vos::OGuard aGuard(Application::GetSolarMutex());
+
+ bool bAccount = (rInfo.GetFlags() & LOGINERROR_FLAG_MODIFY_ACCOUNT) != 0;
+
+ sal_uInt16 nFlags = 0;
+ if (rInfo.GetPath().Len() == 0)
+ nFlags |= LF_NO_PATH;
+ if (rInfo.GetErrorText().Len() == 0)
+ nFlags |= LF_NO_ERRORTEXT;
+ if (!bAccount)
+ nFlags |= LF_NO_ACCOUNT;
+ if (!(rInfo.GetFlags() & LOGINERROR_FLAG_MODIFY_USER_NAME))
+ nFlags |= LF_USERNAME_READONLY;
+
+ ResMgr * pManager = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui));
+ LoginDialog * pDialog = new LoginDialog(0, nFlags, rInfo.GetServer(),
+ rInfo.GetAccount(), pManager);
+ if (rInfo.GetErrorText().Len() != 0)
+ pDialog->SetErrorText(rInfo.GetErrorText());
+ pDialog->SetName(rInfo.GetUserName());
+ if (bAccount)
+ pDialog->ClearAccount();
+ else
+ pDialog->ClearPassword();
+ pDialog->SetPassword(rInfo.GetPassword());
+ pDialog->SetSavePasswordText(ResId(rInfo.GetIsPersistentPassword() ?
+ RID_SAVE_PASSWORD :
+ RID_KEEP_PASSWORD,
+ pManager));
+ pDialog->SetSavePassword(rInfo.GetIsSavePassword());
+
+ rInfo.SetResult(pDialog->Execute() == RET_OK ? ERRCODE_BUTTON_OK :
+ ERRCODE_BUTTON_CANCEL);
+ rInfo.SetUserName(pDialog->GetName());
+ rInfo.SetPassword(pDialog->GetPassword());
+ rInfo.SetAccount(pDialog->GetAccount());
+ rInfo.SetSavePassword(pDialog->IsSavePassword());
+ delete pDialog;
+ delete pManager;
+}
+
+//============================================================================
+//
+// executeCookieDialog
+//
+//============================================================================
+
+void executeCookieDialog(CntHTTPCookieRequest & rRequest)
+{
+ vos::OGuard aGuard(Application::GetSolarMutex());
+
+ ResMgr * pManager = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui));
+ CookiesDialog * pDialog = new CookiesDialog(0, &rRequest, pManager);
+ pDialog->Execute();
+ delete pDialog;
+ delete pManager;
+}
+
+}
+
diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx
new file mode 100644
index 000000000000..0f5b6b6cc0e1
--- /dev/null
+++ b/uui/source/iahndl.hxx
@@ -0,0 +1,138 @@
+/*************************************************************************
+ *
+ * $RCSfile: iahndl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_IAHNDL_HXX
+#define UUI_IAHNDL_HXX
+
+#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
+#include <com/sun/star/lang/XServiceInfo.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XTYPEPROVIDER_HPP_
+#include <com/sun/star/lang/XTypeProvider.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TASK_XINTERACTIONHANDLER_HPP_
+#include <com/sun/star/task/XInteractionHandler.hpp>
+#endif
+#ifndef _CPPUHELPER_WEAK_HXX_
+#include <cppuhelper/weak.hxx>
+#endif
+
+namespace com { namespace sun { namespace star { namespace lang {
+ class XMultiServiceFactory;
+ class XSingleServiceFactory;
+} } } }
+
+//============================================================================
+class UUIInteractionHandler:
+ public cppu::OWeakObject,
+ public com::sun::star::lang::XServiceInfo,
+ public com::sun::star::lang::XTypeProvider,
+ public com::sun::star::task::XInteractionHandler
+{
+public:
+ static sal_Char const m_aImplementationName[];
+
+ virtual com::sun::star::uno::Any SAL_CALL
+ queryInterface(com::sun::star::uno::Type const & rType)
+ throw (com::sun::star::uno::RuntimeException);
+
+ virtual void SAL_CALL acquire()
+ throw (com::sun::star::uno::RuntimeException);
+
+ virtual void SAL_CALL release()
+ throw (com::sun::star::uno::RuntimeException);
+
+ virtual rtl::OUString SAL_CALL getImplementationName()
+ throw (com::sun::star::uno::RuntimeException);
+
+ virtual sal_Bool SAL_CALL supportsService(rtl::OUString const &
+ rServiceName)
+ throw (com::sun::star::uno::RuntimeException);
+
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
+
+ virtual
+ com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL
+ getTypes() throw (com::sun::star::uno::RuntimeException);
+
+ virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
+ getImplementationId() throw (com::sun::star::uno::RuntimeException);
+
+ virtual void SAL_CALL
+ handle(com::sun::star::uno::Reference<
+ com::sun::star::task::XInteractionRequest > const &
+ rRequest)
+ throw (com::sun::star::uno::RuntimeException);
+
+ static com::sun::star::uno::Sequence< rtl::OUString >
+ getSupportedServiceNames_static();
+
+ static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
+#if SUPD >= 590
+ SAL_CALL
+#endif // SUPD 590
+ createInstance(com::sun::star::uno::Reference<
+ com::sun::star::lang::XMultiServiceFactory > const &);
+};
+
+#endif // UUI_IAHNDL_HXX
+
diff --git a/uui/source/ids.hrc b/uui/source/ids.hrc
new file mode 100644
index 000000000000..51eac28eec71
--- /dev/null
+++ b/uui/source/ids.hrc
@@ -0,0 +1,97 @@
+/*************************************************************************
+ *
+ * $RCSfile: ids.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+//============================================================================
+//
+// The UUI Resources
+//
+// $Author: hr $ $Date: 2000-09-18 17:04:10 $ $Revision: 1.1.1.1 $
+//============================================================================
+
+#ifndef UUI_IDS_HRC
+#define UUI_IDS_HRC
+
+#ifndef _SOLAR_HRC
+#include <svtools/solar.hrc>
+#endif
+
+//============================================================================
+#define RID_KEEP_PASSWORD (RID_UUI_START + 0)
+#define RID_SAVE_PASSWORD (RID_UUI_START + 1)
+#define DLG_LOGIN (RID_UUI_START + 2)
+#define DLG_COOKIES (RID_UUI_START + 3)
+#define STR_COOKIES_RECV_START (RID_UUI_START + 4)
+#define STR_COOKIES_RECV_COOKIES (RID_UUI_START + 5)
+#define STR_COOKIES_RECV_TITLE (RID_UUI_START + 6)
+#define STR_COOKIES_SEND_START (RID_UUI_START + 7)
+#define STR_COOKIES_SEND_COOKIES (RID_UUI_START + 8)
+#define STR_COOKIES_SEND_TITLE (RID_UUI_START + 9)
+#define STR_ERROR_FILEIO (RID_UUI_START + 10)
+#define STR_ERROR_WRONGMEDIUM (RID_UUI_START + 11)
+
+//============================================================================
+#define HID_DLG_LOGIN (HID_UUI_START + 0)
+#define HID_DLG_COOKIES (HID_UUI_START + 1)
+
+// HID_UUI_END (aka HID_CHAOS_NEW_DATABASE) is reserved in
+// sfx2/util/hidother.src!
+
+#endif // UUI_IDS_HRC
+
diff --git a/uui/source/ids.src b/uui/source/ids.src
new file mode 100644
index 000000000000..90bdeeebc271
--- /dev/null
+++ b/uui/source/ids.src
@@ -0,0 +1,171 @@
+/*************************************************************************
+ *
+ * $RCSfile: ids.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:10 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+//============================================================================
+//
+// Miscellaneous Resources
+//
+// $Author: hr $ $Date: 2000-09-18 17:04:10 $ $Revision: 1.1.1.1 $
+//============================================================================
+
+#ifndef UUI_IDS_HRC
+#include <ids.hrc>
+#endif
+
+String RID_KEEP_PASSWORD
+{
+ Text = "Passwort bis Applikationsende ~merken";
+ Text[ english ] = "~Remember password until application ends";
+ Text[ arabic ] = " ";
+ Text[ chinese_simplified ] = "֮ǰһֱס(~R)";
+ Text[ chinese_simplified ] = "֮ǰһֱס(~R)";
+ Text[ chinese_traditional ] = "{Ǥe@OKX(~R)";
+ Text[ danish ] = "Husk adgangskoden til applikationen afsluttes";
+ Text[ dutch ] = "Wachtwoord o~nthouden tot aan beindigen van het programma";
+ Text[ dutch ] = "Wachtwoord o~nthouden tot aan beindigen van het programma";
+ Text[ english_us ] = "~Remember password till end of session";
+ Text[ french ] = "Se rappeler du ~mot de passe jusqu' la fin de la session";
+ Text[ greek ] = "~ ";
+ Text[ italian ] = "An~nota password fino alla fine dell'applicazione";
+ Text[ japanese ] = "߽ܰނͱعݏI܂ŋLĂ";
+ Text[ korean ] = " н ";
+ Text[ polish ] = "Zapamitaj haso do koca aplikacji";
+ Text[ portuguese ] = "~Lembrar senha at terminar a aplicao";
+ Text[ portuguese_brazilian ] = "Passwort ~merken";
+ Text[ russian ] = " ";
+ Text[ spanish ] = "~Recordar contrasea hasta finalizar la aplicacin";
+ Text[ swedish ] = "Ko~m ihg lsenordet tills tillmpningen avslutas";
+ Text[ turkish ] = "~Remember password till end of session";
+};
+
+String RID_SAVE_PASSWORD
+{
+ Text = "Passwort dauerhaft ~speichern";
+ Text[ english ] = "~Save password permanently";
+ Text[ arabic ] = " ";
+ Text[ chinese_simplified ] = "(~S)";
+ Text[ chinese_simplified ] = "(~S)";
+ Text[ chinese_traditional ] = "xsKX(~S)";
+ Text[ danish ] = "Gem adgangskoden permanent";
+ Text[ dutch ] = "Wachtwoord ~opslaan";
+ Text[ dutch ] = "Wachtwoord ~opslaan";
+ Text[ english_us ] = "~Remember password";
+ Text[ french ] = "~Enregistrer le mot de passe";
+ Text[ greek ] = "~ ";
+ Text[ italian ] = "Salva pa~ssword ";
+ Text[ japanese ] = "߽ܰނ̒ۑ(~S)";
+ Text[ korean ] = "н ";
+ Text[ polish ] = "Zapisz haso";
+ Text[ portuguese ] = "~Guardar senha";
+ Text[ portuguese_brazilian ] = "Passwort ~speichern";
+ Text[ russian ] = " ";
+ Text[ spanish ] = "~Guardar contrasea";
+ Text[ swedish ] = "~Spara lsenord permanent";
+ Text[ turkish ] = "~Save password";
+};
+
+String STR_ERROR_FILEIO
+{
+ Text = "Fehler beim Zugriff auf die Datei ($URL1)";
+ Text[ english ] = "Error accessing file ($URL1)";
+ Text[ arabic ] = " ($URL1)";
+ Text[ chinese_simplified ] = "ڶȡļ($URL1)ʱ";
+ Text[ chinese_traditional ] = "Ūɮ ($URL1) oͿ~";
+ Text[ danish ] = "Fejl ved adgang til filen ($URL1)";
+ Text[ dutch ] = "Fout bij toegang tot bestand ($URL1)";
+ Text[ english_us ] = "Error accessing file ($URL1)";
+ Text[ french ] = "Erreur lors de l'accs au fichier ($URL1)";
+ Text[ greek ] = " ($URL1)";
+ Text[ italian ] = "Errore di accesso al file ($URL1)";
+ Text[ japanese ] = "($URL1) ̧قֱۂ̴װ";
+ Text[ korean ] = "Error accessing file ($URL1)";
+ Text[ polish ] = "Bd przy dostpie do pliku ($URL1)";
+ Text[ portuguese ] = "Erro de acesso ao ficheiro ($URL1)";
+ Text[ portuguese_brazilian ] = "Error accessing file ($URL1)";
+ Text[ russian ] = " ($URL1)";
+ Text[ spanish ] = "Error de acceso al archivo ($URL1)";
+ Text[ swedish ] = "Fel vid tkomst till filen ($URL1)";
+ Text[ turkish ] = "Error accessing file ($URL1)";
+};
+
+String STR_ERROR_WRONGMEDIUM
+{
+ Text = "Legen Sie bitte den Datentrger $$ ein.";
+ Text[ english ] = "Please insert disk $$.";
+ Text[ arabic ] = " $$ .";
+ Text[ chinese_simplified ] = " $$";
+ Text[ chinese_traditional ] = "ЩmϤ $$ C";
+ Text[ danish ] = "Indst venligst datamediet $$.";
+ Text[ dutch ] = "Leg datamedium in station $$.";
+ Text[ english_us ] = "Please insert data storage medium $$.";
+ Text[ french ] = "Veuillez insrer le mdia $$.";
+ Text[ greek ] = " $$.";
+ Text[ italian ] = "Inserite il supporto dati $$.";
+ Text[ japanese ] = "} $$ ĂB";
+ Text[ korean ] = "Please insert disk $$.";
+ Text[ polish ] = "Wsu prosz nonik danych $$.";
+ Text[ portuguese ] = "Introduza o media $$.";
+ Text[ portuguese_brazilian ] = "Please insert disk $$.";
+ Text[ russian ] = ", , $$.";
+ Text[ spanish ] = "Inserte por favor el medio $$.";
+ Text[ swedish ] = "Lgg in datamediet $$.";
+ Text[ turkish ] = "Please insert disk $$.";
+};
+
diff --git a/uui/source/logindlg.cxx b/uui/source/logindlg.cxx
new file mode 100644
index 000000000000..eb9381d2940f
--- /dev/null
+++ b/uui/source/logindlg.cxx
@@ -0,0 +1,351 @@
+/*************************************************************************
+ *
+ * $RCSfile: logindlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SVT_FILEDLG_HXX
+#include <svtools/filedlg.hxx>
+#endif
+#ifndef _FSYS_HXX
+#include <tools/fsys.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef UUI_IDS_HRC
+#include <ids.hrc>
+#endif
+#ifndef UUI_LOGINDLG_HRC
+#include <logindlg.hrc>
+#endif
+#ifndef UUI_LOGINDLG_HXX
+#include <logindlg.hxx>
+#endif
+
+#ifdef UNX
+#include <limits.h>
+#define _MAX_PATH PATH_MAX
+#endif
+
+// LoginDialog -------------------------------------------------------
+
+void LoginDialog::HideControls_Impl( USHORT nFlags )
+{
+ FASTBOOL bPathHide = FALSE;
+ FASTBOOL bErrorHide = FALSE;
+ FASTBOOL bAccountHide = FALSE;
+
+ if ( ( nFlags & LF_NO_PATH ) == LF_NO_PATH )
+ {
+ aPathFT.Hide();
+ aPathED.Hide();
+ aPathBtn.Hide();
+ bPathHide = TRUE;
+ }
+ else if ( ( nFlags & LF_PATH_READONLY ) == LF_PATH_READONLY )
+ {
+ aPathED.Hide();
+ aPathInfo.Show();
+ aPathBtn.Hide();
+ }
+
+ if ( ( nFlags & LF_NO_USERNAME ) == LF_NO_USERNAME )
+ {
+ aNameFT.Hide();
+ aNameED.Hide();
+ }
+ else if ( ( nFlags & LF_USERNAME_READONLY ) == LF_USERNAME_READONLY )
+ {
+ aNameED.Hide();
+ aNameInfo.Show();
+ }
+
+ if ( ( nFlags & LF_NO_PASSWORD ) == LF_NO_PASSWORD )
+ {
+ aPasswordFT.Hide();
+ aPasswordED.Hide();
+ }
+
+ if ( ( nFlags & LF_NO_SAVEPASSWORD ) == LF_NO_SAVEPASSWORD )
+ aSavePasswdBtn.Hide();
+
+ if ( ( nFlags & LF_NO_ERRORTEXT ) == LF_NO_ERRORTEXT )
+ {
+ aErrorInfo.Hide();
+ aErrorGB.Hide();
+ bErrorHide = TRUE;
+ }
+
+ if ( ( nFlags & LF_NO_ACCOUNT ) == LF_NO_ACCOUNT )
+ {
+ aAccountFT.Hide();
+ aAccountED.Hide();
+ bAccountHide = TRUE;
+ }
+
+ if ( bErrorHide )
+ {
+ long nOffset = aLoginGB.GetPosPixel().Y() -
+ aErrorGB.GetPosPixel().Y();
+ Point aNewPnt = aRequestInfo.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aRequestInfo.SetPosPixel( aNewPnt );
+ aNewPnt = aPathFT.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aPathFT.SetPosPixel( aNewPnt );
+ aNewPnt = aPathED.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aPathED.SetPosPixel( aNewPnt );
+ aNewPnt = aPathInfo.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aPathInfo.SetPosPixel( aNewPnt );
+ aNewPnt = aPathBtn.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aPathBtn.SetPosPixel( aNewPnt );
+ aNewPnt = aNameFT.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aNameFT.SetPosPixel( aNewPnt );
+ aNewPnt = aNameED.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aNameED.SetPosPixel( aNewPnt );
+ aNewPnt = aNameInfo.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aNameInfo.SetPosPixel( aNewPnt );
+ aNewPnt = aPasswordFT.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aPasswordFT.SetPosPixel( aNewPnt );
+ aNewPnt = aPasswordED.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aPasswordED.SetPosPixel( aNewPnt );
+ aNewPnt = aAccountFT.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aAccountFT.SetPosPixel( aNewPnt );
+ aNewPnt = aAccountED.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aAccountED.SetPosPixel( aNewPnt );
+ aNewPnt = aSavePasswdBtn.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aSavePasswdBtn.SetPosPixel( aNewPnt );
+ aNewPnt = aLoginGB.GetPosPixel();
+ aNewPnt.Y() -= nOffset;
+ aLoginGB.SetPosPixel( aNewPnt );
+ Size aNewSiz = GetSizePixel();
+ aNewSiz.Height() -= nOffset;
+ SetSizePixel( aNewSiz );
+ }
+
+ if ( bPathHide )
+ {
+ long nOffset = aNameED.GetPosPixel().Y() -
+ aPathED.GetPosPixel().Y();
+
+ Point aTmpPnt1 = aNameFT.GetPosPixel();
+ Point aTmpPnt2 = aPasswordFT.GetPosPixel();
+ aNameFT.SetPosPixel( aPathFT.GetPosPixel() );
+ aPasswordFT.SetPosPixel( aTmpPnt1 );
+ aAccountFT.SetPosPixel( aTmpPnt2 );
+ aTmpPnt1 = aNameED.GetPosPixel();
+ aTmpPnt2 = aPasswordED.GetPosPixel();
+ aNameED.SetPosPixel( aPathED.GetPosPixel() );
+ aPasswordED.SetPosPixel( aTmpPnt1 );
+ aAccountED.SetPosPixel( aTmpPnt2 );
+ aNameInfo.SetPosPixel( aPathInfo.GetPosPixel() );
+ aTmpPnt1 = aSavePasswdBtn.GetPosPixel();
+ aTmpPnt1.Y() -= nOffset;
+ aSavePasswdBtn.SetPosPixel( aTmpPnt1 );
+ Size aNewSz = aLoginGB.GetSizePixel();
+ aNewSz.Height() -= nOffset;
+ aLoginGB.SetSizePixel( aNewSz );
+ aNewSz = GetSizePixel();
+ aNewSz.Height() -= nOffset;
+ SetSizePixel( aNewSz );
+ }
+
+ if ( bAccountHide )
+ {
+ long nOffset = aAccountED.GetPosPixel().Y() - aPasswordED.GetPosPixel().Y();
+
+ Point aTmpPnt = aSavePasswdBtn.GetPosPixel();
+ aTmpPnt.Y() -= nOffset;
+ aSavePasswdBtn.SetPosPixel( aTmpPnt );
+ Size aNewSz = aLoginGB.GetSizePixel();
+ aNewSz.Height() -= nOffset;
+ aLoginGB.SetSizePixel( aNewSz );
+ aNewSz = GetSizePixel();
+ aNewSz.Height() -= nOffset;
+ SetSizePixel( aNewSz );
+ }
+};
+
+// -----------------------------------------------------------------------
+
+IMPL_LINK( LoginDialog, OKHdl_Impl, OKButton *, EMPTYARG )
+{
+ // trim the strings
+ aNameED.SetText( aNameED.GetText().EraseLeadingChars().
+ EraseTrailingChars() );
+ aPasswordED.SetText( aPasswordED.GetText().EraseLeadingChars().
+ EraseTrailingChars() );
+ EndDialog( RET_OK );
+ return 1;
+}
+
+// -----------------------------------------------------------------------
+
+IMPL_LINK( LoginDialog, PathHdl_Impl, PushButton *, EMPTYARG )
+{
+ PathDialog* pDlg = new PathDialog( this, WB_3DLOOK );
+ DirEntry aEntry;
+ aEntry.ToAbs();
+ pDlg->SetPath( aEntry.GetFull() );
+
+ if ( pDlg->Execute() == RET_OK )
+ aPathED.SetText( pDlg->GetPath() );
+
+ delete pDlg;
+ return 1;
+}
+
+// -----------------------------------------------------------------------
+
+LoginDialog::LoginDialog
+(
+ Window* pParent,
+ USHORT nFlags,
+ const String& rServer,
+ const String& rRealm,
+ ResMgr* pResMgr
+) :
+
+ ModalDialog( pParent, ResId( DLG_LOGIN, pResMgr ) ),
+
+ aErrorInfo ( this, ResId( INFO_LOGIN_ERROR ) ),
+ aErrorGB ( this, ResId( GB_LOGIN_ERROR ) ),
+ aRequestInfo ( this, ResId( INFO_LOGIN_REQUEST ) ),
+ aPathFT ( this, ResId( FT_LOGIN_PATH ) ),
+ aPathED ( this, ResId( ED_LOGIN_PATH ) ),
+ aPathInfo ( this, ResId( INFO_LOGIN_PATH ) ),
+ aPathBtn ( this, ResId( BTN_LOGIN_PATH ) ),
+ aNameFT ( this, ResId( FT_LOGIN_USERNAME ) ),
+ aNameED ( this, ResId( ED_LOGIN_USERNAME ) ),
+ aNameInfo ( this, ResId( INFO_LOGIN_USERNAME ) ),
+ aPasswordFT ( this, ResId( FT_LOGIN_PASSWORD ) ),
+ aPasswordED ( this, ResId( ED_LOGIN_PASSWORD ) ),
+ aAccountFT ( this, ResId( FT_LOGIN_ACCOUNT ) ),
+ aAccountED ( this, ResId( ED_LOGIN_ACCOUNT ) ),
+ aSavePasswdBtn ( this, ResId( CB_LOGIN_SAVEPASSWORD ) ),
+ aLoginGB ( this, ResId( GB_LOGIN_LOGIN ) ),
+ aOKBtn ( this, ResId( BTN_LOGIN_OK ) ),
+ aCancelBtn ( this, ResId( BTN_LOGIN_CANCEL ) ),
+ aHelpBtn ( this, ResId( BTN_LOGIN_HELP ) )
+
+{
+ // Einlog-Ort eintragen
+ String aServer;
+
+ if ( ( ( nFlags & LF_NO_ACCOUNT ) == LF_NO_ACCOUNT ) && rRealm.Len() )
+ {
+ aServer = rRealm;
+ ( ( aServer += ' ' ) += String( ResId( STR_LOGIN_AT ) ) ) += ' ';
+ }
+ aServer += rServer;
+ String aTxt = aRequestInfo.GetText();
+ aTxt.SearchAndReplaceAscii( "%1", aServer );
+ aRequestInfo.SetText( aTxt );
+
+ FreeResource();
+
+ aPathED.SetMaxTextLen( _MAX_PATH );
+ aNameED.SetMaxTextLen( _MAX_PATH );
+
+ aOKBtn.SetClickHdl( LINK( this, LoginDialog, OKHdl_Impl ) );
+ aPathBtn.SetClickHdl( LINK( this, LoginDialog, PathHdl_Impl ) );
+
+ HideControls_Impl( nFlags );
+};
+
+// -----------------------------------------------------------------------
+
+void LoginDialog::SetName( const String& rNewName )
+{
+ aNameED.SetText( rNewName );
+ aNameInfo.SetText( rNewName );
+}
+
+// -----------------------------------------------------------------------
+
+void LoginDialog::ClearPassword()
+{
+ aPasswordED.SetText( String() );
+
+ if ( aNameED.GetText().Len() == 0 )
+ aNameED.GrabFocus();
+ else
+ aPasswordED.GrabFocus();
+};
+
+// -----------------------------------------------------------------------
+
+void LoginDialog::ClearAccount()
+{
+ aAccountED.SetText( String() );
+ aAccountED.GrabFocus();
+};
+
diff --git a/uui/source/logindlg.hrc b/uui/source/logindlg.hrc
new file mode 100644
index 000000000000..ed77366d9d97
--- /dev/null
+++ b/uui/source/logindlg.hrc
@@ -0,0 +1,91 @@
+/*************************************************************************
+ *
+ * $RCSfile: logindlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_LOGINDLG_HRC
+#define UUI_LOGINDLG_HRC
+
+//============================================================================
+#define INFO_LOGIN_ERROR 10
+#define GB_LOGIN_ERROR 11
+
+#define INFO_LOGIN_REQUEST 20
+#define FT_LOGIN_PATH 21
+#define ED_LOGIN_PATH 22
+#define INFO_LOGIN_PATH 23
+#define BTN_LOGIN_PATH 24
+#define FT_LOGIN_USERNAME 25
+#define ED_LOGIN_USERNAME 26
+#define INFO_LOGIN_USERNAME 27
+#define FT_LOGIN_PASSWORD 28
+#define ED_LOGIN_PASSWORD 29
+#define FT_LOGIN_ACCOUNT 30
+#define ED_LOGIN_ACCOUNT 31
+#define CB_LOGIN_SAVEPASSWORD 32
+#define GB_LOGIN_LOGIN 33
+
+#define BTN_LOGIN_OK 50
+#define BTN_LOGIN_CANCEL 51
+#define BTN_LOGIN_HELP 52
+
+#define STR_LOGIN_AT 60
+
+#endif // UUI_LOGINDLG_HRC
+
diff --git a/uui/source/logindlg.hxx b/uui/source/logindlg.hxx
new file mode 100644
index 000000000000..7916262024a5
--- /dev/null
+++ b/uui/source/logindlg.hxx
@@ -0,0 +1,151 @@
+/*************************************************************************
+ *
+ * $RCSfile: logindlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_LOGINDLG_HXX
+#define UUI_LOGINDLG_HXX
+
+#ifndef _STDCTRL_HXX
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_DIALOG_HXX
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_EDIT_HXX
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+
+//============================================================================
+#define LF_NO_PATH 0x0001 // "Pfad" verstecken
+#define LF_NO_USERNAME 0x0002 // "Name" verstecken
+#define LF_NO_PASSWORD 0x0004 // "Passwort" verstecken
+#define LF_NO_SAVEPASSWORD 0x0008 // "Passwort speichern" verstecken
+#define LF_NO_ERRORTEXT 0x0010 // Meldung verstecken
+#define LF_PATH_READONLY 0x0020 // "Pfad" readonly
+#define LF_USERNAME_READONLY 0x0040 // "Name" readonly
+#define LF_NO_ACCOUNT 0x0080 // "Account" verstecken
+
+//============================================================================
+class LoginDialog : public ModalDialog
+{
+ FixedInfo aErrorInfo;
+ GroupBox aErrorGB;
+ FixedInfo aRequestInfo;
+ FixedText aPathFT;
+ Edit aPathED;
+ FixedInfo aPathInfo;
+ PushButton aPathBtn;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedInfo aNameInfo;
+ FixedText aPasswordFT;
+ Edit aPasswordED;
+ FixedText aAccountFT;
+ Edit aAccountED;
+ CheckBox aSavePasswdBtn;
+ GroupBox aLoginGB;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ void HideControls_Impl( USHORT nFlags );
+
+ DECL_LINK( OKHdl_Impl, OKButton * );
+ DECL_LINK( PathHdl_Impl, PushButton * );
+
+public:
+ LoginDialog( Window* pParent, USHORT nFlags,
+ const String& rServer, const String& rRealm,
+ ResMgr * pResMgr );
+
+ String GetPath() const { return aPathED.GetText(); }
+ void SetPath( const String& rNewPath )
+ { aPathED.SetText( rNewPath );
+ aPathInfo.SetText( rNewPath );}
+ String GetName() const { return aNameED.GetText(); }
+ void SetName( const String& rNewName );
+ String GetPassword() const { return aPasswordED.GetText(); }
+ void SetPassword( const String& rNew )
+ { aPasswordED.SetText( rNew ); }
+ String GetAccount() const { return aAccountED.GetText(); }
+ void SetAccount( const String& rNew )
+ { aAccountED.SetText( rNew ); }
+ BOOL IsSavePassword() const
+ { return aSavePasswdBtn.IsChecked(); }
+ void SetSavePassword( BOOL bSave )
+ { aSavePasswdBtn.Check( bSave ); }
+ void SetSavePasswordText( const String& rTxt )
+ { aSavePasswdBtn.SetText( rTxt ); }
+ void SetErrorText( const String& rTxt )
+ { aErrorInfo.SetText( rTxt ); }
+ void SetLoginRequestText( const String& rTxt )
+ { aRequestInfo.SetText( rTxt ); }
+ void ClearPassword();
+ void ClearAccount();
+};
+
+#endif // UUI_LOGINDLG_HXX
+
diff --git a/uui/source/logindlg.src b/uui/source/logindlg.src
new file mode 100644
index 000000000000..46e92a47df24
--- /dev/null
+++ b/uui/source/logindlg.src
@@ -0,0 +1,388 @@
+/*************************************************************************
+ *
+ * $RCSfile: logindlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef UUI_IDS_HRC
+#include <ids.hrc>
+#endif
+#ifndef UUI_LOGINDLG_HRC
+#include <logindlg.hrc>
+#endif
+
+ModalDialog DLG_LOGIN
+{
+ HelpId = HID_DLG_LOGIN ;
+ Border = TRUE ;
+ Moveable = TRUE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 265 , 158 ) ;
+ Text = "Benutzername und Passwort erforderlich" ;
+ Text [ English ] = "User Name and Password required" ;
+ FixedText INFO_LOGIN_ERROR
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 185 , 18 ) ;
+ WordBreak = TRUE ;
+ };
+ GroupBox GB_LOGIN_ERROR
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 197 , 35 ) ;
+ Text = "Meldung vom Server" ;
+ Text [ English ] = "Report from server" ;
+ Text [ english_us ] = "Message from server" ;
+ Text [ portuguese_brazilian ] = "Meldung vom Server" ;
+ Text [ swedish ] = "Meddelande frn servern" ;
+ Text [ danish ] = "Melding fra serveren" ;
+ Text [ italian ] = "Segnalazione dal server" ;
+ Text [ spanish ] = "Mensaje del servidor" ;
+ Text [ french ] = "Message en provenance du serveur" ;
+ Text [ dutch ] = "Melding van de server" ;
+ Text [ portuguese ] = "Mensagem do servidor" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wiadomo z serwera";
+ Text[ japanese ] = "ްү";
+ Text[ chinese_traditional ] = "Ai";
+ Text[ greek ] = " ";
+ Text[ korean ] = "κ ޽";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Sunucudan ileti";
+ };
+ FixedText INFO_LOGIN_REQUEST
+ {
+ Pos = MAP_APPFONT ( 12 , 55 ) ;
+ Size = MAP_APPFONT ( 185 , 18 ) ;
+ WordBreak = TRUE ;
+ Text = "Bitte geben Sie hier Benutzernamen und Passwort fr %1 ein." ;
+ Text [ English ] = "Please enter user name and password here for %1." ;
+ Text [ portuguese ] = "Especifique o nome do utilizador e a senha para %1." ;
+ Text [ english_us ] = "Please enter user name and password for %1 here." ;
+ Text [ portuguese_brazilian ] = "Bitte geben Sie hier Benutzernamen und Passwort fr %1 ein." ;
+ Text [ swedish ] = "Var vnlig och mata in anvndarnamn och lsenord hr fr %1." ;
+ Text [ danish ] = "Indtast her venligst brugernavnet og adgangkoden for %1." ;
+ Text [ italian ] = "Digitate qui il nome dell'utente e la password per %1." ;
+ Text [ spanish ] = "Especifique su nombre de usuario y su contrasea para %1." ;
+ Text [ french ] = "Veuilez saisir votre nom d'utilisateur et votre mot de passe pour %1." ;
+ Text [ dutch ] = "Vermeld hier de gebruiker en het wachtwoord voor %1." ;
+ Text[ chinese_simplified ] = "ڴΪ %1 ûͿ";
+ Text[ russian ] = ", , %1.";
+ Text[ polish ] = "Wpisz nazwisko uytkownika i haso dla %1";
+ Text[ japanese ] = " %1 հް߽ܰނ͂ĂB";
+ Text[ chinese_traditional ] = "Ь %1 JϥΦWMKXC";
+ Text[ greek ] = " %1.";
+ Text[ korean ] = "⿡ ̸ %1 н带 ԷϽʽÿ.";
+ Text[ arabic ] = " %1 .";
+ Text[ turkish ] = "%1 iin buraya kullanc ad ve ifre girin.";
+ };
+ FixedText FT_LOGIN_PATH
+ {
+ Pos = MAP_APPFONT ( 12 , 77 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "~Pfad" ;
+ Text [ English ] = "~Path" ;
+ Text [ english_us ] = "~Path" ;
+ Text [ portuguese_brazilian ] = "~Pfad" ;
+ Text [ swedish ] = "S~kvg" ;
+ Text [ danish ] = "Sti" ;
+ Text [ italian ] = "~Percorso" ;
+ Text [ spanish ] = "~Ruta" ;
+ Text [ french ] = "~Chemin" ;
+ Text [ dutch ] = "~Pad" ;
+ Text [ portuguese ] = "~Atalho" ;
+ Text[ chinese_simplified ] = "·(~P)";
+ Text[ russian ] = "";
+ Text[ polish ] = "cieka";
+ Text[ japanese ] = "߽(~H)";
+ Text[ chinese_traditional ] = "|(~H)";
+ Text[ greek ] = "";
+ Text[ korean ] = "(~H)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Veri yolu";
+ };
+ Edit ED_LOGIN_PATH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 76 ) ;
+ Size = MAP_APPFONT ( 114 , 12 ) ;
+ };
+ FixedText INFO_LOGIN_PATH
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 77 ) ;
+ Size = MAP_APPFONT ( 131 , 10 ) ;
+ };
+ PushButton BTN_LOGIN_PATH
+ {
+ Pos = MAP_APPFONT ( 183 , 75 ) ;
+ Size = MAP_APPFONT ( 14 , 14 ) ;
+ Text = "~..." ;
+ };
+ FixedText FT_LOGIN_USERNAME
+ {
+ Pos = MAP_APPFONT ( 12 , 92 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "~Benutzername" ;
+ Text [ English ] = "~Username" ;
+ Text [ english_us ] = "~User name" ;
+ Text [ portuguese_brazilian ] = "~Benutzername" ;
+ Text [ swedish ] = "~Anvndarnamn" ;
+ Text [ danish ] = "Brugernavn" ;
+ Text [ italian ] = "Nome utente" ;
+ Text [ spanish ] = "~Nombre de usuario" ;
+ Text [ french ] = "~Nom d'utilisateur" ;
+ Text [ dutch ] = "Naam ~gebruiker" ;
+ Text [ portuguese ] = "~Nome do utilizador" ;
+ Text[ chinese_simplified ] = "û(~U)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Nazwisko uytkownika";
+ Text[ japanese ] = "հް(~U)";
+ Text[ chinese_traditional ] = "ϥΦW(~U)";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ̸(~U)";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Kullanc ad";
+ };
+ Edit ED_LOGIN_USERNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 91 ) ;
+ Size = MAP_APPFONT ( 131 , 12 ) ;
+ };
+ FixedText INFO_LOGIN_USERNAME
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 92 ) ;
+ Size = MAP_APPFONT ( 131 , 10 ) ;
+ };
+ FixedText FT_LOGIN_PASSWORD
+ {
+ Pos = MAP_APPFONT ( 12 , 107 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "P~asswort" ;
+ Text [ English ] = "P~assword" ;
+ Text [ english_us ] = "Pass~word" ;
+ Text [ portuguese_brazilian ] = "P~asswort" ;
+ Text [ swedish ] = "Lsen~ord" ;
+ Text [ danish ] = "Adgangskode" ;
+ Text [ italian ] = "P~assword" ;
+ Text [ spanish ] = "~Contrasea" ;
+ Text [ french ] = "~Mot de passe" ;
+ Text [ dutch ] = "W~achtwoord" ;
+ Text [ portuguese ] = "~Senha" ;
+ Text[ chinese_simplified ] = "(~W)";
+ Text[ russian ] = "";
+ Text[ polish ] = "Haso";
+ Text[ japanese ] = "߽ܰ(~W)";
+ Text[ chinese_traditional ] = "KX(~W)";
+ Text[ greek ] = " ~";
+ Text[ korean ] = "н(~W)";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "ifre";
+ };
+ Edit ED_LOGIN_PASSWORD
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 106 ) ;
+ Size = MAP_APPFONT ( 131 , 12 ) ;
+ PassWord = TRUE ;
+ };
+ FixedText FT_LOGIN_ACCOUNT
+ {
+ Pos = MAP_APPFONT ( 12 , 122 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "A~ccount" ;
+ Text [ English ] = "A~ccount" ;
+ Text[ english_us ] = "A~ccount";
+ Text[ portuguese ] = "~Conta";
+ Text[ russian ] = " ";
+ Text[ dutch ] = "A~ccount";
+ Text[ french ] = "C~ompte";
+ Text[ spanish ] = "~Cuenta";
+ Text[ italian ] = "A~ccount";
+ Text[ danish ] = "Konto";
+ Text[ swedish ] = "~Konto";
+ Text[ polish ] = "Konto";
+ Text[ portuguese_brazilian ] = "A~ccount";
+ Text[ japanese ] = "(~C)";
+ Text[ chinese_simplified ] = "ʺ(~C)";
+ Text[ chinese_traditional ] = "b(~C)";
+ Text[ greek ] = "~";
+ Text[ korean ] = "(~C)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Hesap";
+ };
+ Edit ED_LOGIN_ACCOUNT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 121 ) ;
+ Size = MAP_APPFONT ( 131 , 12 ) ;
+ PassWord = TRUE ;
+ };
+ CheckBox CB_LOGIN_SAVEPASSWORD
+ {
+ Pos = MAP_APPFONT ( 12 , 136 ) ;
+ Size = MAP_APPFONT ( 185 , 10 ) ;
+ Text = "Passwort ~speichern" ;
+ Text [ English ] = "~Save password" ;
+ Text [ english_us ] = "~Save password" ;
+ Text [ italian ] = "Salva pa~ssword" ;
+ Text [ spanish ] = "Guardar ~contrasea" ;
+ Text [ french ] = "~Enregistrer le mot de passe" ;
+ Text [ dutch ] = "Wachtwoord ~opslaan" ;
+ Text [ swedish ] = "~Spara lsenord" ;
+ Text [ danish ] = "Gem adgangskode" ;
+ Text [ portuguese ] = "Guardar ~senha" ;
+ Text [ portuguese_brazilian ] = "Passwort ~speichern" ;
+ Text[ chinese_simplified ] = "̿(~S)";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Zapisz haso";
+ Text[ japanese ] = "߽ܰނ̕ۑ(~S)";
+ Text[ chinese_traditional ] = "xsKX(~S)";
+ Text[ greek ] = "~ ";
+ Text[ korean ] = "н (~S)";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "ifreyi kaydet";
+ };
+ GroupBox GB_LOGIN_LOGIN
+ {
+ Pos = MAP_APPFONT ( 7 , 44 ) ;
+ Size = MAP_APPFONT ( 197 , 108 ) ;
+ Text = "Anmelden" ;
+ Text [ English ] = "Connect" ;
+ Text [ english_us ] = "Login" ;
+ Text [ portuguese_brazilian ] = "Anmelden" ;
+ Text [ swedish ] = "Logga in" ;
+ Text [ danish ] = "Login" ;
+ Text [ italian ] = "Login" ;
+ Text [ spanish ] = "Registrar" ;
+ Text [ french ] = "Login" ;
+ Text [ dutch ] = "Aanmelden" ;
+ Text [ portuguese ] = "Login" ;
+ Text[ chinese_simplified ] = "ǩ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Zarejestruj";
+ Text[ japanese ] = "۸޲";
+ Text[ chinese_traditional ] = "nJ";
+ Text[ greek ] = "";
+ Text[ korean ] = "α";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Oturum a";
+ };
+ OKButton BTN_LOGIN_OK
+ {
+ Pos = MAP_APPFONT ( 209 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ DefButton = TRUE ;
+ };
+ CancelButton BTN_LOGIN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 209 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ HelpButton BTN_LOGIN_HELP
+ {
+ Pos = MAP_APPFONT ( 209 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ String STR_LOGIN_AT
+ {
+ Text = "auf " ;
+ Text [ English ] = "at " ;
+ Text [ portuguese ] = "em " ;
+ Text [ english_us ] = "to " ;
+ Text [ portuguese_brazilian ] = "auf " ;
+ Text [ swedish ] = "p " ;
+ Text [ danish ] = "p " ;
+ Text [ italian ] = "su " ;
+ Text [ spanish ] = "en " ;
+ Text [ french ] = "sur " ;
+ Text [ dutch ] = "op " ;
+ Text[ chinese_simplified ] = " ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "na ";
+ Text[ japanese ] = "۸޲ݐ ";
+ Text[ chinese_traditional ] = "b ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "yeri ";
+ };
+ Text [ english_us ] = "User Name and Password Required" ;
+ Text [ portuguese_brazilian ] = "Benutzername und Passwort erforderlich" ;
+ Text [ swedish ] = "Anvndarnamn och lsenord ndvndigt" ;
+ Text [ danish ] = "Brugernavn og adgangskode pkrvet" ;
+ Text [ italian ] = "Nome utente e password sono necessari" ;
+ Text [ spanish ] = "Se requieren el nombre de usuario y la contrasea" ;
+ Text [ french ] = "Nom d'utilisateur et mot de passe requis" ;
+ Text [ dutch ] = "Naam gebruiker en wachtwoord vereist" ;
+ Text [ portuguese ] = "Requere-se nome de utilizador e senha" ;
+ Text[ chinese_simplified ] = "ҪûͿ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wymagane nazwisko uytkownika i haso";
+ Text[ japanese ] = "հް߽ܰނKv";
+ Text[ chinese_traditional ] = "пJϥΦWMKX";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ̸ н尡 ʿմϴ.";
+ Text[ arabic ] = " ";
+ Text[ turkish ] = "Kullanc ad ve ifre gerekli";
+};
+
diff --git a/uui/source/makefile.mk b/uui/source/makefile.mk
new file mode 100644
index 000000000000..71119dc0fc1b
--- /dev/null
+++ b/uui/source/makefile.mk
@@ -0,0 +1,83 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+#
+# 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 = ..
+PRJNAME = uui
+TARGET = source
+ENABLE_EXCEPTIONS = true
+
+.INCLUDE: svpre.mk
+.INCLUDE: settings.mk
+.INCLUDE: sv.mk
+
+SLOFILES = \
+ $(SLO)$/cookiedg.obj \
+ $(SLO)$/iahndl.obj \
+ $(SLO)$/logindlg.obj \
+ $(SLO)$/services.obj
+
+SRCFILES = \
+ cookiedg.src \
+ ids.src \
+ logindlg.src
+
+.INCLUDE: target.mk
diff --git a/uui/source/services.cxx b/uui/source/services.cxx
new file mode 100644
index 000000000000..98f07784b1f0
--- /dev/null
+++ b/uui/source/services.cxx
@@ -0,0 +1,187 @@
+/*************************************************************************
+ *
+ * $RCSfile: services.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _COM_SUN_STAR_REGISTRY_XREGISTRYKEY_HPP_
+#include <com/sun/star/registry/XRegistryKey.hpp>
+#endif
+#ifndef _CPPU_MACROS_HXX_
+#include <cppu/macros.hxx>
+#endif
+#ifndef _CPPUHELPER_FACTORY_HXX_
+#include <cppuhelper/factory.hxx>
+#endif
+#ifndef _RTL_USTRING_HXX_
+#include <rtl/ustring.hxx>
+#endif
+#ifndef _SAL_TYPES_H_
+#include <sal/types.h>
+#endif
+#ifndef _UNO_ENVIRONMENT_H_
+#include <uno/environment.h>
+#endif
+
+#ifndef UUI_IAHNDL_HXX
+#include <iahndl.hxx>
+#endif
+
+using namespace com::sun::star;
+
+//============================================================================
+//
+// component_getImplementationEnvironment
+//
+//============================================================================
+
+extern "C" void SAL_CALL
+component_getImplementationEnvironment(sal_Char const ** pEnvTypeName,
+ uno_Environment **)
+{
+ *pEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
+}
+
+//============================================================================
+//
+// component_getDescription
+//
+//============================================================================
+
+extern "C" sal_Char const * SAL_CALL component_getDescription()
+{
+ return "UCB User Interface Interaction Handler";
+}
+
+//============================================================================
+//
+// component_writeInfo
+//
+//============================================================================
+
+extern "C" sal_Bool SAL_CALL component_writeInfo(void *, void * pRegistryKey)
+{
+ bool bSuccess = pRegistryKey != 0;
+ uno::Reference< registry::XRegistryKey > xKey;
+ if (bSuccess)
+ {
+ rtl::OUString aKeyName(rtl::OUString::createFromAscii("/"));
+ aKeyName += rtl::OUString::createFromAscii(
+ UUIInteractionHandler::m_aImplementationName);
+ aKeyName += rtl::OUString::createFromAscii("/UNO/SERVICES");
+ try
+ {
+ xKey = static_cast< registry::XRegistryKey * >(pRegistryKey)->
+ createKey(aKeyName);
+ }
+ catch (registry::InvalidRegistryException &) {}
+ bSuccess = xKey.is() != false;
+ }
+ if (bSuccess)
+ {
+ uno::Sequence< rtl::OUString >
+ aServiceNames(
+ UUIInteractionHandler::getSupportedServiceNames_static());
+ for (sal_Int32 i = 0; i < aServiceNames.getLength(); ++i)
+ try
+ {
+ xKey->createKey(aServiceNames[i]);
+ }
+ catch (registry::InvalidRegistryException &)
+ {
+ bSuccess = false;
+ break;
+ }
+ }
+ return bSuccess;
+}
+
+//============================================================================
+//
+// component_getFactory
+//
+//============================================================================
+
+extern "C" void * SAL_CALL component_getFactory(sal_Char const * pImplName,
+ void * pServiceManager,
+ void *)
+{
+ void * pFactory = 0;
+ if (pServiceManager
+ && rtl_str_compare(pImplName,
+ UUIInteractionHandler::m_aImplementationName)
+ == 0)
+ {
+ uno::Reference< lang::XSingleServiceFactory >
+ xTheFactory(
+ cppu::createOneInstanceFactory(
+ static_cast< lang::XMultiServiceFactory * >(
+ pServiceManager),
+ rtl::OUString::createFromAscii(
+ UUIInteractionHandler::m_aImplementationName),
+ &UUIInteractionHandler::createInstance,
+ UUIInteractionHandler::getSupportedServiceNames_static()));
+ if (xTheFactory.is())
+ {
+ xTheFactory->acquire();
+ pFactory = xTheFactory.get();
+ }
+ }
+ return pFactory;
+}
+
diff --git a/uui/util/makefile.mk b/uui/util/makefile.mk
new file mode 100644
index 000000000000..74e31612d4e1
--- /dev/null
+++ b/uui/util/makefile.mk
@@ -0,0 +1,96 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:04:11 $
+#
+# 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 = ..
+PRJNAME = uui
+TARGET = uui
+RESTARGET = $(TARGET)
+GEN_HID = true
+NO_BSYMBOLIC = true
+USE_DEFFILE = true
+
+.INCLUDE: svpre.mk
+.INCLUDE: settings.mk
+.INCLUDE: sv.mk
+
+SHL1TARGET = $(TARGET)$(UPD)$(DLLPOSTFIX)
+SHL1IMPLIB = i$(TARGET)
+SHL1DEF = $(MISC)$/$(SHL1TARGET).def
+SHL1LIBS = \
+ $(SLB)$/source.lib
+SHL1STDLIBS = \
+ $(CPPUHELPERLIB) \
+ $(CPPULIB) \
+ $(SALLIB) \
+ $(SVTOOLLIB) \
+ $(TOOLSLIB) \
+ $(VCLLIB)
+
+DEF1NAME = $(SHL1TARGET)
+DEF1DES = Universal Content Broker User Interface
+DEF1EXPORTFILE = exports.dxp
+
+RESLIB1NAME = $(RESTARGET)
+RESLIB1SRSFILES = \
+ $(SRS)$/source.srs
+
+.INCLUDE: target.mk