OpenOffice.org Macros Explained

D

data pilot tables, 359-364

data structures, stack, 42

data types

conversions, 125-126

creating, 29-30

Database field, 313, 319

DatabaseCheckBox control, 400

DatabaseComboBox control, 400

DatabaseCurrencyField control, 400

DatabaseDateField control, 400

DatabaseFormattedField control, 400

DatabaselmageControl control, 400

DatabaseListBox control, 400

DatabaseName field, 313

DatabaseNextSet field, 313

DatabaseNumberOfSet field, 313

DatabaseNumericField control, 401

DatabasePatternField control, 401

DatabaseRadioButton control, 401

DatabaseSetNumber field, 313

DatabaseTextField control, 401

DatabaseTimeField control, 401

Date(), 29, 101, 102

date component extraction functions, 106

date control, 431

Date module, 109-110

Date property, 432

date routines

assembling dates from components , 107-108

date component extraction functions, 106

functions, 101

ISO 8601 dates, 105

locale formatted dates, 103-105

measuring elapsed time

greatest common divisor (GCD), 109-111

long intervals, 111-112

short intervals, 108-109

retrieving date and time, 101-102

string formats, 102-103

date variables , 22, 28-29

DateAdd routine, 166

DateDiff routine, 166

DateField control, 401

DateFormat property, 432

DateMax property, 432

DateMin property, 432

DatePart routine, 166

dates, 29. See also date routines; date variables

DateSerial(), 29, 101

DateTime field, 313

DateValue(), 29, 101, 102, 103-104

Day(), 29, 101, 106, 107

dbg_methods property, UNO, 175

dbg_properties property, UNO, 175, 176, 208

dbg_supportedlnterfaces property, UNO, 175

DDE (Dynamic Data Exchange), commands, 152

DDE field, 313, 319

DDEExecute(), 148-150

DDEInitiate(), 148-150, 153

DDEPoke(), 148-150

DDERequest(), 148-150

DDETerminateAll(), 148-150

debug information, 450-453

debugging, Print statements for, 154

decimal numbers (base 10), 24

DecimalAccuracy property, 430

Declare(), 148-150

Def statements, 22, 23

DefaultButton property, 424

DefaultTabStop property, 263

DefaultTarget property, StarDesktop, 209

delimiters, produced by the Write statement, 140

DependentTextFields property, 319

Description property, StarDesktop, 209

Desktop object, 203

Desktop service, 203

dialog libraries, 1, 180

Dialog Type, 155-158

DialogLibraries property, 407, 410

dialogs, 418-422, 444, 447-450. See also controls; names of specific dialogs

Dim keyword, 43, 44-45

Dim statement, 33

DimArray(), 36, 91, 93-94

DimColor property, 404

DimHide property, 404

DimPrevious property, 404

Dir(), 127, 134

directory listing, 133-135

directory manipulation, 129-130

DisplayFields, Writer module, 317

DisplayName property, 246

DisplaySimilarRanges, Calc module, 350

DisplaySortDescriptor, Calc module, 353-354

Distance property, 330

division (/), 47

DLLs (Dynamic Link Libraries), 150

Do ... Loop construct, 62-64

docinfo fields, 316

document libraries, 1-8, 14-15

document methods

accessing view data, 236

closing documents, 236-237

creating services, 261-263

dealing with locale, 249-255

document settings, 263-264

Draw Pages interface, 237-240

event listeners, 233-234

getting and setting properties, 231-232

"headless" mode, 229

link targets, 234-236

manipulating styles, 245-249

printing documents, 255-261

services and interfaces, 229-231

user fields, 233

XModel interface, 207, 229-230, 240-242

DOCUMENT property, 405

documents. See also Calc documents; Draw documents; Impress documents; libraries; StarDesktop; Writer documents

closing, 236-237

definition, 1

enabling macros, 215-217

error handling, 227

event listeners, 233-234

exporting, 215-216

font style, 231

in frames , 212-213

global service manager, 229

importing, 215

interfaces, 229-230

libraries in, 9, 410

link targets, 234-236

locale language codes, 249-255

models, 265, 325

named parameters, 213-214

opening, 179

printing, 255-261

properties, 231-232

running macros, 8

saving, 243-245

search-and-replace functionality, 231

services, 229-230, 261-263

settings, 263-264

settings service types, 263

styles, 245-249

templates, 215

troubleshooting, 257

types of, 230

UNO, 175

URLs for creating, 211

user fields, 233

XML, 332

XModel interface, 240-242

DocumentTitle property, 242

double quotation character

in CSV files, 217

with On Error statement, 65

in string variables, 28

double variables, 22, 27

down(), 431

draw(), 420

Draw commands, UNO dispatcher, 197-198

Draw documents

checking for, 375

draw pages

combining shapes , 378-380

creating, 375-377

forms, 399-401

generic, 377-378

services, 230

shape types

properties, 381-388

supported, 380, 388-399

Draw Pages interface, 237-240

DrawClosedBezierShape, Graphic module, 386

DrawConnectorShape, Graphic module, 397-398

DrawConnectorShape_Arrows, Graphic module, 399

DrawConnectorShape_Glue, Graphic module, 398

DrawControlPoints, Graphic module, 394

DrawFirstGraphic, Graphic module, 377-378

Drawing documents, 175, 230

DrawMeasureShape, Graphic module, 383-384

DrawOpenBezierCurves, Graphic module, 395

DrawPage service, 403

DrawRectangleWithShadow, Graphic module, 387

DropDown field, 313

DropDown property, 428, 431, 441

DumpAllObjects routine, 166

Duration property, 403

Категории