summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-10-16 15:58:43 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-10-16 20:34:40 +0200
commit556997bae75be8d8876d87a43d854cb969c12ce3 (patch)
tree455b18a34d890ebe620987dd3d6578f24d76cd69
parent4b1ebf998b344535d20a6205b915c21996fc06d7 (diff)
remove SID_INTERNET_ONLINE
We have no online/offline concept for the office anymore. Change-Id: Id7e71d9c4383b47d3fae6f8cb5dc18ec22a55934
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx19
-rw-r--r--cui/source/dialogs/hlinettp.cxx22
-rw-r--r--cui/source/dialogs/hltpbase.cxx7
-rw-r--r--cui/source/inc/cuihyperdlg.hxx2
-rw-r--r--cui/source/inc/hlinettp.hxx1
-rw-r--r--cui/source/inc/hltpbase.hxx1
-rw-r--r--include/sfx2/cntids.hrc1
-rw-r--r--sfx2/sdi/sfx.sdi27
8 files changed, 0 insertions, 80 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index 0be013f253b0..444f5291e98c 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -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);
@@ -332,19 +326,6 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
/*************************************************************************
|*
-|* 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
|*
|************************************************************************/
diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx
index 47c6e0df1f60..b6d3802c5403 100644
--- a/cui/source/dialogs/hlinettp.cxx
+++ b/cui/source/dialogs/hlinettp.cxx
@@ -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: */
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index f4673edb3a10..d849ed927276 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -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()
{
diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx
index a372e5d23de2..79411bbc055c 100644
--- a/cui/source/inc/cuihyperdlg.hxx
+++ b/cui/source/inc/cuihyperdlg.hxx
@@ -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; }
diff --git a/cui/source/inc/hlinettp.hxx b/cui/source/inc/hlinettp.hxx
index 4e6b8673f702..c30d1e64939e 100644
--- a/cui/source/inc/hlinettp.hxx
+++ b/cui/source/inc/hlinettp.hxx
@@ -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();
};
diff --git a/cui/source/inc/hltpbase.hxx b/cui/source/inc/hltpbase.hxx
index 26eb00b844d8..9584069226bc 100644
--- a/cui/source/inc/hltpbase.hxx
+++ b/cui/source/inc/hltpbase.hxx
@@ -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& );
diff --git a/include/sfx2/cntids.hrc b/include/sfx2/cntids.hrc
index 2facc52bf688..1cb27f320826 100644
--- a/include/sfx2/cntids.hrc
+++ b/include/sfx2/cntids.hrc
@@ -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!
diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi
index 2bc4c48071d7..624e99066564 100644
--- a/sfx2/sdi/sfx.sdi
+++ b/sfx2/sdi/sfx.sdi
@@ -3111,33 +3111,6 @@ SfxVoidItem InsertObjectFloatingFrame SID_INSERT_FLOATINGFRAME
]
//--------------------------------------------------------------------------
-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
[