private void ConfigurePdfCleanOptions(UIContentItem contentItem, ref bool firstClean)
		{
			IActionProperty executeProperty = contentItem.GetClientActionProperty(PropertyNames.Execute);
			if (executeProperty == null)
			{
				return;
			}

			bool execute = Convert.ToBoolean(executeProperty.Value, CultureInfo.InvariantCulture);

			// Skip cleaning
			MasterSkipCleaningEnabled = SkipPdfCleaningEnabled = executeProperty.Override;
			
			SetCheckBoxCheckState(skipPdfCleaningCheckBox, !execute, firstClean);

			firstClean = false;
			pdfHiddenDataOptionsLinkLabel.Enabled = true;
		}
        /// <summary>
        /// Doctors the "ApplyToAll" ActionProperty value.
        /// </summary>
        /// <param name="contentItem"></param>
        /// <param name="applyToAll"></param>
        private static void SetApplyToAll(UIContentItem contentItem, bool applyToAll)
        {
			if (contentItem == null)
			{
				throw new ArgumentNullException("contentItem");
			}
			IActionProperty applyToAllProperty = contentItem.GetClientActionProperty(PropertyNames.ApplyToAll);
			if (applyToAllProperty != null)
			{
				applyToAllProperty.Value = applyToAll;
			}
        }
		private void ConfigureOfficeCleanOptions(UIContentItem contentItem, ref TriState tsWord, ref TriState tsExcel, ref TriState tsPpt, ref TriState tsDefault, ref bool firstClean)
		{
			IActionProperty executeProperty = contentItem.GetClientActionProperty(PropertyNames.Execute);
			if (executeProperty == null)
			{
				return;
			}

			bool execute = Convert.ToBoolean(executeProperty.Value, CultureInfo.InvariantCulture);

			// Remove Comments
			IActionProperty removeCommentsProperty = contentItem.GetClientActionProperty(PropertyNames.Comments);
			bool removeComments = (removeCommentsProperty != null && Convert.ToBoolean(removeCommentsProperty.Value, CultureInfo.InvariantCulture));
			SetCheckBoxCheckState(removeCommentsCheckBox, removeComments, firstClean);

			// Remove Track changes
			IActionProperty removeTrackChangesProperty = contentItem.GetClientActionProperty(PropertyNames.TrackChanges);
			bool removeTrackChanges = (!skipOfficeCleaningCheckBox.Checked
				&& removeTrackChangesProperty != null
				&& Convert.ToBoolean(removeTrackChangesProperty.Value, CultureInfo.InvariantCulture));
			SetCheckBoxCheckState(removeTrackChangesCheckBox, removeTrackChanges, firstClean);

			// Skip cleaning
			MasterSkipCleaningEnabled = SkipOfficeCleaningEnabled = executeProperty.Override;
			SetCheckBoxCheckState(skipOfficeCleaningCheckBox, !execute, firstClean);

			RemoveCommentsEnabled = (execute && !skipOfficeCleaningCheckBox.Checked
				&& removeCommentsProperty != null && removeCommentsProperty.Override && removeCommentsProperty.Visible);

			ContentTypeEnum contentType = ContentTypeEnum.Unknown;
			if (!string.IsNullOrEmpty(contentItem.ContentType))
			{
				try
				{
					contentType = (ContentTypeEnum) Enum.Parse(typeof(ContentTypeEnum), contentItem.ContentType);
				}
				catch { }
			}
			FindRemoveTrackChangesState(contentType, removeTrackChangesProperty, execute, ref tsWord, ref tsExcel, ref tsPpt, ref tsDefault);

			firstClean = false;
			officeHiddenDataOptionsLinkLabel.Enabled = true;
		}