1*2ee96f1cSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2ee96f1cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2ee96f1cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2ee96f1cSAndrew Rist * distributed with this work for additional information 6*2ee96f1cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2ee96f1cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2ee96f1cSAndrew Rist * "License"); you may not use this file except in compliance 9*2ee96f1cSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*2ee96f1cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*2ee96f1cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2ee96f1cSAndrew Rist * software distributed under the License is distributed on an 15*2ee96f1cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2ee96f1cSAndrew Rist * KIND, either express or implied. See the License for the 17*2ee96f1cSAndrew Rist * specific language governing permissions and limitations 18*2ee96f1cSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*2ee96f1cSAndrew Rist *************************************************************/ 21*2ee96f1cSAndrew Rist 22*2ee96f1cSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_cui.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "cuihyperdlg.hxx" 28cdf0e10cSrcweir #include <unotools/localfilehelper.hxx> 29cdf0e10cSrcweir #include <sfx2/filedlghelper.hxx> 30cdf0e10cSrcweir #include "com/sun/star/ui/dialogs/TemplateDescription.hpp" 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include "hldoctp.hxx" 33cdf0e10cSrcweir #include "hyperdlg.hrc" 34cdf0e10cSrcweir #include "hlmarkwn_def.hxx" //ADD CHINA001 35cdf0e10cSrcweir 36cdf0e10cSrcweir sal_Char __READONLY_DATA sHash[] = "#"; 37cdf0e10cSrcweir sal_Char __READONLY_DATA sFileScheme[] = INET_FILE_SCHEME; 38cdf0e10cSrcweir sal_Char __READONLY_DATA sNewsSRVScheme[] = "news://"; 39cdf0e10cSrcweir // TODO news:// is nonsense 40cdf0e10cSrcweir sal_Char __READONLY_DATA sHTTPScheme[] = INET_HTTP_SCHEME; 41cdf0e10cSrcweir 42cdf0e10cSrcweir /************************************************************************* 43cdf0e10cSrcweir |* 44cdf0e10cSrcweir |* Contructor / Destructor 45cdf0e10cSrcweir |* 46cdf0e10cSrcweir |************************************************************************/ 47cdf0e10cSrcweir 48cdf0e10cSrcweir SvxHyperlinkDocTp::SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemSet) 49cdf0e10cSrcweir : SvxHyperlinkTabPageBase ( pParent, CUI_RES( RID_SVXPAGE_HYPERLINK_DOCUMENT ), rItemSet ), 50cdf0e10cSrcweir maGrpDocument ( this, CUI_RES (GRP_DOCUMENT) ), 51cdf0e10cSrcweir maFtPath ( this, CUI_RES (FT_PATH_DOC) ), 52cdf0e10cSrcweir maCbbPath ( this, INET_PROT_FILE ), 53cdf0e10cSrcweir maBtFileopen ( this, CUI_RES (BTN_FILEOPEN) ), 54cdf0e10cSrcweir maGrpTarget ( this, CUI_RES (GRP_TARGET) ), 55cdf0e10cSrcweir maFtTarget ( this, CUI_RES (FT_TARGET_DOC) ), 56cdf0e10cSrcweir maEdTarget ( this, CUI_RES (ED_TARGET_DOC) ), 57cdf0e10cSrcweir maFtURL ( this, CUI_RES (FT_URL) ), 58cdf0e10cSrcweir maFtFullURL ( this, CUI_RES (FT_FULL_URL) ), 59cdf0e10cSrcweir maBtBrowse ( this, CUI_RES (BTN_BROWSE) ), 60cdf0e10cSrcweir mbMarkWndOpen ( sal_False ) 61cdf0e10cSrcweir { 62cdf0e10cSrcweir // Set HC bitmaps and disable display of bitmap names. 63cdf0e10cSrcweir maBtBrowse.SetModeImage( Image( CUI_RES( IMG_BROWSE_HC ) ), BMP_COLOR_HIGHCONTRAST ); 64cdf0e10cSrcweir maBtBrowse.EnableTextDisplay (sal_False); 65cdf0e10cSrcweir maBtFileopen.SetModeImage( Image( CUI_RES( IMG_FILEOPEN_HC ) ), BMP_COLOR_HIGHCONTRAST ); 66cdf0e10cSrcweir maBtFileopen.EnableTextDisplay (sal_False); 67cdf0e10cSrcweir 68cdf0e10cSrcweir InitStdControls(); 69cdf0e10cSrcweir FreeResource(); 70cdf0e10cSrcweir 71cdf0e10cSrcweir // Init URL-Box (pos&size, Open-Handler) 72cdf0e10cSrcweir maCbbPath.SetPosSizePixel ( LogicToPixel( Point( COL_2, 15 ), MAP_APPFONT ), 73cdf0e10cSrcweir LogicToPixel( Size ( 176 - COL_DIFF, 60), MAP_APPFONT ) ); 74cdf0e10cSrcweir maCbbPath.Show(); 75cdf0e10cSrcweir String aFileScheme( INET_FILE_SCHEME, RTL_TEXTENCODING_ASCII_US ); 76cdf0e10cSrcweir maCbbPath.SetBaseURL(aFileScheme); 77cdf0e10cSrcweir maCbbPath.SetHelpId( HID_HYPERDLG_DOC_PATH ); 78cdf0e10cSrcweir 79cdf0e10cSrcweir SetExchangeSupport (); 80cdf0e10cSrcweir 81cdf0e10cSrcweir // overload handlers 82cdf0e10cSrcweir maBtFileopen.SetClickHdl ( LINK ( this, SvxHyperlinkDocTp, ClickFileopenHdl_Impl ) ); 83cdf0e10cSrcweir maBtBrowse.SetClickHdl ( LINK ( this, SvxHyperlinkDocTp, ClickTargetHdl_Impl ) ); 84cdf0e10cSrcweir maCbbPath.SetModifyHdl ( LINK ( this, SvxHyperlinkDocTp, ModifiedPathHdl_Impl ) ); 85cdf0e10cSrcweir maEdTarget.SetModifyHdl ( LINK ( this, SvxHyperlinkDocTp, ModifiedTargetHdl_Impl ) ); 86cdf0e10cSrcweir 87cdf0e10cSrcweir maCbbPath.SetLoseFocusHdl( LINK ( this, SvxHyperlinkDocTp, LostFocusPathHdl_Impl ) ); 88cdf0e10cSrcweir 89cdf0e10cSrcweir maBtBrowse.SetAccessibleRelationMemberOf( &maGrpTarget ); 90cdf0e10cSrcweir maBtBrowse.SetAccessibleRelationLabeledBy( &maFtTarget ); 91cdf0e10cSrcweir maBtFileopen.SetAccessibleRelationMemberOf( &maGrpDocument ); 92cdf0e10cSrcweir maBtFileopen.SetAccessibleRelationLabeledBy( &maFtPath ); 93cdf0e10cSrcweir maTimer.SetTimeoutHdl ( LINK ( this, SvxHyperlinkDocTp, TimeoutHdl_Impl ) ); 94cdf0e10cSrcweir } 95cdf0e10cSrcweir 96cdf0e10cSrcweir SvxHyperlinkDocTp::~SvxHyperlinkDocTp () 97cdf0e10cSrcweir { 98cdf0e10cSrcweir } 99cdf0e10cSrcweir 100cdf0e10cSrcweir /************************************************************************* 101cdf0e10cSrcweir |* 102cdf0e10cSrcweir |* Fill all dialog-controls except controls in groupbox "more..." 103cdf0e10cSrcweir |* 104cdf0e10cSrcweir |************************************************************************/ 105cdf0e10cSrcweir 106cdf0e10cSrcweir void SvxHyperlinkDocTp::FillDlgFields ( String& aStrURL ) 107cdf0e10cSrcweir { 108cdf0e10cSrcweir INetURLObject aURL ( aStrURL ); 109cdf0e10cSrcweir 110cdf0e10cSrcweir String aStrMark; 111cdf0e10cSrcweir xub_StrLen nPos = aStrURL.SearchAscii( sHash ); 112cdf0e10cSrcweir // path 113cdf0e10cSrcweir maCbbPath.SetText ( aStrURL.Copy( 0, ( nPos == STRING_NOTFOUND ? aStrURL.Len() : nPos ) ) ); 114cdf0e10cSrcweir 115cdf0e10cSrcweir // set target in document at editfield 116cdf0e10cSrcweir if ( nPos != STRING_NOTFOUND && nPos<aStrURL.Len()-1 ) 117cdf0e10cSrcweir aStrMark = aStrURL.Copy( nPos+1, aStrURL.Len() ); 118cdf0e10cSrcweir maEdTarget.SetText ( aStrMark ); 119cdf0e10cSrcweir 120cdf0e10cSrcweir ModifiedPathHdl_Impl ( NULL ); 121cdf0e10cSrcweir } 122cdf0e10cSrcweir 123cdf0e10cSrcweir /************************************************************************* 124cdf0e10cSrcweir |* 125cdf0e10cSrcweir |* retrieve current url-string 126cdf0e10cSrcweir |* 127cdf0e10cSrcweir |************************************************************************/ 128cdf0e10cSrcweir 129cdf0e10cSrcweir String SvxHyperlinkDocTp::GetCurrentURL () 130cdf0e10cSrcweir { 131cdf0e10cSrcweir // get data from dialog-controls 132cdf0e10cSrcweir String aStrURL; 133cdf0e10cSrcweir String aStrPath ( maCbbPath.GetText() ); 134cdf0e10cSrcweir const String aBaseURL ( maCbbPath.GetBaseURL() ); 135cdf0e10cSrcweir String aStrMark( maEdTarget.GetText() ); 136cdf0e10cSrcweir 137cdf0e10cSrcweir if ( aStrPath != aEmptyStr ) 138cdf0e10cSrcweir { 139cdf0e10cSrcweir INetURLObject aURL( aStrPath ); 140cdf0e10cSrcweir if ( aURL.GetProtocol() != INET_PROT_NOT_VALID ) // maybe the path is already a valid 141cdf0e10cSrcweir aStrURL = aStrPath; // hyperlink, then we can use this path directly 142cdf0e10cSrcweir else 143cdf0e10cSrcweir utl::LocalFileHelper::ConvertSystemPathToURL( aStrPath, aBaseURL, aStrURL ); 144cdf0e10cSrcweir 145cdf0e10cSrcweir //#105788# always create a URL even if it is not valid 146cdf0e10cSrcweir if( aStrURL == aEmptyStr ) 147cdf0e10cSrcweir aStrURL = aStrPath; 148cdf0e10cSrcweir } 149cdf0e10cSrcweir 150cdf0e10cSrcweir if( aStrMark != aEmptyStr ) 151cdf0e10cSrcweir { 152cdf0e10cSrcweir aStrURL.AppendAscii( sHash ); 153cdf0e10cSrcweir aStrURL += aStrMark; 154cdf0e10cSrcweir } 155cdf0e10cSrcweir 156cdf0e10cSrcweir return aStrURL; 157cdf0e10cSrcweir } 158cdf0e10cSrcweir 159cdf0e10cSrcweir /************************************************************************* 160cdf0e10cSrcweir |* 161cdf0e10cSrcweir |* retrieve and prepare data from dialog-fields 162cdf0e10cSrcweir |* 163cdf0e10cSrcweir |************************************************************************/ 164cdf0e10cSrcweir 165cdf0e10cSrcweir void SvxHyperlinkDocTp::GetCurentItemData ( String& aStrURL, String& aStrName, 166cdf0e10cSrcweir String& aStrIntName, String& aStrFrame, 167cdf0e10cSrcweir SvxLinkInsertMode& eMode ) 168cdf0e10cSrcweir { 169cdf0e10cSrcweir // get data from standard-fields 170cdf0e10cSrcweir aStrURL = GetCurrentURL(); 171cdf0e10cSrcweir 172cdf0e10cSrcweir if( aStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) 173cdf0e10cSrcweir aStrURL=aEmptyStr; 174cdf0e10cSrcweir 175cdf0e10cSrcweir GetDataFromCommonFields( aStrName, aStrIntName, aStrFrame, eMode ); 176cdf0e10cSrcweir } 177cdf0e10cSrcweir 178cdf0e10cSrcweir /************************************************************************* 179cdf0e10cSrcweir |* 180cdf0e10cSrcweir |* static method to create Tabpage 181cdf0e10cSrcweir |* 182cdf0e10cSrcweir |************************************************************************/ 183cdf0e10cSrcweir 184cdf0e10cSrcweir IconChoicePage* SvxHyperlinkDocTp::Create( Window* pWindow, const SfxItemSet& rItemSet ) 185cdf0e10cSrcweir { 186cdf0e10cSrcweir return( new SvxHyperlinkDocTp( pWindow, rItemSet ) ); 187cdf0e10cSrcweir } 188cdf0e10cSrcweir 189cdf0e10cSrcweir /************************************************************************* 190cdf0e10cSrcweir |* 191cdf0e10cSrcweir |* Set initial focus 192cdf0e10cSrcweir |* 193cdf0e10cSrcweir |************************************************************************/ 194cdf0e10cSrcweir 195cdf0e10cSrcweir void SvxHyperlinkDocTp::SetInitFocus() 196cdf0e10cSrcweir { 197cdf0e10cSrcweir maCbbPath.GrabFocus(); 198cdf0e10cSrcweir } 199cdf0e10cSrcweir 200cdf0e10cSrcweir /************************************************************************* 201cdf0e10cSrcweir |* 202cdf0e10cSrcweir |* Click on imagebutton : fileopen 203cdf0e10cSrcweir |* 204cdf0e10cSrcweir |************************************************************************/ 205cdf0e10cSrcweir 206cdf0e10cSrcweir IMPL_LINK ( SvxHyperlinkDocTp, ClickFileopenHdl_Impl, void *, EMPTYARG ) 207cdf0e10cSrcweir { 208cdf0e10cSrcweir // Open Fileopen-Dialog 209cdf0e10cSrcweir ::sfx2::FileDialogHelper aDlg( 210cdf0e10cSrcweir com::sun::star::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0, 211cdf0e10cSrcweir GetParent() ); 212cdf0e10cSrcweir String aOldURL( GetCurrentURL() ); 213cdf0e10cSrcweir if( aOldURL.EqualsIgnoreCaseAscii( sFileScheme, 0, sizeof( sFileScheme ) - 1 ) ) 214cdf0e10cSrcweir { 215cdf0e10cSrcweir aDlg.SetDisplayDirectory( aOldURL ); 216cdf0e10cSrcweir } 217cdf0e10cSrcweir 218cdf0e10cSrcweir DisableClose( sal_True ); 219cdf0e10cSrcweir ErrCode nError = aDlg.Execute(); 220cdf0e10cSrcweir DisableClose( sal_False ); 221cdf0e10cSrcweir 222cdf0e10cSrcweir if ( ERRCODE_NONE == nError ) 223cdf0e10cSrcweir { 224cdf0e10cSrcweir String aURL( aDlg.GetPath() ); 225cdf0e10cSrcweir String aPath; 226cdf0e10cSrcweir 227cdf0e10cSrcweir utl::LocalFileHelper::ConvertURLToSystemPath( aURL, aPath ); 228cdf0e10cSrcweir 229cdf0e10cSrcweir maCbbPath.SetBaseURL( aURL ); 230cdf0e10cSrcweir maCbbPath.SetText( aPath ); 231cdf0e10cSrcweir 232cdf0e10cSrcweir if ( aOldURL != GetCurrentURL() ) 233cdf0e10cSrcweir ModifiedPathHdl_Impl (NULL); 234cdf0e10cSrcweir } 235cdf0e10cSrcweir 236cdf0e10cSrcweir return( 0L ); 237cdf0e10cSrcweir } 238cdf0e10cSrcweir 239cdf0e10cSrcweir /************************************************************************* 240cdf0e10cSrcweir |* 241cdf0e10cSrcweir |* Click on imagebutton : target 242cdf0e10cSrcweir |* 243cdf0e10cSrcweir |************************************************************************/ 244cdf0e10cSrcweir 245cdf0e10cSrcweir IMPL_LINK ( SvxHyperlinkDocTp, ClickTargetHdl_Impl, void *, EMPTYARG ) 246cdf0e10cSrcweir { 247cdf0e10cSrcweir if ( GetPathType ( maStrURL ) == Type_ExistsFile || 248cdf0e10cSrcweir maStrURL == aEmptyStr || 249cdf0e10cSrcweir maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) || 250cdf0e10cSrcweir maStrURL.SearchAscii( sHash ) == 0 ) 251cdf0e10cSrcweir { 252cdf0e10cSrcweir mpMarkWnd->SetError( LERR_NOERROR ); 253cdf0e10cSrcweir 254cdf0e10cSrcweir EnterWait(); 255cdf0e10cSrcweir 256cdf0e10cSrcweir if ( maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) 257cdf0e10cSrcweir mpMarkWnd->RefreshTree ( aEmptyStr ); 258cdf0e10cSrcweir else 259cdf0e10cSrcweir mpMarkWnd->RefreshTree ( maStrURL ); 260cdf0e10cSrcweir 261cdf0e10cSrcweir LeaveWait(); 262cdf0e10cSrcweir } 263cdf0e10cSrcweir else 264cdf0e10cSrcweir mpMarkWnd->SetError( LERR_DOCNOTOPEN ); 265cdf0e10cSrcweir 266cdf0e10cSrcweir ShowMarkWnd (); 267cdf0e10cSrcweir 268cdf0e10cSrcweir return( 0L ); 269cdf0e10cSrcweir } 270cdf0e10cSrcweir 271cdf0e10cSrcweir /************************************************************************* 272cdf0e10cSrcweir |* 273cdf0e10cSrcweir |* Contens of combobox "Path" modified 274cdf0e10cSrcweir |* 275cdf0e10cSrcweir |************************************************************************/ 276cdf0e10cSrcweir 277cdf0e10cSrcweir IMPL_LINK ( SvxHyperlinkDocTp, ModifiedPathHdl_Impl, void *, EMPTYARG ) 278cdf0e10cSrcweir { 279cdf0e10cSrcweir maStrURL = GetCurrentURL(); 280cdf0e10cSrcweir 281cdf0e10cSrcweir maTimer.SetTimeout( 2500 ); 282cdf0e10cSrcweir maTimer.Start(); 283cdf0e10cSrcweir 284cdf0e10cSrcweir maFtFullURL.SetText( maStrURL ); 285cdf0e10cSrcweir 286cdf0e10cSrcweir return( 0L ); 287cdf0e10cSrcweir } 288cdf0e10cSrcweir 289cdf0e10cSrcweir /************************************************************************* 290cdf0e10cSrcweir |* 291cdf0e10cSrcweir |* If path-field was modify, to browse the new doc after timeout 292cdf0e10cSrcweir |* 293cdf0e10cSrcweir |************************************************************************/ 294cdf0e10cSrcweir 295cdf0e10cSrcweir IMPL_LINK ( SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, EMPTYARG ) 296cdf0e10cSrcweir { 297cdf0e10cSrcweir if ( IsMarkWndVisible() && ( GetPathType( maStrURL )==Type_ExistsFile || 298cdf0e10cSrcweir maStrURL == aEmptyStr || 299cdf0e10cSrcweir maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) ) 300cdf0e10cSrcweir { 301cdf0e10cSrcweir EnterWait(); 302cdf0e10cSrcweir 303cdf0e10cSrcweir if ( maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) 304cdf0e10cSrcweir mpMarkWnd->RefreshTree ( aEmptyStr ); 305cdf0e10cSrcweir else 306cdf0e10cSrcweir mpMarkWnd->RefreshTree ( maStrURL ); 307cdf0e10cSrcweir 308cdf0e10cSrcweir LeaveWait(); 309cdf0e10cSrcweir } 310cdf0e10cSrcweir 311cdf0e10cSrcweir return( 0L ); 312cdf0e10cSrcweir } 313cdf0e10cSrcweir 314cdf0e10cSrcweir /************************************************************************* 315cdf0e10cSrcweir |* 316cdf0e10cSrcweir |* Contens of editfield "Target" modified 317cdf0e10cSrcweir |* 318cdf0e10cSrcweir |************************************************************************/ 319cdf0e10cSrcweir 320cdf0e10cSrcweir IMPL_LINK ( SvxHyperlinkDocTp, ModifiedTargetHdl_Impl, void *, EMPTYARG ) 321cdf0e10cSrcweir { 322cdf0e10cSrcweir maStrURL = GetCurrentURL(); 323cdf0e10cSrcweir 324cdf0e10cSrcweir if ( IsMarkWndVisible() ) 325cdf0e10cSrcweir mpMarkWnd->SelectEntry ( maEdTarget.GetText() ); 326cdf0e10cSrcweir 327cdf0e10cSrcweir maFtFullURL.SetText( maStrURL ); 328cdf0e10cSrcweir 329cdf0e10cSrcweir return( 0L ); 330cdf0e10cSrcweir } 331cdf0e10cSrcweir 332cdf0e10cSrcweir /************************************************************************* 333cdf0e10cSrcweir |* 334cdf0e10cSrcweir |* editfield "Target" lost focus 335cdf0e10cSrcweir |* 336cdf0e10cSrcweir |************************************************************************/ 337cdf0e10cSrcweir 338cdf0e10cSrcweir IMPL_LINK ( SvxHyperlinkDocTp, LostFocusPathHdl_Impl, void *, EMPTYARG ) 339cdf0e10cSrcweir { 340cdf0e10cSrcweir maStrURL = GetCurrentURL(); 341cdf0e10cSrcweir 342cdf0e10cSrcweir maFtFullURL.SetText( maStrURL ); 343cdf0e10cSrcweir 344cdf0e10cSrcweir return (0L); 345cdf0e10cSrcweir } 346cdf0e10cSrcweir 347cdf0e10cSrcweir /************************************************************************* 348cdf0e10cSrcweir |* 349cdf0e10cSrcweir |* Get String from Bookmark-Wnd 350cdf0e10cSrcweir |* 351cdf0e10cSrcweir |************************************************************************/ 352cdf0e10cSrcweir 353cdf0e10cSrcweir void SvxHyperlinkDocTp::SetMarkStr ( String& aStrMark ) 354cdf0e10cSrcweir { 355cdf0e10cSrcweir maEdTarget.SetText ( aStrMark ); 356cdf0e10cSrcweir 357cdf0e10cSrcweir ModifiedTargetHdl_Impl ( NULL ); 358cdf0e10cSrcweir } 359cdf0e10cSrcweir 360cdf0e10cSrcweir /************************************************************************* 361cdf0e10cSrcweir |* 362cdf0e10cSrcweir |* retrieve kind of pathstr 363cdf0e10cSrcweir |* 364cdf0e10cSrcweir |************************************************************************/ 365cdf0e10cSrcweir 366cdf0e10cSrcweir SvxHyperlinkDocTp::EPathType SvxHyperlinkDocTp::GetPathType ( String& aStrPath ) 367cdf0e10cSrcweir { 368cdf0e10cSrcweir INetURLObject aURL( aStrPath, INET_PROT_FILE ); 369cdf0e10cSrcweir 370cdf0e10cSrcweir if( aURL.HasError() ) 371cdf0e10cSrcweir return Type_Invalid; 372cdf0e10cSrcweir else 373cdf0e10cSrcweir return Type_ExistsFile; 374cdf0e10cSrcweir } 375