<commit_before>/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: linkdlg.cxx,v $
 *
 *  $Revision: 1.11 $
 *
 *  last change: $Author: vg $ $Date: 2006-11-22 10:35:25 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 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
 *
 ************************************************************************/

// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_svx.hxx"

#ifdef SVX_DLLIMPLEMENTATION
#undef SVX_DLLIMPLEMENTATION
#endif

#include <linkdlg.hxx>

#ifndef _SV_SVAPP_HXX //autogen
#include <vcl/svapp.hxx>
#endif

#include <tools/urlobj.hxx>
#include <svtools/svmedit.hxx>
#include <svtools/filedlg.hxx>
#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/group.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/timer.hxx>
#include <svtools/svtabbx.hxx>

#include <svuidlg.hrc>
#include <sfx2/linkmgr.hxx>
#include <sfx2/linksrc.hxx>
#include <svtools/soerr.hxx>
#include <sfx2/lnkbase.hxx>
#include <sfx2/objsh.hxx>

#include "dialmgr.hxx"

#define _SVSTDARR_USHORTS
#include <svtools/svstdarr.hxx>

#define MAX_FILENAME    18
#define MAX_LINKNAME    18
#define MAX_TYPENAME    15
#define MAX_UPDATENAME  10

#define FILEOBJECT ( OBJECT_CLIENT_FILE & ~OBJECT_CLIENT_SO )

using namespace sfx2;

SV_DECL_IMPL_REF_LIST(SvBaseLink,SvBaseLink*)

// Achtung im Code wird dieses Array direkt (0, 1, ...) indiziert
static long nTabs[] =
    {   4, // Number of Tabs
        0, 77, 144, 209
    };


SvBaseLinksDlg::SvBaseLinksDlg( Window * pParent, SvLinkManager* pMgr, BOOL bHtml )
    : ModalDialog( pParent, ResId( MD_UPDATE_BASELINKS, DIALOG_MGR() ) ),
    aFtFiles( this, ResId( FT_FILES ) ),
    aFtLinks( this, ResId( FT_LINKS ) ),
    aFtType( this, ResId( FT_TYPE ) ),
    aFtStatus( this, ResId( FT_STATUS ) ),
    aCancelButton1( this, ResId( 1 ) ),
    aHelpButton1( this, ResId( 1 ) ),
    aPbUpdateNow( this, ResId( PB_UPDATE_NOW ) ),
    aPbOpenSource( this, ResId( PB_OPEN_SOURCE ) ),
    aPbChangeSource( this, ResId( PB_CHANGE_SOURCE ) ),
    aPbBreakLink( this, ResId( PB_BREAK_LINK ) ),
    aFtFiles2( this, ResId( FT_FILES2 ) ),
    aFtSource2( this, ResId( FT_SOURCE2 ) ),
    aFtType2( this, ResId( FT_TYPE2 ) ),
    aFtUpdate( this, ResId( FT_UPDATE ) ),
    aRbAutomatic( this, ResId( RB_AUTOMATIC ) ),
    aRbManual( this, ResId( RB_MANUAL ) ),
    aFtFullFileName( this, ResId( FT_FULL_FILE_NAME ) ),
    aFtFullSourceName( this, ResId( FT_FULL_SOURCE_NAME ) ),
    aFtFullTypeName( this, ResId( FT_FULL_TYPE_NAME ) ),
    aStrAutolink( ResId( STR_AUTOLINK, DIALOG_MGR() ) ),
    aStrManuallink( ResId( STR_MANUALLINK, DIALOG_MGR() ) ),
    aStrBrokenlink( ResId( STR_BROKENLINK, DIALOG_MGR() ) ),
    aStrGraphiclink( ResId( STR_GRAPHICLINK, DIALOG_MGR() ) ),
    aStrButtonclose( ResId( STR_BUTTONCLOSE, DIALOG_MGR() ) ),
    aStrCloselinkmsg( ResId( STR_CLOSELINKMSG, DIALOG_MGR() ) ),
    aStrCloselinkmsgMulti( ResId( STR_CLOSELINKMSG_MULTI, DIALOG_MGR() ) ),
    aStrWaitinglink( ResId( STR_WAITINGLINK, DIALOG_MGR() ) ),
    pLinkMgr( NULL ),
    bHtmlMode(bHtml),
    aTbLinks( this, ResId(TB_LINKS ) )
{<commit_msg>INTEGRATION: CWS residcleanup (1.11.148); FILE MERGED 2007/02/21 22:04:08 pl 172.16.31.10: #i74635# get rid of global ResMgr<commit_after>/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: linkdlg.cxx,v $
 *
 *  $Revision: 1.12 $
 *
 *  last change: $Author: rt $ $Date: 2007-04-26 07:35:38 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 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
 *
 ************************************************************************/

// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_svx.hxx"

#ifdef SVX_DLLIMPLEMENTATION
#undef SVX_DLLIMPLEMENTATION
#endif

#include <linkdlg.hxx>

#ifndef _SV_SVAPP_HXX //autogen
#include <vcl/svapp.hxx>
#endif

#include <tools/urlobj.hxx>
#include <svtools/svmedit.hxx>
#include <svtools/filedlg.hxx>
#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/group.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/timer.hxx>
#include <svtools/svtabbx.hxx>

#include <svuidlg.hrc>
#include <sfx2/linkmgr.hxx>
#include <sfx2/linksrc.hxx>
#include <svtools/soerr.hxx>
#include <sfx2/lnkbase.hxx>
#include <sfx2/objsh.hxx>

#include "dialmgr.hxx"

#define _SVSTDARR_USHORTS
#include <svtools/svstdarr.hxx>

#define MAX_FILENAME    18
#define MAX_LINKNAME    18
#define MAX_TYPENAME    15
#define MAX_UPDATENAME  10

#define FILEOBJECT ( OBJECT_CLIENT_FILE & ~OBJECT_CLIENT_SO )

using namespace sfx2;

SV_DECL_IMPL_REF_LIST(SvBaseLink,SvBaseLink*)

// Achtung im Code wird dieses Array direkt (0, 1, ...) indiziert
static long nTabs[] =
    {   4, // Number of Tabs
        0, 77, 144, 209
    };


SvBaseLinksDlg::SvBaseLinksDlg( Window * pParent, SvLinkManager* pMgr, BOOL bHtml )
    : ModalDialog( pParent, SVX_RES( MD_UPDATE_BASELINKS ) ),
    aFtFiles( this, SVX_RES( FT_FILES ) ),
    aFtLinks( this, SVX_RES( FT_LINKS ) ),
    aFtType( this, SVX_RES( FT_TYPE ) ),
    aFtStatus( this, SVX_RES( FT_STATUS ) ),
    aCancelButton1( this, SVX_RES( 1 ) ),
    aHelpButton1( this, SVX_RES( 1 ) ),
    aPbUpdateNow( this, SVX_RES( PB_UPDATE_NOW ) ),
    aPbOpenSource( this, SVX_RES( PB_OPEN_SOURCE ) ),
    aPbChangeSource( this, SVX_RES( PB_CHANGE_SOURCE ) ),
    aPbBreakLink( this, SVX_RES( PB_BREAK_LINK ) ),
    aFtFiles2( this, SVX_RES( FT_FILES2 ) ),
    aFtSource2( this, SVX_RES( FT_SOURCE2 ) ),
    aFtType2( this, SVX_RES( FT_TYPE2 ) ),
    aFtUpdate( this, SVX_RES( FT_UPDATE ) ),
    aRbAutomatic( this, SVX_RES( RB_AUTOMATIC ) ),
    aRbManual( this, SVX_RES( RB_MANUAL ) ),
    aFtFullFileName( this, SVX_RES( FT_FULL_FILE_NAME ) ),
    aFtFullSourceName( this, SVX_RES( FT_FULL_SOURCE_NAME ) ),
    aFtFullTypeName( this, SVX_RES( FT_FULL_TYPE_NAME ) ),
    aStrAutolink( SVX_RES( STR_AUTOLINK ) ),
    aStrManuallink( SVX_RES( STR_MANUALLINK ) ),
    aStrBrokenlink( SVX_RES( STR_BROKENLINK ) ),
    aStrGraphiclink( SVX_RES( STR_GRAPHICLINK ) ),
    aStrButtonclose( SVX_RES( STR_BUTTONCLOSE ) ),
    aStrCloselinkmsg( SVX_RES( STR_CLOSELINKMSG ) ),
    aStrCloselinkmsgMulti( SVX_RES( STR_CLOSELINKMSG_MULTI ) ),
    aStrWaitinglink( SVX_RES( STR_WAITINGLINK ) ),
    pLinkMgr( NULL ),
    bHtmlMode(bHtml),
    aTbLinks( this, SVX_RES(TB_LINKS ) )
{
{'fraction_non_alphanumeric': 0.14840369547421353, 'fraction_numerical': 0.023622968073909484, 'mean_word_length': 4.102625298329356, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2336677', 'n_tokens_mistral': 3289, 'n_tokens_neox': 3108, 'n_words': 794}