<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vogler</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vogler"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Vogler"/>
	<updated>2026-07-05T17:45:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=DE/Aktuelle_Selektion&amp;diff=17671</id>
		<title>DE/Aktuelle Selektion</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=DE/Aktuelle_Selektion&amp;diff=17671"/>
		<updated>2006-09-29T13:37:54Z</updated>

		<summary type="html">&lt;p&gt;Vogler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:de.openoffice.org|Aktuelle Selektion]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border: 1px black solid;&amp;quot; | cellspacing=0 cellpadding=7 &lt;br /&gt;
| width=&amp;quot;90%&amp;quot; bgcolor=#eee | Übersetzung aus dem Englischen; Original: [[ Current selection]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Die Aktuelle Selektion in Text-Dokumenten&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
Siehe auch [[ Getting started]]. &lt;br /&gt;
&lt;br /&gt;
Nachdem sichergestellt ist, dass Text selektiert wurde, werden Sie häufig eine Aktion in einer Schleife auf den gesamten selektierten Text anwenden wollen. Erinnern Sie sich, dass das erste Feld-Element entweder die aktuelle  Selektion ist (nämlich wenn es nur eine Selektion gibt), oder der Einfügepunkt (nämlich dann, wenn es mehr als eine Selektion gibt). Der folgende Code berücksichtigt beides:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;[oobas]&lt;br /&gt;
oCurSelection = thisComponent.getCurrentSelection()&lt;br /&gt;
if oCurSelection.supportsService(&amp;quot;com.sun.star.text.TextRanges&amp;quot;) then&lt;br /&gt;
   nCount = oCurSelection.Count&lt;br /&gt;
   if nCount = 1 then&lt;br /&gt;
      oTextRange = oCurSelection.getByIndex(0)&lt;br /&gt;
      &amp;#039;Hier können Sie etwas mit oTextRange anstellen&lt;br /&gt;
   else&lt;br /&gt;
      for i = 0 to nCount - 1&lt;br /&gt;
         oTextRange = oCurSelection.getByIndex(i)&lt;br /&gt;
         &amp;#039;hier können Sie etwas mit oTextRange anstellen&lt;br /&gt;
      next&lt;br /&gt;
   end if&lt;br /&gt;
end if&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vogler</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Current_selection&amp;diff=17668</id>
		<title>Current selection</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Current_selection&amp;diff=17668"/>
		<updated>2006-09-29T13:36:45Z</updated>

		<summary type="html">&lt;p&gt;Vogler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Current Selection in Text Documents&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
Also see [[ Getting started]]. &lt;br /&gt;
&lt;br /&gt;
Having made sure that text is selected, it is common to create a loop to do something to all of the currently selected text. But, remember that the first element of the array is either the current selection when there is only one selection, or the insertion point when there is more than one selection. Thus the following common code: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;[oobas]&lt;br /&gt;
oCurSelection = thisComponent.getCurrentSelection()&lt;br /&gt;
if oCurSelection.supportsService(&amp;quot;com.sun.star.text.TextRanges&amp;quot;) then&lt;br /&gt;
   nCount = oCurSelection.Count&lt;br /&gt;
   if nCount = 1 then&lt;br /&gt;
      oTextRange = oCurSelection.getByIndex(0)&lt;br /&gt;
      &amp;#039;Do some action on oTextRange&lt;br /&gt;
   else&lt;br /&gt;
      for i = 0 to nCount - 1&lt;br /&gt;
         oTextRange = oCurSelection.getByIndex(i)&lt;br /&gt;
         &amp;#039;Do some action on oTextRange&lt;br /&gt;
      next&lt;br /&gt;
   end if&lt;br /&gt;
end if&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vogler</name></author>
	</entry>
</feed>