![]() | InDesign SDK 20.5 |
#include <ILockPosition.h>

Public Types | |
| enum | { kDefaultIID = IID_ILOCKPOSITION } |
| enum | LockType { kUnlock = 0x00, kLock = 0x01 } |
Public Member Functions | |
| virtual void | Set (int32 lockFlag)=0 |
| virtual int32 | GetLockPosition () const =0 |
| virtual bool16 | IsLocked () const =0 |
| virtual bool16 | IsUnlocked () const =0 |
| virtual int32 | GetLockState () const =0 |
| virtual bool16 | IsLockStateLocked () const =0 |
| virtual bool16 | IsPageItemLocked (bool16 selecting=kFalse) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Page item interface that controls if any item can have its position (or other geometry) changed or not.
| pure virtual |
Return the lock position flag. In general, returns kUnlock or kLock based on the setting. However, for managed frames, additional logic comes into play. A content item is considered locked whenever its parent frame has an insert lock. This means that IItemLockData->GetInsertLock is returns kTrue. Also, for the graphic frame itself, InCopy will always consider the it locked–no frame manipulation allowed in InCopy.
| pure virtual |
Return kTrue if the LockPosition flag is locked. This does not consider managed frames and just returns the state that was Set.
| pure virtual |
Return kTrue if the page item's position is considered locked.
| pure virtual |
return kTrue if the page item's locked state is set to locked. This does not consider managed frames.
| pure virtual |
return kTrue if the page item is locked. This includes all layout items and groups, but excludes guides.
| selecting | - if kTrue, it will check and honor the Prevent Selecting Locked Items preference. |
| pure virtual |
Return kTrue if the page item's position is considered unlocked.
| pure virtual |
Set the lock position flag (kLock or kUnlock). Does not affect IItemLockData lock state. See kSetItemLockCmdBoss for more info.
| int32 | - must be kLock or kUnlock. |