Issue 26315 - Numbering style can't be deleted when used by paragraph
Summary: Numbering style can't be deleted when used by paragraph
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: numbering
Depends on:
Blocks:
 
Reported: 2004-03-10 18:49 UTC by tgevans
Modified: 2013-08-07 14:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tgevans 2004-03-10 18:49:19 UTC
If a paragraph is using a numbering style and I attempt to delete the numbering
style, OOo doesn't delete the style and gives no indication of why the style is
not deleted.

Reproducible: Always
Steps to reproduce:
1. Open a new text (Writer) document.
2. Start creating a numbered list.
3. Display the Stylist (F11) and click the Numbering Styles button. Select the
numbered list and create a new numbering style for the list (Create Style from
Selection)
4. With the numbered list still selected, go to Format > Paragraph... >
Numbering tab. Make sure that the Numbering Style drop-down is set for the newly
created numbering style.
5. Click OK. Right-click the numbering style in the Stylist and choose Delete
from the context menu.
6. OOo warns "You are deleting an applied Style! Do you really want to
delete..." Choose Yes.

Actual Results:
The warning disappears, but the style still remains.

Expected Results:
Either the style is removed, or OOo explains why the style cannot be deleted (in
this case, because it's being used by a paragraph).

If a different numbering style is selected in Format > Paragraph... > Numbering
tab, the numbering style created in step 3 can be deleted without a problem.
Comment 1 michael.ruess 2004-03-11 09:01:35 UTC
MRU->PB: The rquest message suggests a behaviour which is not processed
afterwards. When doing this with char or para styles it works. Only numbering
styles have this problem.
Comment 2 pb 2004-03-17 05:18:28 UTC
Accepted.
Comment 3 pb 2004-03-18 11:58:07 UTC
PB -> HB: the result of a discussion with OS is that you a the right guy to
remove this numbering style from all paragraphs and then delete it.
Comment 4 pb 2004-03-18 12:02:20 UTC
PB -> HB: you will find the code here: core/doc/docnum.cxx  in method
SwDoc::DelNumRule()
Comment 5 openoffice 2004-03-23 09:16:16 UTC
accepted.
Comment 6 openoffice 2004-04-29 14:18:37 UTC
needs spec
Comment 7 frank.loehmann 2006-09-04 13:34:12 UTC
Keyword added
Comment 8 gghh 2009-06-13 21:29:39 UTC
Problem still exists in DEV300m50.
Comment 9 jr 2009-10-18 20:04:14 UTC
setting keyword "numbering"