https://bugs.documentfoundation.org/show_bug.cgi?id=165185

--- Comment #1 from Mike Kaganski <[email protected]> ---
For Writer, the respective code is in SwView::StateSearch
(sw/source/uibase/uiview/viewsrch.cxx):

            case SID_SEARCH_OPTIONS:
            {
                SearchOptionFlags nOpt = SearchOptionFlags::ALL;
                if( GetDocShell()->IsReadOnly() )
                    nOpt &= ~SearchOptionFlags( SearchOptionFlags::REPLACE |
                               SearchOptionFlags::REPLACE_ALL );
                ...
            }

In Calc, this is handled in ScTabViewShell::GetState
(sc/source/ui/view/tabvwsha.cxx). And it seems, that it also handles the
read-only flags.

For Draw/Impress, it's DrawDocShell::GetState
(sd/source/ui/docshell/docshell.cxx); handles RO as well.

What is the scenario where F&R used to allow replacement in RO documents?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to