Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000579ScribusStylespublic04-May-02 21:2412-Jan-26 02:54
Reporterlinuxlingam 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformAthlonXPOSFedoraOS VersionCore 1
Product Version1.3 
Target VersionFixed in Version 
Summary0000579: right-click paragraph, save as paragraph style
Descriptiontypesetting for body, headline, etc, usually done by hand initially. so once done, wanna right-click and save it as a paragraph style. should prompt for name.
TagsNo tags attached.
Attached Filespatch file icon style_from_cpos.patch [^] (12,081 bytes) 11-May-23 15:39 [Show Content]
patch file icon style_from_cpos_v2.patch [^] (13,331 bytes) 11-May-25 11:17 [Show Content]
patch file icon style_from_cpos_v3.patch [^] (12,961 bytes) 11-May-26 13:10 [Show Content]
patch file icon stylesFromCPos.patch [^] (17,344 bytes) 12-Jan-18 11:49 [Show Content]

- Relationships
has duplicate 0005642closed Paragraph styles 
has duplicate 0008637closedjghali Save text styles from text frames work flow improvment 

-  Notes
(0001319)
cbradney (administrator)
04-May-02 21:28

To be considered with 1.3+
(0016115)
christoph_s (administrator)
07-May-06 23:05

Should also be available for other styles, if possible.
(0018965)
louisdesjardins (developer)
08-Feb-14 20:04

I take this opportunity to explain further what I have in mind when I talk about a button named "Create style".

While it is very efficient to test various type settings from the PP and immediately see the result in the real text frame of your job (as opposed to the sample text that is in the Edit > Paragraph Styles dialog) it is clumsy to have to go to the Edit > Paragraph Styles dialog to enter again those values when you're satisfied with the result and want that as a Style. The trip to this dialog is time consuming and not very efficient. What I suggest is this button that would allow to immediately create a Style from the settings of the PP (provided as mentionned in an earlier bug report that we harmonize the PP and the Edit > Par Styles dialog). Once hit, we would be offered a small dialog asking for a Style Name and a Keyboard Shortcut (as an option) and voilĂ !

I sincerely think this would be a great plus for productivity and creationness! Not a gadget, a real plus in the PP. Consider the fact that afaik Scribus is alone in its category to allow such mousewheel settings combined with ctrl and shift keys to make the finest settings at your fingertip, including changing fonts, typesize, linespacing, kerning... etc. Given all those goodies that are really super-efficient, I am incline to think that a "Create Style" button would be in fact the cherry on the cake, the final touch to the text tab in the PP! Am I too enthusiastic?
(0024210)
louisdesjardins (developer)
10-Jun-25 03:52

I completely stand by what I was writing. I agree with the poster that we need that. That was back in 2004, May 2. Wow!

I wonder how difficult is it to implement since we have all the settings available. We only want a button, or a right-click, with a dialog so small... prompt for a name and a keyboard shortcut.
(0026230)
cezaryece (developer)
11-May-23 15:39

My patch solving this issue, I hope...
(0026231)
cbradney (administrator)
11-May-23 22:53

My initial concerns with this lie with the code added to the ScribusMainWindow.. I will review and see if we can get that out of there (we want to remove all function document code from the main window)
(0026234)
cezaryece (developer)
11-May-24 07:15

Tell me where and I will move it for you...
(0026250)
cbradney (administrator)
11-May-24 23:27

Looking again, I think they should at least be in ScribusDoc, at least, it is a better place than the main window. You can connect actions dynamically to the doc.. see actionmanager.cpp and functions like connectNewSelectionActions()
(0026253)
ale (manager)
11-May-24 23:44

basically: it works :-)

just one thing: the labels in the context menu are too long... i would create one single context menu with submenus

style >
  create from selection (paragraph)
  update from selection (paragraph)
  create from selection (character)
  update from selection (character)

i'm still not really happy...

i wonder it would not be better to have a button "from selection" in the style manager...

or adding it to the PP...

i guess i'll ask claudia if she has better ideas!
(0026257)
cezaryece (developer)
11-May-25 08:34

In PP ok, but invoking style manager for such simply task is against rule "smallest number of clicks".
For me context menu is good place, maybe all these entries should be in submenu "Styles" in there.
(0026258)
cezaryece (developer)
11-May-25 11:36

New version of my patch
- functions moved into ScribusDoc as cbradney was suggesting
- in UI all functions are in submenu "Styles from selection" in context menu
- add function for saving current style as Default Paragraph/Character Style

Remember to add option -l (small L) while applying my patches (QtCreator has problem with spaces and tabs)
(0026262)
cbradney (administrator)
11-May-25 23:30

Cezary.. looks good, I think.. I guess my next observation is.. how does this run programmatically, or via scripter or headless.. void ScribusDoc::setChStyleCPos() calls for GUI interaction. Perhaps such functions could take a string paramter for the name if the GUI is not in use.. or to force a name (and if a duplicate, then just append _s until it is unique or similar)..

I am asking Jean to review too
(0026265)
cezaryece (developer)
11-May-26 07:37
edited on: 11-Jun-02 07:15

It calls GUI interaction because styles name changes need update in PP and SM. Maybe it should be splited into function for headless operation and separately into function for GUI updates.
I will try to do it...

And done in v3...

(0026486)
StefanM (reporter)
11-Jun-27 12:29

This feature would be gold. "typesetting for body, headline, etc, usually done by hand initially. so once done, wanna right-click and save it as a paragraph style. should prompt for name." +1
(0026490)
ale (manager)
11-Jun-27 13:45

stefanm, just apply the patches, test it and give feedback...
(0026527)
StefanM (reporter)
11-Jul-04 12:07

@ale

patching didnt work, dont know why: hunk errors etc. I checked out svn trunk and 2 older working copies from within QT Creator and tried
patch -p1 < style_from_cpos_v3.patch
(0026529)
cezaryece (developer)
11-Jul-04 13:04
edited on: 11-Jul-04 13:07

Adding -l (small L) option may help, but major problem is that in the meantime CPos field of PageItem is no longer used, and patch need refactoring it to itemText->cursorPosition() method.
When I end current work I try to prepare new version of patch for latest revisions.

(0026532)
ale (manager)
11-Jul-04 13:27

use the "-l" parameter for patch (this is an el and not an one...)
(0026823)
StefanM (reporter)
11-Sep-02 11:28

@cezaryece

Is a patch available for testing?
(0027007)
cezaryece (developer)
11-Oct-12 07:26

and what about that patch commit?
(0027009)
StefanM (reporter)
11-Oct-12 09:17

@cezaryece

I see only patches from May here, in (0026529) you said "When I end current work I try to prepare new version of patch for latest revisions."

I'm waiting patiently :-) Thank you very much for your work with scribus.
(0027010)
cezaryece (developer)
11-Oct-12 13:41

ups.. my fault... will try today what I promise
(0027554)
cezaryece (developer)
12-Jan-18 11:51

Sorry for late, but bettter late than never.
stylesFromCPos.patch is new version with solution for 1.4.1.svn
Enjoy!

- Issue History
Date Modified Username Field Change
04-May-02 21:24 linuxlingam New Issue
04-May-02 21:28 cbradney Note Added: 0001319
06-Feb-06 18:35 jo-hannes Status new => acknowledged
06-Feb-06 18:35 jo-hannes Product Version 1.1.6 => 1.3
07-May-06 23:05 christoph_s Note Added: 0016115
07-May-06 23:06 christoph_s Relationship added has duplicate 0005642
08-Feb-14 20:04 louisdesjardins Note Added: 0018965
09-Dec-13 12:51 jghali Relationship added has duplicate 0008637
10-Jun-25 03:52 louisdesjardins Note Added: 0024210
11-May-23 15:39 cezaryece File Added: style_from_cpos.patch
11-May-23 15:39 cezaryece Note Added: 0026230
11-May-23 22:53 cbradney Note Added: 0026231
11-May-24 07:15 cezaryece Note Added: 0026234
11-May-24 23:27 cbradney Note Added: 0026250
11-May-24 23:44 ale Note Added: 0026253
11-May-25 08:34 cezaryece Note Added: 0026257
11-May-25 11:17 cezaryece File Added: style_from_cpos_v2.patch
11-May-25 11:36 cezaryece Note Added: 0026258
11-May-25 23:30 cbradney Note Added: 0026262
11-May-26 07:37 cezaryece Note Added: 0026265
11-May-26 13:10 cezaryece File Added: style_from_cpos_v3.patch
11-Jun-02 07:15 cezaryece Note Edited: 0026265 View Revisions
11-Jun-27 12:29 StefanM Note Added: 0026486
11-Jun-27 13:45 ale Note Added: 0026490
11-Jul-04 12:07 StefanM Note Added: 0026527
11-Jul-04 13:04 cezaryece Note Added: 0026529
11-Jul-04 13:07 cezaryece Note Edited: 0026529 View Revisions
11-Jul-04 13:27 ale Note Added: 0026532
11-Sep-02 11:28 StefanM Note Added: 0026823
11-Oct-12 07:26 cezaryece Note Added: 0027007
11-Oct-12 09:17 StefanM Note Added: 0027009
11-Oct-12 13:41 cezaryece Note Added: 0027010
12-Jan-18 11:49 cezaryece File Added: stylesFromCPos.patch
12-Jan-18 11:51 cezaryece Note Added: 0027554



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker