acccfg.cxx (0782189e) | acccfg.cxx (42057499) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1353 unchanged lines hidden (view full) --- 1362 1363 return 0; 1364} 1365 1366//----------------------------------------------- 1367void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTitle ) 1368{ 1369 bool bSave = ( ( nBits & WB_SAVEAS ) == WB_SAVEAS ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1353 unchanged lines hidden (view full) --- 1362 1363 return 0; 1364} 1365 1366//----------------------------------------------- 1367void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTitle ) 1368{ 1369 bool bSave = ( ( nBits & WB_SAVEAS ) == WB_SAVEAS ); |
1370 short nDialogType = bSave ? css::ui::dialogs::TemplateDescription::FILESAVE_SIMPLE | 1370 short nDialogType = bSave ? css::ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION |
1371 : css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE; 1372 if ( m_pFileDlg ) 1373 delete m_pFileDlg; 1374 m_pFileDlg = new sfx2::FileDialogHelper( nDialogType, 0 ); 1375 1376 m_pFileDlg->SetTitle( rTitle ); 1377 m_pFileDlg->AddFilter( aFilterAllStr, DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) ); 1378 m_pFileDlg->AddFilter( aFilterCfgStr, DEFINE_CONST_UNICODE( "*.cfg" ) ); | 1371 : css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE; 1372 if ( m_pFileDlg ) 1373 delete m_pFileDlg; 1374 m_pFileDlg = new sfx2::FileDialogHelper( nDialogType, 0 ); 1375 1376 m_pFileDlg->SetTitle( rTitle ); 1377 m_pFileDlg->AddFilter( aFilterAllStr, DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) ); 1378 m_pFileDlg->AddFilter( aFilterCfgStr, DEFINE_CONST_UNICODE( "*.cfg" ) ); |
1379 m_pFileDlg->SetCurrentFilter( aFilterCfgStr ); |
|
1379 1380 Link aDlgClosedLink = bSave ? LINK( this, SfxAcceleratorConfigPage, SaveHdl ) 1381 : LINK( this, SfxAcceleratorConfigPage, LoadHdl ); 1382 m_pFileDlg->StartExecuteModal( aDlgClosedLink ); 1383} 1384 1385//----------------------------------------------- 1386sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& ) --- 148 unchanged lines hidden --- | 1380 1381 Link aDlgClosedLink = bSave ? LINK( this, SfxAcceleratorConfigPage, SaveHdl ) 1382 : LINK( this, SfxAcceleratorConfigPage, LoadHdl ); 1383 m_pFileDlg->StartExecuteModal( aDlgClosedLink ); 1384} 1385 1386//----------------------------------------------- 1387sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& ) --- 148 unchanged lines hidden --- |