#. extracted from helpcontent2/source/text/sbasic/python msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n" "POT-Creation-Date: 2021-06-11 17:08+0200\n" "PO-Revision-Date: 2021-08-10 09:21+0000\n" "Last-Translator: Karl Morten Ramberg \n" "Language-Team: Norwegian Bokmål \n" "Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Accelerator-Marker: ~\n" "X-Generator: Weblate 4.6.2\n" "X-POOTLE-MTIME: 1566201016.000000\n" #. naSFZ #: main0000.xhp msgctxt "" "main0000.xhp\n" "tit\n" "help.text" msgid "Python Scripts" msgstr "Pythonskript" #. 9RJv6 #: main0000.xhp msgctxt "" "main0000.xhp\n" "bm_id491543348147708\n" "help.text" msgid "macros;Python scripts Python;macros scripts;Python" msgstr "makroer;Python scripts Python;macros scripts;Python" #. vAoRU #: main0000.xhp msgctxt "" "main0000.xhp\n" "hd_id3154232\n" "help.text" msgid "%PRODUCTNAME Python Scripts Help" msgstr "%PRODUCTNAME Python Skript Hjelp" #. snE38 #: main0000.xhp msgctxt "" "main0000.xhp\n" "par_id3153894\n" "help.text" msgid "%PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit https://api.libreoffice.org" msgstr "%PRODUCTNAME har et programprogrammeringsgrensesnitt (API) som gjør det mulig å kontrollere $[officename] -komponentene med forskjellige programmeringsspråk ved å bruke $[officename] Software Development Kit (SDK). For mer informasjon om $[officename] API og Software Development Kit, besøk https://api.libreoffice.org" #. 9EUoJ #: main0000.xhp msgctxt "" "main0000.xhp\n" "par_id3147226\n" "help.text" msgid "This help section explains the most common Python script functions for %PRODUCTNAME. For more in-depth information please refer to the Designing & Developing Python Applications on the Wiki." msgstr "Denne hjelpseksjonen forklarer de vanligste Python-skriptfunksjonene for %PRODUCTNAME. For mer inngående informasjon vennligst se Designing & Developing Python Applications på Wiki-en." #. FjaiD #: main0000.xhp msgctxt "" "main0000.xhp\n" "hd_id3146957\n" "help.text" msgid "Working with Python Scripts in %PRODUCTNAME" msgstr "Arbeide med Pythonskript i %PRODUCTNAME" #. mQFKb #: main0000.xhp msgctxt "" "main0000.xhp\n" "N0102\n" "help.text" msgid "You can execute Python scripts choosing Tools - Macros - Run Macro. Editing scripts can be done with your preferred text editor. Python scripts are present in various locations detailed hereafter. You can refer to Programming examples for macros illustrating how to run the Python interactive console from %PRODUCTNAME." msgstr "Du kan utføre Python-skript ved å velge Verktøy - Makroer - Kjør makro .... Redigering av skript kan gjøres med din foretrukne tekstbehandler. Python-skript finnes på forskjellige steder beskrevet nedenfor. Du kan se Programmeringseksempler for makroer som illustrerer hvordan du kjører Python-interaktiv konsoll fra %PRODUCTNAME." #. g2dUC #: main0000.xhp msgctxt "" "main0000.xhp\n" "par_id131568902936659\n" "help.text" msgid "The %PRODUCTNAME scripting framework for Python is optional on some GNU/Linux distributions. If it is installed, selecting Tools - Macros - Run Macro and checking %PRODUCTNAME Macros for the presence of HelloWorld – HelloWorldPython macro is sufficient. If absent, please refer to your distribution documentation in order to install the %PRODUCTNAME scripting framework for Python." msgstr "%PRODUCTNAME-skriptrammeverket for Python er valgfritt på noen GNU/Linux-distribusjoner. Hvis den er installert, er det tilstrekkelig å velge Verktøy - Makroer - Kjør makro og merk %PRODUCTNAME Makroer for tilstedeværelsen av HelloWorld - HelloWorldPython . Hvis det ikke er mulig, kan du se distribusjonsdokumentasjonen din for å installere skriptrammeverket %PRODUCTNAME for Python." #. naZBV #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "tit\n" "help.text" msgid "Python to Basic" msgstr "Python til Basic" #. dkYtk #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0330\n" "help.text" msgid "Python;Calling Basic ParamArray" msgstr "Python;Anroper Basic ParamArray" #. rGfKE #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0331\n" "help.text" msgid "Calling Basic Macros from Python" msgstr "Anroper Basic Makroer fraPython" #. XzJcA #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0332\n" "help.text" msgid "You can call %PRODUCTNAME Basic macros from Python scripts, and notable features can be obtained in return such as:" msgstr "Du kan hente %PRODUCTNAME Basic makroer fra Python-skript, og viktige funksjoner kan fås i retur. For eksempel:" #. ehCg3 #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0333\n" "help.text" msgid "Simple logging facilities out of Access2Base library Trace console," msgstr "Enkle loggfasiliteter fra Access2Base bibliotek Sporingskonsoll," #. HhDdS #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0334\n" "help.text" msgid "InputBox and MsgBox screen I/O functions based on Basic to ease Python development," msgstr "Inndataboks og MsgBox skjerm I / O-funksjoner basert på Basic for å underlette Python-utvikling," #. DzFBB #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0335\n" "help.text" msgid "Xray calls interrupting Python script execution to help inspect variables." msgstr "Xray anrop for å avbryte kjøring av Python-skript med hensikt for å inspisere variabler." #. fDXhz #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0336\n" "help.text" msgid "The %PRODUCTNAME Application Programming Interface (API) Scripting Framework supports inter-language script execution between Python and Basic, or other supported programming languages for that matter. Arguments can be passed back and forth across calls, provided that they represent primitive data types that both languages recognize, and assuming that the Scripting Framework converts them appropriately." msgstr "%PRODUCTNAME Application Programming Interface (API) Scripting Framework, støtter kjøring av ulike språk script mellom Python og Basic, eller andre støttede programmeringsspråk for den saks skyld. Argumenter kan sendes frem og tilbake over anrop, forutsatt at de representerer primitive datatyper som begge språk gjenkjenner, og forutsatt at Scripting Framework konverterer dem på riktig måte." #. Gn9Bv #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0337\n" "help.text" msgid "It is recommended to have knowledge of Python standard modules and %PRODUCTNAME API features prior to perform inter-language calls from Python to Basic, JavaScript or any other script engine." msgstr "Det anbefales å ha kunnskap om Python-standardmoduler og %PRODUCTNAME API-funksjoner før du kan kjøre anrop fra Python til Basic, JavaScript eller andre skriptmotorer." #. Sffwq #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0338\n" "help.text" msgid "When running Python scripts from an Integrated Development Environment (IDE), the %PRODUCTNAME-embedded Basic engine may be absent. Avoid Python-to-%PRODUCTNAME Basic calls in such contexts. However Python environment and Universal Networks Objects (UNO) are fully available. Refer to Setting Up an Integrated IDE for Python for more information." msgstr "Når du kjører Python-skript fra et integrert utviklingsmiljø (IDE), kan Deni %PRODUCTNAME-innebygde basicmotoren være fraværende. Unngå Python-til- %PRODUCTNAME Basic anrop i slike sammenhenger. Imidlertid er Python-miljøet og Universal Networks Objects (UNO) fullt tilgjengelig. Se Konfigurer et integrert IDE for Python for mer informasjon." #. NcuDF #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0339\n" "help.text" msgid "Retrieving %PRODUCTNAME Basic Scripts" msgstr "Henter %PRODUCTNAME Basic-skript" #. yiTqz #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0340\n" "help.text" msgid "%PRODUCTNAME Basic macros can be personal, shared, or embedded in documents. In order to execute them, Python run time needs to be provided with Basic macro locations. Implementing the com.sun.star.script.provider.XScriptProvider interface allows the retrieval of executable scripts:" msgstr "%PRODUCTNAME Basic makroer kan være personlige, delte eller innebygd i dokumenter. For å kunne kjøre dem, må Python-run-time ha tilgang til de grunnleggende makrolokasjonene. Implementering avcom.sun.star.script.provider.XScriptProvider grensesnittet gir tilgang til å hentekjørbare skript:" #. w4UAs #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0341\n" "help.text" msgid "API;script.provider.MasterScriptProviderFactory: Retrieving Basic scriptsAPI;script.provider.XScript: Executing Basic scriptsAPI;XScriptProvider: Retrieving Basic scripts" msgstr "API;skript.tilbyder.MasterScriptProviderFactory: Henter Basic skriptAPI;script.provider.XScript: Kjører Basic skriptAPI;XScriptProvider: Henter Basic skript" #. iu5YW #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0347\n" "help.text" msgid "'''Grab Basic script object before invocation.'''" msgstr "'''Hent Basic skript objekter før aktivering.'''" #. PnPTm #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0363\n" "help.text" msgid "Executing %PRODUCTNAME Basic Scripts" msgstr "Kjører %PRODUCTNAME Basic Skript" #. GNDbf #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0364ndx\n" "help.text" msgid "API;script.provider.XScript : Executing Basic scripts" msgstr "API;script.provider.XScript : Kjører Basic skript" #. 7BfDh #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0364\n" "help.text" msgid "The %PRODUCTNAME Software Development Kit (SDK) documentation for com.sun.star.script.provider.XScript interface details the calling convention for inter-language calls. Invocation of functions requires three arrays:" msgstr "%PRODUCTNAME Software Development Kit (SDK) dokumentasjon for com.sun.star.script.provider.XScript grensesnitett beskriver konvensjonen for anrop mellom språk. Aktivering av funksjoner krever tre matriser:" #. UDhtt #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0365\n" "help.text" msgid "the first lists the arguments of the called routine" msgstr "den første lister opp argumentene til den kalte rutinen" #. A9CMY #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0366\n" "help.text" msgid "the second identifies modified arguments" msgstr "den andre identifiserer modifiserte argumenter" #. v3GcD #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0367\n" "help.text" msgid "the third stores the return values" msgstr "den tredje lagrer returverdiene" #. TeGwy #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0368\n" "help.text" msgid "Python Syntax" msgstr "Python-syntaks" #. GXEC9 #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0369\n" "help.text" msgid "results = script.invoke((prompt,buttons,title), (), ())" msgstr "results = script.invoke((prompt,buttons,title), (), ())" #. 465No #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0370\n" "help.text" msgid "script.invoke((message,), tuple, ())" msgstr "skriptaktivere ((melding,), tuple, ())" #. wnGWp #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0371\n" "help.text" msgid "script.invoke((args), (), results)" msgstr "skript.aktiver((args), (), resultater)" #. oWBhX #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0372\n" "help.text" msgid "Examples of Personal or Shared Scripts" msgstr "Eksempler på personlige eller delte skript" #. nyNGG #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0373\n" "help.text" msgid "Examples in Input/Output to Screen detail Python to Basic invocation calls. Monitoring Document Events illustrates the usage of *args Python idiom to print a variable number of parameters to Access2Base logging console dialog." msgstr "Eksempler i Inndata/utdata til Skjerm har detaljer om Python til Basic-aktiveringskall. Overvåking av dokumenthendelser illustrerer bruken av * args Python-idiom for å skrive ut et variabelt antall parametere til Access2Base-konsoll-loggingsdialogen." #. dt25D #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0374\n" "help.text" msgid "At time of development you can interrupt Python script execution using Xray extension in order to inspect properties and methods of UNO objects. The APSO extension debugger allows object introspection using either Xray either MRI extensions." msgstr "På utviklingstidspunktet kan du avbryte utførelsen av Python-skript ved hjelp av Xray utvidelser for å inspisere egenskaper og metoder for UNO-objekter. APSO-utvidelsdebuggeren tillater introspeksjon av objekt ved hjelp av enten Xray eller MR-utvidelser." #. F8dF9 #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0378\n" "help.text" msgid "Examples of Embedded Scripts in Documents" msgstr "Eksempler på innebygde skript i dokumenter" #. EmqHD #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0379\n" "help.text" msgid "*argsPython simplified syntax can be used in conjunction with %PRODUCTNAME Basic routines that accept a variable number of arguments. Below Print and SUM Python functions call their Basic Print and SUM counterparts, using aforementioned getBasicScript function. Exception handling is not detailed." msgstr "*argsPython-forenklet syntaks kan brukes i forbindelse med %PRODUCTNAME Basic-rutiner som godtar et variabelt antall argumenter. Under Skriv ut og SUMMER Python-funksjoner anroper deres Basic Skriv ut og SUMMER-motparter, ved å bruke den allerede nevnte getBasicScript-funksjonen. Avvikshåndteringen er ikke videre detaljert." #. ej8XP #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0384\n" "help.text" msgid "\"\"\"Outputs the specified strings or numeric expressions in a dialog box.\"\"\"" msgstr "\"\"\"Skriver ut de angitte strengene eller numeriske uttrykk i en dialogboks.\"\"\"" #. RJuGD #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0389\n" "help.text" msgid "\"\"\"SUM the specified number expression.\"\"\"" msgstr "\"\"\"SUMMER det spesifiserte talluttrykket.\"\"\"" #. aPmSn #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0402\n" "help.text" msgid "The %PRODUCTNAME Basic Print and SUM document-based routines accept a variable number of arguments. The Private or Public attributes have no effect. The arguments type checking is skipped for clarity." msgstr "%PRODUCTNAME Basic Skriv Ut og SUMMER dokument-baserte rutiner aksepterer et variabelt antallargumenter. Privat eller Offentlig atributterhar ingen effekt. Argumenttypekontrollen hoppes over for tydelighetens skyld." #. jHUxq #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0407\n" "help.text" msgid "''' Print item list of variable number '''" msgstr "''' Skriv ut en liste med variable nummer '''" #. 3pFAj #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0408\n" "help.text" msgid "' all CStr() convertible args are accepted" msgstr "' alle CStr() konvertible args aksepteres" #. G9n5d #: python_2_basic.xhp msgctxt "" "python_2_basic.xhp\n" "N0419\n" "help.text" msgid "''' SUM a variable list of numbers '''" msgstr "''' SUMMER en variabel liste med tall '''" #. CDJo4 #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "tit\n" "help.text" msgid "Opening a Dialog with Python" msgstr "Åpne en dialog med Python" #. XWAwA #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0334\n" "help.text" msgid "Python;dialogs dialog box;Python dialogs;Python" msgstr "Python; dialoger dialogboksen; Python dialoger; Python " #. rXdUF #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0336\n" "help.text" msgid "Opening a Dialog with Python" msgstr "Åpner en dialog i Phyton" #. WAuH7 #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0337\n" "help.text" msgid "%PRODUCTNAME static dialogs are created with the Dialog editor and are stored in varying places according to their personal (My Macros), shared (%PRODUCTNAME Macros) or document-embedded nature. In reverse, dynamic dialogs are constructed at runtime, from Basic or Python scripts, or using any other %PRODUCTNAME supported language for that matter. Opening static dialogs with Python is illustrated herewith. Exception handling and internationalization are omitted for clarity." msgstr "%PRODUCTNAME dialogbokser opprettes medDialogredaktør og lagres på varierende steder i henhold til deres personlige (My Macros), delte (%PRODUCTNAME makroer) eller dokument-innebygd. I motsatt rekkefølge er dynamiske dialoger konstruert ved kjøring, fra Basic eller Python-skript, eller ved hjelp av andre %PRODUCTNAME-støttet språk for den saks skyld. Å åpne statiske dialoger med Python er illustrert her. Unntakshåndtering og internasjonalisering utelates for klarhet." #. BNxEA #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0338\n" "help.text" msgid "My Macros or %PRODUCTNAME Macros dialogs" msgstr "Mine Makroer eller %PRODUCTNAME Makro dialogen" #. pcUEy #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0339\n" "help.text" msgid "The examples below open Access2Base Trace console or the imported TutorialsDialog dialog with Tools - Macros - Run Macro menu:" msgstr "Eksemplene under åpner Access2Base Sporings-konsollen eller den importerte Opplæringsdialogen ved hjelp avVerktøy - Makroer - Kjør Makro-menyen:" #. ChW9B #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0364\n" "help.text" msgid "Document embedded dialogs" msgstr "Innebygde dokumentdialoger" #. uHH6H #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0365\n" "help.text" msgid "The example below opens a newly edited Dialog1 dialog from a document with Tools - Macros - Run Macro menu:" msgstr "Eksemplet nedenfor åpner en nylig redigert Dialog1-dialog fra et dokument med Verktøy - Makroer - Kjør Makro-menyen:" #. mMo7w #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0370\n" "help.text" msgid "\"\"\" Display a doc-based dialog \"\"\"" msgstr "\"\"\" Viser en dok-basert dialog \"\"\"" #. txExG #: python_dialogs.xhp msgctxt "" "python_dialogs.xhp\n" "N0381\n" "help.text" msgid "Refer to msgbox.py in {installation}/program/ directory for Python dynamic dialog examples." msgstr "Gå til msgbox.py i {installasjon}/program/ -katalogen for Python dynamiske dialogeksempler." #. r6FEK #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "tit\n" "help.text" msgid "Python : Monitoring Document Events" msgstr "Python : Overvåking av dokumenthendelser" #. GyBAT #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0526\n" "help.text" msgid "Basic;Monitoring Document Events Python;Monitoring Document Events Access2Base;Console Access2Base;Trace API;document.DocumentEvent: Monitoring Document Event API;document.XDocumentEventBroadcaster: Monitoring Document Event API;document.XDocumentEventListener: Monitoring Document Event API;lang.EventObject: Monitoring Document Event" msgstr " Grunnleggende; Overvåking av Dokumenthendelser Python; Overvåking av Dokumenthendelser Access2Base; Konsoll Access2Base; Spor API; document .Documentevent: Overvåking av Dokumenthendelser API; dokument.XDocumentEventBroadcaster: Overvåking av Dokumenthendelser API; document.XDocumentEventListener: Overvåking av Dokumenthendelser API; lang.EventO API : Overvåking av Dokumenthendelser " #. gsCNB #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0527\n" "help.text" msgid "Monitoring Document Events" msgstr "Overvåke Dokumenthendelser" #. bXprs #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0528\n" "help.text" msgid "Next to assigning macros to events, one can monitor events raised by %PRODUCTNAME documents. Application Programming Interface (API) broadcasters are responsible for calling event scripts. Unlike listeners that require to define all supported methods, even if unused, document monitors require only two methods next to hooked event scripts." msgstr "Ved siden av tilordne makroer til hendelser , kan man overvåke %PRODUCTNAME-dokumenthendelser. Applikasjonsprogrammeringsgrensesnitt (API) kringkastere er ansvarlige for å kalle opp hendelsesskript. I motsetning til lyttere som må ha definert alle støttede metoder, selv om de ikke brukes, krever dokumentovervåkere bare to metoder ved siden av lenkede hendelseskript." #. HztRG #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0529\n" "help.text" msgid "Listening to Document Events" msgstr "Lytter til Dokumenthendelser" #. SZGH4 #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0530\n" "help.text" msgid "Monitoring is illustrated herewith for Basic and Python languages using object-oriented programming. Assigning OnLoad script, to the Open Document event, suffices to initiate and terminate document event monitoring. Tools - Customize menu Events tab is used to assign either scripts." msgstr "Overvåking er illustrert for Basic- og Python-språk ved hjelp av objektorientert programmering. Å tilordne OnLoad -skriptet til hendelsen Åpne Dokument hendelsen, er tilstrekkelig til å starte og avslutte dokumenthendelsesovervåking. Verktøy - Tilpass -menyen Hendelse -fanen brukes til å tilordne begge skriptene." #. KgWvt #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0531\n" "help.text" msgid "Intercepting events helps setting scripts pre- and post-conditions such as loading and unloading libraries or track script processing in the background. Access2Base.Trace module usage is illustrating that second context." msgstr "Avlytting av hendelser hjelper til med å sette skript pre og post betingelser, for eksempel lasting og lossing av biblioteker eller spor av skriptbehandling i bakgrunnen. Access2Base.Trace modulbruk viser den andre konteksten." #. BG7Xs #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0532\n" "help.text" msgid "With Python" msgstr "Med Python" #. B4G2y #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "bm_id721622446590963\n" "help.text" msgid "API;frame.Desktop: Monitoring Document Event API;script.provider.MasterScriptProviderFactory: Monitoring Document Event API;script.provider.XScript: Monitoring Document Event" msgstr " API; frame.Desktop: Overvåking av Dokument Hendelser API; script.provider.MasterScriptProviderFactory: Overvåking av Dokument Hendelser API; script.provider.XScript: Overvåking av Dokument Hendelser" #. eGKkK #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0533\n" "help.text" msgid "Events monitoring starts from object instantiation and ultimately stops when Python releases the object. Raised events are reported using Access2Base console." msgstr "Overvåkning av hendelser starter fra objektinstansering og stopper til slutt når Python slipper objektet. Hevede hendelser rapporteres ved å bruke Access2Base konsollen." #. D2HXF #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0534\n" "help.text" msgid "OnLoad and OnUnload events can be used to respectively set and unset Python programs path. They are described as Open document and Document closed." msgstr "OnLoad og OnUnload hendelser kan brukes til henholdsvis å sette og deaktivere stien til Python -programmer. De beskrives som Åpne Dokument og Steng Dokument." #. AdYNb #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0543\n" "help.text" msgid "class UiDocument(unohelper.Base, AdapterPattern):" msgstr "klasse UiDocument(unohelper.Base, AdapterPattern):" #. i7waD #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0544\n" "help.text" msgid "\"\"\" Monitor document events \"\"\"" msgstr "\"\"Overvåk dokumenthendelser\"\"" #. 4k7DQ #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0546\n" "help.text" msgid "adapted from 'Python script to monitor OnSave event' at" msgstr "tilpasset fra 'Python script for å overvåke OnSave event' ved" #. AMBQD #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0550\n" "help.text" msgid "\"\"\" Document events monitor \"\"\"" msgstr "\"\" \"Overvåkning av dokumenthendelser\" \"\"" #. FNyTn #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0551\n" "help.text" msgid "''' report using Access2Base.Trace console OR" msgstr "'' 'rapport ved bruk av Access2Base.Sporings-konsoll ELLER" #. ops87 #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0552\n" "help.text" msgid "report in 1st sheet, 1st column for Calc docs '''" msgstr "rapport i 1. ark, første kolonne for Calc-dokumenter '''" #. SUrHQ #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0558\n" "help.text" msgid "#self.row = 0 # uncomment for Calc documents only" msgstr "#self.row = 0 # avkommenter for Calc-dokumenter" #. bdxDG #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0560\n" "help.text" msgid "self.listen() # Start monitoring doc. events" msgstr "self.listen () # Begynn å overvåke dok. hendelser" #. 8tXZv #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0569\n" "help.text" msgid "\"\"\" Output doc. events on 1st column of a Calc spreadsheet \"\"\"" msgstr "\"\"\"Output doc. Hendelser i første kolonne i et Calc regneark\" \"\"" #. HEByB #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0575\n" "help.text" msgid "def listen(self, *args): # OnLoad/OnNew at the earliest" msgstr "def listen (self, * args): # OnLoad / OnNew tidligst" #. eq9UC #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0576\n" "help.text" msgid "\"\"\" Start doc. events monitoring \"\"\"" msgstr "\"\"\"Start dokument. Overvåkning av hendelser\"\"\"" #. o7xSw #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0578\n" "help.text" msgid "Console.log(\"INFO\", \"Document events are being logged\", True)" msgstr "Console.log (\"INFO\", \"Dokumenthendelser logges\", Aktiv)" #. jnyCD #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0580\n" "help.text" msgid "def sleep(self, *args): # OnUnload at the latest (optional)" msgstr "def sov(selv, * args): # OnUnload senest (valgfritt)" #. QiSAD #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0581\n" "help.text" msgid "\"\"\" Stop doc. events monitoring \"\"\"" msgstr "\"\"\" Stopp dok.-hendelsesovervåking \"\"\"" #. TyiYD #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0583\n" "help.text" msgid "Console.log(\"INFO\", \"Document events have been logged\", True)" msgstr "Konsoll.log (\"INFO\", \"Dokumenthendelser er logget\", Sant)" #. utJGT #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0587\n" "help.text" msgid "\"\"\" Intercepts all doc. events \"\"\"" msgstr "\"\"\" Oppfanger alle dok- hendelser \"\"\"" #. Xwnsi #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0588\n" "help.text" msgid "#self.setCell(event.Source, event.EventName) # only for Calc docs" msgstr "#self.setCell(event.Source, event.EventName) # kun for Calc-dokument" #. rE9Ep #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0595\n" "help.text" msgid "\"\"\" Release all activities \"\"\"" msgstr "\"\"\" Frislipp alle aktiviteter \"\"\"" #. XaEoP #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0601\n" "help.text" msgid "def OnLoad(*args): # 'Open Document' event" msgstr "def OnLoad(*args): # 'Open Document'-hendelse" #. CkJg4 #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0604\n" "help.text" msgid "def OnUnload(*args): # 'Document has been closed' event" msgstr "def OnUnload(*args): # «Dokument har blitt lukket»-hendelse" #. KobNT #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0605\n" "help.text" msgid "pass # (optional) performed when disposed" msgstr "send # (valgfritt) utført når det avsluttes" #. xPosR #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0613\n" "help.text" msgid "(Back/Fore)ground console to report/log program execution." msgstr "(Bak/For) grunnkonsoll for å rapportere / logge programkjøring." #. Qph5m #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0617\n" "help.text" msgid "\"\"\" Print free item list to console \"\"\"" msgstr "\"\"\"Skriv ut frie gjenstandsliste til konsollen\"\"\"" #. nzjHS #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0622\n" "help.text" msgid "\"\"\" Append log message to console, optional user prompt \"\"\"" msgstr "\"\"\"Legg loggmelding til konsollen, valgfri brukerspørring \"\"\"" #. HDXPV #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0627\n" "help.text" msgid "\"\"\" Set log messages lower limit \"\"\"" msgstr "\"\"\"Sett nedre grense for loggmeldinger \"\"\"" #. fXnMH #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0632\n" "help.text" msgid "\"\"\" Display console content/dialog \"\"\"" msgstr "\"\"\" Vis konsollinnhold/dialog \"\"\"" #. 2dfeg #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0647\n" "help.text" msgid "Mind the misspelled documentEventOccured method that inherits a typo from %PRODUCTNAME Application Programming Interface (API)." msgstr "Husk den feilstavede metoden documentEventOccured som arver en skrivefeil fra %PRODUCTNAME Application Programming Interface (API)." #. CuAga #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0648\n" "help.text" msgid "Start application and Close application events can respectively be used to set and to unset Python path for user scripts or %PRODUCTNAME scripts. In a similar fashion, document based Python libraries or modules can be loaded and released using Open document and Document closed events. Refer to Importing Python Modules for more information." msgstr " Start program og Lukk program -hendelser kan henholdsvis brukes til å angi og deaktivere Python -stien for brukerskript eller %PRODUCTNAME -skript. På lignende måte kan dokumentbaserte Python -biblioteker eller moduler lastes og avsluttes ved hjelp av Åpent dokument og Dokument lukke hendelser. Se Importere Python Moduler for mer informasjon." #. 8pHCg #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0649\n" "help.text" msgid "With %PRODUCTNAME Basic" msgstr "Med %PRODUCTNAME Basic" #. QpCjq #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "bm_id591622446367707\n" "help.text" msgid "API;GlobalScope.BasicLibraries Tools;Strings" msgstr "API;GlobalScope.BasicLibraries Verktøy;Strenger" #. 3JWfM #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0650\n" "help.text" msgid "The Onload script is assigned to Open document event using Tools - Customize menu Events tab. Events monitoring starts from the moment a ConsoleLogger object is instantiated and ultimately stops when Basic engine releases it. OnLoad event loads necessary Basic libraries, while caught events are reported using Access2Base.Trace module." msgstr " Onload -skriptet er tilordnet Åpne dokument -hendelsen ved hjelp av Verktøy - Tilpass -menyen Hendelse -fanen. Hendelsesovervåking starter fra det øyeblikket et ConsoleLogger -objekt blir instantiert og stopper til slutt når Basic -motoren dropper det. OnLoad hendelse laster nødvendige grunnleggende biblioteker, mens fangede hendelser rapporteres ved hjelp av Access2Base.Trace modulen." #. TAiMF #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0651\n" "help.text" msgid "REM controller.Events module" msgstr "REM controller.Events-modul" #. kYy8A #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0653\n" "help.text" msgid "Private _obj As Object ' controller.ConsoleLogger instance" msgstr "Privat _obj As Object ' Kontroller.KonsollLogger-forekomst" #. PfRq6 #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0655\n" "help.text" msgid "Sub OnLoad(evt As com.sun.star.document.DocumentEvent) ' >> Open Document <<" msgstr "Sub OnLoad(evt As com.sun.star.document.DocumentEvent) ' >> pne Dokument <<" #. BEVFV #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0659\n" "help.text" msgid "REM controller.ConsoleLogger class module" msgstr "REM kontroller.KonsollLogger-klassemodul" #. 2jXHB #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0664\n" "help.text" msgid "' ADAPTER design pattern object to be instantiated in the \"Open Document\" event" msgstr "' ADAPTER design mønster objekt som skal instantieres i \"Open Document\" hendelse" #. 9ZNpG #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0668\n" "help.text" msgid "' CONSTRUCTOR/DESTRUCTOR" msgstr "' CONSTRUCTOR/DESTRUCTOR" #. EQG8C #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0674\n" "help.text" msgid "' MEMBERS" msgstr "' MEDLEMMER" #. aGuEg #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0679\n" "help.text" msgid "''' System-dependent filename '''" msgstr "''' Systemavhengig filnavn '''" #. kEEgf #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0686\n" "help.text" msgid "' METHODS" msgstr "' METODER" #. YMAtN #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0688\n" "help.text" msgid "''' Monitor document events '''" msgstr "''' Overvåking av dokumenthendelser '''" #. cBx2G #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0701\n" "help.text" msgid "''' Initialize document events logging '''" msgstr "''' Igangsetting av dokumenthendelseslogging '''" #. A5RuU #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0706\n" "help.text" msgid "IIf(IsMissing(evt),\"\",evt.EventName & \"-\") & \"Document events are being logged\", _" msgstr "IIf(IsMissing(evt),\"\",evt.EventName & \"-\") & \"Dokumenthendelser logges\", _" #. NkHa4 #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0714\n" "help.text" msgid "''' Terminate document events logging '''" msgstr "''' Avslutt loggføring av dokumenthendelser '''" #. np2xy #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0717\n" "help.text" msgid "IIf(IsMissing(evt),\"\",evt.EventName & \"-\") & \"Document events have been logged\", _" msgstr "IIf(IsMissing(evt),\"\",evt.EventName & \"-\") & \"Dokumenthendelser er loggført\", _" #. uVpJf #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0723\n" "help.text" msgid "' Your code for handled events goes here" msgstr "' Koden din for håndterte hendelser lagres her" #. AJJDf #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0724\n" "help.text" msgid "Mind the misspelled _documentEventOccured method that inherits a typo from %PRODUCTNAME Application Programming Interface (API)." msgstr "Vær oppmerksom på den feilstavede metoden _documentEventOccured som arver en skrivefeil fra %PRODUCTNAME Application Programming Interface (API)." #. b3qae #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0725\n" "help.text" msgid "Discovering Documents Events" msgstr "Oppdaging av dokumenthendelser" #. Ys35P #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "bm_id681622445958242\n" "help.text" msgid "API;frame.GlobalEventBroadcaster: Monitoring Document Event" msgstr "API;frame.GlobalEventBroadcaster: Overvåke Dokumenthendelser" #. BDj9Q #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0726\n" "help.text" msgid "The broadcaster API object provides the list of events it is responsible for:" msgstr "Kringkaster-API-objektet inneholder listen over hendelser den er ansvarlig for:" #. Z2BhT #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0727\n" "help.text" msgid "With Python" msgstr "Med Python" #. 8PCHK #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0734\n" "help.text" msgid "\"\"\" Display document events \"\"\"" msgstr "\"\" \"Vis dokumenthendelser\" \"\"" #. SECnV #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0736\n" "help.text" msgid "adapted from DisplayAvailableEvents() by A. Pitonyak" msgstr "tilpasset fra DisplayAvailableEvents () av A. Pitonyak" #. wXN8p #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0747\n" "help.text" msgid "The Alternative Python Script Organizer (APSO) extension is used to render events information on screen." msgstr "Alternativ Python Script Organizer (APSO) utvidelse brukes til å gjengi hendelsesinformasjon på skjermen." #. kgY8m #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0748\n" "help.text" msgid "With %PRODUCTNAME Basic" msgstr "Med %PRODUCTNAME Basic" #. KjotC #: python_document_events.xhp msgctxt "" "python_document_events.xhp\n" "N0750\n" "help.text" msgid "''' Display document events '''" msgstr "'''Vis dokumenthendelser'''" #. upkPP #: python_examples.xhp msgctxt "" "python_examples.xhp\n" "tit\n" "help.text" msgid "Python examples" msgstr "Pythoneksempel" #. Etrfb #: python_examples.xhp msgctxt "" "python_examples.xhp\n" "bm_id20191031405\n" "help.text" msgid "Python;examples Python;shell Python;platform Python;session Python;screen input/output" msgstr "Python;eksempler Python;skall Python;plattform Python;sesjon Python;skjerm innput/output" #. 2vmkq #: python_examples.xhp msgctxt "" "python_examples.xhp\n" "hd_id201901031407\n" "help.text" msgid "Python programming examples" msgstr "Pythonprogrammering, eksempel" #. xkeov #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "tit\n" "help.text" msgid "Creating A Dialog Handler" msgstr "Opprett en dialoghåndterer" #. WeSDk #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0664\n" "help.text" msgid "Basic;Dialog Handler Python;Dialog Handler Access2Base;dlgTrace Access2Base;_DumpToFile API;DialogProvider2 API;XDialogEventHandler" msgstr "Basic;Dialog Håndterer Python;Dialog Håndterer Access2Base;dlgTrace Access2Base;_DumpTil Fil API;DialogProvider2 API;XDialogEventHandler" #. MQUtw #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0665\n" "help.text" msgid "Creating a Dialog Handler" msgstr "Opprett en dialoghåndterer" #. AxGAd #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0666\n" "help.text" msgid "Next to assigning macros to events or creating event listeners, one can use dialog handlers, whose principle is to define UNO keywords, or methods, that are mapped to events to watch for. The event handler is responsible for executing methods using the vnd.sun.star.UNO: protocol. Unlike listeners that require to define all supported methods, even if unused, dialog handlers require only two methods on top of intended control hook scripts." msgstr "Ved siden av tilordne makroer til hendelser eller lage hendelseslyttere , kan man bruke dialoghåndterere, hvis prinsipp er å definere UNO-nøkkelord, eller metoder, som er kartlagt til hendelser å se etter. Hendelsesbehandleren er ansvarlig for å utføre metoder ved hjelp av vnd.sun.star.UNO: protokollen. I motsetning til lyttere som trenger å definere alle støttede metoder, selv om de ikke er i bruk, krever dialoghåndterere bare to metoder på toppen av tiltenkte kontrollkrokskript." #. Waa56 #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0667\n" "help.text" msgid "The advantages of this approach are:" msgstr "Fordeler med denne tilnærmingen:" #. bBbcE #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0668\n" "help.text" msgid "It packs the code that handles event-driven macros," msgstr "Den pakker koden som håndterer hendelsesdrevne makroer," #. NCGBC #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0669\n" "help.text" msgid "it decorrelates events from macros names which facilitates maintenance or updates, in particular when moving macros or modules." msgstr "det de-korrelerer hendelser fra makronavn som tilrettelegger for vedlikehold eller oppdateringer, spesielt når du flytter makroer eller moduler." #. WETAj #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0670\n" "help.text" msgid "This mechanism is illustrated herewith for Basic and Python languages using an imported copy of Access2Base dlgTrace dialog. Exception handling and localisation are omitted for clarity." msgstr "Denne mekanismen illustreres her for grunnleggende og Python-språk ved hjelp av en importert kopi av dialogboksen Access2Base dlgTrace. Unntakshåndtering og lokalisering er utelatt av hensikt til oversikt." #. qfJEk #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0671\n" "help.text" msgid "Assigning Dialog methods" msgstr "Tilordning av dialogmetoder" #. 46GAC #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0672\n" "help.text" msgid "Export Access2Base dlgTrace dialog and import it into MyLib application library." msgstr "Eksporter Access2Base dlgTrace-dialog og importer den til MyLib-programbibliotek." #. QKmBa #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0673\n" "help.text" msgid "Inside the control properties pane of the Dialog Editor, use the Events tab to replace macro assignments by component assignments, and type in the intended method names:" msgstr "Inne i kontrollegenskapsruten i Dialog Editor, bruk kategorien «Hendelser» for å erstatte makrotilordninger med komponentoppgaver, og skriv inn de tiltenkte metodene:" #. qNEVD #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0674\n" "help.text" msgid "Set Dump to file dialog button component method name to _dump2File" msgstr "Sett Dump til fil dialogknapp-komponentmetodenavn til _dump2File" #. t65Et #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0675\n" "help.text" msgid "Optionally define txtTracelog key pressed and mouse button pressed events component method names as _openHelp" msgstr "Alternativt kan du definere txtTracelog-tastetrykk og museknappshendelsesmetodenavn som _openHelp" #. WMZBj #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0676\n" "help.text" msgid "Optionally define Ok button receiving focus event component method name as onOkHasfocus" msgstr "Definer alternativ Ok -knapp, som mottar fokus for hendelseskomponent metodenavn som påOkHasfocus " #. Joqhs #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0677\n" "help.text" msgid "Events assigned actions should mention the vnd.sun.star.UNO: protocol." msgstr "Hendelser som er tilordnet handlinger, bør nevne protokollen vnd.sun.star.UNO: ." #. BTnaF #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0678\n" "help.text" msgid "Creating the handler" msgstr "Opprettelse av håndterer" #. nHvEi #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0679\n" "help.text" msgid "createDialogWithHandler method of com.sun.star.awt.DialogProvider2 service is used to set the dialog and its handler. The handler is responsible for implementing com.sun.star.awt.XDialogEventHandler interface." msgstr " createDialogWithHandler metode for com .sun.star.awt.DialogProvider2 tjenesten brukes til å stille inn dialogboksen og dens håndterer. Håndtereren er ansvarlig for å implementere com.sun.star .awt.XDialogEventHandler grensesnittet." #. 2CCEz #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0680\n" "help.text" msgid "All component method names must be explicitly declared when using a dialog handler." msgstr "Alle komponentmetodenavn må erklæres eksplisitt når du bruker en dialogbehandler." #. kBAiZ #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0681\n" "help.text" msgid "With Python" msgstr "Med Python" #. rUiYd #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0682\n" "help.text" msgid "In this example the dialog is located on the computer." msgstr "I dette eksemplet er dialogen lokalisert på datamaskinen." #. FyaBp #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0692\n" "help.text" msgid "\"\"\" Access2Base Console Handler \"\"\"" msgstr "\"\"\" Access2Base-konsollhåndterer \"\"\"" #. dugqK #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0693\n" "help.text" msgid "''' adapted from « Créer un dialogue avec gestionnaire d'événements » by JM Zambon" msgstr "'' 'tilpasset fra «Créer un dialog avec gestionnaire d'événements» av JM Zambon" #. 5Cysb #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0716\n" "help.text" msgid "\"\"\" Create a Dialog from its location \"\"\"" msgstr "\"\"\" Opprett en dialog fra dens lokasjon \"\"\"" #. C9pNa #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0729\n" "help.text" msgid "''' Ugly MsgBox '''" msgstr "''' Uryddig MeldBoks '''" #. zcjmD #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0740\n" "help.text" msgid "As expected, onOkHasFocus missing method throws an exception." msgstr "Som forventet, utløser manglende onOkHasFocus-metode et unntak." #. 63rxz #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0741\n" "help.text" msgid "Refer to Python calls to %PRODUCTNAME Basic page for getBasicScript routine description and for details about cross-language scripting execution." msgstr "Referer til Python anrop til %PRODUCTNAME Basic-side for getBasicScript-rutinebeskrivelse og for detaljer om kjøring på tvers av språk." #. b6xGw #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0742\n" "help.text" msgid "With %PRODUCTNAME Basic" msgstr "Med %PRODUCTNAME Basic" #. 5N3MV #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0743\n" "help.text" msgid "In this example the dialog is embedded in a document, and can equally be located on the computer." msgstr "I dette eksemplet er dialogen innebygd i et dokument, og kan også være plassert på datamaskinen." #. Ahwda #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0751\n" "help.text" msgid "dp.Initialize(Array(ThisComponent)) ' if doc-embedded dialog" msgstr "dp.Initialize(Array(ThisComponent)) 'hvis dok-innebygd dialog" #. Cf88b #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0958c\n" "help.text" msgid "method As String) As Boolean" msgstr "method As String) som boolsk verdi" #. j4aLN #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0770\n" "help.text" msgid "'dialog.endDialog(1) if computer-based dialog" msgstr "'dialog.endDialog(1) hvis datamaskinbasert dialog" #. EBBRf #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0779\n" "help.text" msgid "' adapted from « Créer un dialogue avec gestionnaire d'événements » by JM Zambon" msgstr "' anpasset fra «Créer un dialogue avec gestionnaire d'événements» av JM Zambon" #. NF93B #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0781\n" "help.text" msgid "As expected, onOkHasFocus missing method throws an exception." msgstr "Som forventet, onOkHasFocus manglende metode gir et unntak." #. 4RevF #: python_handler.xhp msgctxt "" "python_handler.xhp\n" "N0505\n" "help.text" msgid "CreateUnoListener Function" msgstr "CreateUnoListener-funksjon" #. Ur3DA #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "tit\n" "help.text" msgid "IDE for Python" msgstr "IDE for Python" #. ETCU9 #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "bm_id761543349138561\n" "help.text" msgid "APSO Alternative Python Scripts Organizer python;IDE - integrated development environment python;editor" msgstr "APSO alternativ Python skripthåndterer python;IDE - (integrated development environment) python;redigering" #. cANSA #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "hd_id151543348965464\n" "help.text" msgid "Setting up an Integrated Development Environment (IDE) for Python" msgstr "Sett opp IDE (Integrated Development Environment) for Python" #. k7syF #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "par_id541543348965465\n" "help.text" msgid "Writing Python macros requires extra configuration steps to set an IDE of choice." msgstr "Skrive Python-makroer krever ekstra konfigurasjonstrinn for å sedtte opp din foretrukne IDE." #. NGxNi #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "N0106\n" "help.text" msgid "Unlike Basic language macros development in %PRODUCTNAME, developing Python scripts for %PRODUCTNAME requires to configure an external Integrated Development Environment (IDE). Multiple IDEs are available that range from beginners to advanced Python coders. While using a Python IDE programmers benefit from numerous features such as syntax highlighting, code folding, class browsing, code completion, coding standard enforcement, test driven development, debugging, version control and many more. You can refer to Designing & Developing Python Applications on the Wiki for more in-depth information about the setup of a bridge between your IDE and a running instance %PRODUCTNAME." msgstr "Ulikt Basic makro utvikling i %PRODUCTNAME, utvikling av Python skript for %PRODUCTNAME krever å konfigurere et eksternt integrert utviklingsmiljø (IDE). Flere IDEer er tilgjengelige som spenner fra nybegynnere til avanserte Python-kodere. Mens du bruker en Python IDE, programmerere, får en fordel av mange funksjoner som syntaxutheving, kodeformatering, klassesurfing, kodeavslutning, testdrevet utvikling, feilsøking, versjonskontroll og mange flere. Du kan henvise til Utforme og utvikle Python-applikasjoner på Wiki for mer grundig informasjon om oppsettet av en bro mellom din IDE og en kjørende instans av %PRODUCTNAME." #. u2xio #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "hd_id761544698669786\n" "help.text" msgid "The APSO Extension" msgstr "APSO-utvidelsen" #. 4isF2 #: python_ide.xhp msgctxt "" "python_ide.xhp\n" "N0104\n" "help.text" msgid "The Alternative Python Script Organizer (APSO) extension eases the edition of Python scripts, in particular when embedded in a document. Using APSO you can configure your preferred source code editor, start the integrated Python shell and debug Python scripts. Extensions exist that help inspect arbitrary UNO objects, refer to Designing & Developing Python Applications for additional details on such extensions." msgstr "Utvidelsen Alternative Python Script Organizer (APSO) gjør det enklere å redigere Pythonskript, særlig når de er innebygget i et dokument. Ved hjelp av APSO kan du sette opp ditt foretrukne program for å redigering av kildekoden og åpne det innebygde Python-shell-et. Det finnes utvidelser som du kan benytte for å se på tilfeldige UNO-objekt. Se Designing & Developing Python Applications for mer om dette." #. 5E2EV #: python_import.xhp msgctxt "" "python_import.xhp\n" "tit\n" "help.text" msgid "Python : Importing Modules" msgstr "Python : Importer Moduler" #. gFTth #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0461\n" "help.text" msgid "Python;import Python;Modules Python;pythonpath PythonLibraries" msgstr "Python;import Python;Moduler Python;pythonsti PythonBibliotek" #. 5QqdJ #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0462\n" "help.text" msgid "Importing Python Modules" msgstr "Importerer Phyton Moduler" #. VHAM5 #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0463\n" "help.text" msgid "%PRODUCTNAME Python scripts come in three distinct flavors, they can be personal, shared or embedded in documents. They are stored in varying places described in Python Scripts Organization and Location. In order to import Python modules, their locations must be known from Python at run time." msgstr "%PRODUCTNAME Python-skript kommer i tre forskjellige smaker, de kan være personlige, delte eller innebygd i dokumenter. De lagres på forskjellige som steder beskrevet iPython Skript Organisering og Plassering. For å kunne importere Python-moduler, må deres beliggenhet være kjent fra Python under kjøretid." #. zMSfx #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0464\n" "help.text" msgid "This mechanism is illustrated for file system based modules and document based modules. Exception handling is omitted for clarity. The terms library or directory, scripts or modules are used interchangeably. A Python macro refers to a function inside a module." msgstr "Denne mekanismen er illustrert for filsystembaserte moduler og dokumentbaserte moduler. Unntakshåndtering utelates for enkelhetens skyld. Vilkårs bibliotek eller katalog, skript eller moduler brukes om hverandre. En Python-makro refererer til en funksjon inne i en modul." #. GUdHS #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0465\n" "help.text" msgid "Note that /Scripts/python/pythonpath local directory is always explored when running a Python macro from /Scripts/python." msgstr "Noter atScripts/python/pythonpathlokal katalog utforskes alltid når en Phyton makro kjøres fra/Scripts/python." #. fyFof #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0466\n" "help.text" msgid "File System module import" msgstr "Fil System modul import" #. SRZgQ #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0467\n" "help.text" msgid "User or Shared Modules" msgstr "Bruker delte moduler" #. NAJzP #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0468\n" "help.text" msgid "Personal & shared Python scripts can be imported once their directories are included in Python run time path. Refer to Getting session information page for more details regarding omitted Session Class." msgstr "Personlige og delte Python-skript kan importeres når bibliotekene er importert i Python-kjøremiljøet. Se siden Hent informasjon for mer informasjon om utelatt sesjonsklasse." #. A4v4U #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0473\n" "help.text" msgid "user_lib = Session().UserPythonScripts # User scripts location" msgstr "user_lib = Session().UserPythonScripts # User scripts location" #. AAJUq #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0475\n" "help.text" msgid "sys.path.insert(0, user_lib) # Add to search path" msgstr "sys.path.insert(0, user_lib) # Legg til i søkesstien" #. yFcur #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0476\n" "help.text" msgid "import screen_io as ui # 'screen_io.py' module resides in user_lib directory" msgstr "import screen_io as ui # 'screen_io.py' modulen finnes i user_lib directory" #. 6KtvD #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0477\n" "help.text" msgid "# Your code follows here" msgstr "# Koden din følger her" #. G8bHh #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0478\n" "help.text" msgid "This Python example exposes a local XSCRIPTCONTEXT variable to an imported module:" msgstr "Dette Python-eksemplet eksponerer en lokal XSCRIPTCONTEXT-variabel for en importert modul:" #. uwiPp #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0483\n" "help.text" msgid "share_lib = Session.SharedPythonScripts() # Shared scripts location" msgstr "share_lib = Session.SharedPythonScripts() # Delte skriptplasseringer" #. HugAN #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0485\n" "help.text" msgid "sys.path.insert(0, share_lib) # Add to search path" msgstr "sys.path.insert(0, share_lib) #Legg til i søkestien" #. zGybv #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0486\n" "help.text" msgid "from IDE_utils import ScriptContext # 'IDE_utils.py' sits with shared Python scripts." msgstr "fra IDE_utils import ScriptContext # 'IDE_utils.py' finnes sammen med delte Python-skript." #. VoPZU #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0488\n" "help.text" msgid "# Your code follows here" msgstr "# Koden din følger her" #. AH3MT #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0489\n" "help.text" msgid "Installation Modules for Applications" msgstr "Installasjonsmoduler for applikasjoner" #. VFZdV #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0490\n" "help.text" msgid "Unlike personal and shared scripts, %PRODUCTNAME installation scripts can be imported any time. Next to uno & unohelper %PRODUCTNAME Python modules, other scripts present in /program directory can be imported directly, such as the msgbox module." msgstr "I motsetning til personlige og delte skript, kan %PRODUCTNAME installasjonsskript importeres når som helst. Ved siden av uno & unohelper %PRODUCTNAME Python-moduler, kan andre skript som er tilstede i/program -katalogen importeres direkte, for eksempel msgbox -modulen." #. TnQ2j #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0491\n" "help.text" msgid "With Python shell:" msgstr "Med Python-skall:" #. DDinb #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0534\n" "help.text" msgid "Document Module Import" msgstr "Import av dokumentmodul" #. AUzGt #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0535\n" "help.text" msgid "Importing a Python document embedded module is illustrated below. Error handling is not detailed. Python run time path is updated when document has been opened and before closure. Refer to Event-Driven Macros to learn how to associate Python macros to document events." msgstr "Import av en Python-dokument innebygd modul er illustrert nedenfor. Feilhåndtering er ikke på et detaljert nivå. Python-kjøretidsstien oppdateres når dokumentet er åpnet og før lukking. Sjekk Hendelsesdrevne makroer for å lære hvordan du knytter Python-makroer til dokumenthendelser." #. APbCX #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0541\n" "help.text" msgid "\"\"\" Prepare Python modules import when doc. loaded \"\"\"" msgstr "\"\"\" Forbered Python-modul import når dok.lastet \"\"\"" #. DJStg #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0542\n" "help.text" msgid "PythonLibraries.loadLibrary('lib/subdir') # Add directory to search path" msgstr "PythonLibraries.loadLibrary('lib/subdir') # Legg til katalog i søkestien" #. tPsVb #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0543\n" "help.text" msgid "PythonLibraries.loadLibrary('my_gui', 'screen_io') # Add dir. & import screen_io" msgstr "PythonLibraries.loadLibrary('my_gui', 'screen_io') # Add dir. & import screen_io" #. KxLAs #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0546\n" "help.text" msgid "\"\"\" Cleanup PYTHON_PATH when doc. Gets closed \"\"\"" msgstr "\"\"\" Rens opp PYTHON_PATH når dok. Lukkes \"\"\"" #. siAC7 #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0547\n" "help.text" msgid "PythonLibraries.unloadLibrary('my_gui') # Python runtime path cleanup" msgstr "PythonLibraries.unloadLibrary('my_gui') # Opprydding av Python kjøremiljø" #. zajf5 #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0548\n" "help.text" msgid "# Note: imported modules remain loaded in this example." msgstr "# Merk: importerte moduler er fortsatt lastet i dette eksemplet." #. pKa7R #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0553\n" "help.text" msgid "\"\"\" Python library loader and module importer" msgstr "\"\"\" Python-biblioteklaster og modulimporterer" #. ruYCE #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0555\n" "help.text" msgid "adapted from 'Bibliothèque de fonctions' by Hubert Lambert" msgstr "tilpasset fra 'Bibliothèque de fonctions' av Hubert Lambert" #. 8gpRJ #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0556\n" "help.text" msgid "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213 \"\"\"" msgstr "ved https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213 \"\"\"" #. T6bdz #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0558\n" "help.text" msgid "\"\"\" Check run time module list \"\"\"" msgstr "\"\"\" Sjekk kjøretidsmiljø-modullisten \"\"\"" #. EFaRv #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0561\n" "help.text" msgid "\"\"\" Check PYTHON_PATH content \"\"\"" msgstr "\"\"\" Kontroller PYTHON_PATH-innholdet \"\"\"" #. fvFq9 #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0564\n" "help.text" msgid "\"\"\" add directory to PYTHON_PATH, import named module \"\"\"" msgstr "\"\"\" legg til katalog i PYTHON_PATH, importer navngitt modul \"\"\"" #. eCTGx #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0573\n" "help.text" msgid "\"\"\" remove directory from PYTHON_PATH \"\"\"" msgstr "\"\"\" fjern katalog fra PYTHON_PATH \"\"\"" #. 5xScE #: python_import.xhp msgctxt "" "python_import.xhp\n" "N0580\n" "help.text" msgid "Refer to Creating a Python Listener for examples of event-driven macros." msgstr "Sjekk Opprett en Python Lytter for hendelsesdrevne makroeksempler." #. 9BBze #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "tit\n" "help.text" msgid "Python Listeners : Creating Event Listeners" msgstr "Python-lyttere: Opprette hendelselyttere" #. ouQd3 #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0385\n" "help.text" msgid "Python;Event Listener Python;createUnoListener Basic;Event Listener API;ActionEvent API;DialogProvider API;EventObject API;ExecutableDialogResults API;XActionListener" msgstr "Python;Hendelseslytterer Python;opprettUnoLytter Basic;Hendelseslytterer API;Handlingshendelse API;DialogForsyner API;HendelseObjekt API;KjørbarDialogResultat API;XHandlingshendelse" #. Pjc9z #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0386\n" "help.text" msgid "Creating Event Listeners" msgstr "Oppretting av handlingsLyttere" #. DGgrp #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0387\n" "help.text" msgid "Events raised by dialogs, documents, forms or graphical controls can be linked to macros, which is referred to as event-driven programming. The most common method to relate events to macros are the Events tab in Tools – Customize menu and the Dialog Editor Control properties pane from Tools - Macros – Organise Dialogs... menu." msgstr "Hendelser skapt av dialoger, dokumenter, skjemaer eller grafiske kontroller kan knyttes til makroer, som kalles hendelsesdrevet programmering. Den vanligste metoden for å knytte hendelser til makroer er Hendelse -fanen i menyenVerktøy - Tilpass og Dialog EditorKontrollegenskapsrute fra Verktøy - Makroer - Organiser Dialoger... menyen." #. Dd2YW #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0388\n" "help.text" msgid "Graphical artifacts, keyboard inputs, mouse moves and other man/machine interactions can be controlled using UNO listeners that watch for the user’s behavior. Listeners are dynamic program code alternatives to macro assignments. One may create as many UNO listeners as events to watch for. A single listener can also handle multiple user interface controls." msgstr "Grafiske gjenstander, tastaturinnput, musebevegelser og andre menneske/maskininteraksjoner kan styres ved hjelp av UNO-lyttere som ser etter brukerens oppførsel. Lyttere er dynamiske programkodealternativer til makroer. Man kan opprette like mange UNO-lyttere som hendelser å se etter. En enkelt lytter kan også håndtere flere brukergrensesnittkontroller." #. UVzsE #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0389\n" "help.text" msgid "Creating an event listener" msgstr "Oppretting av en hendelseslytter" #. knF23 #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0390\n" "help.text" msgid "Listeners get attached to controls held in dialogs, as well as to document or form events. Listeners are also used when creating runtime dialogs or when adding controls to a dialog on the fly." msgstr "Lyttere blir knyttet til dialogkontrollene, samt til å dokumentere eller danne hendelser. Lyttere brukes også når du oppretter kjøremiljødialoger eller når du legger til kontroller i en dialog i farten." #. DwE8A #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0391\n" "help.text" msgid "This example creates a listener for Button1 control of Dialog1 dialog in Standard library." msgstr "Dette eksemplet oppretter en lytter for Button1 kontroll av Dialog1 dialogen i Standard bibliotek." #. Wsp8E #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0392\n" "help.text" msgid "With Python" msgstr "Med Python" #. pPjfw #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0405\n" "help.text" msgid "_MY_LABEL = 'Python listens..'" msgstr "_MY_LABEL = 'Python lytter..'" #. UJrnb #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0417\n" "help.text" msgid "MsgBox(\"The user acknowledged the dialog.\")" msgstr "MsgBox(\"Brukeren bekreftet dialogen.\")" #. XVRK7 #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0419\n" "help.text" msgid "MsgBox(\"The user canceled the dialog.\")" msgstr "MsgBox(\"Brukeren avbrøt dialogen.\")" #. FUuHB #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0424\n" "help.text" msgid "\"\"\" Create a Dialog from its location \"\"\"" msgstr "\"\" \"Opprett en dialog dens lokasjon\" \"\"" #. NeZcJ #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0437\n" "help.text" msgid "\"\"\" Listen to & count button clicks \"\"\"" msgstr "\"\"\" Lytt til og tell knappeklikk \"\"\"" #. WK4DA #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0448\n" "help.text" msgid "def disposing(self, evt: EventObject): # mandatory routine" msgstr "def disposing(self, evt: EventObject): # obligatorisk rutine" #. 9mtTR #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0457\n" "help.text" msgid "msgbox.py in {installation}/program/ directory has some examples of button listeners." msgstr "msgbox.py i {installasjons)/program/-katalogen har noen eksempler på knappelyttere." #. MgUyV #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0458\n" "help.text" msgid "With %PRODUCTNAME Basic" msgstr "Med %PRODUCTNAME Basic" #. CCUMV #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0459d\n" "help.text" msgid "Const MY_LABEL = \"Basic listens..\"" msgstr "Const MY_LABEL = \"Basic lytter..\"" #. eJe7e #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0478\n" "help.text" msgid "Case rc.OK : MsgBox \"The user acknowledged the dialog.\",, \"Basic\"" msgstr "Case rc.OK : MsgBox \"Brukeren bekreftet dialogen.\",, \"Basic\"" #. KVrqd #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0479\n" "help.text" msgid "Case rc.CANCEL : MsgBox \"The user canceled the dialog.\",, \"Basic\"" msgstr "Case rc.CANCEL : MsgBox \"Brukeren avbrøt dialogen..\",, \"Basic\"" #. 9AeGf #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0486\n" "help.text" msgid "''' Listen to & count button clicks '''" msgstr "''' Lytt til og tell knappeklikk '''" #. 5Arxo #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0496\n" "help.text" msgid "' your code goes here" msgstr "' koden din finnes her" #. AQA8b #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0498\n" "help.text" msgid "Other Event Listeners" msgstr "Andre hendelseslyttere" #. HsXBE #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0499\n" "help.text" msgid "Listeners are usually coded along with dialog opening. Numerous listener approaches are possible such as event handlers for dialogs or event monitors for documents or forms." msgstr "Lyttere blir vanligvis kodet sammen meddialogåpning. Mange lyttertilnærminger er mulige, for eksempel hendelsesbehandlere for dialoger eller hendelsesmonitorer for dokumenter eller skjemaer." #. Xyv2b #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0505\n" "help.text" msgid "CreateUnoListener Function" msgstr "OpprettUnoLytter Funsjon" #. zKQhy #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0506\n" "help.text" msgid "Events mapping to objects" msgstr "Hendelser tilknyttet objekter" #. Xbxfm #: python_listener.xhp msgctxt "" "python_listener.xhp\n" "N0509\n" "help.text" msgid "See also Document events, Form events." msgstr "Se også Dokumenthendelser, Skjemahendelser ." #. GC8Ny #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "tit\n" "help.text" msgid "Python Scripts Organization" msgstr "Organisering av Python-skript" #. KKGnc #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id391543358231021\n" "help.text" msgid "Python Scripts Organization and Location" msgstr "Organisering og plassering av Python-skript" #. sG2Rn #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id771543358231022\n" "help.text" msgid "The Python script files are stored in the filesystem, in folders controlled by %PRODUCTNAME. The macros can be started at installation, user or file level." msgstr "Python-skriptfilene lagres i filsystemet, i mapper styrt av %PRODUCTNAME. Makroene kan startes på installasjons-, bruker- eller filnivå." #. iEtmS #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id911544049584458\n" "help.text" msgid "Python Script Locations" msgstr "Plassering av Python-skript" #. cmghv #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id121551089455774\n" "help.text" msgid "Refer to Getting Session Information in order to get programmatic access to Python script locations." msgstr "Referer til Henting av øktinfofor å få programmatisk tilgang til lokasjonene for Python-skript." #. QGXPA #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id591544049572647\n" "help.text" msgid "%PRODUCTNAME Macros container" msgstr "Beholder for %PRODUCTNAME-makroer" #. xBzRT #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id261544049064421\n" "help.text" msgid "Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here." msgstr "Eksisterende makroer på denne plasseringen (beholder) ble kopiert av installeringsprogrammet og er tilgjengelige for alle datamaskiner, og ethvert åpent dokument kan få tilgang til makroer som er lagret i beholderen. Du trenger administrative rettigheter til å lagre eller redigere makroer her." #. M8CGu #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id861544210028670\n" "help.text" msgid "The %PRODUCTNAME Macros container location in the file system depends on the operating system:" msgstr "Beholderplasseringen for %PRODUCTNAME Makroer i filsystemet avhenger av operativsystemet:" #. GMBSF #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id191544210072242\n" "help.text" msgid "For Windows: {Installation}\\share\\Scripts\\python." msgstr "For Windows: {Installasjon}\\share\\Scripts\\python." #. DV8TD #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id61544210078654\n" "help.text" msgid "For Linux and macOS: {Installation}/share/Scripts/python." msgstr "For Linux og macOS: {Installasjon}/share/Scripts/python." #. 5sHwj #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id861544049692222\n" "help.text" msgid "My Macros" msgstr "Mine makroer" #. aiMzD #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id981544049055996\n" "help.text" msgid "This container is accessible only by the %PRODUCTNAME user. Any open document can access macros stored the container. Macros in this location are stored in the %PRODUCTNAME user profile." msgstr "Denne beholderen er bare tilgjengelig for brukeren av %PRODUCTNAME. Ethvert åpent dokument kan få tilgang til makroer lagret beholderen. Makroer på denne plasseringen er lagret i %PRODUCTNAME brukerprofilen." #. wUjx4 #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id341544210187846\n" "help.text" msgid "The My Macros container location is in the user space and depends on the operating system:" msgstr "Beholder plasseringen for Mine Makroer i filsystemet avhenger av operativsystemet:" #. mhNtD #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id381544210213190\n" "help.text" msgid "For Windows,
%APPDATA%\\LibreOffice\\4\\user\\Scripts\\python." msgstr "For Windows,
%APPDATA%\\LibreOffice\\4\\user\\Scripts\\python." #. fQYPE #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id691544210219850\n" "help.text" msgid "For Linux and macOS,
$HOME/.config/libreoffice/4/user/Scripts/python." msgstr "For Linux og macOS,
$HOME/.config/libreoffice/4/user/Scripts/python." #. CSJC9 #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id101544049707712\n" "help.text" msgid "Document macros" msgstr "Dokumentmakroer" #. FBmoB #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id31544049046497\n" "help.text" msgid "Document macros are embedded in the document and are accessible only when the document is open." msgstr "Dokumentmakroer er innebygd i dokumentet og er bare tilgjengelige når dokumentet er åpent." #. qbVc9 #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id171544049715310\n" "help.text" msgid "Libraries, Modules and Macros" msgstr "Bibliotek, moduler og makroer" #. KnZCV #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id181544209916707\n" "help.text" msgid "Like BASIC macros, Python macros can be organized in libraries, modules and macros." msgstr "Som BASIC makroer, kan Python-makroer organiseres i biblioteker, moduler og makroer." #. LoK2E #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id21544209865082\n" "help.text" msgid "Creating a Python Library" msgstr "Opprettelse av Python-bibliotek" #. R2uCF #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id191544209928221\n" "help.text" msgid "Libraries are folders in the container tree. To create a library, add a folder in the target container. The library name is the folder name." msgstr "Biblioteker er mapper i inneholdende tre. For å opprette et bibliotek, legg til en mappe i målbeholderen. Bibliotekets navn er mappenavnet." #. hFS3L #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id31544209872869\n" "help.text" msgid "Creating a Python Module." msgstr "Opprettelse av Python-modul" #. djeua #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id161544209936743\n" "help.text" msgid "A module is a python file in the library or the container. Create a module adding a file in the container." msgstr "En modul er en Pythonfil i biblioteket eller beholderen. Opprett en modul som legger til en fil i containeren." #. Paoju #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "hd_id151544209895574\n" "help.text" msgid "Python macros" msgstr "Python-makroer" #. CBeyB #: python_locations.xhp msgctxt "" "python_locations.xhp\n" "par_id61544209944591\n" "help.text" msgid "A macro is a python object in the module." msgstr "En makro er et Python-objekt i modulen." #. Zcfxg #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "tit\n" "help.text" msgid "Python : Platform class" msgstr "Python : Plattform klasse" #. jnNvg #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0508\n" "help.text" msgid "Platform;isLinux Platform;isMacOsX Platform;isWindows Platform;ComputerName Platform;OSName API;ConfigurationAccess Tools;GetRegistryContent" msgstr "Platftorm;erLinux Plattform;erMacOsX Plattform;erWindows Plattform;Datamaskinnavn Plattform;OSNavn API;KonfigurasjonAksess Verktøy;HentRegisterInnhold" #. uMBGn #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0509\n" "help.text" msgid "Identifying the operating system" msgstr "Identifiserer operativsystemet" #. vqduy #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0510\n" "help.text" msgid "Identifying the operating system can be performed with Python or Basic language." msgstr "Identifisering av operativsystemet kan utføres med Python eller Basic." #. gZrHC #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0511\n" "help.text" msgid "ComputerName property is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations." msgstr "ComputerName-egenskapen er kun tilgjengelig for Windows. Grunnleggende anrop til Python-makroer hjelper med å overvinne de grunnleggende begrensningene i %PRODUCTNAME." #. sV6Fp #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0512\n" "help.text" msgid "Using a Python class:" msgstr "Bruker en Python klasse:" #. ikwcW #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0529\n" "help.text" msgid "Using a Basic classmodule:" msgstr "Bruker en Basic klassemodul:" #. 7BpCv #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "NO529b\n" "help.text" msgid "%PRODUCTNAME Basic lacks MacOS X native recognition. Platform identification is possible using %PRODUCTNAME Application Programming Interface (API)." msgstr "%PRODUCTNAME Basic mangler innebygd anerkjennelse av MacOS X Plattformidentifikasjon er mulig med %PRODUCTNAME Application Programming Interface (API)." #. tTyE5 #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0451\n" "help.text" msgid "' Return platform name as \"MAC\", \"UNIX\", \"WIN\"" msgstr "' Returner plattform navn som \"MAC\", \"UNIX\", \"WIN\"" #. AwTGx #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0551\n" "help.text" msgid "' Inferred from \"Tools.UCB.ShowHelperDialog\" function" msgstr "' Avledet fra \"Tools.UCB.ShowHelperDialog\" funksjon" #. jtA2N #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0564\n" "help.text" msgid "Examples:" msgstr "Eksempler:" #. riK2q #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0565\n" "help.text" msgid "With Python" msgstr "Med Python" #. FELjZ #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0567\n" "help.text" msgid ">>> print(Platform().isMacOSX) # object property" msgstr ">>> skriv ut(Plattform().erMacOSX) # objekt egenskaper" #. dAWDs #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0569\n" "help.text" msgid ">>> input(Platform().OSName) # object property" msgstr ">>> innput(Plattform().OSNavn) # objekt egenskaper" #. MkpG4 #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0571\n" "help.text" msgid "From Tools – Macros - Run Macro... menu." msgstr "Fra Verktøy - Makroer - Kjør makro ... -menyen." #. Qk6MM #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0576\n" "help.text" msgid "With %PRODUCTNAME Basic" msgstr "Ved %PRODUCTNAME Basic" #. Jkyqd #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0578\n" "help.text" msgid "Dim p As New Platform ' instance of Platform class" msgstr "Dim p Som ny plattform 'forekomst av plattform klassen" #. HWYHg #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0579\n" "help.text" msgid "MsgBox p.isLinux ' object property" msgstr "MsgBox p.erLinux 'objektegenskap" #. 9FGEv #: python_platform.xhp msgctxt "" "python_platform.xhp\n" "N0580\n" "help.text" msgid "Print p.isWindows, p.OSName ' object properties" msgstr "Skriv ut p.erWindows, p.OSNavn 'objektegenskaper" #. ej5WE #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "tit\n" "help.text" msgid "Python : Programming with Python" msgstr "Python: Programmering med Python" #. g4R9j #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0218\n" "help.text" msgid "Python;Programming XSCRIPTCONTEXT;Python XSCRIPTCONTEXT;getComponentContext() uno.py uno.py;getComponentContext()" msgstr "Python;Programering XSCRIPTCONTEXT;Python XSCRIPTCONTEXT;getComponentContext() uno.py uno.py;getComponentContext()" #. CU6JS #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "hd_id691546462755220\n" "help.text" msgid "Programming with Python Scripts" msgstr "Programmering med Python-skript" #. BjiFe #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0220\n" "help.text" msgid "A Python macro is a function within a .py file, identified as a module. Unlike %PRODUCTNAME Basic and its dozen of UNO objects functions or services, Python macros use the XSCRIPTCONTEXT UNO single object, shared with JavaScript and BeanShell. The g_exportedScripts global tuple explicitly lists selectable macros from a module. Python modules hold autonomous code logic, and are independent from one another." msgstr "En Python-makro er en funksjon i en .py-fil, identifisert som en modul. I motsetning til %PRODUCTNAME Basic og dets dusin av UNO objekter funksjoner eller tjenester , Python makroer bruker XSCRIPTCONTEXT UNO enkelt objekt, delt med JavaScript og BeanShell. g_exportedScripts global tuple viser eksplisitt valgbare makroer fra en modul. Python-moduler har autonom kodelogikk, og er uavhengige av hverandre." #. 8Ri8m #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0221\n" "help.text" msgid "XSCRIPTCONTEXT Global Variable" msgstr "XSCRIPTCONTEXT Global Variabel" #. xnRGE #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0222\n" "help.text" msgid "Genuine Basic UNO facilities can be inferred from XSCRIPTCONTEXT global variable. Refer to %PRODUCTNAME API for a complete description of XSCRIPTCONTEXT. XSCRIPTCONTEXT methods summarize as:" msgstr "Ekte Basic UNO-fasiliteter kan utledes fra XSCRIPTCONTEXT global variabel. Referer til %PRODUCTNAME API for a komplett beskrivelse av XSCRIPTCONTEXT. XSCRIPTCONTEXT metoder sammenfattet som:" #. U6KbS #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0224\n" "help.text" msgid "Methods" msgstr "Metoder" #. skMQF #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0225\n" "help.text" msgid "Description" msgstr "Beskrivelse" #. onsBW #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0226\n" "help.text" msgid "Mapped in Basic as" msgstr "Mappet i Basic som" #. 54Nun #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0228\n" "help.text" msgid "The document reference on which the script can operate." msgstr "Dokumentreferansen som skriptet kan operere på." #. CR7pv #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0231\n" "help.text" msgid "The desktop reference on which the script can operate." msgstr "Dokumentreferansen som skriptet kan operere på." #. rAVfx #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0234\n" "help.text" msgid "The component context which the script can use to create other uno components." msgstr "Komponentkonteksten som skriptet kan bruke til å lage andre UNO-komponenter." #. 5wUcN #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0237\n" "help.text" msgid "HelloWorld and Capitalise installation shared scripts illustrate UNO-related macros making use of XSCRIPTCONTEXT global variable." msgstr "HelloWorld ogUtnytt installerte delte skript illustrerer UNO-relaterte makroer som bruker XSCRIPTCONTEXT globale variabler." #. RQgKR #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0238\n" "help.text" msgid "Python standard output file is not available when running Python macros from Tools - Macros - Run Macro menu. Refer to Input/Output to Screen for more information." msgstr "Python standard utdatafil er ikke tilgjengelig når du kjører Python-makroer fra Verktøy-menyen - Makroer - Kjør Makro-menyelementer. Se Input/Output to Screen for mer informasjon." #. WuGCs #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0239\n" "help.text" msgid "Module import" msgstr "Modul-import" #. tBVP2 #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0240\n" "help.text" msgid "XSCRIPTCONTEXT is not provided to imported modules." msgstr "XSCRIPTCONTEXT er ikke tilgjengelig for importerte moduler." #. dURCV #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0241\n" "help.text" msgid "%PRODUCTNAME Basic libraries contain classes, routines and variables, Python modules contain classes, functions and variables. Common pieces of reusable Python or UNO features must be stored in My macros within (User Profile)/Scripts/python/pythonpath. Python libraries help organize modules in order to prevent module name collisions. Import uno.py inside shared modules." msgstr "%PRODUCTNAME Grunnleggende biblioteker inneholder klasser, rutiner og variabler, Python-moduler inneholder klasser, funksjoner og variabler. Vanlige deler av gjenbrukbare Python- eller UNO-funksjoner må lagres iMine makroer i (Brukerprofil)/Scripts/python/pythonpath. Python-biblioteker hjelper til med å organisere moduler for å forhindre modulkollisjon. Importer uno.py i delte moduler." #. a2xVe #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0242\n" "help.text" msgid "Genuine BASIC UNO facilities can be inferred using uno.py module. Use Python interactive shell to get a complete module description using dir() and help() Python commands." msgstr "Ekte BASIC UNO-fasiliteter kan utledes ved hjelp av uno.py -modulen. Bruk Python interaktivt skall for å få en komplett modulbeskrivelse ved hjelp av dir () og hjelp () Python-kommandoer." #. Gi6iz #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0244\n" "help.text" msgid "Functions" msgstr "Funksjoner" #. jFADb #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0245\n" "help.text" msgid "Description" msgstr "Beskrivelse" #. 6wDQn #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0246\n" "help.text" msgid "Mapped in Basic as" msgstr "Mappet i Basic som" #. 7prVF #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0248\n" "help.text" msgid "Returns an absolute file url from the given urls." msgstr "Returnerer en absolutt filadresse fra de oppgitte nettadressene." #. PE7AD #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0251\n" "help.text" msgid "Creates a UNO struct or exception given by typeName." msgstr "skaper en UNO-strukt eller unntak gitt av typeNavn." #. FNPMc #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0254\n" "help.text" msgid "Returns a system path." msgstr "Returnerer en system sti." #. sFbd9 #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0257\n" "help.text" msgid "Returns the class of a concrete UNO exception, struct, or interface." msgstr "Returnerer klassen av et konkret UNO-unntak, strukt eller grensesnitt." #. qAbMv #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0260\n" "help.text" msgid "Returns the UNO component context used to initialize the Python runtime." msgstr "Returnerer UNO-komponentkonteksten som brukes til å igangsette Python-kjøretidsrutine." #. WQBzo #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0264\n" "help.text" msgid "Looks up the value of an IDL constant by giving its explicit name." msgstr "Ser opp verdien av en IDL konstant ved å gi sitt eksplisitte navn." #. VD2pr #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0265\n" "help.text" msgid "See API constant groups" msgstr "Se API konstant-grupper" #. RMBST #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0267\n" "help.text" msgid "Returns True, when obj is a class of a UNO interface." msgstr "Returnerer True, når obj er en klasse med et UNO-grensesnitt." #. B84WF #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0270\n" "help.text" msgid "Returns a file URL for the given system path." msgstr "Returnerer en filadresse for den oppgitte systembanen." #. GEMGY #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0272\n" "help.text" msgid "LibreLogo and TableSample installation shared scripts use uno.py module." msgstr "Delte skript i LibreLogo og TableSample bruker uno.py-modul." #. 9NieC #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0273\n" "help.text" msgid "More Python-Basic samples" msgstr "Flere Python-Basic-eksempler" #. 6Yct5 #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0275\n" "help.text" msgid "Python UNO" msgstr "Python UNO" #. 8GvqG #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0276\n" "help.text" msgid "Basic UNO features" msgstr "Basic UNO-egenskaper" #. 8EWYh #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0284\n" "help.text" msgid "See Opening a Dialog" msgstr "Se Åpning av en dialog" #. F2cFF #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0286\n" "help.text" msgid "See Creating a Listener" msgstr "Se Opprettelse av lytter" #. LNUaK #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0288\n" "help.text" msgid "See UNO data types" msgstr "Se UNO-datatyper" #. 4vWGa #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0297\n" "help.text" msgid "Importing an embedded Module" msgstr "Importering av innebygget modul" #. SGVBE #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0298\n" "help.text" msgid "Similarly to %PRODUCTNAME Basic that supports browsing and dynamic loading of libraries, Python libraries can be explored and imported on demand. For more information on library containers, visit %PRODUCTNAME Application Programming Interface (API) or download %PRODUCTNAME Software Development Kit (SDK)." msgstr "På samme måte som %PRODUCTNAME Basic som støtter surfing og dynamisk lasting av biblioteker, kan Python-biblioteker utforskes og importeres etter behov. For mer informasjon om biblioteksbeholdere, besøk %PRODUCTNAME Application Programming Interface (API) eller last ned %PRODUCTNAME Software Development Kit (SDK)." #. VtFrH #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0299\n" "help.text" msgid "Importing a Python document embedded module is illustrated below, exception handling is not detailed:" msgstr "Importering av en Python-dokument-integrert modul er illustrert nedenfor, unntakshåndteringen er ikke detaljert:" #. P2R2D #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0303\n" "help.text" msgid "\"\"\" load library and import module" msgstr "\"\"\" last inn biblioteket og importer modul" #. oBnkG #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0305\n" "help.text" msgid "Adapted from 'Bibliothèque de fonctions' by Hubert Lambert" msgstr "Hentet fra «Bibliothèque de fonctions» av Hubert Lambert" #. FFxTV #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0306\n" "help.text" msgid "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\"" msgstr "på https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\"" #. A2Zvp #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0307\n" "help.text" msgid "doc = XSCRIPTCONTEXT.getDocument() # current document" msgstr "doc = XSCRIPTCONTEXT.getDocument() # gjeldende dokument" #. qqpCF #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0310\n" "help.text" msgid "if not url in sys.path: # add path if necessary" msgstr "hvis ikke url i sys.path: # legg til sti hvis nødvendig" #. HWoLC #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0311\n" "help.text" msgid "sys.path.insert(0, url) # doclib takes precedence" msgstr "sys.path.insert(0, url) # doc har forrang" #. wBdYA #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0312\n" "help.text" msgid "if module_name: # import if requested" msgstr "if module_name: # importer dersom det er nødvendig" #. B9zJW #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0316\n" "help.text" msgid "ui = load_library(\"my_gui\",'screen_io') # add path + import " msgstr "ui = load_library(\"my_gui\",'screen_io') # legg til sti + import " #. HFcCm #: python_programming.xhp msgctxt "" "python_programming.xhp\n" "N0321\n" "help.text" msgid "Basic UNO Objects, Functions and Services" msgstr "Basic UNO Objekter, Funksjoner og Tjenester" #. zRBRa #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "tit\n" "help.text" msgid "Python : Screen Input/Output" msgstr "Python: Skjerminndata/visning" #. tMEMB #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0433\n" "help.text" msgid "Python;InputBox Python;MsgBox Python;Print API;script.provider.MasterScriptProvider: Screen Input/Output API;script.provider.XScript: Screen Input/Output" msgstr "Python;InnputBoks Python;MsgBoks Python;Utskrift API;script.provider.MasterScriptProvider: Skjerm inndata/utdata API;script.provider.XScript: Skjerminndata/utdata" #. fovpz #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0434\n" "help.text" msgid "Input/Output to Screen" msgstr "Inndata/visning til skjerm" #. qCLEs #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0435\n" "help.text" msgid "Python standard output file is not available when running Python macros from Tools – Macros - Run Macro... menu. Presenting the output of a module requires the Python interactive console. Features such as input(), print(), repr() and str() are available from the Python shell." msgstr "Python standard utdatafil er ikke tilgjengelig når du kjører Python makroer fra Verktøy - Makroer - Kjør makro ... -menyen. Presentasjon av utgangen av en modul krever Python interaktive konsollen. Funksjoner som input (), utskrift () , repr () og str () er tilgjengelige fra Python-skallet." #. NHHFB #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0436\n" "help.text" msgid "The Alternative Python Script Organizer (APSO) extension offers a msgbox() function out of its apso_utils module." msgstr "Alternativ Phyton-skriptbehandler(APSO) utvidelsen gir en meldingsboksfunksjon() fra apso_utils-modulen." #. aPSDz #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0437\n" "help.text" msgid "%PRODUCTNAME Basic proposes InputBox(), Msgbox() and Print() screen I/O functions. Python alternatives exist relying either on %PRODUCTNAME API Abstract Windowing Toolkit, either on Python to Basic function calls. The latter proposes a syntax that is intentionally close to that of Basic, and uses a Python module next to a Basic module. The API Scripting Framework is used to perform Basic, BeanShell, JavaScript and Python inter-languages function calls." msgstr "%PRODUCTNAME Basic foreslår InputBox (), Msgbox () og Print () I/O-funksjoner på skjermen. Python-alternativer eksisterer avhengig av %PRODUCTNAME API Abstract Windowing Toolkit, enten på Python til Basic-funksjonsanrop. Sistnevnte foreslår en syntaks som med vilje ligner Basic, og bruker en Python-modul ved siden av en Basic-modul. API Scripting Framework brukes til å utføre Basic, BeanShell, JavaScript og Python-inter-språk-funksjonsanrop." #. hat4k #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0438\n" "help.text" msgid "Python syntax:" msgstr "Python-syntaks:" #. QypFq #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0442\n" "help.text" msgid "Examples:" msgstr "Eksempler:" #. DbZVx #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0449\n" "help.text" msgid "Installation:" msgstr "Installasjon" #. QDrDk #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0450\n" "help.text" msgid "Copy screen_io Python module in My macros within /Scripts/python/pythonpath," msgstr "Kopier screen_io Python-modul i Mine makroer inne i /Scripts/python/pythonpath," #. bckjW #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0451\n" "help.text" msgid "Copy uiScripts Basic module in My macros Standard Basic library," msgstr "Kopier uiScripts Basic-modul i Mine makroer Standard Basic-bibliotek," #. XAthB #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0452\n" "help.text" msgid "Restart %PRODUCTNAME." msgstr "Omstart av %PRODUCTNAME" #. jGGGZ #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0453\n" "help.text" msgid "screen_io Python module" msgstr "skjerm_io-Pythonmodul" #. EB2zZ #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0467\n" "help.text" msgid "\"\"\" Displays a dialog box containing a message and returns a value.\"\"\"" msgstr "\"\"\" Viser en dialogboks som inneholder en melding og returnerer en verdi. \"\"\"" #. nUtxt #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0473\n" "help.text" msgid "\"\"\" Displays a prompt in a dialog box at which the user can enter text.\"\"\"" msgstr "\"\"\" Viser en melding i en dialogboks der brukeren kan skrive inn tekst. \"\"\"" #. MFz5D #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0479\n" "help.text" msgid "\"\"\"Outputs the specified strings or numeric expressions in a dialog box.\"\"\"" msgstr "\"\"\" Skriver ut de angitte strengene eller numeriske uttrykk i en dialogboks. \"\"\"" #. EYqxJ #: python_screen.xhp msgctxt "" "python_screen.xhp\n" "N0492\n" "help.text" msgid "uiScripts Basic module" msgstr "uiSkript-Basicmodul" #. CGnPe #: python_session.xhp msgctxt "" "python_session.xhp\n" "tit\n" "help.text" msgid "Python_Session : Session class" msgstr "Python_Session : øktklasse" #. vkS8P #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0339\n" "help.text" msgid "Session;UserName Session;SharedScripts Session;SharedPythonScripts Session;UserProfile Session;UserScripts Session;UserPythonScripts API;PathSubstitution" msgstr "Økt;Brukernavn Økt;DelteSkript Økt;DeltePythonSkript Økt;BrukerProfil Økt;BrukerSkript Økt;BrukerPythonSript API;StiErstatning" #. EvmoA #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0340\n" "help.text" msgid "Getting Session Information" msgstr "Henting av øktinfo" #. nmTjF #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0341\n" "help.text" msgid "Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information." msgstr "Kjøring av %PRODUCTNAME-brukerprofil og delte moduler systemfilbaner kan utføres med Python eller med grunnleggende språk. BeanShell, Java, JavaScript og Python-skriptplasseringer kan hentes fra denne informasjonen." #. gMnyC #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0343\n" "help.text" msgid "Examples:" msgstr "Eksempler:" #. m498C #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0344\n" "help.text" msgid "With Python shell." msgstr "Med Phyton-skall." #. yziJv #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0346\n" "help.text" msgid ">>> print(Session.SharedPythonScripts()) # static method" msgstr ">>> utskrift av(Session.SharedPythonScripts()) # statisk metode" #. ezhbr #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0347\n" "help.text" msgid ">>> print(Session().UserName) # object property" msgstr ">>> skriv ut(Sesjon().BrukerNavn) # objektegenskaper" #. K4Cjj #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0348\n" "help.text" msgid ">>> input(Session().UserProfile) # object property" msgstr ">>> innput(Sesjon().BrukerProfil) # objektegenskaper" #. CVdoK #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0349\n" "help.text" msgid "From Tools – Macros - Run Macro... menu." msgstr "Fra Verktøy - Makroer - Kjør makro ... -menyen." #. k47pk #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0354\n" "help.text" msgid "ui.MsgBox(Session.Share(),title='Installation Share') # static method" msgstr "ui.MsgBox(Session.Share(),title='Installation Share') # statisk metode" #. mFu9h #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0355\n" "help.text" msgid "ui.Print(Session.SharedPythonScripts()) # static method" msgstr "ui.Print(Session.SharedPythonScripts()) # statisk metode" #. osmNG #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0356\n" "help.text" msgid "s = Session() # instance creation" msgstr "s = Sesjon() # opprett instans" #. Gqz8J #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0357\n" "help.text" msgid "ui.MsgBox(s.UserName,title='Hello') # object property" msgstr "ui.MsgBox(s.BrukerNavne,tittel='Hallo') # objektegenskaper" #. 8c4GN #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0358\n" "help.text" msgid "ui.Print(s.UserPythonScripts) # object property" msgstr "ui.Utskrift(s.BrukerPythonSkript) # objektegenskaper" #. GAffb #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0360\n" "help.text" msgid "g_exportedScripts = (demo_session,) # public macros" msgstr "g_eksporteteSkript = (demo_sesjon,) # felles makroer" #. GfLEb #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0361\n" "help.text" msgid "With %PRODUCTNAME Basic." msgstr "Ved %PRODUCTNAME Basic" #. CJAPH #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0364\n" "help.text" msgid "Print \"Shared scripts location:\", s.SharedScripts" msgstr "Skriv ut \"Delte skript plasseing:\", s.DelteSkript" #. nKgLS #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0365\n" "help.text" msgid "MsgBox s.UserName,,\"Hello\"" msgstr "MsgBox s.BrukerNavn,,\"Hallo\"" #. Dvp2n #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0368\n" "help.text" msgid "Using COM/OLE and Visual Basic Scripting language." msgstr "Bruk COM/OLE og Visual Basic-skriptspråk." #. u2czW #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0369\n" "help.text" msgid "' The service manager is always the entry point" msgstr "Tjenesteadministratoren er alltid startpunktet" #. BiCRF #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0370\n" "help.text" msgid "' If there is no office running then an office is started up" msgstr "' Hvis kontormiljø ikke kjøres, vil kontormiljø startes opp" #. mepxA #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0372\n" "help.text" msgid "' PathSubstitution service exhibits information to infer" msgstr "'PathSubstitution-tjeneste viser informasjon som skal utledes" #. njK5P #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0373\n" "help.text" msgid "' /Scripts/python locations from" msgstr "Scripts/python plassering fra" #. XPAGf #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0381\n" "help.text" msgid "Python Session class:" msgstr "Python-øktklasse:" #. ePFtK #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0401\n" "help.text" msgid "@property # alternative to '$(username)' variable" msgstr "@property # alternativ til '$(username)' variable" #. CBvZv #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0342\n" "help.text" msgid "Unlike Basic, pathname normalization is performed with Python inside Session class." msgstr "I motsetning til Basic utføres normalisering av stinavn med Python i øktsklassen." #. 8zUvW #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0412\n" "help.text" msgid "%PRODUCTNAME Basic Session class:" msgstr "%PRODUCTNAME Basic-øktklasse:" #. ivAG6 #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0417\n" "help.text" msgid "Private _ps As Object ' Private member" msgstr "Private _ps As Object ' Privat medlem" #. Q9sNs #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0422\n" "help.text" msgid "End Sub ' Constructor" msgstr "Slutt på Sub ' Constructor" #. ELSQJ #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0426\n" "help.text" msgid "End Sub ' Destructor" msgstr "Slutt på Sub ' Destructor" #. 7neVV #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0439\n" "help.text" msgid "Public Property Get UserName() As String ' User account name" msgstr "Offentlig egenskap Hent brukernavn () som String 'Brukernavn" #. NsDBi #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0443\n" "help.text" msgid "Public Property Get UserProfile() As String ' User profile system path" msgstr "Offentlig egenskap Hent UserProfile () Som String 'Brukerprofil-systembane" #. do2CY #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0447\n" "help.text" msgid "Public Property Get UserScripts() As String ' User scripts system path" msgstr "Offentlig egenskap Hent UserScripts() Som String 'Brukerskript-systembane" #. Gg3yg #: python_session.xhp msgctxt "" "python_session.xhp\n" "N0451\n" "help.text" msgid "Public Property Get UserPythonScripts() As String ' User Python scripts system path" msgstr "Offentlig egenskap Hent UserPhytonScripts() Som String 'Brukerskript-systembane" #. DRC4A #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "tit\n" "help.text" msgid "Python Interactive Shell" msgstr "Interaktivt Python-skall" #. LUGZ7 #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0117\n" "help.text" msgid "Python console Python Interactive Shell" msgstr "Python-konsoll Interaktivt Python-skall" #. PmoqF #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0118\n" "help.text" msgid "Running Python Interactive Console" msgstr "Kjøring av interaktiv Python-konsoll" #. Met9b #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0119\n" "help.text" msgid "The Python interactive console, also known as Python interpreter or Python shell, provides programmers with a quick way to execute commands and try out and test code without creating a file. UNO objects introspection as well as %PRODUCTNAME Python modules documentation can be obtained from the terminal." msgstr "Den interaktive Python-konsollen, også kjent som Python-tolk eller Python-skall, gir programmerere en rask måte å utføre kommandoer på og prøve og teste koden uten å opprette en fil. UNO objekter introspeksjon samt %PRODUCTNAME-Pythonmoduler dokumentasjon kan fås fra terminalen." #. MZodx #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0121\n" "help.text" msgid "Using a Basic macro:" msgstr "Bruk av Basic-makro:" #. vXGF7 #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0127\n" "help.text" msgid "Using a Python macro:" msgstr "Bruk av Python-makro:" #. oBg3T #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0141\n" "help.text" msgid "Usage:" msgstr "Bruk:" #. EzwwC #: python_shell.xhp msgctxt "" "python_shell.xhp\n" "N0142\n" "help.text" msgid "Python Interactive Console" msgstr "Interaktiv Python-konsoll"