summaryrefslogtreecommitdiff
path: root/sfx2/inc/inettbc.hxx
diff options
context:
space:
mode:
authorDirk Völzke <dv@openoffice.org>2001-07-09 14:13:04 +0000
committerDirk Völzke <dv@openoffice.org>2001-07-09 14:13:04 +0000
commit741bfd2005820d2ca1d3bde49e1372a78f58c0d0 (patch)
treeb7620c05a349b05fe85f1511939b6a02c95afffa /sfx2/inc/inettbc.hxx
parent0407ce14f1e5db38f6cd3acba8b01e77c432fd1a (diff)
#89176# SfxURLBOX has been moved to svtools and was renamed to SvtURLBox
Diffstat (limited to 'sfx2/inc/inettbc.hxx')
-rw-r--r--sfx2/inc/inettbc.hxx65
1 files changed, 8 insertions, 57 deletions
diff --git a/sfx2/inc/inettbc.hxx b/sfx2/inc/inettbc.hxx
index 48da5443eb75..d0e8f1762e13 100644
--- a/sfx2/inc/inettbc.hxx
+++ b/sfx2/inc/inettbc.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: inettbc.hxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mba $ $Date: 2001-06-18 09:53:19 $
+ * last change: $Author: dv $ $Date: 2001-07-09 15:13:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,70 +70,21 @@
#include <vcl/combobox.hxx>
#endif
-#define _SVSTDARR_STRINGSDTOR
-#include <svtools/svstdarr.hxx>
-
-struct SfxPickEntry_Impl;
-class SfxURLBox : public ComboBox
-{
-friend class SfxMatchContext_Impl;
-friend class SfxURLBox_Impl;
- Link aOpenHdl;
- String aBaseURL;
- INetProtocol eSmartProtocol;
- SfxMatchContext_Impl* pCtx;
- SfxURLBox_Impl* pImp;
- BOOL bAutoCompleteMode;
- BOOL bOnlyDirectories;
- BOOL bModified;
- BOOL bTryAutoComplete: 1,
- bCtrlClick: 1,
- bHistoryDisabled : 1;
-
- BOOL ProcessKey( const KeyCode& rCode );
- void TryAutoComplete( BOOL bForward, BOOL bForce );
- void UpdatePicklistForSmartProtocol_Impl();
- DECL_LINK( AutoCompleteHdl_Impl, void* );
-
-protected:
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void Select();
- virtual void Modify();
-#ifndef TF_SVDATA
- virtual BOOL QueryDrop( DropEvent &rEvt );
- virtual BOOL Drop( const DropEvent &rEvt );
-#endif
- virtual long PreNotify( NotifyEvent& rNEvt );
-
-public:
- SfxURLBox( Window* pParent, INetProtocol eSmart = INET_PROT_NOT_VALID );
- SfxURLBox( Window* pParent, const ResId& _rResId, INetProtocol eSmart = INET_PROT_NOT_VALID );
- ~SfxURLBox();
-
- void OpenURL( const String& rName, BOOL nMod ) const;
- void SetBaseURL( const String& rURL ) { aBaseURL = rURL; }
- const String& GetBaseURL() const { return aBaseURL; }
- void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; }
- const Link& GetOpenHdl() const { return aOpenHdl; }
- void SetOnlyDirectories( BOOL bDir = TRUE );
- INetProtocol GetSmartProtocol() const { return eSmartProtocol; }
- void SetSmartProtocol( INetProtocol eProt );
- BOOL IsCtrlOpen()
- { return bCtrlClick; }
- String GetURL();
- void DisableHistory();
-};
-
#if _SOLAR__PRIVATE
#include "tbxctrl.hxx"
+class SvtURLBox;
+
class SfxURLToolBoxControl_Impl : public SfxToolBoxControl
{
private:
SfxStatusForwarder aURLForwarder;
- SfxURLBox* GetURLBox() const;
+ SvtURLBox* GetURLBox() const;
+ void OpenURL( const String& rName, BOOL bNew ) const;
+
DECL_LINK( OpenHdl, void* );
DECL_LINK( SelectHdl, void* );
+
public:
SFX_DECL_TOOLBOX_CONTROL();