Kaydet (Commit) 88899c4c authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS asyncdialogs (1.16.148); FILE MERGED

2006/09/20 15:03:59 pb 1.16.148.4: RESYNC: (1.18-1.19); FILE MERGED
2006/08/30 12:16:36 pb 1.16.148.3: RESYNC: (1.17-1.18); FILE MERGED
2006/03/22 10:19:07 pb 1.16.148.2: RESYNC: (1.16-1.17); FILE MERGED
2006/03/13 08:38:14 pb 1.16.148.1: fix: #i57125# GetFileFilterNameDlg() removed
üst 8e7aca5f
......@@ -4,9 +4,9 @@
*
* $RCSfile: uitool.cxx,v $
*
* $Revision: 1.19 $
* $Revision: 1.20 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:36:03 $
* last change: $Author: vg $ $Date: 2006-11-22 10:29:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -715,36 +715,6 @@ void SetDfltMetric( FieldUnit eMetric, BOOL bWeb )
SW_MOD()->ApplyUserMetric(eMetric, bWeb);
}
BOOL GetFileFilterNameDlg( Window& rParent, String& rFileName,
String* pPassword, String* pFilterName,
SfxMedium** ppMedium )
{
Window* pDefDlgParent = Application::GetDefDialogParent();
Application::SetDefDialogParent( &rParent );
SfxMedium* pMed = SFX_APP()->InsertDocumentDialog( 0, String::CreateFromAscii("swriter") );
if( pMed )
{
if( pFilterName )
*pFilterName = pMed->GetFilter()->GetFilterName();
rFileName = pMed->GetURLObject().GetMainURL( INetURLObject::NO_DECODE );
if( pPassword )
{
const SfxPoolItem* pItem;
if( SFX_ITEM_SET == pMed->GetItemSet()->GetItemState(
SID_PASSWORD, FALSE, &pItem ) )
*pPassword = ((SfxStringItem*)pItem)->GetValue();
}
if( ppMedium )
*ppMedium = pMed;
else
delete pMed; // das brauchen wir nicht mehr !
}
Application::SetDefDialogParent( pDefDlgParent );
return 0 != pMed;
}
/*-----------------09.04.98 16:58-------------------
--------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment