[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: Default Paper Size for KOffice?
From:       Thomas Zander <zander () planescape ! com>
Date:       2001-10-26 18:02:47
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


On Fri, Oct 26, 2001 at 07:15:42PM +0200, David Faure wrote:
> On Vendredi 26 Octobre 2001 18:36, Thomas Zander wrote:
> > > 2).  When I start with an empty document it defaults to A4.
> > 
> > This is known (by me anyhow) and I plan to change the open dialog for KWord 
> > at least, and probably for the whole of KOffice to fix this problem. Thing 
> > is that some other things have to be done first ;)
> 
> We could also use the new KLocale::pageSize() to select automatically
> to the appropriate page size, taking it from the locale (i.e. country) settings.
> This would influence the document created by "create empty document",
> letting it still be possible to create docs of other sizes using the templates
> explicitely.
> (Of course internally we'd simply select the right template, depending
> on the locale pagesize, much easier than having a template that adaptsto
> any size by itself......)

Sounds good, I personally wanted to get rid of the 'create new' part and only
use templates (see attached QT3 .ui file) but this seems to be a good way
to solve the problem in the mean time.

-- 
Thomas Zander                                            zander@earthling.net
The only thing worse than failure is the fear of trying something new

["open-diag.ui" (text/plain)]

<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Open</class>
<widget class="QDialog">
    <property name="name">
        <cstring>Open</cstring>
    </property>
    <property name="geometry">
        <rect>
            <x>0</x>
            <y>0</y>
            <width>600</width>
            <height>480</height>
        </rect>
    </property>
    <property name="caption">
        <string>Form1</string>
    </property>
    <vbox>
        <property name="name">
            <cstring>unnamed</cstring>
        </property>
        <property name="margin">
            <number>11</number>
        </property>
        <property name="spacing">
            <number>6</number>
        </property>
        <widget class="QRadioButton">
            <property name="name">
                <cstring>newdoc</cstring>
            </property>
            <property name="text">
                <string>Create &amp;new document</string>
            </property>
            <property name="checked">
                <bool>true</bool>
            </property>
        </widget>
        <widget class="QLayoutWidget">
            <property name="name">
                <cstring>Layout1</cstring>
            </property>
            <hbox>
                <property name="name">
                    <cstring>unnamed</cstring>
                </property>
                <property name="margin">
                    <number>0</number>
                </property>
                <property name="spacing">
                    <number>6</number>
                </property>
                <spacer>
                    <property name="name" stdset="0">
                        <cstring>Spacer1</cstring>
                    </property>
                    <property name="orientation">
                        <enum>Vertical</enum>
                    </property>
                    <property name="sizeType">
                        <enum>Expanding</enum>
                    </property>
                    <property name="sizeHint">
                        <size>
                            <width>20</width>
                            <height>20</height>
                        </size>
                    </property>
                </spacer>
                <widget class="QTabWidget">
                    <property name="name">
                        <cstring>TabWidget2</cstring>
                    </property>
                    <widget class="QWidget">
                        <property name="name">
                            <cstring>tab</cstring>
                        </property>
                        <attribute name="title">
                            <string>Page layout</string>
                        </attribute>
                        <hbox>
                            <property name="name">
                                <cstring>unnamed</cstring>
                            </property>
                            <property name="margin">
                                <number>11</number>
                            </property>
                            <property name="spacing">
                                <number>6</number>
                            </property>
                            <widget class="QIconView">
                                <item>
                                    <property name="text">
                                        <string>Newsletter</string>
                                    </property>
                                    <property name="pixmap">
                                        <pixmap>image0</pixmap>
                                    </property>
                                </item>
                                <property name="name">
                                    <cstring>IconView1</cstring>
                                </property>
                            </widget>
                        </hbox>
                    </widget>
                    <widget class="QWidget">
                        <property name="name">
                            <cstring>tab</cstring>
                        </property>
                        <attribute name="title">
                            <string>Text oriented</string>
                        </attribute>
                        <hbox>
                            <property name="name">
                                <cstring>unnamed</cstring>
                            </property>
                            <property name="margin">
                                <number>11</number>
                            </property>
                            <property name="spacing">
                                <number>6</number>
                            </property>
                            <widget class="QIconView">
                                <item>
                                    <property name="text">
                                        <string>A4</string>
                                    </property>
                                    <property name="pixmap">
                                        <pixmap>image1</pixmap>
                                    </property>
                                </item>
                                <property name="name">
                                    <cstring>IconView1_2</cstring>
                                </property>
                            </widget>
                        </hbox>
                    </widget>
                    <widget class="QWidget">
                        <property name="name">
                            <cstring>tab</cstring>
                        </property>
                        <attribute name="title">
                            <string>&amp;Recent files</string>
                        </attribute>
                        <hbox>
                            <property name="name">
                                <cstring>unnamed</cstring>
                            </property>
                            <property name="margin">
                                <number>11</number>
                            </property>
                            <property name="spacing">
                                <number>6</number>
                            </property>
                            <widget class="QListBox">
                                <item>
                                    <property name="text">
                                        \
<string>file:///home/zander/.../koffice/mydoc.kwd</string>  </property>
                                </item>
                                <item>
                                    <property name="text">
                                        \
<string>http://www.mysite.org/help.doc</string>  </property>
                                </item>
                                <property name="name">
                                    <cstring>ListBox1</cstring>
                                </property>
                            </widget>
                        </hbox>
                    </widget>
                </widget>
            </hbox>
        </widget>
        <widget class="QLayoutWidget">
            <property name="name">
                <cstring>Layout4</cstring>
            </property>
            <hbox>
                <property name="name">
                    <cstring>unnamed</cstring>
                </property>
                <property name="margin">
                    <number>0</number>
                </property>
                <property name="spacing">
                    <number>6</number>
                </property>
                <widget class="QRadioButton">
                    <property name="name">
                        <cstring>RadioButton2</cstring>
                    </property>
                    <property name="text">
                        <string>Open an existing document</string>
                    </property>
                </widget>
                <spacer>
                    <property name="name" stdset="0">
                        <cstring>Spacer3</cstring>
                    </property>
                    <property name="orientation">
                        <enum>Horizontal</enum>
                    </property>
                    <property name="sizeType">
                        <enum>Expanding</enum>
                    </property>
                    <property name="sizeHint">
                        <size>
                            <width>20</width>
                            <height>20</height>
                        </size>
                    </property>
                </spacer>
                <widget class="QPushButton">
                    <property name="name">
                        <cstring>PushButton1</cstring>
                    </property>
                    <property name="text">
                        <string>C&amp;hoose</string>
                    </property>
                </widget>
            </hbox>
        </widget>
        <widget class="Line">
            <property name="name">
                <cstring>Line1_2</cstring>
            </property>
            <property name="frameShape" stdset="0">
                <enum>HLine</enum>
            </property>
            <property name="frameShadow">
                <enum>Plain</enum>
            </property>
            <property name="orientation">
                <enum>Horizontal</enum>
            </property>
        </widget>
        <widget class="QLayoutWidget">
            <property name="name">
                <cstring>Layout3</cstring>
            </property>
            <hbox>
                <property name="name">
                    <cstring>unnamed</cstring>
                </property>
                <property name="margin">
                    <number>0</number>
                </property>
                <property name="spacing">
                    <number>6</number>
                </property>
                <spacer>
                    <property name="name" stdset="0">
                        <cstring>Spacer2</cstring>
                    </property>
                    <property name="orientation">
                        <enum>Horizontal</enum>
                    </property>
                    <property name="sizeType">
                        <enum>Expanding</enum>
                    </property>
                    <property name="sizeHint">
                        <size>
                            <width>20</width>
                            <height>20</height>
                        </size>
                    </property>
                </spacer>
                <widget class="QPushButton">
                    <property name="name">
                        <cstring>PushButton2</cstring>
                    </property>
                    <property name="text">
                        <string>&amp;OK</string>
                    </property>
                    <property name="default">
                        <bool>true</bool>
                    </property>
                </widget>
                <widget class="QPushButton">
                    <property name="name">
                        <cstring>PushButton2_2</cstring>
                    </property>
                    <property name="text">
                        <string>&amp;Cancel</string>
                    </property>
                </widget>
            </hbox>
        </widget>
    </vbox>
</widget>
<images>
    <image name="image0">
        <data format="XPM.GZ" \
length="3119">789ced91514bc3301485dffb2b2ecd5b916e8e5608b29f30f171207bc8ee4de71ea6b0cd \
0711fffb761b3b97b4593210acd8130a39842f27a77794c1fc7106d928d9edd57e8d80cf6a0b19bd6d36ef \
4f8be947921625dc8d41c26d7a93a439203cbcbe68de8be35e8c6bb15db29528a544b62bb6aa9052156cf1 \
cb92b1155b24d4486c892d95a8a964ab8da589b18a6d55ab7ec335fadf80f0ca07288f1c220250c2072cb1 \
6b1d0f8407404f824558095ee08c884b38239c84d63f6d8013119b7022223ad8130c27186113d1d5e1fbd6 \
6667ce485f99a05da0bb831127543f9120dcd7ffd50ec31cfad16198433f3a0c73f8f50e1713da1d561756574240ed0e21c04908cbee90e73a2c07a834053e1b88531f81cffbe400938a3eb8</data>
  </image>
    <image name="image1">
        <data format="XPM.GZ" \
length="3119">789ced91514bc3301485dffb2b2ecd5b916e8e5608b29f30f171207bc8ee4de71ea6b0cd \
0711fffb761b3b97b4593210acd8130a39842f27a77794c1fc7106d928d9edd57e8d80cf6a0b19bd6d36ef \
4f8be947921625dc8d41c26d7a93a439203cbcbe68de8be35e8c6bb15db29528a544b62bb6aa9052156cf1 \
cb92b1155b24d4486c892d95a8a964ab8da589b18a6d55ab7ec335fadf80f0ca07288f1c220250c2072cb1 \
6b1d0f8407404f824558095ee08c884b38239c84d63f6d8013119b7022223ad8130c27186113d1d5e1fbd6 \
6667ce485f99a05da0bb831127543f9120dcd7ffd50ec31cfad16198433f3a0c73f8f50e1713da1d561756574240ed0e21c04908cbee90e73a2c07a834053e1b88531f81cffbe400938a3eb8</data>
  </image>
</images>
<layoutdefaults spacing="6" margin="11"/>
</UI>


[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic