Drag and Drop of Selections to the Stylist

Document - ID	Specification Owner	Last Change	Status
	Oliver Specht	01/05/04	Final
Conforms to	PCD Requirement Ease of Use 69
Applies to	OpenOffice.org Writer
Task ID(s)	i 20139
Category	Bugfix

Abstract

Drag and drop of selection of OOo Writer text documents into the Stylist window should create appropriate new styles depending on the currently selected style family. Those newly created styles should then copy the attributes from the selection.

i-Team Members (The specification Owner is part of the i-Team)

	Name	E-mail Address
User Experience	Frank Loehmann	Frank.Loehmann@sun.com
Development	Oliver Specht	Oliver.Specht@sun.com
Quality Assurance	Éric Savary	Eric.Savary@sun.com
Documentation	Uwe Fischer	Uwe.Fischer@sun.com

Approved for Implementation

	Approved by	Date
User Experience	Frank Loehmann	12/10/03
Development	Oliver Specht	12/09/03
Quality Assurance	Éric Savary	12/09/03
Documentation	Uwe Fischer	12/09/03
String Review	No string changes	

Document Change History

Rev. Level	Change	Initials	Date
1.0	Oliver Specht	OS	12/04/03
1.1	Frank Loehmann	FL	12/04/03
1.2	Oliver Specht – Incorporated changes and comments from Uwe Fischer	OS	12/05/03
1.3	Oliver Specht	OS	12/09/03
1.4	Oliver Specht – Incorporated additional specification detail from FL	OS	12/11/03
1.5	Oliver Specht – Approvals added	OS	01/05/04

Drag and Drop of Selections to the Stylist

Contents

Glossary	1

1	Motivation	1

2	User Scenarios	1

3	Goals	1

4	Requirements and Dependencies	1

4.1	Requirements	1

4.2	Technical Dependencies	1

5	Competitive Analyses	1

6	Detailed Specification	2

6.1	Error Conditions	2

7	Future Tasks	2

8	Notes	2

9	References	3

Glossary

Term	Description

Motivation

Drag and drop of selection of OOo Writer text documents into the Stylist window should create appropriate new styles depending on the currently selected style family. Those newly created styles should then copy the attributes from the selection. In version 1.1 this doesn't work as expected by the user.

User Scenarios

A user selects a word in a text and formats it as bold and red colored. To be able to use this attributes as character style instead of hard attributes he drops this selection on the Stylist window to create a new character style . This new style is now applied to the selection instead of the hard attributes.

He expects to create a character style with the attributes “Bold” and “Color Red” applied.

In OOo 1.1 Drag & Drop works only if the Stylist has been switched to “Character styles” mode before and if the selection is dropped into some free area in the styles list box. It is currently not possible to switch the mode while drag and drop is active and dropping onto a style name in the ListBox doesn't initiate the creation of a new style.

Drag & Drop starts the same functionality which could be achieved by pressing the button “create style from selection” in the Stylist.

Goals

Define a Drag and Drop handling that matches the user expectation.

Requirements and Dependencies

Requirements

none

Technical Dependencies

none

Competitive Analyses

None

Detailed Specification

Writer:

Selected text can be dropped onto the Stylist to create paragraph styles or character styles. The newly created style will be created as a child of the currently assigned paragraph or character style (if available).

Selected frames, graphics and OLE objects can be dropped to create frame styles. Page styles can never be created via drag and drop because page settings are always taken from styles.

To create numbering styles the selected text needs to be part of a numbering.

Calc:

Cell selections can be dropped on the Stylist to create cell styles. Page styles cannot be created for the same reason as in Writer.

Draw/Impress:

Graphics styles can be created by dropping selected drawing objects.

Creation of presentation styles in Impress is much more complex than all other style creations because it's not only copying of attributes from a selection but a copying of structural information. This is to be handled as a Future task.

General:

To switch the currently selected family in the Stylist moving the mouse over the family toolbox items should switch the families in the same way as a mouse click normally does.

Dropping the selection onto the family buttons works the same way as dropping into the style window of the related family.

As the position of the drop doesn't influence the action there's no selection (underlining) of the style names when the drag and drop cursor is over a style name.

As long as dropping at a given location is possible the "copy" pointer (plus symbol) is displayed. Otherwise the "unavailable" pointer is displayed.

A drop on the catogory drop down Listbox at the bottom of the Stylist is not possible

Tab Order

None

Key Board Shortcuts

None

Error Conditions

None

Future Tasks

Enable drag and drop of slides in Impress to create presentation styles out of a slide.

Notes

None

References

None

Required - Give references to related documentation, such as engineering designs, technical specs, and other sources for related units. Also include links to documents that other sections in this spec need to refer to, such as user opinions usability test reports.

Drag and Drop of Selections to the Stylist

Page 3

http://specs.openoffice.org/appwide/drag_and_drop_styles/drag_and_drop_styles.sxw

Oliver Specht

2003-11-28T11:18:58