Skip to main content
Known Participant
July 8, 2008
Question

[CS3] How to get whether a UID is a spread, page, page item?

  • July 8, 2008
  • 2 replies
  • 283 views
Hello!

I have an UID.

How can I get whether behind the UID is a spread or a page or a page item?

Alois Blaimer
This topic has been closed for replies.

2 replies

Known Participant
July 11, 2008
Hello!

I have a database.

database->GetClass(myUID) workes!

Thanks!
Alois Blaimer
Inspiring
July 8, 2008
You can't.

If you have a database for that UID though, you can use database->GetClass(myUID) ...

Rather than dispatching on the class ID, you better identify your required interfaces on the boss. Instantiate them (again using db+id) and if those do not exist navigate around in IHierarchy or give up gracefully. Note there are some more boss classes and stranger arrangements than you initially know - master spreads, groups, standoff, inline items, multicolumn text and so forth.

Dirk