Copy link to clipboard
Copied
It is strange that it doesn't take effect after setting kFalse to kIncludeHiddenLayersCmdBoss, kIncludeLockedLayersForFindCmdBoss and kIncludeLockedStoriesForFindCmdBoss, but it can take effect if setting to kEntireWordCmdBoss and other options.
I am using the code SnpFindAndReplace.cpp from SDK sample, and i also tried to set those options using IFindChangeOptions, the result is the same, it always search the hidden layers and locked objects.
Is there any way to make it doesn't search hidden layers?
Thanks.
--
PS:
After set values to them, i tried to get them out again using IFindChangeOptions, GetIncludeHiddenLayers(IFindChangeOptions::kTextSearch), GetIncludeLockedStoriesForFind(IFindChangeOptions::kTextSearch), and GetIncludeLockedLayersForFind(IFindChangeOptions::kTextSearch) are all return kFalse, that is corrent, but when using kFindTextCmdBoss to do a find, it still search hidden layers.
Copy link to clipboard
Copied
I have been able to get this working, i used the kIncludeHiddenLayersCmdBoss and set it to false for "kTextSearchMode".
After that on searching for text that's present on a hidden layer using the kFindTextCmdBoss results in ignoring the layer.
You can verify it by checking the return value of GetFindChangeResult(), if the command is able to find the text it returns "IFindChangeService::kSuccess" but on selecting to ignore the hidden text the result is "IFindChangeService::kFoundCompleted".
P.S. Make sure that you set to ignore the hidden layer for correct search mode i.e.(kTextSearchMode)
Hope this helps
Manan Joshi
- Efficient InDesign Solutions -
MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php
Find more inspiration, events, and resources on the new Adobe Community
Explore Now