lyx_mirror/src/frontends/qt4/ui/LaTeXUi.ui
Bo Peng 763ef015ce Improve the local layout feature by better handling of unknown textclass, unknown layouts, and switch between textclasses.
* src/TextClass.h[.cpp]: add addLayoutIfNeeded() and createDefaultLayout()
	* src/Layout.h[.cpp]: add unknown_ to mark if a layout is a default layout for an unknown one.
	* src/LayoutFile.cpp: add addDefaultClass and change addLayoutFile to addLocalLayout.
	* src/Text.cpp: add unknown layouts that are not recognizable by a new textclass.
	* src/frontends/qt4/GuiToolbar.cpp: display (unknown) for unknown layouts.
	* src/frontends/qt4/GuiDocument.cpp: restore 'browse layout' button.
	* src/frontends/qt4/ui/LaTeXUi.ui: restore 'browse layout' button.
	* src/CutAndPaste.cpp: do not convert unknown layouts from pasted text
	* src/BufferParams.cpp: add a default textclass when a document with unknown textclass is loaded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 02:43:02 +00:00

274 lines
7.3 KiB
XML

<ui version="4.0" >
<class>LaTeXUi</class>
<widget class="QWidget" name="LaTeXUi" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>381</width>
<height>413</height>
</rect>
</property>
<property name="windowTitle" >
<string/>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="3" column="0" colspan="4" >
<widget class="QGroupBox" name="childDocGB" >
<property name="toolTip" >
<string>Select if the current document is included to a master file</string>
</property>
<property name="statusTip" >
<string/>
</property>
<property name="title" >
<string>Select de&amp;fault master document</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="childDocLA" >
<property name="text" >
<string>&amp;Master:</string>
</property>
<property name="buddy" >
<cstring>childDocLE</cstring>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="childDocPB" >
<property name="text" >
<string>&amp;Browse...</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="childDocLE" >
<property name="toolTip" >
<string>Enter the name of the default master document</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="4" column="0" colspan="4" >
<widget class="QGroupBox" name="modulesGB" >
<property name="title" >
<string>Modules</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="6" column="0" colspan="3" >
<widget class="QTextBrowser" name="infoML" />
</item>
<item row="5" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>80</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="1" >
<widget class="QPushButton" name="downPB" >
<property name="text" >
<string>Do&amp;wn</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QPushButton" name="upPB" >
<property name="text" >
<string>&amp;Up</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="deletePB" >
<property name="text" >
<string>De&amp;lete</string>
</property>
</widget>
</item>
<item rowspan="5" row="1" column="2" >
<widget class="QListView" name="selectedLV" >
<property name="editTriggers" >
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="addPB" >
<property name="text" >
<string>A&amp;dd</string>
</property>
</widget>
</item>
<item rowspan="5" row="1" column="0" >
<widget class="QListView" name="availableLV" >
<property name="editTriggers" >
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QLabel" name="selmodL" >
<property name="text" >
<string>S&amp;elected:</string>
</property>
<property name="buddy" >
<cstring>selectedLV</cstring>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="availmodL" >
<property name="text" >
<string>A&amp;vailable:</string>
</property>
<property name="buddy" >
<cstring>availableLV</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="2" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>261</width>
<height>22</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="psdriverCO" >
<property name="duplicatesEnabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="psdriverL" >
<property name="text" >
<string>&amp;Postscript driver:</string>
</property>
<property name="buddy" >
<cstring>psdriverCO</cstring>
</property>
</widget>
</item>
<item row="1" column="1" colspan="3" >
<widget class="QLineEdit" name="optionsLE" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="optionsL" >
<property name="text" >
<string>&amp;Options:</string>
</property>
<property name="buddy" >
<cstring>optionsLE</cstring>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="layoutPB" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Click to select a local document class definition file</string>
</property>
<property name="text" >
<string>&amp;Local Layout...</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="classL" >
<property name="text" >
<string>Document &amp;class:</string>
</property>
<property name="buddy" >
<cstring>classCO</cstring>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QComboBox" name="classCO" >
<property name="maxVisibleItems" >
<number>20</number>
</property>
</widget>
</item>
<item row="5" column="1" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<tabstops>
<tabstop>classCO</tabstop>
<tabstop>optionsLE</tabstop>
<tabstop>psdriverCO</tabstop>
<tabstop>availableLV</tabstop>
<tabstop>addPB</tabstop>
<tabstop>deletePB</tabstop>
<tabstop>upPB</tabstop>
<tabstop>downPB</tabstop>
<tabstop>selectedLV</tabstop>
<tabstop>infoML</tabstop>
</tabstops>
<includes>
<include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</ui>