© Ольшевский Андрей Георгиевич Консультирую по скайп: da.irk.ru Сайт super-code.ru наполняется бесплатными материалами
Программирование на языке OpenOffice Basic и LibreOffice Basic (продолжение)
Оглавление Программирование на языке OpenOffice Basic и LibreOffice Basic (начало) 12 Свойства, методы, сервисы, интерфейсы UNO в OpenOffice Writer или LibreOffice Writer 51 12.1 Графический объект GraphicObject в Writer 68 12.2 Графические объекты GraphicObjects в Writer 74 12.3 Удаление графических объектов GraphicObjects в Writer 76 12.4 Объекты DrawPage и getDrawPage() для рисования в OpenOffice Writer или LibreOffice Writer 76 12.5 Объекты форм Forms в текстовом документе Writer 79 12.6 Объекты EmbeddedObjects, внедренные в Writer 82 13 Диалоги LibreOffice Basic 83 13.1 Свойство PosSize диалогов LibreOffice Basic 88 14 Свойства, методы, интерфейсы UNO в LibreOffice Calc 89 Список использованных источников 100 12 Свойства, методы, сервисы, интерфейсы UNO в OpenOffice Writer или LibreOffice WriterПрограмма, написанная в OpenOffice Writer или LibreOffice Writer, объявляющая текстовый документ (swriter) как объект Doc:
Sub Main Dim Doc As Object Doc = ThisComponent End Sub
Объект Doc имеет свойства, методы, сервисы, интерфейсы UNO, представленные ниже. Properties of object "ThisComponent" – свойства объекта swriter: Тип Свойство BOOL ApplyWorkaroundForB6375613 BOOL ShowChanges STRING/void CharFontNameAsian INTEGER/void CharFontCharSetAsian OBJECT BasicLibraries STRING/void CharFontStyleNameAsian INTEGER RedlineDisplayType LONG ParagraphCount INTEGER/void CharFontPitch INTEGER/void CharFontFamilyAsian BOOL HideFieldTips OBJECT/void CharLocale STRING BuildId STRING/void CharFontStyleNameComplex BOOL ApplyFormDesignMode BOOL LockUpdates INTEGER/void CharFontFamily STRING/void CharFontNameComplex BOOL DefaultPageMode INTEGER/void CharFontCharSet STRING WordSeparator STRING RuntimeUID STRING IndexAutoMarkFileURL OBJECT DialogLibraries ARRAY RedlineProtectionKey LONG CharacterCount STRING/void CharFontName OBJECT ForbiddenCharacters LONG WordCount BOOL HasValidSignatures INTEGER TwoDigitYear INTEGER/void CharFontCharSetComplex BOOL RecordChanges INTEGER/void CharFontFamilyComplex INTEGER/void CharFontPitchComplex INTEGER/void CharFontPitchAsian STRING/void CharFontStyleName BOOL AutomaticControlFocus OBJECT Parent OBJECT DocumentInfo OBJECT DocumentProperties STRING StringValue STRING Namespace STRING LocalName OBJECT RDFRepository OBJECT UndoManager OBJECT Events BOOL AllowMacroExecution OBJECT ScriptContainer STRING URL ARRAY Args OBJECT CurrentController OBJECT CurrentSelection OBJECT Controllers ARRAY AvailableViewControllerNames BOOL Modified ARRAY Printer STRING Location OBJECT LibraryContainer OBJECT ViewData ARRAY TransferDataFlavors ARRAY DocumentSubStoragesNames OBJECT DocumentStorage OBJECT ScriptProvider OBJECT UIConfigurationManager STRING Identifier STRING Title STRING UntitledPrefix ARRAY Types ARRAY ImplementationId OBJECT Text OBJECT LineNumberingProperties OBJECT ChapterNumberingRules OBJECT NumberingRules OBJECT Footnotes OBJECT FootnoteSettings OBJECT Endnotes OBJECT EndnoteSettings ARRAY PagePrintSettings OBJECT ReferenceMarks OBJECT TextTables OBJECT TextFrames OBJECT Bookmarks OBJECT TextSections OBJECT GraphicObjects OBJECT EmbeddedObjects OBJECT TextFields OBJECT TextFieldMasters OBJECT StyleFamilies OBJECT AutoStyles STRING ImplementationName ARRAY SupportedServiceNames OBJECT DrawPage OBJECT DocumentIndexes OBJECT PropertySetInfo STRING PropertyToDefault OBJECT Links OBJECT Redlines OBJECT XForms OBJECT NumberFormatSettings OBJECT NumberFormats OBJECT Delegator ARRAY AvailableServiceNames STRING Dbg_SupportedInterfaces STRING Dbg_Properties STRING Dbg_Methods Methods of object "ThisComponent" – методы объекта swriter: Тип Метод (тип) EMPTY queryInterface ( OBJECT ) OBJECT getParent ( void ) VOID setParent ( OBJECT ) OBJECT getDocumentInfo ( void ) OBJECT getDocumentProperties ( void ) OBJECT getRDFRepository ( void ) OBJECT getElementByMetadataReference ( OBJECT ) OBJECT getElementByURI ( OBJECT ) ARRAY getMetadataGraphsWithType ( OBJECT ) OBJECT addMetadataFile ( STRING, ARRAY ) OBJECT importMetadataFile ( INTEGER, OBJECT, STRING, OBJECT, ARRAY ) VOID removeMetadataFile ( OBJECT ) VOID addContentOrStylesFile ( STRING ) VOID removeContentOrStylesFile ( STRING ) VOID loadMetadataFromStorage ( OBJECT, OBJECT, OBJECT ) VOID storeMetadataToStorage ( OBJECT ) VOID loadMetadataFromMedium ( ARRAY ) VOID storeMetadataToMedium ( ARRAY ) BOOL wasModifiedSinceLastSave ( void ) VOID storeToRecoveryFile ( STRING, ARRAY ) VOID recoverFromFile ( STRING, STRING, ARRAY ) OBJECT getUndoManager ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID addDocumentEventListener ( OBJECT ) VOID removeDocumentEventListener ( OBJECT ) VOID notifyDocumentEvent ( STRING, OBJECT, VARIANT ) VOID disposing ( OBJECT ) OBJECT getEvents ( void ) VOID dispose ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) BOOL attachResource ( STRING, ARRAY ) STRING getURL ( void ) ARRAY getArgs ( void ) VOID connectController ( OBJECT ) VOID disconnectController ( OBJECT ) VOID lockControllers ( void ) VOID unlockControllers ( void ) BOOL hasControllersLocked ( void ) OBJECT getCurrentController ( void ) VOID setCurrentController ( OBJECT ) OBJECT getCurrentSelection ( void ) OBJECT getControllers ( void ) ARRAY getAvailableViewControllerNames ( void ) OBJECT createDefaultViewController ( OBJECT ) OBJECT createViewController ( STRING, ARRAY, OBJECT ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID addModifyListener ( OBJECT ) VOID removeModifyListener ( OBJECT ) BOOL isModified ( void ) VOID setModified ( BOOL ) BOOL disableSetModified ( void ) BOOL enableSetModified ( void ) BOOL isSetModifiedEnabled ( void ) ARRAY getPrinter ( void ) VOID setPrinter ( ARRAY ) VOID print ( ARRAY ) VOID addPrintJobListener ( OBJECT ) VOID removePrintJobListener ( OBJECT ) BOOL hasLocation ( void ) STRING getLocation ( void ) BOOL isReadonly ( void ) VOID store ( void ) VOID storeAsURL ( STRING, ARRAY ) VOID storeToURL ( STRING, ARRAY ) VOID storeSelf ( ARRAY ) VOID initNew ( void ) VOID load ( ARRAY ) OBJECT getLibraryContainer ( void ) VOID createLibrary ( STRING, STRING, STRING, STRING ) VOID addModule ( STRING, STRING, STRING, STRING ) VOID addDialog ( STRING, STRING, ARRAY ) OBJECT getViewData ( void ) VOID setViewData ( OBJECT ) VOID addCloseListener ( OBJECT ) VOID removeCloseListener ( OBJECT ) VOID close ( BOOL ) EMPTY getTransferData ( OBJECT ) ARRAY getTransferDataFlavors ( void ) BOOL isDataFlavorSupported ( OBJECT ) OBJECT getDocumentSubStorage ( STRING, LONG ) ARRAY getDocumentSubStoragesNames ( void ) VOID loadFromStorage ( OBJECT, ARRAY ) VOID storeToStorage ( OBJECT, ARRAY ) VOID switchToStorage ( OBJECT ) OBJECT getDocumentStorage ( void ) VOID addStorageChangeListener ( OBJECT ) VOID removeStorageChangeListener ( OBJECT ) OBJECT getScriptProvider ( void ) OBJECT getUIConfigurationManager ( void ) VOID setVisualAreaSize ( INT64, OBJECT ) OBJECT getVisualAreaSize ( INT64 ) OBJECT getPreferredVisualRepresentation ( INT64 ) LONG getMapUnit ( INT64 ) INT64 getSomething ( ARRAY ) VOID setIdentifier ( STRING ) STRING getIdentifier ( void ) STRING getTitle ( void ) VOID setTitle ( STRING ) VOID addTitleChangeListener ( OBJECT ) VOID removeTitleChangeListener ( OBJECT ) LONG leaseNumber ( OBJECT ) VOID releaseNumber ( LONG ) VOID releaseNumberForComponent ( OBJECT ) STRING getUntitledPrefix ( void ) ARRAY getTypes ( void ) ARRAY getImplementationId ( void ) OBJECT queryAdapter ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) OBJECT getText ( void ) VOID reformat ( void ) OBJECT getLineNumberingProperties ( void ) OBJECT getChapterNumberingRules ( void ) OBJECT getNumberingRules ( void ) OBJECT getFootnotes ( void ) OBJECT getFootnoteSettings ( void ) OBJECT getEndnotes ( void ) OBJECT getEndnoteSettings ( void ) OBJECT createSearchDescriptor ( void ) OBJECT findAll ( OBJECT ) OBJECT findFirst ( OBJECT ) OBJECT findNext ( OBJECT, OBJECT ) OBJECT createReplaceDescriptor ( void ) LONG replaceAll ( OBJECT ) ARRAY getPagePrintSettings ( void ) VOID setPagePrintSettings ( ARRAY ) VOID printPages ( ARRAY ) OBJECT getReferenceMarks ( void ) OBJECT getTextTables ( void ) OBJECT getTextFrames ( void ) OBJECT getBookmarks ( void ) OBJECT getTextSections ( void ) OBJECT getGraphicObjects ( void ) OBJECT getEmbeddedObjects ( void ) OBJECT getTextFields ( void ) OBJECT getTextFieldMasters ( void ) OBJECT getStyleFamilies ( void ) OBJECT getAutoStyles ( void ) STRING getImplementationName ( void ) BOOL supportsService ( STRING ) ARRAY getSupportedServiceNames ( void ) OBJECT getDrawPage ( void ) OBJECT getDocumentIndexes ( void ) OBJECT getPropertySetInfo ( void ) VOID setPropertyValue ( STRING, VARIANT ) EMPTY getPropertyValue ( STRING ) VOID addPropertyChangeListener ( STRING, OBJECT ) VOID removePropertyChangeListener ( STRING, OBJECT ) VOID addVetoableChangeListener ( STRING, OBJECT ) VOID removeVetoableChangeListener ( STRING, OBJECT ) LONG getPropertyState ( STRING ) ARRAY getPropertyStates ( ARRAY ) VOID setPropertyToDefault ( STRING ) EMPTY getPropertyDefault ( STRING ) OBJECT getLinks ( void ) OBJECT getRedlines ( void ) VOID refresh ( void ) VOID addRefreshListener ( OBJECT ) VOID removeRefreshListener ( OBJECT ) VOID updateLinks ( void ) LONG getRendererCount ( VARIANT, ARRAY ) ARRAY getRenderer ( LONG, VARIANT, ARRAY ) VOID render ( LONG, VARIANT, ARRAY ) OBJECT getXForms ( void ) OBJECT getFlatParagraphIterator ( LONG, BOOL ) ARRAY getDocumentLanguages ( INTEGER, INTEGER ) OBJECT createClone ( void ) OBJECT getNumberFormatSettings ( void ) OBJECT getNumberFormats ( void ) VOID setDelegator ( OBJECT ) EMPTY queryAggregation ( OBJECT ) OBJECT createInstance ( STRING ) OBJECT createInstanceWithArguments ( STRING, ARRAY ) ARRAY getAvailableServiceNames ( void )
Сервисы, поддерживаемые Writer: com.sun.star.document.OfficeDocument com.sun.star.text.GenericTextDocument com.sun.star.text.TextDocument
Сервисы, доступные в текстовом редакторе Writer: com.sun.star.chart2.data.DataProvider com.sun.star.drawing.AppletShape com.sun.star.drawing.CaptionShape com.sun.star.drawing.ClosedBezierShape com.sun.star.drawing.ClosedFreeHandShape com.sun.star.drawing.ConnectorShape com.sun.star.drawing.ControlShape com.sun.star.drawing.CustomShape com.sun.star.drawing.EllipseShape com.sun.star.drawing.FrameShape com.sun.star.drawing.GraphicObjectShape com.sun.star.drawing.GroupShape com.sun.star.drawing.LineShape com.sun.star.drawing.MeasureShape com.sun.star.drawing.MediaShape com.sun.star.drawing.OpenBezierShape com.sun.star.drawing.OpenFreeHandShape com.sun.star.drawing.PageShape com.sun.star.drawing.PluginShape com.sun.star.drawing.PolyLinePathShape com.sun.star.drawing.PolyLineShape com.sun.star.drawing.PolyPolygonPathShape com.sun.star.drawing.PolyPolygonShape com.sun.star.drawing.RectangleShape com.sun.star.drawing.Shape3DCubeObject com.sun.star.drawing.Shape3DExtrudeObject com.sun.star.drawing.Shape3DLatheObject com.sun.star.drawing.Shape3DPolygonObject com.sun.star.drawing.Shape3DSceneObject com.sun.star.drawing.Shape3DSphereObject com.sun.star.drawing.TextShape com.sun.star.form.component.CheckBox com.sun.star.form.component.ComboBox com.sun.star.form.component.CommandButton com.sun.star.form.component.CurrencyField com.sun.star.form.component.DatabaseImageControl com.sun.star.form.component.DateField com.sun.star.form.component.FileControl com.sun.star.form.component.FixedText com.sun.star.form.component.Form com.sun.star.form.component.GridControl com.sun.star.form.component.GroupBox com.sun.star.form.component.HiddenControl com.sun.star.form.component.ImageButton com.sun.star.form.component.ListBox com.sun.star.form.component.NumericField com.sun.star.form.component.PatternField com.sun.star.form.component.RadioButton com.sun.star.form.component.TextField com.sun.star.form.component.TimeField com.sun.star.image.ImageMapCircleObject com.sun.star.image.ImageMapPolygonObject com.sun.star.image.ImageMapRectangleObject com.sun.star.style.CharacterStyle com.sun.star.style.ConditionalParagraphStyle com.sun.star.style.FrameStyle com.sun.star.style.NumberingStyle com.sun.star.style.PageStyle com.sun.star.style.ParagraphStyle com.sun.star.text.Bibliography com.sun.star.text.Bookmark com.sun.star.text.ContentIndex com.sun.star.text.ContentIndexMark com.sun.star.text.Defaults com.sun.star.text.DocumentIndex com.sun.star.text.DocumentIndexMark com.sun.star.text.Endnote com.sun.star.text.Fieldmark com.sun.star.text.FieldMaster.Bibliography com.sun.star.text.fieldmaster.Bibliography com.sun.star.text.fieldmaster.Database com.sun.star.text.FieldMaster.Database com.sun.star.text.FieldMaster.DDE com.sun.star.text.fieldmaster.DDE com.sun.star.text.FieldMaster.SetExpression com.sun.star.text.fieldmaster.SetExpression com.sun.star.text.fieldmaster.User com.sun.star.text.FieldMaster.User com.sun.star.text.Footnote com.sun.star.text.FormFieldmark com.sun.star.text.GraphicObject com.sun.star.text.IllustrationsIndex com.sun.star.text.InContentMetadata com.sun.star.text.IndexHeaderSection com.sun.star.text.NumberingRules com.sun.star.text.ObjectIndex com.sun.star.text.Paragraph com.sun.star.text.ReferenceMark com.sun.star.text.TableIndex com.sun.star.text.TextColumns com.sun.star.text.TextEmbeddedObject com.sun.star.text.TextField.Annotation com.sun.star.text.textfield.Annotation com.sun.star.text.TextField.Author com.sun.star.text.textfield.Author com.sun.star.text.TextField.Bibliography com.sun.star.text.textfield.Bibliography com.sun.star.text.textfield.Chapter com.sun.star.text.TextField.Chapter com.sun.star.text.TextField.CharacterCount com.sun.star.text.textfield.CharacterCount com.sun.star.text.textfield.CombinedCharacters com.sun.star.text.TextField.CombinedCharacters com.sun.star.text.TextField.ConditionalText com.sun.star.text.textfield.ConditionalText com.sun.star.text.textfield.Database com.sun.star.text.TextField.Database com.sun.star.text.textfield.DatabaseName com.sun.star.text.TextField.DatabaseName com.sun.star.text.textfield.DatabaseNextSet com.sun.star.text.TextField.DatabaseNextSet com.sun.star.text.textfield.DatabaseNumberOfSet com.sun.star.text.TextField.DatabaseNumberOfSet com.sun.star.text.TextField.DatabaseSetNumber com.sun.star.text.textfield.DatabaseSetNumber com.sun.star.text.TextField.DateTime com.sun.star.text.textfield.DateTime com.sun.star.text.TextField.DDE com.sun.star.text.textfield.DDE com.sun.star.text.TextField.DocInfo.ChangeAuthor com.sun.star.text.textfield.docinfo.ChangeAuthor com.sun.star.text.TextField.DocInfo.ChangeDateTime com.sun.star.text.textfield.docinfo.ChangeDateTime com.sun.star.text.textfield.docinfo.CreateAuthor com.sun.star.text.TextField.DocInfo.CreateAuthor com.sun.star.text.textfield.docinfo.CreateDateTime com.sun.star.text.TextField.DocInfo.CreateDateTime com.sun.star.text.TextField.DocInfo.Custom com.sun.star.text.textfield.docinfo.Custom com.sun.star.text.textfield.docinfo.Description com.sun.star.text.TextField.DocInfo.Description com.sun.star.text.TextField.DocInfo.EditTime com.sun.star.text.textfield.docinfo.EditTime com.sun.star.text.TextField.DocInfo.KeyWords com.sun.star.text.textfield.docinfo.KeyWords com.sun.star.text.TextField.DocInfo.PrintAuthor com.sun.star.text.textfield.docinfo.PrintAuthor com.sun.star.text.TextField.DocInfo.PrintDateTime com.sun.star.text.textfield.docinfo.PrintDateTime com.sun.star.text.textfield.docinfo.Revision com.sun.star.text.TextField.DocInfo.Revision com.sun.star.text.textfield.docinfo.Subject com.sun.star.text.TextField.DocInfo.Subject com.sun.star.text.TextField.DocInfo.Title com.sun.star.text.textfield.docinfo.Title com.sun.star.text.textfield.DropDown com.sun.star.text.TextField.DropDown com.sun.star.text.TextField.EmbeddedObjectCount com.sun.star.text.textfield.EmbeddedObjectCount com.sun.star.text.textfield.ExtendedUser com.sun.star.text.TextField.ExtendedUser com.sun.star.text.TextField.FileName com.sun.star.text.textfield.FileName com.sun.star.text.textfield.GetExpression com.sun.star.text.TextField.GetExpression com.sun.star.text.TextField.GetReference com.sun.star.text.textfield.GetReference com.sun.star.text.textfield.GraphicObjectCount com.sun.star.text.TextField.GraphicObjectCount com.sun.star.text.textfield.HiddenParagraph com.sun.star.text.TextField.HiddenParagraph com.sun.star.text.textfield.HiddenText com.sun.star.text.TextField.HiddenText com.sun.star.text.TextField.Input com.sun.star.text.textfield.Input com.sun.star.text.TextField.InputUser com.sun.star.text.textfield.InputUser com.sun.star.text.textfield.JumpEdit com.sun.star.text.TextField.JumpEdit com.sun.star.text.TextField.Macro com.sun.star.text.textfield.Macro com.sun.star.text.textfield.MetadataField com.sun.star.text.TextField.PageCount com.sun.star.text.textfield.PageCount com.sun.star.text.textfield.PageNumber com.sun.star.text.TextField.PageNumber com.sun.star.text.TextField.ParagraphCount com.sun.star.text.textfield.ParagraphCount com.sun.star.text.TextField.ReferencePageGet com.sun.star.text.textfield.ReferencePageGet com.sun.star.text.textfield.ReferencePageSet com.sun.star.text.TextField.ReferencePageSet com.sun.star.text.TextField.Script com.sun.star.text.textfield.Script com.sun.star.text.textfield.SetExpression com.sun.star.text.TextField.SetExpression com.sun.star.text.TextField.TableCount com.sun.star.text.textfield.TableCount com.sun.star.text.TextField.TableFormula com.sun.star.text.textfield.TableFormula com.sun.star.text.textfield.TemplateName com.sun.star.text.TextField.TemplateName com.sun.star.text.TextField.User com.sun.star.text.textfield.User com.sun.star.text.TextField.WordCount com.sun.star.text.textfield.WordCount com.sun.star.text.TextFrame com.sun.star.text.TextGraphicObject com.sun.star.text.TextSection com.sun.star.text.TextTable com.sun.star.text.UserIndex com.sun.star.text.UserIndexMark ooo.vba.VBACodeNameProvider ooo.vba.VBAGlobals ooo.vba.VBAObjectModuleObjectProvider ooo.vba.VBAProjectNameProvider Supported interfaces by object "ThisComponent" – интерфейсы, поддерживаемые текстовым редактором Writer: com.sun.star.beans.XPropertySet com.sun.star.beans.XPropertyState com.sun.star.container.XChild com.sun.star.datatransfer.XTransferable com.sun.star.document.XCmisDocument com.sun.star.document.XDocumentEventBroadcaster com.sun.star.document.XDocumentLanguages com.sun.star.document.XDocumentPropertiesSupplier com.sun.star.document.XDocumentRecovery com.sun.star.document.XDocumentSubStorageSupplier com.sun.star.document.XEventBroadcaster com.sun.star.document.XEventsSupplier com.sun.star.document.XLinkTargetSupplier com.sun.star.document.XRedlinesSupplier com.sun.star.document.XStorageBasedDocument com.sun.star.document.XUndoManagerSupplier com.sun.star.document.XViewDataSupplier com.sun.star.drawing.XDrawPageSupplier com.sun.star.embed.XVisualObject com.sun.star.frame.XLoadable com.sun.star.frame.XModel com.sun.star.frame.XModel2 com.sun.star.frame.XModule com.sun.star.frame.XStorable com.sun.star.frame.XStorable2 com.sun.star.frame.XTitle com.sun.star.frame.XTitleChangeBroadcaster com.sun.star.frame.XUntitledNumbers com.sun.star.lang.XComponent com.sun.star.lang.XEventListener com.sun.star.lang.XMultiServiceFactory com.sun.star.lang.XServiceInfo com.sun.star.lang.XTypeProvider com.sun.star.lang.XUnoTunnel com.sun.star.rdf.XDocumentMetadataAccess com.sun.star.rdf.XRepositorySupplier com.sun.star.script.provider.XScriptProviderSupplier com.sun.star.script.XStarBasicAccess com.sun.star.style.XAutoStylesSupplier com.sun.star.style.XStyleFamiliesSupplier com.sun.star.text.XBookmarksSupplier com.sun.star.text.XChapterNumberingSupplier com.sun.star.text.XDocumentIndexesSupplier com.sun.star.text.XEndnotesSupplier com.sun.star.text.XFlatParagraphIteratorProvider com.sun.star.text.XFootnotesSupplier com.sun.star.text.XLineNumberingProperties com.sun.star.text.XNumberingRulesSupplier com.sun.star.text.XPagePrintable com.sun.star.text.XReferenceMarksSupplier com.sun.star.text.XTextDocument com.sun.star.text.XTextEmbeddedObjectsSupplier com.sun.star.text.XTextFieldsSupplier com.sun.star.text.XTextFramesSupplier com.sun.star.text.XTextGraphicObjectsSupplier com.sun.star.text.XTextSectionsSupplier com.sun.star.text.XTextTablesSupplier com.sun.star.tiledrendering.XTiledRenderable com.sun.star.ui.XUIConfigurationManagerSupplier com.sun.star.uno.XAggregation com.sun.star.uno.XInterface com.sun.star.uno.XWeak com.sun.star.util.XCloneable com.sun.star.util.XCloseable com.sun.star.util.XCloseBroadcaster com.sun.star.util.XLinkUpdate com.sun.star.util.XModifiable com.sun.star.util.XModifiable2 com.sun.star.util.XModifyBroadcaster com.sun.star.util.XNumberFormatsSupplier com.sun.star.util.XRefreshable com.sun.star.util.XReplaceable com.sun.star.util.XSearchable com.sun.star.view.XPrintable com.sun.star.view.XPrintJobBroadcaster com.sun.star.view.XRenderable com.sun.star.xforms.XFormsSupplier 12.1 Графический объект GraphicObject в WriterПрограмма, объявляющая графический объект GraphicObject в текстовом документе OpenOffice Writer или LibreOffice Writer: Sub Main Dim T As Object Dim G As Object T = ThisComponent G = T.createInstance("com.sun.star.text.GraphicObject") End Sub Объект GraphicObject имеет свойства, методы, интерфейсы UNO, представленные ниже. Properties of object "SwXTextGraphicObject" - свойства объекта: Тип Свойство BOOL IsFollowingTextFlow OBJECT/void AnchorFrame INTEGER GraphicRotation INTEGER AnchorPageNo OBJECT RightBorder LONG LeftMargin LONG BackGraphicLocation LONG BackColorRGB OBJECT Size LONG AnchorType LONG BorderDistance LONG TextWrap INTEGER AdjustContrast INTEGER BackColorTransparency LONG FillBitmapMode OBJECT BottomBorder ARRAY AnchorTypes BOOL IsAutomaticContour STRING HyperLinkURL LONG BackColor BOOL ContentProtected LONG TopBorderDistance INTEGER HoriOrient ARRAY FrameInteropGrabBag STRING FrameStyleName STRING BackGraphicURL LONG HoriOrientPosition STRING BackGraphicFilter INTEGER VertOrient INTEGER BackGraphicTransparency STRING HyperLinkTarget INTEGER RelativeHeight INTEGER FillGradientStepCount LONG RightMargin LONG Width LONG BottomMargin INTEGER RelativeWidthRelation LONG Height INTEGER HoriOrientRelation BOOL SurroundContour STRING LinkDisplayName STRING HyperLinkName BOOL Opaque INTEGER RelativeHeightRelation BOOL PageToggle LONG LineWidth BOOL PositionProtected LONG LeftBorderDistance INTEGER VertOrientRelation BOOL SizeProtected BOOL Print LONG VertOrientPosition INTEGER AdjustBlue INTEGER RelativeWidth OBJECT ShadowFormat INTEGER ShadowTransparence OBJECT ImageMap BOOL ServerMap LONG ZOrder BOOL IsSyncWidthToHeight BOOL IsSyncHeightToWidth LONG Surround BOOL SurroundAnchorOnly LONG TopMargin BOOL BackTransparent OBJECT LeftBorder OBJECT/void UserDefinedAttributes OBJECT TopBorder LONG RightBorderDistance LONG BottomBorderDistance INTEGER WrapInfluenceOnPosition STRING Title STRING Description OBJECT/void LayoutSize LONG LineStyle LONG TextVerticalAdjust BOOL ContourOutside OBJECT GraphicCrop STRING GraphicFilter BOOL HoriMirroredOnEvenPages BOOL HoriMirroredOnOddPages BOOL VertMirrored STRING GraphicURL STRING ReplacementGraphicURL OBJECT Graphic OBJECT ActualSize ARRAY/void ContourPolyPolygon BOOL IsPixelContour BOOL FillBitmapStretch INTEGER AdjustLuminance INTEGER AdjustRed INTEGER AdjustGreen DOUBLE Gamma BOOL GraphicIsInverted INTEGER Transparency LONG GraphicColorMode BOOL FillBitmapLogicalSize LONG FillBitmapOffsetX LONG FillBitmapOffsetY LONG FillBitmapPositionOffsetX LONG FillBitmapPositionOffsetY LONG FillBitmapRectanglePoint LONG FillBitmapSizeX LONG FillBitmapSizeY BOOL FillBitmapTile LONG FillColor BOOL FillBackground OBJECT FillBitmap STRING FillBitmapName STRING FillBitmapURL OBJECT FillGradient STRING FillGradientName OBJECT FillHatch STRING FillHatchName LONG FillStyle INTEGER FillTransparence OBJECT FillTransparenceGradient STRING FillTransparenceGradientName LONG FillColor2 OBJECT Anchor OBJECT Events ARRAY Types ARRAY ImplementationId STRING ImplementationName ARRAY SupportedServiceNames OBJECT PropertySetInfo STRING PropertyToDefault STRING ShapeType OBJECT Position STRING Name STRING Dbg_SupportedInterfaces STRING Dbg_Properties STRING Dbg_Methods
Тип Метод (тип) EMPTY queryInterface ( OBJECT ) VOID dispose ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID attach ( OBJECT ) OBJECT getAnchor ( void ) OBJECT getEvents ( void ) ARRAY getTypes ( void ) ARRAY getImplementationId ( void ) OBJECT queryAdapter ( void ) STRING getImplementationName ( void ) BOOL supportsService ( STRING ) ARRAY getSupportedServiceNames ( void ) OBJECT getPropertySetInfo ( void ) VOID setPropertyValue ( STRING, VARIANT ) EMPTY getPropertyValue ( STRING ) VOID addPropertyChangeListener ( STRING, OBJECT ) VOID removePropertyChangeListener ( STRING, OBJECT ) VOID addVetoableChangeListener ( STRING, OBJECT ) VOID removeVetoableChangeListener ( STRING, OBJECT ) LONG getPropertyState ( STRING ) ARRAY getPropertyStates ( ARRAY ) VOID setPropertyToDefault ( STRING ) EMPTY getPropertyDefault ( STRING ) STRING getShapeType ( void ) OBJECT getPosition ( void ) VOID setPosition ( OBJECT ) OBJECT getSize ( void ) VOID setSize ( OBJECT ) STRING getName ( void ) VOID setName ( STRING ) INT64 getSomething ( ARRAY ) Supported interfaces by object "SwXTextGraphicObject" - интерфейсы, поддерживаемые объектом : com.sun.star.beans.XPropertySet com.sun.star.beans.XPropertyState com.sun.star.container.XNamed com.sun.star.document.XEventsSupplier com.sun.star.drawing.XShape com.sun.star.drawing.XShapeDescriptor com.sun.star.lang.XComponent com.sun.star.lang.XServiceInfo com.sun.star.lang.XTypeProvider com.sun.star.lang.XUnoTunnel com.sun.star.text.XTextContent 12.2 Графические объекты GraphicObjects в WriterПрограмма, объявляющая графические объекты GraphicObjects в текстовом документе OpenOffice Writer или LibreOffice Writer: Sub Main Dim Doc As Object Dim GraphicObjects As Object Doc = ThisComponent GraphicObjects = Doc.GraphicObjects End Sub Объекты GraphicObjects имеют свойства, методы, интерфейсы UNO, представленные ниже. Properties of object "SwXTextGraphicObjects" — свойства GraphicObjects: SbxOBJECT
ElementType; Methods of object "SwXTextGraphicObjects" — методы GraphicObjects: SbxEMPTY
queryInterface ( SbxOBJECT ) ; Supported interfaces by object "SwXTextGraphicObjects" — интерфейсы, поддерживаемые GraphicObjects: com.sun.star.container.XEnumerationAccess 12.3 Удаление графических объектов GraphicObjects в WriterДля удаления всех графических объектов GraphicObjects в текстовом документе OpenOffice Writer или LibreOffice Writer воспользуйтесь программой [6]: Sub Main With ThisComponent For i=0 to .GraphicObjects.Count-1 .GraphicObjects(0).dispose() Next End With End Sub 12.4 Объекты DrawPage и getDrawPage() для рисования в OpenOffice Writer или LibreOffice WriterПрограмма, создающая объект DrawPage для рисования в текстовом документе OpenOffice Writer или LibreOffice Writer: Sub Main Dim Doc As Object Dim DrawPage As Object Doc = ThisComponent DrawPage = Doc.DrawPage End Sub Программа, создающая объект getDrawPage() для рисования в текстовом документе:
Sub Main Dim Doc As Object Dim getDrawPage As Object Doc = ThisComponent getDrawPage = Doc.getDrawPage() End Sub
Объекты DrawPage и getDrawPage() в текстовом документе имеют одинаковые свойства, методы, интерфейсы UNO, представленные ниже. Properties of object "SwXDrawPage" — свойства объекта DrawPage: SbxOBJECT
ElementType; Methods of object "SwXDrawPage" — методы объекта DrawPage: SbxEMPTY
queryInterface ( SbxOBJECT ) ; Supported interfaces by object "SwXDrawPage" — интерфейсы, поддерживаемые объектом DrawPage: com.sun.star.container.XEnumerationAccess 12.5 Объекты форм Forms в текстовом документе WriterПрограмма, объявляющая объекты форм Forms в текстовом документе OpenOffice Writer или LibreOffice Writer:
Sub Main Dim Doc As Object Dim DrawPage As Object Dim Forms As Object Doc = ThisComponent DrawPage = Doc.DrawPage Forms = DrawPage.Forms End Sub
Объекты Forms имеют свойства, методы, интерфейсы UNO, представленные ниже. Свойства объектов Forms - properties of object "com.sun.star.comp.forms.OFormsCollection": Тип Свойство OBJECT ElementType ARRAY ElementNames LONG Count STRING ServiceName ARRAY Types ARRAY ImplementationId OBJECT Delegator OBJECT Parent STRING ImplementationName ARRAY SupportedServiceNames STRING Dbg_SupportedInterfaces STRING Dbg_Properties STRING Dbg_Methods Методы объектов Forms - methods of object "com.sun.star.comp.forms.OFormsCollection": Тип Метод (тип) EMPTY queryInterface ( OBJECT ) OBJECT getElementType ( void ) BOOL hasElements ( void ) EMPTY getByName ( STRING ) ARRAY getElementNames ( void ) BOOL hasByName ( STRING ) VOID replaceByName ( STRING, VARIANT ) VOID insertByName ( STRING, VARIANT ) VOID removeByName ( STRING ) LONG getCount ( void ) EMPTY getByIndex ( LONG ) VOID replaceByIndex ( LONG, VARIANT ) VOID insertByIndex ( LONG, VARIANT ) VOID removeByIndex ( LONG ) VOID addContainerListener ( OBJECT ) VOID removeContainerListener ( OBJECT ) OBJECT createEnumeration ( void ) VOID registerScriptEvent ( LONG, OBJECT ) VOID registerScriptEvents ( LONG, ARRAY ) VOID revokeScriptEvent ( LONG, STRING, STRING, STRING ) VOID revokeScriptEvents ( LONG ) VOID insertEntry ( LONG ) VOID removeEntry ( LONG ) ARRAY getScriptEvents ( LONG ) VOID attach ( LONG, OBJECT, VARIANT ) VOID detach ( LONG, OBJECT ) VOID addScriptListener ( OBJECT ) VOID removeScriptListener ( OBJECT ) VOID disposing ( OBJECT ) VOID propertyChange ( OBJECT ) STRING getServiceName ( void ) VOID write ( OBJECT ) VOID read ( OBJECT ) OBJECT createClone ( void ) ARRAY getTypes ( void ) ARRAY getImplementationId ( void ) VOID dispose ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID setDelegator ( OBJECT ) EMPTY queryAggregation ( OBJECT ) OBJECT queryAdapter ( void ) OBJECT getParent ( void ) VOID setParent ( OBJECT ) STRING getImplementationName ( void ) BOOL supportsService ( STRING ) ARRAY getSupportedServiceNames ( void ) Поддерживаемые объектами Forms интерфейсы - supported interfaces by object "com.sun.star.comp.forms.OFormsCollection": com.sun.star.beans.XPropertyChangeListener com.sun.star.container.XChild com.sun.star.container.XContainer com.sun.star.container.XElementAccess com.sun.star.container.XEnumerationAccess com.sun.star.container.XIndexAccess com.sun.star.container.XIndexContainer com.sun.star.container.XIndexReplace com.sun.star.container.XNameAccess com.sun.star.container.XNameContainer com.sun.star.container.XNameReplace com.sun.star.io.XPersistObject com.sun.star.lang.XComponent com.sun.star.lang.XEventListener com.sun.star.lang.XServiceInfo com.sun.star.lang.XTypeProvider com.sun.star.script.XEventAttacherManager com.sun.star.uno.XAggregation 12.6 Объекты EmbeddedObjects, внедренные в WriterПрограмма, объявляющая внедренные в текстовый документ OpenOffice Writer или LibreOffice Writer объекты EmbeddedObjects:
Sub Main Dim Doc As Object Dim EmbeddedObjects As Object Doc = ThisComponent EmbeddedObjects = Doc.EmbeddedObjects End Sub
Объекты EmbeddedObjects имеют свойства, методы, интерфейсы UNO, представленные ниже.
Properties of object "SwXTextEmbeddedObjects" — свойства внедренных объектов: SbxOBJECT
ElementType; Methods of object "SwXTextEmbeddedObjects" — методы внедренных объектов: SbxEMPTY
queryInterface ( SbxOBJECT ) ; Supported interfaces by object "SwXTextEmbeddedObjects" — интерфейсы, поддерживаемые внедренными объектами: com.sun.star.container.XEnumerationAccess 13 Диалоги LibreOffice BasicПрограмма, выполняющая диалог Dialog1:
Global Dlg As Object Sub Main Dlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) Dlg.execute() End Sub
Диалоги имеют свойства, методы, интерфейсы UNO, представленные ниже. Properties of object "stardiv.Toolkit.UnoDialogControl" — свойства диалогов: Тип Свойство OBJECT MenuBar STRING Title STRING HelpId ARRAY Types ARRAY ImplementationId ARRAY TabControllers ARRAY Controls STRING StatusText OBJECT ElementType ARRAY Identifiers OBJECT Context OBJECT Peer OBJECT Model OBJECT View BOOL DesignMode OBJECT PosSize OBJECT OutputSize BOOL Visible BOOL Enable OBJECT Graphics OBJECT Size STRING ImplementationName ARRAY SupportedServiceNames OBJECT AccessibleContext OBJECT StyleSettings OBJECT Delegator STRING Dbg_SupportedInterfaces STRING Dbg_Properties STRING Dbg_Methods Methods of object "stardiv.Toolkit.UnoDialogControl" – методы диалогов: Тип Метод (тип) EMPTY queryInterface ( OBJECT ) VOID addTopWindowListener ( OBJECT ) VOID removeTopWindowListener ( OBJECT ) VOID toFront ( void ) VOID toBack ( void ) VOID setMenuBar ( OBJECT ) VOID setTitle ( STRING ) STRING getTitle ( void ) INTEGER execute ( void ) VOID endExecute ( void ) VOID endDialog ( LONG ) VOID setHelpId ( STRING ) VOID disposing ( OBJECT ) VOID windowResized ( OBJECT ) VOID windowMoved ( OBJECT ) VOID windowShown ( OBJECT ) VOID windowHidden ( OBJECT ) ARRAY getTypes ( void ) ARRAY getImplementationId ( void ) VOID elementInserted ( OBJECT ) VOID elementRemoved ( OBJECT ) VOID elementReplaced ( OBJECT ) VOID changesOccurred ( OBJECT ) VOID setTabControllers ( ARRAY ) ARRAY getTabControllers ( void ) VOID addTabController ( OBJECT ) VOID removeTabController ( OBJECT ) VOID setStatusText ( STRING ) ARRAY getControls ( void ) OBJECT getControl ( STRING ) VOID addControl ( STRING, OBJECT ) VOID removeControl ( OBJECT ) VOID addContainerListener ( OBJECT ) VOID removeContainerListener ( OBJECT ) OBJECT getElementType ( void ) BOOL hasElements ( void ) EMPTY getByIdentifier ( LONG ) ARRAY getIdentifiers ( void ) VOID replaceByIdentifer ( LONG, VARIANT ) LONG insert ( VARIANT ) VOID removeByIdentifier ( LONG ) VOID dispose ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID setContext ( OBJECT ) OBJECT getContext ( void ) VOID createPeer ( OBJECT, OBJECT ) OBJECT getPeer ( void ) BOOL setModel ( OBJECT ) OBJECT getModel ( void ) OBJECT getView ( void ) VOID setDesignMode ( BOOL ) BOOL isDesignMode ( void ) BOOL isTransparent ( void ) VOID setPosSize ( LONG, LONG, LONG, LONG, INTEGER ) OBJECT getPosSize ( void ) VOID setVisible ( BOOL ) VOID setEnable ( BOOL ) VOID setFocus ( void ) VOID addWindowListener ( OBJECT ) VOID removeWindowListener ( OBJECT ) VOID addFocusListener ( OBJECT ) VOID removeFocusListener ( OBJECT ) VOID addKeyListener ( OBJECT ) VOID removeKeyListener ( OBJECT ) VOID addMouseListener ( OBJECT ) VOID removeMouseListener ( OBJECT ) VOID addMouseMotionListener ( OBJECT ) VOID removeMouseMotionListener ( OBJECT ) VOID addPaintListener ( OBJECT ) VOID removePaintListener ( OBJECT ) VOID setOutputSize ( OBJECT ) OBJECT getOutputSize ( void ) BOOL isVisible ( void ) BOOL isActive ( void ) BOOL isEnabled ( void ) BOOL hasFocus ( void ) BOOL setGraphics ( OBJECT ) OBJECT getGraphics ( void ) OBJECT getSize ( void ) VOID draw ( LONG, LONG ) VOID setZoom ( SINGLE, SINGLE ) VOID propertiesChange ( ARRAY ) STRING getImplementationName ( void ) BOOL supportsService ( STRING ) ARRAY getSupportedServiceNames ( void ) OBJECT getAccessibleContext ( void ) VOID addModeChangeListener ( OBJECT ) VOID removeModeChangeListener ( OBJECT ) VOID addModeChangeApproveListener ( OBJECT ) VOID removeModeChangeApproveListener ( OBJECT ) OBJECT convertPointToLogic ( OBJECT, INTEGER ) OBJECT convertPointToPixel ( OBJECT, INTEGER ) OBJECT convertSizeToLogic ( OBJECT, INTEGER ) OBJECT convertSizeToPixel ( OBJECT, INTEGER ) OBJECT queryAdapter ( void ) VOID setDelegator ( OBJECT ) EMPTY queryAggregation ( OBJECT ) Интерфейсы, поддерживаемые диалогами - supported interfaces by object "stardiv.Toolkit.UnoDialogControl": com.sun.star.accessibility.XAccessible com.sun.star.awt.XControl com.sun.star.awt.XControlContainer com.sun.star.awt.XDialog com.sun.star.awt.XDialog2 com.sun.star.awt.XStyleSettingsSupplier com.sun.star.awt.XTopWindow com.sun.star.awt.XUnitConversion com.sun.star.awt.XUnoControlContainer com.sun.star.awt.XView com.sun.star.awt.XWindow com.sun.star.awt.XWindow2 com.sun.star.awt.XWindowListener com.sun.star.beans.XPropertiesChangeListener com.sun.star.container.XContainer com.sun.star.container.XContainerListener com.sun.star.container.XElementAccess com.sun.star.container.XIdentifierAccess com.sun.star.container.XIdentifierContainer com.sun.star.container.XIdentifierReplace com.sun.star.lang.XComponent com.sun.star.lang.XEventListener com.sun.star.lang.XServiceInfo com.sun.star.lang.XTypeProvider com.sun.star.uno.XAggregation com.sun.star.uno.XWeak 13.1 Свойство PosSize диалогов LibreOffice BasicПрограмма, объявляющая объект PosSize:
Global Dlg As Object Sub Main Dim PosSize As Object Dlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) Dlg.execute() PosSize = Dlg.PosSize End Sub
Свойство PosSize диалогов имеет свойства, методы, интерфейсы UNO, представленные ниже. Properties of object "com.sun.star.awt.Rectangle" — свойства PosSize: SbxLONG
X; Methods of object "com.sun.star.awt.Rectangle" — методы PosSize: No methods found Dbg_SupportedInterfaces not available (TypeClass is not TypeClass_INTERFACE) — PosSize не поддерживает интерфейсы. 14 Свойства, методы, интерфейсы UNO в LibreOffice CalcПрограмма, написанная в OpenOffice Calc или LibreOffice Calc и объявляющая документ (scalc) как объект Doc:
Sub Main Dim Doc As Object Doc = ThisComponent End Sub
Объект Doc имеет свойства, методы, сервисы, интерфейсы UNO, представленные ниже. Properties of object "ThisComponent" - свойства объекта scalc: Тип Свойство OBJECT CharLocale OBJECT SheetLinks BOOL ApplyFormDesignMode STRING CodeName OBJECT AreaLinks BOOL CalcAsShown BOOL AutomaticControlFocus OBJECT BasicLibraries OBJECT DialogLibraries BOOL IsAdjustHeightEnabled STRING VBAGlobalConstantName LONG IterationCount OBJECT CharLocaleAsian OBJECT CharLocaleComplex OBJECT ColumnLabelRanges OBJECT DDELinks INTEGER DefaultTabStop OBJECT ForbiddenCharacters BOOL SpellOnline OBJECT ExternalDocLinks BOOL HasDrawPages BOOL IgnoreCase OBJECT RowLabelRanges BOOL IsIterationEnabled OBJECT NamedRanges DOUBLE IterationEpsilon BOOL LookUpLabels BOOL MatchWholeCell OBJECT DatabaseRanges BOOL HasValidSignatures OBJECT NullDate INTEGER StandardDecimals BOOL RegularExpressions BOOL Wildcards BOOL IsUndoEnabled STRING RuntimeUID BOOL IsExecuteLinkEnabled BOOL IsLoaded BOOL RecordChanges BOOL IsRecordChangesProtected BOOL IsChangeReadOnlyEnabled OBJECT ReferenceDevice STRING BuildId ARRAY InteropGrabBag OBJECT Parent OBJECT DocumentProperties ARRAY CmisProperties ARRAY AllVersions STRING StringValue STRING Namespace STRING LocalName OBJECT RDFRepository OBJECT UndoManager OBJECT Events BOOL AllowMacroExecution OBJECT ScriptContainer STRING URL ARRAY Args OBJECT CurrentController OBJECT CurrentSelection OBJECT Controllers ARRAY AvailableViewControllerNames BOOL Modified ARRAY Printer STRING Location OBJECT LibraryContainer OBJECT ViewData ARRAY TransferDataFlavors ARRAY DocumentSubStoragesNames OBJECT DocumentStorage OBJECT ScriptProvider OBJECT UIConfigurationManager STRING Identifier STRING Title STRING UntitledPrefix ARRAY Types ARRAY ImplementationId OBJECT Sheets INTEGER ActionLocks OBJECT DrawPages OBJECT StyleFamilies OBJECT Links OBJECT PropertySetInfo ARRAY AvailableServiceNames STRING ImplementationName ARRAY SupportedServiceNames LONG PlatformID LONG DeviceID ARRAY OpenCLPlatforms LONG FormulaCellNumberLimit OBJECT NumberFormatSettings OBJECT NumberFormats OBJECT Delegator STRING Dbg_SupportedInterfaces STRING Dbg_Properties STRING Dbg_Methods
Methods of object "ThisComponent" - методы объекта scalc: Тип Метод (тип) EMPTY queryInterface ( OBJECT ) OBJECT getParent ( void ) VOID setParent ( OBJECT ) OBJECT getDocumentProperties ( void ) VOID checkOut ( void ) VOID cancelCheckOut ( void ) VOID checkIn ( BOOL, STRING ) BOOL isVersionable ( void ) BOOL canCheckOut ( void ) BOOL canCancelCheckOut ( void ) BOOL canCheckIn ( void ) VOID updateCmisProperties ( ARRAY ) ARRAY getAllVersions ( void ) OBJECT getRDFRepository ( void ) OBJECT getElementByMetadataReference ( OBJECT ) OBJECT getElementByURI ( OBJECT ) ARRAY getMetadataGraphsWithType ( OBJECT ) OBJECT addMetadataFile ( STRING, ARRAY ) OBJECT importMetadataFile ( INTEGER, OBJECT, STRING, OBJECT, ARRAY ) VOID removeMetadataFile ( OBJECT ) VOID addContentOrStylesFile ( STRING ) VOID removeContentOrStylesFile ( STRING ) VOID loadMetadataFromStorage ( OBJECT, OBJECT, OBJECT ) VOID storeMetadataToStorage ( OBJECT ) VOID loadMetadataFromMedium ( ARRAY ) VOID storeMetadataToMedium ( ARRAY ) BOOL wasModifiedSinceLastSave ( void ) VOID storeToRecoveryFile ( STRING, ARRAY ) VOID recoverFromFile ( STRING, STRING, ARRAY ) OBJECT getUndoManager ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID addDocumentEventListener ( OBJECT ) VOID removeDocumentEventListener ( OBJECT ) VOID notifyDocumentEvent ( STRING, OBJECT, VARIANT ) VOID disposing ( OBJECT ) OBJECT getEvents ( void ) VOID dispose ( void ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) BOOL attachResource ( STRING, ARRAY ) STRING getURL ( void ) ARRAY getArgs ( void ) VOID connectController ( OBJECT ) VOID disconnectController ( OBJECT ) VOID lockControllers ( void ) VOID unlockControllers ( void ) BOOL hasControllersLocked ( void ) OBJECT getCurrentController ( void ) VOID setCurrentController ( OBJECT ) OBJECT getCurrentSelection ( void ) OBJECT getControllers ( void ) ARRAY getAvailableViewControllerNames ( void ) OBJECT createDefaultViewController ( OBJECT ) OBJECT createViewController ( STRING, ARRAY, OBJECT ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID addEventListener ( OBJECT ) VOID removeEventListener ( OBJECT ) VOID addModifyListener ( OBJECT ) VOID removeModifyListener ( OBJECT ) BOOL isModified ( void ) VOID setModified ( BOOL ) BOOL disableSetModified ( void ) BOOL enableSetModified ( void ) BOOL isSetModifiedEnabled ( void ) ARRAY getPrinter ( void ) VOID setPrinter ( ARRAY ) VOID print ( ARRAY ) VOID addPrintJobListener ( OBJECT ) VOID removePrintJobListener ( OBJECT ) BOOL hasLocation ( void ) STRING getLocation ( void ) BOOL isReadonly ( void ) VOID store ( void ) VOID storeAsURL ( STRING, ARRAY ) VOID storeToURL ( STRING, ARRAY ) VOID storeSelf ( ARRAY ) VOID initNew ( void ) VOID load ( ARRAY ) OBJECT getLibraryContainer ( void ) VOID createLibrary ( STRING, STRING, STRING, STRING ) VOID addModule ( STRING, STRING, STRING, STRING ) VOID addDialog ( STRING, STRING, ARRAY ) OBJECT getViewData ( void ) VOID setViewData ( OBJECT ) VOID addCloseListener ( OBJECT ) VOID removeCloseListener ( OBJECT ) VOID close ( BOOL ) EMPTY getTransferData ( OBJECT ) ARRAY getTransferDataFlavors ( void ) BOOL isDataFlavorSupported ( OBJECT ) OBJECT getDocumentSubStorage ( STRING, LONG ) ARRAY getDocumentSubStoragesNames ( void ) VOID loadFromStorage ( OBJECT, ARRAY ) VOID storeToStorage ( OBJECT, ARRAY ) VOID switchToStorage ( OBJECT ) OBJECT getDocumentStorage ( void ) VOID addStorageChangeListener ( OBJECT ) VOID removeStorageChangeListener ( OBJECT ) OBJECT getScriptProvider ( void ) OBJECT getUIConfigurationManager ( void ) VOID setVisualAreaSize ( INT64, OBJECT ) OBJECT getVisualAreaSize ( INT64 ) OBJECT getPreferredVisualRepresentation ( INT64 ) LONG getMapUnit ( INT64 ) INT64 getSomething ( ARRAY ) VOID setIdentifier ( STRING ) STRING getIdentifier ( void ) STRING getTitle ( void ) VOID setTitle ( STRING ) VOID addTitleChangeListener ( OBJECT ) VOID removeTitleChangeListener ( OBJECT ) LONG leaseNumber ( OBJECT ) VOID releaseNumber ( LONG ) VOID releaseNumberForComponent ( OBJECT ) STRING getUntitledPrefix ( void ) ARRAY getTypes ( void ) ARRAY getImplementationId ( void ) OBJECT queryAdapter ( void ) OBJECT getSheets ( void ) BOOL isActionLocked ( void ) VOID addActionLock ( void ) VOID removeActionLock ( void ) VOID setActionLocks ( INTEGER ) INTEGER resetActionLocks ( void ) VOID calculate ( void ) VOID calculateAll ( void ) BOOL isAutomaticCalculationEnabled ( void ) VOID enableAutomaticCalculation ( BOOL ) VOID protect ( STRING ) VOID unprotect ( STRING ) BOOL isProtected ( void ) OBJECT getDrawPages ( void ) OBJECT seekGoal ( OBJECT, OBJECT, STRING ) OBJECT createConsolidationDescriptor ( BOOL ) VOID consolidate ( OBJECT ) VOID refreshArrows ( void ) OBJECT getStyleFamilies ( void ) LONG getRendererCount ( VARIANT, ARRAY ) ARRAY getRenderer ( LONG, VARIANT, ARRAY ) VOID render ( LONG, VARIANT, ARRAY ) OBJECT getLinks ( void ) OBJECT getPropertySetInfo ( void ) VOID setPropertyValue ( STRING, VARIANT ) EMPTY getPropertyValue ( STRING ) VOID addPropertyChangeListener ( STRING, OBJECT ) VOID removePropertyChangeListener ( STRING, OBJECT ) VOID addVetoableChangeListener ( STRING, OBJECT ) VOID removeVetoableChangeListener ( STRING, OBJECT ) OBJECT createInstance ( STRING ) OBJECT createInstanceWithArguments ( STRING, ARRAY ) ARRAY getAvailableServiceNames ( void ) STRING getImplementationName ( void ) BOOL supportsService ( STRING ) ARRAY getSupportedServiceNames ( void ) VOID addChangesListener ( OBJECT ) VOID removeChangesListener ( OBJECT ) BOOL isOpenCLEnabled ( void ) VOID enableOpenCL ( BOOL ) VOID enableAutomaticDeviceSelection ( BOOL ) VOID disableAutomaticDeviceSelection ( void ) VOID selectOpenCLDevice ( LONG, LONG ) LONG getPlatformID ( void ) LONG getDeviceID ( void ) ARRAY getOpenCLPlatforms ( void ) VOID enableOpcodeSubsetTest ( void ) VOID disableOpcodeSubsetTest ( void ) BOOL isOpcodeSubsetTested ( void ) VOID setFormulaCellNumberLimit ( LONG ) LONG getFormulaCellNumberLimit ( void ) OBJECT getNumberFormatSettings ( void ) OBJECT getNumberFormats ( void ) VOID setDelegator ( OBJECT ) EMPTY queryAggregation ( OBJECT )
Supported interfaces by object "ThisComponent" - интерфейсы, поддерживаемые объектом scalc: com.sun.star.beans.XPropertySet com.sun.star.container.XChild com.sun.star.datatransfer.XTransferable com.sun.star.document.XActionLockable com.sun.star.document.XCmisDocument com.sun.star.document.XDocumentEventBroadcaster com.sun.star.document.XDocumentPropertiesSupplier com.sun.star.document.XDocumentRecovery com.sun.star.document.XDocumentSubStorageSupplier com.sun.star.document.XEmbeddedScripts com.sun.star.document.XEventBroadcaster com.sun.star.document.XEventsSupplier com.sun.star.document.XLinkTargetSupplier com.sun.star.document.XScriptInvocationContext com.sun.star.document.XStorageBasedDocument com.sun.star.document.XUndoManagerSupplier com.sun.star.document.XViewDataSupplier com.sun.star.drawing.XDrawPagesSupplier com.sun.star.embed.XVisualObject com.sun.star.frame.XLoadable com.sun.star.frame.XModel com.sun.star.frame.XModel2 com.sun.star.frame.XModule com.sun.star.frame.XStorable com.sun.star.frame.XStorable2 com.sun.star.frame.XTitle com.sun.star.frame.XTitleChangeBroadcaster com.sun.star.frame.XUntitledNumbers com.sun.star.lang.XComponent com.sun.star.lang.XEventListener com.sun.star.lang.XMultiServiceFactory com.sun.star.lang.XServiceInfo com.sun.star.lang.XTypeProvider com.sun.star.lang.XUnoTunnel com.sun.star.rdf.XDocumentMetadataAccess com.sun.star.rdf.XNode com.sun.star.rdf.XRepositorySupplier com.sun.star.rdf.XResource com.sun.star.rdf.XURI com.sun.star.script.XStarBasicAccess com.sun.star.script.provider.XScriptProviderSupplier com.sun.star.sheet.XCalculatable com.sun.star.sheet.XConsolidatable com.sun.star.sheet.XDocumentAuditing com.sun.star.sheet.XGoalSeek com.sun.star.sheet.XSpreadsheetDocument com.sun.star.sheet.opencl.XOpenCLSelection com.sun.star.style.XStyleFamiliesSupplier com.sun.star.ui.XUIConfigurationManagerSupplier com.sun.star.uno.XAggregation com.sun.star.uno.XWeak com.sun.star.util.XChangesNotifier com.sun.star.util.XCloseBroadcaster com.sun.star.util.XCloseable com.sun.star.util.XModifiable com.sun.star.util.XModifiable2 com.sun.star.util.XModifyBroadcaster com.sun.star.util.XNumberFormatsSupplier com.sun.star.util.XProtectable com.sun.star.view.XPrintJobBroadcaster com.sun.star.view.XPrintable Список использованных источников1. http://buhcia.narod.ru/OpenOffice_Macros_rus.odt (дата доступа: 28.03.2015). 2. http://www.pitonyak.org/AndrewMacro.odt (дата доступа: 28.03.2015). 3.OpenOffice.org Macros Explained. http://www.pitonyak.org/AndrewMacro.odt (дата доступа: 30.04.2016). 4. https://wiki.openoffice.org/wiki/Extensions_development_basic (дата доступа: 11.09.2017). 5.StarOffice Programmer’s Tutorial. - Sun Microsystems, 2000. - 132 с. http://www.openoffice.org/api/basic/man/tutorial/tutorial.pdf (дата доступа: 11.09.2017). 6.http://wiki.forumooo.ru/wiki/MacroWriter (дата доступа: 20.09.2017). 7.http://wiki.forumooo.ru/wiki/Программирование (дата доступа: 20.09.2017). 8.http://www.script-coding.com/OOo/OOo_HelloWorld.html (дата доступа: 22.09.2017). 9.Программирование на языке OpenOffice.org Basic. Перевод Дмитрия Чернова StarOffice 8 Programming Guide for BASIC. - 194 с. Веб-страницы: 1 Программирование на языке OpenOffice Basic и LibreOffice Basic (начало) 2 Сайт: super-code.ru ©
|