textidx.cxx (efeef26f) textidx.cxx (69a74367)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 197 unchanged lines hidden (view full) ---

206 rSet.Put(SfxBoolItem(FN_INSERT_IDX_ENTRY_DLG, sal_True));
207
208 if(!pAuthMark)
209 rSet.DisableItem( FN_INSERT_AUTH_ENTRY_DLG );
210 else
211 rSet.Put(SfxBoolItem(FN_INSERT_AUTH_ENTRY_DLG, sal_True));
212
213 }
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 197 unchanged lines hidden (view full) ---

206 rSet.Put(SfxBoolItem(FN_INSERT_IDX_ENTRY_DLG, sal_True));
207
208 if(!pAuthMark)
209 rSet.DisableItem( FN_INSERT_AUTH_ENTRY_DLG );
210 else
211 rSet.Put(SfxBoolItem(FN_INSERT_AUTH_ENTRY_DLG, sal_True));
212
213 }
214 else //if( SFX_ITEM_UNKNOWN != rSet.GetItemState( FN_EDIT_IDX_ENTRY_DLG ))
214 else if ( rSh.CrsrInsideInputFld() )
215 {
216 rSet.DisableItem( FN_INSERT_IDX_ENTRY_DLG );
217 rSet.DisableItem( FN_INSERT_AUTH_ENTRY_DLG );
218 rSet.DisableItem( FN_EDIT_AUTH_ENTRY_DLG );
219 rSet.DisableItem( FN_EDIT_IDX_ENTRY_DLG );
220 rSet.DisableItem( FN_INSERT_MULTI_TOX );
221 rSet.DisableItem( FN_REMOVE_CUR_TOX );
222 }
223 else
215 {
216
217 sal_Bool bEnableEdit = sal_True;
218 sal_Bool bInReadonly = rSh.HasReadonlySel();
219 if( rSh.HasSelection() || bInReadonly)
220 bEnableEdit = sal_False;
221 else
222 {

--- 35 unchanged lines hidden ---
224 {
225
226 sal_Bool bEnableEdit = sal_True;
227 sal_Bool bInReadonly = rSh.HasReadonlySel();
228 if( rSh.HasSelection() || bInReadonly)
229 bEnableEdit = sal_False;
230 else
231 {

--- 35 unchanged lines hidden ---