Exemple #1
0
			internal UndoRedoSyncTextAndSandbox(InterlinDocChild idc) :
				base(idc.ActiveClerk)
			{
				SkipShowRecord = true;
				TriggerPendingReloadOnDispose = false; // suspend reloading clerk.
				m_idc = idc;
				m_hvoOriginalAnnotation = m_idc.HvoAnnotation;
				// we may not have a sandbox due to a freeform annotation selection.
				if (m_hvoOriginalAnnotation != 0)
					m_idc.AbandonChangesInFocusBox();

				m_idc.AllowLayout = false;
				// may be overkill, but i don't think we always get PropChanges for
				// restored or deleted objects.
				WordformInventory.OnChangedWordformsOC();
			}
Exemple #2
0
			public SegmentFormsUpdateHelper(InterlinDocChild idc)
				: base(idc.ActiveClerk)
			{
				// set these flags early so that any dependent ListUpdateHelpers
				// can inherit these settings.
				SkipShowRecord = true;
				TriggerPendingReloadOnDispose = false;

				m_idc = idc;
				m_cache = idc.Cache;

				// any changes in the sandbox should be ignored. we don't want to try to save it.
				m_idc.AbandonChangesInFocusBox();
				m_idc.AddUndoRedoAction(m_idc.HvoAnnotation, 0);
				m_idc.AllowLayout = false;

				CaptureInitialStateInfo(m_idc.HvoAnnotation);
			}