Since document classes already exist, why not point the current document to one, temporarily overriding it's default Document Class, until the document is closed?
Here's a simple dialog that I envision to make this work:
Code: Select all
Document name: DemoClass.java
Temporarily associate this document to
the following Document Class:
------------------------------------------------
| Default Document class, based on extension: |
| (o) Java Alt+0 |
------------------------------------------------
Other Document classes:
( ) HTML Alt+1
(o) Java Alt+2
( ) Perl Alt+3
( ) Text Alt+4
( ) TextPad Syntax Alt+5
*** This association will revert to the default ***
*** Document Class (based on extension) the next ***
*** time the document is opened ***
[OK] [CANCEL] [APPLY] [HELP]
There could be configurable key commands for these, like:
- * DocClassDefault
* DocClassOne
* DocClassTwo
* DocClassThree
* DocClassFour
* DocClassFive
* ... maybe up to ten ...
To make the key-command refer to the same document class, regardless of what the current document class is (in this example: Java), the default document class should always be in the alphabetical list, <i>as well</i> as the top, default item.
What if there are more than ten document classes? Which ones display in this dialog? There should be a "Display in properties dialog" dialog:
Code: Select all
Display these Document classes in the Properties
dialog box
EXISTING CLASSES CLASSES IN PROPERTIES
DIALOG (up to ten)
------------------ --- ------------------
| Sql / PL/SQL |^| | & | | HTML |^|
| Cold Fusion | | --- | Java | |
| Tmp 4 Print | | | Perl | |
| Default | | --- | Text | |
| |v| | & | | TextPad Synt |v|
------------------ --- ------------------
What do you think?