mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-25 09:35:36 +00:00
AppKit lacked CPTextList and the textLists property on CPParagraphStyle,
preventing rich text from supporting bulleted or numbered lists. Additionally,
CPTextView derived its typing attributes from the character following the
insertion point upon selection changes, causing text appended at the end of a
document (and the Font Panel) to incorrectly revert to default styling.
* AppKit/CPTextView/CPTextList.j:
- Implement CPTextList following NSTextList specifications, including standard
Cocoa marker formats, CPTextListPrependEnclosingMarker, starting item numbers,
markerForItemNumber:, isOrdered, and keyed archiving.
- Add rangeOfTextList:atIndex: and itemNumberInTextList:atIndex: category
extensions to CPAttributedString.
* AppKit/CPTextView/CPParagraphStyle.j:
- Add textLists and setTextLists: properties with copy and archiving support.
- Implement paragraph style equality checks based on list identity.
* AppKit/CPTextView/CPTextView.j:
- Implement setTextList: and the changeTextList: action method (routing marker
styles via sender tags). Adjacent paragraphs with matching styles join automatically.
- Implement list item keyboard navigation and editing mechanics: Return generates
subsequent list items, Return on an empty item terminates list context,
Tab at item origin nests levels, Shift-Tab promotes levels, and Delete at item
text origin strips list membership.
- Automate list item renumbering during live edits, paste operations, and undo/redo cycles.
- Update Paste Ruler routines to correctly synthesize, strip, and merge list markers.
- Fix typingAttributes and Font Panel attribute resolution to derive from the
first selected character or the character immediately preceding the insertion point.
* AppKit/CPKeyBinding.j:
- Bind Shift-Tab selector to insertBacktab:.
* AppKit/CPWindow/CPWindow.j:
- Update key event routing to dispatch Shift-Tab to first responders that accept Tab.
* AppKit/AppKit.j:
- Export CPTextList.
* Tests/AppKit/CPTextListTest.j:
- Add unit test coverage for marker formatting, archiving, list range queries,
interactive list editing, Paste Ruler execution, and menu action validation.
* Tests/AppKit/CPTextViewTest.j:
- Add test coverage verifying typing attributes at trailing insertion points.
* Tests/Manual/TextEditor/Resources/MainMenu.xib, MainMenu.cib:
- Add Format > List menu structures containing bulleted, numbered, and outline choices.
* Tests/Manual/TextEditor/WORKLIST.md:
- Mark list interaction testing as completed; log RTF list serialization as an open item.
CPTextView now provides Cocoa-compliant bulleted, numbered, and nested list support.
124 lines
3.3 KiB
Plaintext
124 lines
3.3 KiB
Plaintext
/*
|
|
* AppKit.j
|
|
* AppKit
|
|
*
|
|
* Created by Francisco Tolmasky.
|
|
* Copyright 2008, 280 North, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
@import "_CPObject+Theme.j"
|
|
@import "_CPToolTip.j"
|
|
@import "CALayer.j"
|
|
@import "CGGeometry.j"
|
|
@import "CPAccordionView.j"
|
|
@import "CPAlert.j"
|
|
@import "CPAnimation.j"
|
|
@import "CPAnimationContext.j"
|
|
@import "CPAppearance.j"
|
|
@import "CPApplication.j"
|
|
@import "CPArrayController.j"
|
|
@import "CPBezierPath.j"
|
|
@import "CPBox.j"
|
|
@import "CPBrowser.j"
|
|
@import "CPButton.j"
|
|
@import "CPButtonBar.j"
|
|
@import "CPCheckBox.j"
|
|
@import "CPCib.j"
|
|
@import "CPCibBindingConnector.j"
|
|
@import "CPCibConnector.j"
|
|
@import "CPCibControlConnector.j"
|
|
@import "CPCibHelpConnector.j"
|
|
@import "CPCibLoading.j"
|
|
@import "CPCibOutletConnector.j"
|
|
@import "CPCibRuntimeAttributesConnector.j"
|
|
@import "CPClipView.j"
|
|
@import "CPCollectionView.j"
|
|
@import "CPCollectionViewItem.j"
|
|
@import "CPColor.j"
|
|
@import "CPColorPanel.j"
|
|
@import "CPColorSpace.j"
|
|
@import "CPColorWell.j"
|
|
@import "CPComboBox.j"
|
|
@import "CPCompatibility.j"
|
|
@import "CPControl.j"
|
|
@import "CPController.j"
|
|
@import "CPCookie.j"
|
|
@import "CPCursor.j"
|
|
@import "CPDatePicker.j"
|
|
@import "CPDocument.j"
|
|
@import "CPDocumentController.j"
|
|
@import "CPEvent.j"
|
|
@import "CPFont.j"
|
|
@import "CPFontManager.j"
|
|
@import "CPGradient.j"
|
|
@import "CPGraphics.j"
|
|
@import "CPImage.j"
|
|
@import "CPImageView.j"
|
|
@import "CPKeyBinding.j"
|
|
@import "CPLevelIndicator.j"
|
|
@import "CPMenu.j"
|
|
@import "CPMenuItem.j"
|
|
@import "CPOpenPanel.j"
|
|
@import "CPOutlineView.j"
|
|
@import "CPPanel.j"
|
|
@import "CPPasteboard.j"
|
|
@import "CPPopover.j"
|
|
@import "CPPopUpButton.j"
|
|
@import "CPPredicateEditor.j"
|
|
@import "CPPredicateEditorRowTemplate.j"
|
|
@import "CPProgressIndicator.j"
|
|
@import "CPRadio.j"
|
|
@import "CPResponder.j"
|
|
@import "CPRuleEditor.j"
|
|
@import "CPRulerMarker.j"
|
|
@import "CPRulerView.j"
|
|
@import "CPScroller.j"
|
|
@import "CPScrollView.j"
|
|
@import "CPSearchField.j"
|
|
@import "CPSecureTextField.j"
|
|
@import "CPSegmentedControl.j"
|
|
@import "CPShadow.j"
|
|
@import "CPSlider.j"
|
|
@import "CPSound.j"
|
|
@import "CPSplitView.j"
|
|
@import "CPStackView.j"
|
|
@import "CPStepper.j"
|
|
@import "CPTableColumn.j"
|
|
@import "CPTableView.j"
|
|
@import "CPTabView.j"
|
|
@import "CPText.j"
|
|
@import "CPTextField.j"
|
|
@import "CPTextList.j"
|
|
@import "CPTextView.j"
|
|
@import "CPTokenField.j"
|
|
@import "CPToolbar.j"
|
|
@import "CPToolbarItem.j"
|
|
@import "CPTrackingArea.j"
|
|
@import "CPTreeNode.j"
|
|
@import "CPUserDefaultsController.j"
|
|
@import "CPView.j"
|
|
@import "CPViewAnimator.j"
|
|
@import "CPViewAnimation.j"
|
|
@import "CPViewController.j"
|
|
@import "CPVisualEffectView.j"
|
|
@import "CPWebView.j"
|
|
@import "CPWindow.j"
|
|
@import "CPWindowController.j"
|
|
@import "CPWorkspace.j"
|
|
@import "CPFontPanel.j"
|
|
@import "CPTreeController.j"
|