@class TSDScrollView, NSString, NSArray, TSAInteractiveCanvasController, TSKUIAlert, TSDiOSCanvasViewController, TSADocumentRoot, TSADebugViewController, TIADocument, TSASyncResolveConflictViewController, TSAFindReplaceUIController, UIButton; @protocol TSANavigatorViewController; @interface TSADocumentViewController : TSAViewController { BOOL _navigatorHidden; UIButton *_doneButton; UIButton *_closeButton; BOOL _registered; BOOL _inspectorIsCompletelyVisible; long long _helpViewVisibleState; BOOL _isAbandoningDocument; BOOL _settingDocumentMode; long long _documentModeBeforeReplaceController; double _keyboardHeight; double _contentFrameAnimationDuration; struct CGPoint { double x; double y; } mSavedContentOffset; double mSavedCanvasViewScale; BOOL _waitingToZoomOut; BOOL _scheduledBackgroundInit; BOOL _documentModeChangeInProgress; double _footerHeightPadding; } @property (nonatomic) BOOL editMenuTapGRWasEnabledForFind; @property (retain, nonatomic) TSASyncResolveConflictViewController *_openDocumentResolveConflictViewController; @property (retain, nonatomic, setter=_setOpenDocumentUpdatedAlert:) TSKUIAlert *_openDocumentUpdatedAlert; @property (retain, nonatomic) TSKUIAlert *_openDocumentEvictionAlert; @property (readonly, retain, nonatomic) TIADocument *document; @property (readonly, retain, nonatomic) TSADocumentRoot *documentRoot; @property (retain, nonatomic) TSDiOSCanvasViewController *canvasViewController; @property (retain, nonatomic) TSAInteractiveCanvasController *defaultInteractiveCanvasController; @property (retain, nonatomic) TSAInteractiveCanvasController *interactiveCanvasController; @property (nonatomic) long long documentMode; @property (readonly, nonatomic) TSADebugViewController *debugViewController; @property (readonly, nonatomic) TSAFindReplaceUIController *findReplaceUIController; @property (readonly, nonatomic) TSDScrollView *canvasScrollView; @property (readonly, nonatomic) double viewHeaderHeight; @property (nonatomic, getter=isHidingStatusBar) BOOL hidingStatusBar; @property (readonly, nonatomic) BOOL isDocumentLoaded; @property (readonly, nonatomic) BOOL isClosingDocument; @property (readonly, nonatomic) BOOL isPrintingDocument; @property (nonatomic) BOOL printerOptionsShowing; @property (readonly, nonatomic) BOOL isPopoverGestureInFlight; @property (readonly, nonatomic) BOOL preventDocumentModeChangesDuringSelectionChanges; @property (readonly, nonatomic) BOOL isCanvasFullScreen; @property (readonly, nonatomic) BOOL allowImagePickerToAppear; @property (nonatomic) BOOL isLandscapeOrientation; @property (readonly, nonatomic) double modalToolbarTitleBaselineOffset; @property (readonly, nonatomic) long long modalToolbarTitleBaselineOffsetBarMetrics; @property (retain, nonatomic) id navigatorViewController; @property (readonly, nonatomic) BOOL chartDataEditorShowing; @property (retain, nonatomic) TSKUIAlert *openDocumentKeepOrDeleteAlert; @property (readonly, nonatomic) BOOL displaySharingButton; @property (readonly, nonatomic) UIButton *sharingButton; @property (readonly, nonatomic) UIButton *coachingTipsButton; @property (readonly, nonatomic) NSString *closeDocumentButtonTitle; @property (readonly, nonatomic) BOOL isCJKEnabled; @property (readonly, nonatomic) NSArray *CJKLanguages; @property (readonly, nonatomic) BOOL isBiDiEnabled; @property (readonly, nonatomic) NSArray *bidiLanguages; @property (readonly, nonatomic) NSArray *listLanguages; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly, nonatomic) BOOL interactiveCanvasControllerAllowsHyperlinkInteraction; @property (readonly, nonatomic) BOOL isCanvasInteractive; @property (readonly, nonatomic) BOOL isPrintingCanvas; @property (readonly, nonatomic) BOOL spellCheckingSupported; @property (readonly, nonatomic) BOOL spellCheckingSuppressed; @property (readonly, nonatomic) BOOL shouldResizeCanvasToScrollView; @property (readonly, nonatomic) BOOL shouldClipToScrollViewBoundsInVisibleBounds; @property (readonly, nonatomic) BOOL shouldShowTextOverflowGlyphs; @property (readonly, nonatomic) BOOL shouldShowInstructionalText; @property (readonly, nonatomic) BOOL shouldPopKnobsOutsideEnclosingScrollView; @property (readonly, nonatomic) struct CGSize { double x0; double x1; } sizeOfScrollViewEnclosingCanvas; @property (readonly, nonatomic) BOOL allowEditMenuToAppear; @property (readonly, nonatomic) BOOL allowTextEditingToBegin; + (void)resetLastDocumentMode; - (struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })contentFrame; - (void)viewWillAppear:(BOOL)a0; - (void)dealloc; - (void)teardown; - (void)didEnterBackground; - (void)willEnterForeground; - (void)viewDidLoad; - (id)contentView; - (id)childViewControllerForStatusBarStyle; - (id)initWithNibName:(id)a0 bundle:(id)a1; - (void)viewWillDisappear:(BOOL)a0; - (void)didReceiveMemoryWarning; - (void)setDocument:(id)a0; - (void)observeValueForKeyPath:(id)a0 ofObject:(id)a1 change:(id)a2 context:(void *)a3; - (id)title; - (void)viewDidAppear:(BOOL)a0; - (void)scrollToRect:(struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })a0; - (void)canvasEditorDidChangeSelection:(id)a0; - (void)setSelection:(id)a0 onModel:(id)a1 withFlags:(unsigned long long)a2; - (void)asyncProcessChanges:(id)a0 forChangeSource:(id)a1; - (double)autoZoomAnimationDurationForInteractiveCanvasController:(id)a0; - (void)canvasWillEndEditingToBeginEditingRep:(id)a0; - (void)editorDidChangeSelection:(id)a0; - (BOOL)inFindReplaceMode; - (BOOL)inPrintPreviewMode; - (void)interactiveCanvasController:(id)a0 willAnimateToViewScale:(double)a1 withDuration:(double)a2 unscaledContentOffset:(struct CGPoint { double x0; double x1; })a3; - (void)interactiveCanvasControllerDidUpdateLayersFromReps:(id)a0; - (id)rectanglesObscuringView:(id)a0; - (BOOL)shouldIgnoreTextGestures; - (BOOL)tappedCanvasBackgroundAtPoint:(struct CGPoint { double x0; double x1; })a0; - (struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })visibleUnscaledCanvasRectWithoutKeyboard; - (BOOL)willChangeContentOffsetIfKeyboardHidden; - (BOOL)zoomOnSelectionChange:(id)a0; - (double)externalKeyboardHideMinDuration; - (id)mainInteractiveCanvasController; - (void)abandonDocument; - (id)drawableFactory; - (BOOL)isLayoutBelowApplicationToolbar; - (void)p_scrollToRect:(struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })a0; - (void)adjustContentViewFrame; - (void)adjustScrollViewInsets; - (id)alternativeOpenCloseDocumentAnimationView; - (void)backgroundInit; - (struct CGPoint { double x0; double x1; })clampedUnscaledContentOffset:(struct CGPoint { double x0; double x1; })a0; - (id)closeDocumentButton; - (void)closeDocumentPressed; - (void)commitChartDataEditorEdits; - (void)deRegisterForCanvasEditorNotifications; - (long long)defaultDocumentMode; - (void)didReplaceDocument; - (void)didSetContentViewFrame; - (void)didSetDocumentToMode:(long long)a0 fromMode:(long long)a1 animated:(BOOL)a2; - (void)didStopCloseDocumentAnimation; - (void)didStopLaunchDocumentAnimation; - (void)didStopOpenDocumentAnimation; - (void)dismissChartDataEditor:(id)a0; - (void)documentWillClose; - (void)documentWillCloseAfterError; - (void)forceChartDataEditorToCloseWithSave:(BOOL)a0; - (void)hideSharedUIPanelsForReadMode; - (id)initWithDefaultView; - (BOOL)insertControllerIsVisible; - (void)insertedDrawableInfoDidFinishDragging:(id)a0; - (BOOL)isInspectorVisible; - (BOOL)isKeyboardUp; - (void)keyboardDidHideOrUndock:(id)a0; - (void)keyboardShowCanceled; - (void)keyboardWillHideOrUndock:(id)a0; - (void)keyboardWillShowOrDock:(id)a0; - (long long)lastDocumentMode; - (double)leftToolbarItemsInset; - (void)loadDocument; - (double)mainToolsMenuMinimumHeight; - (void)navigatePlay:(id)a0; - (BOOL)navigatorHiddenDefault; - (id)openCloseAnimationAlternativeView; - (struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })openCloseAnimationCanvasFrame; - (id)p_arrayByAddingLanguage:(id)a0 toArray:(id)a1; - (void)p_backgroundInit; - (void)p_deregisterForNotifications; - (long long)p_documentModeToRestoreFor:(long long)a0; - (void)p_editingCellDidChange:(id)a0; - (void)p_restoreTextSelectionAfterModalDismiss; - (void)p_scrollToCurrentSelection; - (void)p_setDocumentMode:(long long)a0 animated:(BOOL)a1 dismissOnTop:(BOOL)a2; - (BOOL)p_shouldZoomOutForCurrentSelection; - (BOOL)p_shouldZoomOutFromTable; - (void)p_startBackgroundInit; - (void)p_teardown; - (void)p_willEnterFullScreen:(id)a0; - (void)p_zoomOutForCurrentSelection; - (double)paddingAboveChartDataEditor:(id)a0; - (double)paddingAboveHalfHeightAtTopOfScreen; - (void)performCloseDocumentAnimation; - (void)performOpenDocumentAnimation; - (void)popoverController:(id)a0 learnMoreAPDIDTapped:(id)a1; - (BOOL)popoverController:(id)a0 shouldReceiveOutsideTouchAtLocation:(struct CGPoint { double x0; double x1; })a1 inView:(id)a2; - (void)popoverControllerDidDismissPopoverBasedViewController:(id)a0; - (void)prepareCloseDocumentAnimation; - (void)prepareOpenDocumentAnimation; - (BOOL)preserveScrollViewClipping; - (struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })rectForPopoverFromToolbarButton:(id)a0; - (void)registerForCanvasEditorNotifications; - (double)rightToolbarItemsInset; - (void)setCanvasScrollViewClipsToBoundsForKeyboardAnimation:(BOOL)a0; - (void)setDocumentMode:(long long)a0 animated:(BOOL)a1; - (void)setDocumentMode:(long long)a0 animated:(BOOL)a1 dismissOnTop:(BOOL)a2; - (void)setDocumentUnloaded; - (void)setLastDocumentMode:(long long)a0; - (void)setNavigatorHiddenDefault:(BOOL)a0; - (BOOL)shouldAdjustContentFrameWhileRotating; - (BOOL)shouldAutoscrollToSelectionOnContentViewSizeChange; - (BOOL)showEditMenuOnChartInsert; - (void)showInsertPopoverFromRect:(struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })a0 popoverType:(int)a1 withDoneButton:(BOOL)a2; - (void)showPlaceholderTools:(id)a0; - (id)superviewForChartDataEditor:(id)a0; - (BOOL)teardownAppUIForDocumentManagerAction; - (double)toolbarSpaceWidth; - (double)toolbarTextButtonSpaceWidth; - (BOOL)toolsControllerIsVisible; - (void)toolsFindReplace; - (void)unloadDocument; - (BOOL)useToolBarHeightForSetDocumentMode; - (float)viewBottomInScreenCoordinates; - (struct _NSRange { unsigned long long x0; unsigned long long x1; })visibleRootIndexRange; - (struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })visibleScaledCanvasRectWithoutKeyboard; - (void)willInsertDrawable; - (void)willReplaceDocument; - (void)willSetDocumentToMode:(long long)a0 fromMode:(long long)a1 animated:(BOOL)a2; - (void)willSetupApplicationToolbar; - (void)zoomOutAnimated:(BOOL)a0; @end