56 lines
2.7 KiB
HTML
56 lines
2.7 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>DocumentWindow object - medit 0.99.0-devel manual</title>
|
|
<meta http-equiv="Content-Type" content="text/html">
|
|
<meta name="description" content="medit 0.99.0-devel manual">
|
|
<meta name="generator" content="makeinfo 4.13">
|
|
<link title="Top" rel="start" href="index.html#Top">
|
|
<link rel="up" href="Scripting.html#Scripting" title="Scripting">
|
|
<link rel="prev" href="Editor-object.html#Editor-object" title="Editor object">
|
|
<link rel="next" href="DocumentView-object.html#DocumentView-object" title="DocumentView object">
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<style type="text/css"><!--
|
|
pre.display { font-family:inherit }
|
|
pre.format { font-family:inherit }
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
|
pre.smallexample { font-size:smaller }
|
|
pre.smalllisp { font-size:smaller }
|
|
span.sc { font-variant:small-caps }
|
|
span.roman { font-family:serif; font-weight:normal; }
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
|
--></style>
|
|
</head>
|
|
<body>
|
|
<div class="node">
|
|
<a name="DocumentWindow-object"></a>
|
|
<p>
|
|
Next: <a rel="next" accesskey="n" href="DocumentView-object.html#DocumentView-object">DocumentView object</a>,
|
|
Previous: <a rel="previous" accesskey="p" href="Editor-object.html#Editor-object">Editor object</a>,
|
|
Up: <a rel="up" accesskey="u" href="Scripting.html#Scripting">Scripting</a>
|
|
<hr>
|
|
</div>
|
|
|
|
<h3 class="section">5.3 DocumentWindow object</h3>
|
|
|
|
<p><!-- moo-help-section: SCRIPT_DOCUMENT_WINDOW -->
|
|
|
|
<dl>
|
|
<dt><code>DocumentWindow.editor()</code><dd>returns Editor object.
|
|
<br><dt><code>DocumentWindow.active_view()</code><dd>returns current active document view in this window.
|
|
<br><dt><code>DocumentWindow.set_active_view(view)</code><dd>makes <var>view</var> active, i.e. switches to its tab.
|
|
<br><dt><code>DocumentWindow.active_document()</code><dd>returns current active document in this window, that is the document
|
|
whose view is the active one.
|
|
<br><dt><code>DocumentWindow.set_active_document(doc)</code><dd>makes active a view of document <var>doc</var>. It picks arbitrary view
|
|
of <var>doc</var> if there are more than one in this window.
|
|
<br><dt><code>DocumentWindow.views()</code><dd>returns list of all document views in this window.
|
|
<br><dt><code>DocumentWindow.documents()</code><dd>returns list of all documents in this window.
|
|
<br><dt><code>DocumentWindow.is_active()</code><dd>returns whether this window is the active one.
|
|
<br><dt><code>DocumentWindow.set_active()</code><dd>makes this window active.
|
|
|
|
</dl>
|
|
|
|
</body></html>
|
|
|