diff options
author | Oliver Specht <os@openoffice.org> | 2002-09-05 08:47:02 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-09-05 08:47:02 +0000 |
commit | 1d026cf20521fbc31c9185adc20a091e7b6f5ef6 (patch) | |
tree | 2f17704f080a9cef08dff95b5e5d01c221ea51cf /sw/source/ui/index/idxmrk.cxx | |
parent | afba814456e496076bf9b3873d72b31e65d2d20e (diff) |
#102947# prevent insertion of index marks/bibliography marks into protected sections
Diffstat (limited to 'sw/source/ui/index/idxmrk.cxx')
-rw-r--r-- | sw/source/ui/index/idxmrk.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sw/source/ui/index/idxmrk.cxx b/sw/source/ui/index/idxmrk.cxx index 1abcffedc5af..06450d1b96bd 100644 --- a/sw/source/ui/index/idxmrk.cxx +++ b/sw/source/ui/index/idxmrk.cxx @@ -2,9 +2,9 @@ * * $RCSfile: idxmrk.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: iha $ $Date: 2002-08-09 11:39:37 $ + * last change: $Author: os $ $Date: 2002-09-05 09:46:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -905,7 +905,8 @@ IMPL_LINK( SwIndexMarkDlg, ModifyHdl, ListBox *, pBox ) aPhoneticFT0.Enable(bHasText&&bIsPhoneticReadingEnabled); aPhoneticED0.Enable(bHasText&&bIsPhoneticReadingEnabled); } - aOKBT.Enable(aEntryED.GetText().Len() || pSh->GetCrsrCnt(sal_False)); + aOKBT.Enable(!pSh->HasReadonlySel() && + (aEntryED.GetText().Len() || pSh->GetCrsrCnt(sal_False))); return 0; } @@ -1725,9 +1726,15 @@ void SwAuthMarkDlg::InitControls() aEntryED.SetText(pEntry->GetAuthorField(AUTH_FIELD_IDENTIFIER)); aAuthorFI.SetText(pEntry->GetAuthorField(AUTH_FIELD_AUTHOR)); aTitleFI.SetText(pEntry->GetAuthorField(AUTH_FIELD_TITLE)); - } +/* -----------------------------05.09.2002 09:44------------------------------ + ---------------------------------------------------------------------------*/ +void SwAuthMarkDlg::Activate() +{ + aOKBT.Enable(!pSh->HasReadonlySel()); + Window::Activate(); +} /* -----------------07.09.99 08:15------------------- --------------------------------------------------*/ |