Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to ignore hidden layers when using kFindTextCmdBoss?

Participant ,
Sep 14, 2011 Sep 14, 2011

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.

TOPICS
SDK
567
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2011 Sep 16, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines