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

TOCFormatEntryInfo does not give fParaFormatStyle when entry style is selected as same style.

Participant ,
Jul 01, 2024 Jul 01, 2024

Chamari253904353k85_0-1719890518086.pngexpand image

 

I have created a TOC style with the entry style is selected as Same style. When I try to access TOCFormatEntryInfo fParaFormatStyle, it returns 0.

When the entry style is set to a different paragraph style, it returns the fParaFormatStyle. 

Is there a way to obtain the UID of the entry style when it is set as the same style?

InterfacePtr<ITOCStyleInfo> theTOCStyle(db, tocStyleID, UseDefaultIID());
BREAK_IF_NIL(theTOCStyle);

const FormatEntriesInfo& entryMap = theTOCStyle->GetTOCEntryMap();
for (int i = 0; i < entryMap.size(); ++i)
{
     TOCFormatEntryInfo tocFormatEntryInfo = entryMap[i].Value();
     paraStyleID = tocFormatEntryInfo.fParaFormatStyle;
}

 

TOPICS
How to , SDK
70
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
no replies

Have something to add?

Join the conversation