diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-05 21:41:31 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-05 22:30:12 +0200 |
commit | b344c30ab49b6faf8a24be42bdfcf4e946a861cd (patch) | |
tree | 75699c0eb98676e6f9359a44fae78a29594ad751 /sd/source/ui/view/drviews3.cxx | |
parent | Change my mind again: Do build a subset sb library even for DISABLE_SCRIPTING (diff) | |
download | core-b344c30ab49b6faf8a24be42bdfcf4e946a861cd.tar.gz core-b344c30ab49b6faf8a24be42bdfcf4e946a861cd.zip |
Sprinkle more DISABLE_SCRIPTING ifdefs
Diffstat (limited to 'sd/source/ui/view/drviews3.cxx')
-rw-r--r-- | sd/source/ui/view/drviews3.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx index eb7d96799c25..f67f60fac66a 100644 --- a/sd/source/ui/view/drviews3.cxx +++ b/sd/source/ui/view/drviews3.cxx @@ -174,7 +174,9 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) sal_Int32 nWhatKind = (sal_Int32)pWhatKind->GetValue (); if (! CHECK_RANGE (PK_STANDARD, nWhatKind, PK_HANDOUT)) { +#ifndef DISABLE_SCRIPTING StarBASIC::FatalError (SbERR_BAD_PROP_VALUE); +#endif rReq.Ignore (); break; } @@ -182,7 +184,9 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) { if (! CHECK_RANGE (0, nWhatPage, GetDoc()->GetSdPageCount((PageKind)nWhatKind))) { +#ifndef DISABLE_SCRIPTING StarBASIC::FatalError (SbERR_BAD_PROP_VALUE); +#endif rReq.Ignore (); break; } @@ -193,7 +197,9 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) } else { +#ifndef DISABLE_SCRIPTING StarBASIC::FatalError (SbERR_WRONG_ARGS); +#endif rReq.Ignore (); break; } |