summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2018-09-19 13:07:05 +0300
committerTor Lillqvist <tml@iki.fi>2018-09-19 13:19:23 +0300
commit83dd72cb85dc8bcd797e62d7a28b8ec2cfdb700a (patch)
tree46824052518eb5bc18d81d5560dd4c729dfcff5d /sfx2
parent4a827917373377a99b2207bdb39ac266257215c4 (diff)
Avoid unused function in the !HAVE_FEATURE_SCRIPTING case
Change-Id: Ic41be9447a8ac068d9616252ad3b17451234956e
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx3
-rw-r--r--sfx2/source/view/viewfrm.cxx4
2 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 76b24debb328..d1629aff7e8d 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -579,6 +579,7 @@ Sequence< sal_Int8 > SAL_CALL SfxBaseModel::getImplementationId()
// XStarBasicAccess
+#if HAVE_FEATURE_SCRIPTING
static Reference< script::XStarBasicAccess > implGetStarBasicAccess( SfxObjectShell const * pObjectShell )
{
@@ -596,6 +597,8 @@ static Reference< script::XStarBasicAccess > implGetStarBasicAccess( SfxObjectSh
return xRet;
}
+#endif
+
Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContainer()
{
#if !HAVE_FEATURE_SCRIPTING
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 32665471a75c..da991c1ee635 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -2400,6 +2400,8 @@ void SfxViewFrame::Resize( bool bForce )
}
}
+#if HAVE_FEATURE_SCRIPTING
+
#define LINE_SEP 0x0A
static void CutLines( OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines )
@@ -2443,6 +2445,8 @@ static void CutLines( OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines )
}
}
+#endif
+
/*
add new recorded dispatch macro script into the application global basic
lib container. It generates a new unique id for it and insert the macro