Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
SDK Documentation
 AuthoringStates Enumeration
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
AuthoringStates Enumeration (Microsoft.SharePoint.Publishing.WebControls)
The current state of a page, used to determine whether or not a given ConsoleNode should be shown.

Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in microsoft.sharepoint.publishing.dll)
Visual Basic (Declaration)
<FlagsAttribute> _
Public Enumeration AuthoringStates As Long
Visual Basic (Usage)
Dim instance As AuthoringStates
C#
[FlagsAttribute] 
public enum AuthoringStates : long
 Member nameDescription
ActiveWorkflowsExistFalseNo active workflows exist for the current SPListItem
ActiveWorkflowsExistTrueActive workflows exist for the current SPListItem
CheckedInVersionExistsFalseShow the action only if a checked in version of this file does not exist in the database. 
CheckedInVersionExistsTrueShow the action only if a checked in version of this file exists in the database. 
CheckedOutVersionExistsFalseA checked out version of the current SPFile does not exist. 
CheckedOutVersionExistsTrueA checked out version of the current SPFile exists. 
CheckOutRequiredFalseShow the action only if checking out a document is not required for editing. 
CheckOutRequiredTrueShow the action only if checking out a document is required for editing. 
ContentApprovalEnabledFalseShow the action only if content approval is not enabled in the current Web site. 
ContentApprovalEnabledTrueShow the action only if content approval is enabled in the current Web site. 
EditingMenuDisabledThe Editing Menu is not visible on the page. 
EditingMenuEnabledThe Editing Menu is visible on the page. 
EmptyMaskAll bits are set to 0. 
FullMaskAll bits are set to 1 (including conflicting ones). 
InEditModeFalseThe current page is not in Edit mode. 
InEditModeTrueThe current page is in Edit mode. 
InPersonalViewThe page is in the Personal View. 
InSharedViewThe page is in the Shared View. 
InWebPartDesignModeFalseShow the action only if the page is not currently in Web Part design mode. 
InWebPartDesignModeTrueShow the action only if the page is currently in Web Part design mode. 
IsApprovalWorkflowCancelEnabledTrueShow the action only if the current user has permissions to cancel the existing approval workflow. 
IsApprovalWorkflowConfiguredFalseShow the action only if a default approval workflow is not configured on the current list. 
IsApprovalWorkflowConfiguredTrueShow the action only if a default approval workflow has been configured on the current list. 
IsApprovalWorkflowRunningFalseNo default approval workflow has been set. 
IsApprovalWorkflowTaskActiveForUserFalseShow the action only if an approval workflow task does not exist for the current user. 
IsApprovalWorkflowTaskActiveForUserTrueShow the action only if an approval workflow task exists for the current user. 
IsCheckedOutToCurrentUserFalseThe current SPFile is not checked out to the current user. 
IsCheckedOutToCurrentUserTrueThe current SPFile is checked out to the current user. 
IsCheckedOutToOtherUserFalseThe current SPFile is not checked out to another user. 
IsCheckedOutToOtherUserTrueThe current SPFile is checked out to another (not the current) user. 
IsDefaultPageFalseShow the action only if the current page is not a default (welcome) page for the Web site. 
IsDefaultPageTrueShow the action only if the current page is the default (welcome) page for the Web site. 
IsDocLibListItemFalseThe current SPListItem is not a list item in a document library. 
IsDocLibListItemTrueThe current SPListItem is a list item in a document library. 
IsFormPageFalseShow the action only if the current page is not a form page. 
IsFormPageTrueShow the action only if the current page is a form page. 
IsItemWaitingForApprovalTrueA default approval workflow has been set. 
IsMajorVersionFalseShow the action only if the current version is not published. 
IsMajorVersionTrueShow the action only if the current version is published. 
IsMasterPageGalleryFileFalseThe current SPFile is not in a master page gallery. 
IsMasterPageGalleryFileTrueThe current SPFile is in a master page gallery. 
IsMinorVersionFalseShow the action only if the current version is not a draft. 
IsMinorVersionTrueShow the action only if the current version is a draft. 
IsPendingApprovalFalseThe current SPListItem is not pending approval. 
IsPendingApprovalTrueThe current SPListItem is pending approval. 
IsPublishingPageFalseShow the action only if the current list item is not a PublishingPage instance. 
IsPublishingPageTrueShow the action only if the current list item is a PublishingPage instance. 
IsPublishingSiteFalseThe Publishing feature is not enabled in this site (SPWeb). 
IsPublishingSiteTrueThe Publishing feature is enabled in this site (SPWeb). 
IsScheduledStatusFalseThe current SPListItem is not scheduled. 
IsScheduledStatusTrueThe current SPListItem is scheduled. 
IsSchedulingEnabledFalseShow the action only if scheduling is enabled on the Pages list. 
MinorVersionsEnabledFalseShow the action only if minor versions are not enabled in this list. 
MinorVersionsEnabledTrueShow the action only if minor versions are enabled in this list. 
NonApprovalWorkflowTaskExistsTrueThere are multiple workflow tasks for the current user (other than an approval task). 
PageHasCustomizableZonesFalseThe current page does not have customizable WebPartZones
PageHasCustomizableZonesTrueThe current page has customizable WebPartZones
PageHasFieldControlsFalseShow the action only if the current page has no field controls. 
PageHasFieldControlsTrueShow the action only if the current page has field controls. 
PageHasPersonalizableZonesFalseThe current page does not have WebPartZones that can be personalized. 
PageHasPersonalizableZonesTrueThe current page has WebPartZones that can be personalized. 
PageIsExpiredFalseShow the action only if the current page has not reached its expiration date. 
PageIsExpiredTrueShow the action only if the current page has reached its expiration date. 
SaveConflictExistsFalseShow the action only if a save was not performed, or if the save that was performed did not have a conflict. 
SaveConflictExistsTrueShow the action only if a save was just performed and there was a conflict. 

Often, a ConsoleNode should only be shown to the user when the current page is in a certain state. For example, it is logical that a "Check Out" action is disabled if the page is already checked out, or for an "Edit Page" action to be disabled if there are no customizable zones or field controls on the page. Combined as a bit mask, these flags specify the page state that is required for an action to be enabled. Therefore, a mask which looks like this: CheckedOutVersionExistsFalse | IsDocLibListItemTrue | SaveConflictExistsFalse requires a page that is a list item in a document library and that is not checked out, and an instance where a save conflict has not just occurred.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker