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

INTEGRATION: CWS asyncdialogs (1.29.140); FILE MERGED

2006/11/01 09:32:33 pb 1.29.140.8: fix: #i66952# syntax error after resync
2006/10/31 17:59:40 pb 1.29.140.7: RESYNC: (1.35-1.36); FILE MERGED
2006/09/20 20:34:15 pb 1.29.140.6: RESYNC: (1.34-1.35); FILE MERGED
2006/07/14 10:39:36 pb 1.29.140.5: fix: #i57125# warning free code
2006/07/12 20:55:28 pb 1.29.140.4: RESYNC: (1.33-1.34); FILE MERGED
2006/05/31 14:53:30 pb 1.29.140.3: RESYNC: (1.31-1.33); FILE MERGED
2005/12/08 08:54:02 kso 1.29.140.2: RESYNC: (1.29-1.31); FILE MERGED
2005/11/10 09:55:35 pb 1.29.140.1: fix: #i57125# asynchronous execute of file dialog
üst a3800cf8
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: dinfdlg.cxx,v $ * $RCSfile: dinfdlg.cxx,v $
* *
* $Revision: 1.36 $ * $Revision: 1.37 $
* *
* last change: $Author: obo $ $Date: 2006-10-12 15:52:33 $ * last change: $Author: vg $ $Date: 2006-11-22 10:56:33 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
#ifndef INCLUDED_RTL_MATH_HXX #ifndef INCLUDED_RTL_MATH_HXX
#include <rtl/math.hxx> #include <rtl/math.hxx>
#endif #endif
#include "com/sun/star/ui/dialogs/TemplateDescription.hpp" #include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include "dinfdlg.hxx" #include "dinfdlg.hxx"
#include "sfxresid.hxx" #include "sfxresid.hxx"
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::lang; using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
// STATIC DATA ----------------------------------------------------------- // STATIC DATA -----------------------------------------------------------
...@@ -489,19 +490,23 @@ sal_Bool SfxDocumentInfoItem::PutValue( const com::sun::star::uno::Any& rVal, BY ...@@ -489,19 +490,23 @@ sal_Bool SfxDocumentInfoItem::PutValue( const com::sun::star::uno::Any& rVal, BY
//------------------------------------------------------------------------ //------------------------------------------------------------------------
SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet &rItemSet) SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rItemSet ) :
: SfxTabPage( pParent, SfxResId(TP_DOCINFODESC), rItemSet),
aTitleFt( this, ResId( FT_TITLE ) ), SfxTabPage( pParent, SfxResId( TP_DOCINFODESC ), rItemSet ),
aTitleEd( this, ResId( ED_TITLE ) ),
aThemaFt( this, ResId( FT_THEMA ) ), aTitleFt ( this, ResId( FT_TITLE ) ),
aThemaEd( this, ResId( ED_THEMA ) ), aTitleEd ( this, ResId( ED_TITLE ) ),
aKeywordsFt( this, ResId( FT_KEYWORDS ) ), aThemaFt ( this, ResId( FT_THEMA ) ),
aKeywordsEd( this, ResId( ED_KEYWORDS ) ), aThemaEd ( this, ResId( ED_THEMA ) ),
aCommentFt( this, ResId( FT_COMMENT ) ), aKeywordsFt ( this, ResId( FT_KEYWORDS ) ),
aCommentEd( this, ResId( ED_COMMENT ) ), aKeywordsEd ( this, ResId( ED_KEYWORDS ) ),
pInfoItem(0) aCommentFt ( this, ResId( FT_COMMENT ) ),
aCommentEd ( this, ResId( ED_COMMENT ) ),
pInfoItem ( NULL )
{ {
FreeResource(); FreeResource();
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
...@@ -1010,8 +1015,9 @@ SfxInternetPage::SfxInternetPage( Window* pParent, const SfxItemSet& rItemSet ) ...@@ -1010,8 +1015,9 @@ SfxInternetPage::SfxInternetPage( Window* pParent, const SfxItemSet& rItemSet )
aCBFrame ( this, ResId( CB_FRAME ) ), aCBFrame ( this, ResId( CB_FRAME ) ),
aForwardErrorMessg ( ResId( STR_FORWARD_ERRMSSG ) ), aForwardErrorMessg ( ResId( STR_FORWARD_ERRMSSG ) ),
pInfoItem( NULL ), pInfoItem ( NULL ),
eState( S_Init ) pFileDlg ( NULL ),
eState ( S_Init )
{ {
FreeResource(); FreeResource();
...@@ -1046,6 +1052,12 @@ SfxInternetPage::SfxInternetPage( Window* pParent, const SfxItemSet& rItemSet ) ...@@ -1046,6 +1052,12 @@ SfxInternetPage::SfxInternetPage( Window* pParent, const SfxItemSet& rItemSet )
ChangeState( S_NoUpdate ); ChangeState( S_NoUpdate );
} }
//------------------------------------------------------------------------
SfxInternetPage::~SfxInternetPage()
{
delete pFileDlg;
}
//------------------------------------------------------------------------ //------------------------------------------------------------------------
...@@ -1099,7 +1111,6 @@ void SfxInternetPage::EnableNoUpdate( BOOL bEnable ) ...@@ -1099,7 +1111,6 @@ void SfxInternetPage::EnableNoUpdate( BOOL bEnable )
aRBNoAutoUpdate.Check(); aRBNoAutoUpdate.Check();
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
void SfxInternetPage::EnableReload( BOOL bEnable ) void SfxInternetPage::EnableReload( BOOL bEnable )
...@@ -1158,16 +1169,24 @@ IMPL_LINK( SfxInternetPage, ClickHdlForward, Control*, pCtrl ) ...@@ -1158,16 +1169,24 @@ IMPL_LINK( SfxInternetPage, ClickHdlForward, Control*, pCtrl )
//------------------------------------------------------------------------ //------------------------------------------------------------------------
IMPL_LINK( SfxInternetPage, ClickHdlBrowseURL, PushButton*, pButton ) IMPL_LINK( SfxInternetPage, ClickHdlBrowseURL, PushButton*, EMPTYARG )
{ {
(void)pButton; //unused if ( !pFileDlg )
sfx2::FileDialogHelper aHelper( pFileDlg = new sfx2::FileDialogHelper( TemplateDescription::FILEOPEN_SIMPLE, WB_OPEN );
com::sun::star::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, pFileDlg->SetDisplayDirectory( aEDForwardURL.GetText() );
WB_OPEN ); pFileDlg->StartExecuteModal( LINK( this, SfxInternetPage, DialogClosedHdl ) );
aHelper.SetDisplayDirectory( aEDForwardURL.GetText() );
return 0;
if( ERRCODE_NONE == aHelper.Execute() ) }
aEDForwardURL.SetText( aHelper.GetPath() );
//------------------------------------------------------------------------
IMPL_LINK( SfxInternetPage, DialogClosedHdl, sfx2::FileDialogHelper*, EMPTYARG )
{
DBG_ASSERT( pFileDlg, "SfxInternetPage::DialogClosedHdl(): no file dialog" );
if ( ERRCODE_NONE == pFileDlg->GetError() )
aEDForwardURL.SetText( pFileDlg->GetPath() );
return 0; return 0;
} }
......
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