Kaydet (Commit) 556997ba authored tarafından Thomas Arnhold's avatar Thomas Arnhold

remove SID_INTERNET_ONLINE

We have no online/offline concept for the office anymore.

Change-Id: Id7e71d9c4383b47d3fae6f8cb5dc18ec22a55934
üst 4b1ebf99
......@@ -38,7 +38,6 @@ using ::com::sun::star::frame::XFrame;
SvxHlinkCtrl::SvxHlinkCtrl( sal_uInt16 _nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg )
: SfxControllerItem ( _nId, rBindings )
,aOnlineForwarder ( SID_INTERNET_ONLINE , *this )
,aRdOnlyForwarder ( SID_READONLY_MODE, *this )
{
pParent = pDlg;
......@@ -51,11 +50,6 @@ void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
{
switch ( nSID )
{
case SID_INTERNET_ONLINE :
{
pParent->EnableInetBrowse( !( (SfxBoolItem*)pState)->GetValue() );
}
break;
case SID_HYPERLINK_GETLINK :
{
pParent->SetPage ( (SvxHyperlinkItem*)pState);
......@@ -330,19 +324,6 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
return nPageId;
}
/*************************************************************************
|*
|* Enable/Disable to browse targets in a html-doc
|*
|************************************************************************/
void SvxHpLinkDlg::EnableInetBrowse( sal_Bool bEnable )
{
SvxHyperlinkTabPageBase* pCurrentPage = ( SvxHyperlinkTabPageBase* )
GetTabPage ( GetCurPageId() );
pCurrentPage->SetOnlineMode( bEnable );
}
/*************************************************************************
|*
|* Enable/Disable ReadOnly mode
......
......@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <comphelper/string.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/useroptions.hxx>
#include <svl/adrparse.hxx>
......@@ -480,25 +479,4 @@ void SvxHyperlinkInternetTp::SetMarkStr ( const OUString& aStrMark )
maCbbTarget.SetText ( aStrURL );
}
/*************************************************************************
|*
|* Enable Browse-Button in subject to the office is in onlinemode
|*
|************************************************************************/
void SvxHyperlinkInternetTp::SetOnlineMode( sal_Bool /*bEnable*/ )
{
// State of target-button in subject to the current url-string
// ( Can't display any targets in an document, if there is no
// valid url to a document )
OUString aStrCurrentTarget(comphelper::string::stripEnd(maCbbTarget.GetText(), ' '));
if( aStrCurrentTarget.isEmpty() ||
aStrCurrentTarget.equalsIgnoreAsciiCase( sHTTPScheme ) ||
aStrCurrentTarget.equalsIgnoreAsciiCase( sHTTPSScheme ) )
maBtTarget.Enable( sal_False );
else
maBtTarget.Enable( sal_True );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -309,13 +309,6 @@ void SvxHyperlinkTabPageBase::SetMarkStr ( const OUString& /*aStrMark*/ )
// default-implemtation : do nothing
}
// This method will be called from the dialog-class if the state off
// the online-mode has changed.
void SvxHyperlinkTabPageBase::SetOnlineMode( sal_Bool /*bEnable*/ )
{
// default-implemtation : do nothing
}
// Set initial focus
void SvxHyperlinkTabPageBase::SetInitFocus()
{
......
......@@ -40,7 +40,6 @@ class SvxHlinkCtrl : public SfxControllerItem
private :
SvxHpLinkDlg *pParent;
SfxStatusForwarder aOnlineForwarder;
SfxStatusForwarder aRdOnlyForwarder;
public :
......@@ -83,7 +82,6 @@ public:
virtual void PageCreated( sal_uInt16 nId, IconChoicePage& rPage );
sal_uInt16 SetPage( SvxHyperlinkItem* pItem );
void EnableInetBrowse( sal_Bool bEnable = sal_True );
void SetReadOnlyMode( sal_Bool bReadOnly = sal_False );
inline sal_Bool IsHTMLDoc() const { return mbIsHTMLDoc; }
......
......@@ -87,7 +87,6 @@ public:
static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
virtual void SetMarkStr ( const OUString& aStrMark );
virtual void SetOnlineMode( sal_Bool bEnable );
virtual void SetInitFocus();
};
......
......@@ -138,7 +138,6 @@ public:
virtual sal_Bool AskApply ();
virtual void DoApply ();
virtual void SetOnlineMode( sal_Bool bEnable );
virtual void SetInitFocus();
virtual void SetMarkStr ( const OUString& aStrMark );
virtual void Reset( const SfxItemSet& );
......
......@@ -32,7 +32,6 @@
#endif
#define SID_TITLE (SID_SFX_START + 307)
#define SID_DELETE (SID_SFX_START + 713)
#define SID_INTERNET_ONLINE (SID_SFX_START + 1370)
// Don't let SID_CHAOS_END grow. Internal docking windows use the range between
// SID_CHAOS_END and SID_LIB_START!! Look into sfxsids.hrc for more information!
......
......@@ -3110,33 +3110,6 @@ SfxVoidItem InsertObjectFloatingFrame SID_INSERT_FLOATINGFRAME
GroupId = GID_INSERT;
]
//--------------------------------------------------------------------------
SfxBoolItem InternetOnline SID_INTERNET_ONLINE
[
/* flags: */
AutoUpdate = TRUE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = TRUE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = TRUE,
Container = TRUE,
RecordAbsolute = FALSE,
RecordPerSet;
Asynchron;
Readonly = FALSE,
/* config: */
AccelConfig = FALSE,
MenuConfig = FALSE,
StatusBarConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = GID_EXPLORER;
]
//--------------------------------------------------------------------------
SfxBoolItem IsLoading SID_DOC_LOADING
......
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