<?xml version="1.0" encoding="UTF-8"?>
<!--
   IBNSTextView.inspector
   InterfaceBuilder

   Created by Kelly Keenan on 2009-11-24.
   Copyright © 2009-2018 Apple Inc. All rights reserved.
-->

<slice>
    <section>
        <sliver title="Text">
            <property type="string" attributed="true" placeholder="Text" keyPath="inspectedObjectsController.selection.object.ibShadowedTextStorage" dataSourceKeyPath="inspectedObjectsController.selection.object.ibFontDataSource" appearanceKeyPath="inspectedObjectsController.selection.object.effectiveAppearance" backgroundColorKeyPath="inspectedObjectsController.selection.object.backgroundColor" defaultTypingAttributesKeyPath="inspectedObjectsController.selection.object.ibDefaultTypingAttributes" />
        </sliver>
    </section>
    <section>
        <sliver title="Text Direction">
            <property type="enumeration" placeholder="Base Writing Direction" keyPath="inspectedObjectsController.selection.object.baseWritingDirection">
                <option-group>
                    <option title="Natural" value="-1"/>
                </option-group>
                <option-group>
                    <option title="Left to Right" value="0"/>
                    <option title="Right to Left" value="1"/>
                </option-group>
            </property>
        </sliver>
        <sliver title="Orientation">
            <property type="enumeration" placeholder="Layout Orientation" keyPath="inspectedObjectsController.selection.object.ibShadowedLayoutOrientation">
                <option-group>
                    <option title="Horizontal" value="0"/>
                    <option title="Vertical" value="1"/>
                </option-group>
            </property>
        </sliver>
    </section>
    <section>
        <sliver title="Selection">
            <property type="enumeration" placeholder="Selection Granularity" keyPath="inspectedObjectsController.selection.object.selectionGranularity">
                <option-group>
                    <option title="Character" value="0"/>
                    <option title="Word" value="1"/>
                    <option title="Paragraph" value="2"/>
                </option-group>
            </property>
        </sliver>
        <sliver title="Behavior">
            <property type="boolean" title="Editable" keyPath="inspectedObjectsController.selection.object.editable"/>
            <property type="boolean" title="Selectable" keyPath="inspectedObjectsController.selection.object.selectable"/>
            <property type="boolean" title="Field Editor" keyPath="inspectedObjectsController.selection.object.fieldEditor"/>
        </sliver>
        <sliver title="Allows">
            <property type="boolean" title="Rich Text" keyPath="inspectedObjectsController.selection.object.richText"/>
            <property type="boolean" title="Undo" keyPath="inspectedObjectsController.selection.object.allowsUndo"/>
            <property type="boolean" title="Graphics" keyPath="inspectedObjectsController.selection.object.importsGraphics"/>
            <property type="boolean" title="Image Editing" keyPath="inspectedObjectsController.selection.object.allowsImageEditing"/>
            <property type="boolean" title="Non-contiguous Layout" keyPath="inspectedObjectsController.selection.object.ibShadowedAllowsNonContiguousLayout" enabledKeyPath="inspectedObjectsController.selection.object.ibShouldEnableNonContiguousLayoutProperty"/>
            <property type="boolean" title="Background Color Change" keyPath="inspectedObjectsController.selection.object.allowsDocumentBackgroundColorChange"/>
            <property type="boolean" title="Only Roman Characters" keyPath="inspectedObjectsController.selection.object.ibInspectedAllowsOnlyRomanCharacters"/>
        </sliver>
        <include fileName="IBNSTextContentType">
            <replaceToken tokenIdentifier="TEXT_CONTENT_TYPE_VISIBLE_KEYPATH" replacementString="" />
            <replaceToken tokenIdentifier="TEXT_CONTENT_TYPE_KEYPATH" replacementString="inspectedObjectsController.selection.object.contentType" />
        </include>
    </section>
    <section>
        <sliver title="Uses">
            <property type="boolean" title="Font Panel" keyPath="inspectedObjectsController.selection.object.usesFontPanel"/>
            <property type="boolean" title="Ruler" keyPath="inspectedObjectsController.selection.object.usesRuler"/>
            <property type="boolean" title="Inspector Bar" keyPath="inspectedObjectsController.selection.object.ibShadowedUsesInspectorBar"/>
        </sliver>
        <sliver title="Find">
            <property type="enumeration" placeholder="Find" keyPath="inspectedObjectsController.selection.object.ibArchivedFindStyle">
                <option-group>
                    <option title="None" value="0"/>
                    <option title="Uses Panel" value="1"/>
                    <option title="Uses Bar" value="2"/>
                </option-group>
            </property>
            <property type="boolean" title="Incremental Searching" keyPath="inspectedObjectsController.selection.object.ibShadowedIncrementalSearchingEnabled" />            
        </sliver>
    </section>
    <section>
        <sliver title="Display">
            <property type="boolean" title="Draws Background" keyPath="inspectedObjectsController.selection.object.drawsBackground"/>
        </sliver>
        <sliver title="Text Color">
            <property type="ib-named-color" defaultColor="NSNamedColorSpace System textColor" keyPath="inspectedObjectsController.selection.object.textColor" />
        </sliver>
        <sliver title="Background">
            <property type="ib-named-color" defaultColor="NSNamedColorSpace System textBackgroundColor" keyPath="inspectedObjectsController.selection.object.backgroundColor" />
        </sliver>
        <sliver title="Insertion">
            <property type="ib-named-color" defaultColor="NSNamedColorSpace System textColor" keyPath="inspectedObjectsController.selection.object.insertionPointColor" />
        </sliver>
    </section>
    <section>
        <sliver title="Linguistics">
            <property type="boolean" title="Continuous Spell Checking" keyPath="inspectedObjectsController.selection.object.continuousSpellCheckingEnabled"/>
            <property type="boolean" title="Automatic Spelling Correction" keyPath="inspectedObjectsController.selection.object.automaticSpellingCorrectionEnabled"/>
            <property type="boolean" title="Grammar Checking" keyPath="inspectedObjectsController.selection.object.grammarCheckingEnabled"/>
        </sliver>
        <sliver title="Substitution">
            <property type="boolean" title="Smart Links" keyPath="inspectedObjectsController.selection.object.automaticLinkDetectionEnabled"/>
            <property type="boolean" title="Smart Quotes" keyPath="inspectedObjectsController.selection.object.automaticQuoteSubstitutionEnabled"/>
            <property type="boolean" title="Smart Dashes" keyPath="inspectedObjectsController.selection.object.automaticDashSubstitutionEnabled"/>
            <property type="boolean" title="Data Detectors" keyPath="inspectedObjectsController.selection.object.automaticDataDetectionEnabled"/>
            <property type="boolean" title="Text Replacement" keyPath="inspectedObjectsController.selection.object.automaticTextReplacementEnabled"/>
        </sliver>
        <sliver title="Editing">
            <property type="boolean" title="Smart Insert and Delete" keyPath="inspectedObjectsController.selection.object.smartInsertDeleteEnabled"/>
        </sliver>
    </section>
    <section>
        <sliver title="Touch Bar">
            <property type="boolean" keyPath="inspectedObjectsController.selection.object.automaticTextCompletionEnabled" title="Auto Text Completion" />
            <property type="boolean" keyPath="inspectedObjectsController.selection.object.allowsCharacterPickerTouchBarItem" title="Allows Character Picker" />
        </sliver>
    </section>
    <section visibleKeyPath="inspectedObjectsController.selection.object.class.ibSupportsEncodedTextKitFlavor">
        <sliver title="Text Layout">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.ibShadowedEncodedTextKitFlavor">
                <option-group>
                    <option title="Default" value="0"/>
                </option-group>
                <option-group>
                    <option title="TextKit 1" value="1"/>
                    <option title="TextKit 2" value="2"/>
                </option-group>
            </property>
        </sliver>
    </section>
</slice>

