| 1 | #============================================================================= | ||
| 2 | # | ||
| 3 | # Copyright (c) 2010 Ars Aperta, Itaapy, Pierlis, Talend. | ||
| 4 | # Copyright (c) 2011 Jean-Marie Gouarné. | ||
| 5 | # Author: Jean-Marie Gouarné <jean.marie.gouarne@online.fr> | ||
| 6 | # | ||
| 7 | #============================================================================= | ||
| 8 | use 5.010_000; | ||
| 9 | use strict; | ||
| 10 | #============================================================================= | ||
| 11 | package ODF::lpOD::Attributes; | ||
| 12 | our $VERSION = '1.000'; | ||
| 13 | use constant PACKAGE_DATE => '2010-12-24T13:57:50'; | ||
| 14 | #============================================================================== | ||
| 15 | %ODF::lpOD::Connector::ATTRIBUTE = | ||
| 16 | ( | ||
| 17 | caption_id => | ||
| 18 | { | ||
| 19 | attribute => "draw:caption-id", | ||
| 20 | type => "IDREF" | ||
| 21 | }, | ||
| 22 | z_index => | ||
| 23 | { | ||
| 24 | attribute => "draw:z-index", | ||
| 25 | type => "nonNegativeInteger" | ||
| 26 | }, | ||
| 27 | type => | ||
| 28 | { | ||
| 29 | attribute => "draw:type", | ||
| 30 | type => "Unknown" | ||
| 31 | }, | ||
| 32 | x1 => | ||
| 33 | { | ||
| 34 | attribute => "svg:x1", | ||
| 35 | type => "coordinate" | ||
| 36 | }, | ||
| 37 | y1 => | ||
| 38 | { | ||
| 39 | attribute => "svg:y1", | ||
| 40 | type => "coordinate" | ||
| 41 | }, | ||
| 42 | start_shape => | ||
| 43 | { | ||
| 44 | attribute => "draw:start-shape", | ||
| 45 | type => "IDREF" | ||
| 46 | }, | ||
| 47 | start_glue_point => | ||
| 48 | { | ||
| 49 | attribute => "draw:start-glue-point", | ||
| 50 | type => "nonNegativeInteger" | ||
| 51 | }, | ||
| 52 | x2 => | ||
| 53 | { | ||
| 54 | attribute => "svg:x2", | ||
| 55 | type => "coordinate" | ||
| 56 | }, | ||
| 57 | y2 => | ||
| 58 | { | ||
| 59 | attribute => "svg:y2", | ||
| 60 | type => "coordinate" | ||
| 61 | }, | ||
| 62 | end_shape => | ||
| 63 | { | ||
| 64 | attribute => "draw:end-shape", | ||
| 65 | type => "IDREF" | ||
| 66 | }, | ||
| 67 | end_glue_point => | ||
| 68 | { | ||
| 69 | attribute => "draw:end-glue-point", | ||
| 70 | type => "nonNegativeInteger" | ||
| 71 | }, | ||
| 72 | line_skew => | ||
| 73 | { | ||
| 74 | attribute => "draw:line-skew", | ||
| 75 | type => "length" | ||
| 76 | }, | ||
| 77 | ); | ||
| 78 | #------------------------------------------------------------------------------ | ||
| 79 | %ODF::lpOD::Ellipse::ATTRIBUTE = | ||
| 80 | ( | ||
| 81 | caption_id => | ||
| 82 | { | ||
| 83 | attribute => "draw:caption-id", | ||
| 84 | type => "IDREF" | ||
| 85 | }, | ||
| 86 | z_index => | ||
| 87 | { | ||
| 88 | attribute => "draw:z-index", | ||
| 89 | type => "nonNegativeInteger" | ||
| 90 | }, | ||
| 91 | width => | ||
| 92 | { | ||
| 93 | attribute => "svg:width", | ||
| 94 | type => "length" | ||
| 95 | }, | ||
| 96 | height => | ||
| 97 | { | ||
| 98 | attribute => "svg:height", | ||
| 99 | type => "length" | ||
| 100 | }, | ||
| 101 | x => | ||
| 102 | { | ||
| 103 | attribute => "svg:x", | ||
| 104 | type => "coordinate" | ||
| 105 | }, | ||
| 106 | y => | ||
| 107 | { | ||
| 108 | attribute => "svg:y", | ||
| 109 | type => "coordinate" | ||
| 110 | }, | ||
| 111 | rx => | ||
| 112 | { | ||
| 113 | attribute => "svg:rx", | ||
| 114 | type => "length" | ||
| 115 | }, | ||
| 116 | ry => | ||
| 117 | { | ||
| 118 | attribute => "svg:ry", | ||
| 119 | type => "length" | ||
| 120 | }, | ||
| 121 | cx => | ||
| 122 | { | ||
| 123 | attribute => "svg:cx", | ||
| 124 | type => "coordinate" | ||
| 125 | }, | ||
| 126 | cy => | ||
| 127 | { | ||
| 128 | attribute => "svg:cy", | ||
| 129 | type => "coordinate" | ||
| 130 | }, | ||
| 131 | kind => | ||
| 132 | { | ||
| 133 | attribute => "draw:kind", | ||
| 134 | type => "Unknown" | ||
| 135 | }, | ||
| 136 | start_angle => | ||
| 137 | { | ||
| 138 | attribute => "draw:start-angle", | ||
| 139 | type => "double" | ||
| 140 | }, | ||
| 141 | end_angle => | ||
| 142 | { | ||
| 143 | attribute => "draw:end-angle", | ||
| 144 | type => "double" | ||
| 145 | }, | ||
| 146 | ); | ||
| 147 | #------------------------------------------------------------------------------ | ||
| 148 | %ODF::lpOD::Frame::ATTRIBUTE = | ||
| 149 | ( | ||
| 150 | copy_of => | ||
| 151 | { | ||
| 152 | attribute => "draw:copy-of", | ||
| 153 | type => "string" | ||
| 154 | }, | ||
| 155 | class => | ||
| 156 | { | ||
| 157 | attribute => "presentation:class", | ||
| 158 | type => "presentation-classes" | ||
| 159 | }, | ||
| 160 | placeholder => | ||
| 161 | { | ||
| 162 | attribute => "presentation:placeholder", | ||
| 163 | type => "boolean" | ||
| 164 | }, | ||
| 165 | user_transformed => | ||
| 166 | { | ||
| 167 | attribute => "presentation:user-transformed", | ||
| 168 | type => "boolean" | ||
| 169 | }, | ||
| 170 | caption_id => | ||
| 171 | { | ||
| 172 | attribute => "draw:caption-id", | ||
| 173 | type => "IDREF" | ||
| 174 | }, | ||
| 175 | width => | ||
| 176 | { | ||
| 177 | attribute => "svg:width", | ||
| 178 | type => "length" | ||
| 179 | }, | ||
| 180 | height => | ||
| 181 | { | ||
| 182 | attribute => "svg:height", | ||
| 183 | type => "length" | ||
| 184 | }, | ||
| 185 | x => | ||
| 186 | { | ||
| 187 | attribute => "svg:x", | ||
| 188 | type => "coordinate" | ||
| 189 | }, | ||
| 190 | y => | ||
| 191 | { | ||
| 192 | attribute => "svg:y", | ||
| 193 | type => "coordinate" | ||
| 194 | }, | ||
| 195 | z_index => | ||
| 196 | { | ||
| 197 | attribute => "draw:z-index", | ||
| 198 | type => "nonNegativeInteger" | ||
| 199 | }, | ||
| 200 | ); | ||
| 201 | #------------------------------------------------------------------------------ | ||
| 202 | %ODF::lpOD::Image::ATTRIBUTE = | ||
| 203 | ( | ||
| 204 | filter_name => | ||
| 205 | { | ||
| 206 | attribute => "draw:filter-name", | ||
| 207 | type => "string" | ||
| 208 | }, | ||
| 209 | ); | ||
| 210 | #------------------------------------------------------------------------------ | ||
| 211 | %ODF::lpOD::Line::ATTRIBUTE = | ||
| 212 | ( | ||
| 213 | caption_id => | ||
| 214 | { | ||
| 215 | attribute => "draw:caption-id", | ||
| 216 | type => "IDREF" | ||
| 217 | }, | ||
| 218 | z_index => | ||
| 219 | { | ||
| 220 | attribute => "draw:z-index", | ||
| 221 | type => "nonNegativeInteger" | ||
| 222 | }, | ||
| 223 | x1 => | ||
| 224 | { | ||
| 225 | attribute => "svg:x1", | ||
| 226 | type => "coordinate" | ||
| 227 | }, | ||
| 228 | y1 => | ||
| 229 | { | ||
| 230 | attribute => "svg:y1", | ||
| 231 | type => "coordinate" | ||
| 232 | }, | ||
| 233 | x2 => | ||
| 234 | { | ||
| 235 | attribute => "svg:x2", | ||
| 236 | type => "coordinate" | ||
| 237 | }, | ||
| 238 | y2 => | ||
| 239 | { | ||
| 240 | attribute => "svg:y2", | ||
| 241 | type => "coordinate" | ||
| 242 | }, | ||
| 243 | ); | ||
| 244 | #------------------------------------------------------------------------------ | ||
| 245 | %ODF::lpOD::DrawPage::ATTRIBUTE = | ||
| 246 | ( | ||
| 247 | name => | ||
| 248 | { | ||
| 249 | attribute => "draw:name", | ||
| 250 | type => "string" | ||
| 251 | }, | ||
| 252 | style_name => | ||
| 253 | { | ||
| 254 | attribute => "draw:style-name", | ||
| 255 | type => "styleNameRef" | ||
| 256 | }, | ||
| 257 | master_page_name => | ||
| 258 | { | ||
| 259 | attribute => "draw:master-page-name", | ||
| 260 | type => "styleNameRef" | ||
| 261 | }, | ||
| 262 | presentation_page_layout_name => | ||
| 263 | { | ||
| 264 | attribute => "presentation:presentation-page-layout-name", | ||
| 265 | type => "styleNameRef" | ||
| 266 | }, | ||
| 267 | id => | ||
| 268 | { | ||
| 269 | attribute => "draw:id", | ||
| 270 | type => "ID" | ||
| 271 | }, | ||
| 272 | nav_order => | ||
| 273 | { | ||
| 274 | attribute => "draw:nav-order", | ||
| 275 | type => "IDREFS" | ||
| 276 | }, | ||
| 277 | use_header_name => | ||
| 278 | { | ||
| 279 | attribute => "presentation:use-header-name", | ||
| 280 | type => "string" | ||
| 281 | }, | ||
| 282 | use_footer_name => | ||
| 283 | { | ||
| 284 | attribute => "presentation:use-footer-name", | ||
| 285 | type => "string" | ||
| 286 | }, | ||
| 287 | use_date_time_name => | ||
| 288 | { | ||
| 289 | attribute => "presentation:use-date-time-name", | ||
| 290 | type => "string" | ||
| 291 | }, | ||
| 292 | ); | ||
| 293 | #------------------------------------------------------------------------------ | ||
| 294 | %ODF::lpOD::Rectangle::ATTRIBUTE = | ||
| 295 | ( | ||
| 296 | caption_id => | ||
| 297 | { | ||
| 298 | attribute => "draw:caption-id", | ||
| 299 | type => "IDREF" | ||
| 300 | }, | ||
| 301 | z_index => | ||
| 302 | { | ||
| 303 | attribute => "draw:z-index", | ||
| 304 | type => "nonNegativeInteger" | ||
| 305 | }, | ||
| 306 | width => | ||
| 307 | { | ||
| 308 | attribute => "svg:width", | ||
| 309 | type => "length" | ||
| 310 | }, | ||
| 311 | height => | ||
| 312 | { | ||
| 313 | attribute => "svg:height", | ||
| 314 | type => "length" | ||
| 315 | }, | ||
| 316 | x => | ||
| 317 | { | ||
| 318 | attribute => "svg:x", | ||
| 319 | type => "coordinate" | ||
| 320 | }, | ||
| 321 | y => | ||
| 322 | { | ||
| 323 | attribute => "svg:y", | ||
| 324 | type => "coordinate" | ||
| 325 | }, | ||
| 326 | corner_radius => | ||
| 327 | { | ||
| 328 | attribute => "draw:corner-radius", | ||
| 329 | type => "nonNegativeLength" | ||
| 330 | }, | ||
| 331 | ); | ||
| 332 | #------------------------------------------------------------------------------ | ||
| 333 | %ODF::lpOD::Annotation::ATTRIBUTE = | ||
| 334 | ( | ||
| 335 | z_index => | ||
| 336 | { | ||
| 337 | attribute => "draw:z-index", | ||
| 338 | type => "nonNegativeInteger" | ||
| 339 | }, | ||
| 340 | width => | ||
| 341 | { | ||
| 342 | attribute => "svg:width", | ||
| 343 | type => "length" | ||
| 344 | }, | ||
| 345 | height => | ||
| 346 | { | ||
| 347 | attribute => "svg:height", | ||
| 348 | type => "length" | ||
| 349 | }, | ||
| 350 | x => | ||
| 351 | { | ||
| 352 | attribute => "svg:x", | ||
| 353 | type => "coordinate" | ||
| 354 | }, | ||
| 355 | y => | ||
| 356 | { | ||
| 357 | attribute => "svg:y", | ||
| 358 | type => "coordinate" | ||
| 359 | }, | ||
| 360 | caption_point_x => | ||
| 361 | { | ||
| 362 | attribute => "draw:caption-point-x", | ||
| 363 | type => "coordinate" | ||
| 364 | }, | ||
| 365 | caption_point_y => | ||
| 366 | { | ||
| 367 | attribute => "draw:caption-point-y", | ||
| 368 | type => "coordinate" | ||
| 369 | }, | ||
| 370 | corner_radius => | ||
| 371 | { | ||
| 372 | attribute => "draw:corner-radius", | ||
| 373 | type => "nonNegativeLength" | ||
| 374 | }, | ||
| 375 | display => | ||
| 376 | { | ||
| 377 | attribute => "office:display", | ||
| 378 | type => "boolean" | ||
| 379 | }, | ||
| 380 | ); | ||
| 381 | #------------------------------------------------------------------------------ | ||
| 382 | %ODF::lpOD::MasterPage::ATTRIBUTE = | ||
| 383 | ( | ||
| 384 | name => | ||
| 385 | { | ||
| 386 | attribute => "style:name", | ||
| 387 | type => "styleName" | ||
| 388 | }, | ||
| 389 | display_name => | ||
| 390 | { | ||
| 391 | attribute => "style:display-name", | ||
| 392 | type => "string" | ||
| 393 | }, | ||
| 394 | page_layout_name => | ||
| 395 | { | ||
| 396 | attribute => "style:page-layout-name", | ||
| 397 | type => "styleNameRef" | ||
| 398 | }, | ||
| 399 | style_name => | ||
| 400 | { | ||
| 401 | attribute => "draw:style-name", | ||
| 402 | type => "styleNameRef" | ||
| 403 | }, | ||
| 404 | next_style_name => | ||
| 405 | { | ||
| 406 | attribute => "style:next-style-name", | ||
| 407 | type => "styleNameRef" | ||
| 408 | }, | ||
| 409 | ); | ||
| 410 | #------------------------------------------------------------------------------ | ||
| 411 | %ODF::lpOD::PageLayout::ATTRIBUTE = | ||
| 412 | ( | ||
| 413 | name => | ||
| 414 | { | ||
| 415 | attribute => "style:name", | ||
| 416 | type => "styleName" | ||
| 417 | }, | ||
| 418 | page_usage => | ||
| 419 | { | ||
| 420 | attribute => "style:page-usage", | ||
| 421 | type => "Unknown" | ||
| 422 | }, | ||
| 423 | ); | ||
| 424 | #------------------------------------------------------------------------------ | ||
| 425 | %ODF::lpOD::PresentationPageLayout::ATTRIBUTE = | ||
| 426 | ( | ||
| 427 | name => | ||
| 428 | { | ||
| 429 | attribute => "style:name", | ||
| 430 | type => "styleName" | ||
| 431 | }, | ||
| 432 | display_name => | ||
| 433 | { | ||
| 434 | attribute => "style:display-name", | ||
| 435 | type => "string" | ||
| 436 | }, | ||
| 437 | ); | ||
| 438 | #------------------------------------------------------------------------------ | ||
| 439 | %ODF::lpOD::Style::ATTRIBUTE = | ||
| 440 | ( | ||
| 441 | name => | ||
| 442 | { | ||
| 443 | attribute => "style:name", | ||
| 444 | type => "styleName" | ||
| 445 | }, | ||
| 446 | display_name => | ||
| 447 | { | ||
| 448 | attribute => "style:display-name", | ||
| 449 | type => "string" | ||
| 450 | }, | ||
| 451 | parent_style_name => | ||
| 452 | { | ||
| 453 | attribute => "style:parent-style-name", | ||
| 454 | type => "styleNameRef" | ||
| 455 | }, | ||
| 456 | next_style_name => | ||
| 457 | { | ||
| 458 | attribute => "style:next-style-name", | ||
| 459 | type => "styleNameRef" | ||
| 460 | }, | ||
| 461 | list_style_name => | ||
| 462 | { | ||
| 463 | attribute => "style:list-style-name", | ||
| 464 | type => "styleName" | ||
| 465 | }, | ||
| 466 | master_page_name => | ||
| 467 | { | ||
| 468 | attribute => "style:master-page-name", | ||
| 469 | type => "styleNameRef" | ||
| 470 | }, | ||
| 471 | auto_update => | ||
| 472 | { | ||
| 473 | attribute => "style:auto-update", | ||
| 474 | type => "boolean" | ||
| 475 | }, | ||
| 476 | data_style_name => | ||
| 477 | { | ||
| 478 | attribute => "style:data-style-name", | ||
| 479 | type => "styleNameRef" | ||
| 480 | }, | ||
| 481 | class => | ||
| 482 | { | ||
| 483 | attribute => "style:class", | ||
| 484 | type => "string" | ||
| 485 | }, | ||
| 486 | default_outline_level => | ||
| 487 | { | ||
| 488 | attribute => "style:default-outline-level", | ||
| 489 | type => "positiveInteger" | ||
| 490 | }, | ||
| 491 | ); | ||
| 492 | #------------------------------------------------------------------------------ | ||
| 493 | %ODF::lpOD::Cell::ATTRIBUTE = | ||
| 494 | ( | ||
| 495 | number_columns_spanned => | ||
| 496 | { | ||
| 497 | attribute => "table:number-columns-spanned", | ||
| 498 | type => "positiveInteger" | ||
| 499 | }, | ||
| 500 | number_rows_spanned => | ||
| 501 | { | ||
| 502 | attribute => "table:number-rows-spanned", | ||
| 503 | type => "positiveInteger" | ||
| 504 | }, | ||
| 505 | number_matrix_columns_spanned => | ||
| 506 | { | ||
| 507 | attribute => "table:number-matrix-columns-spanned", | ||
| 508 | type => "positiveInteger" | ||
| 509 | }, | ||
| 510 | number_matrix_rows_spanned => | ||
| 511 | { | ||
| 512 | attribute => "table:number-matrix-rows-spanned", | ||
| 513 | type => "positiveInteger" | ||
| 514 | }, | ||
| 515 | number_columns_repeated => | ||
| 516 | { | ||
| 517 | attribute => "table:number-columns-repeated", | ||
| 518 | type => "positiveInteger" | ||
| 519 | }, | ||
| 520 | style_name => | ||
| 521 | { | ||
| 522 | attribute => "table:style-name", | ||
| 523 | type => "styleNameRef" | ||
| 524 | }, | ||
| 525 | content_validation_name => | ||
| 526 | { | ||
| 527 | attribute => "table:content-validation-name", | ||
| 528 | type => "string" | ||
| 529 | }, | ||
| 530 | formula => | ||
| 531 | { | ||
| 532 | attribute => "table:formula", | ||
| 533 | type => "string" | ||
| 534 | }, | ||
| 535 | protect => | ||
| 536 | { | ||
| 537 | attribute => "table:protect", | ||
| 538 | type => "boolean" | ||
| 539 | } | ||
| 540 | ); | ||
| 541 | #------------------------------------------------------------------------------ | ||
| 542 | %ODF::lpOD::Table::ATTRIBUTE = | ||
| 543 | ( | ||
| 544 | name => | ||
| 545 | { | ||
| 546 | attribute => "table:name", | ||
| 547 | type => "string" | ||
| 548 | }, | ||
| 549 | style_name => | ||
| 550 | { | ||
| 551 | attribute => "table:style-name", | ||
| 552 | type => "styleNameRef" | ||
| 553 | }, | ||
| 554 | protected => | ||
| 555 | { | ||
| 556 | attribute => "table:protected", | ||
| 557 | type => "boolean" | ||
| 558 | }, | ||
| 559 | protection_key => | ||
| 560 | { | ||
| 561 | attribute => "table:protection-key", | ||
| 562 | type => "Unknown" | ||
| 563 | }, | ||
| 564 | print => | ||
| 565 | { | ||
| 566 | attribute => "table:print", | ||
| 567 | type => "boolean" | ||
| 568 | }, | ||
| 569 | print_ranges => | ||
| 570 | { | ||
| 571 | attribute => "table:print-ranges", | ||
| 572 | type => "cellRangeAddressList" | ||
| 573 | }, | ||
| 574 | is_sub_table => | ||
| 575 | { | ||
| 576 | attribute => "table:is-sub-table", | ||
| 577 | type => "boolean" | ||
| 578 | }, | ||
| 579 | ); | ||
| 580 | #------------------------------------------------------------------------------ | ||
| 581 | %ODF::lpOD::Column::ATTRIBUTE = | ||
| 582 | ( | ||
| 583 | number_columns_repeated => | ||
| 584 | { | ||
| 585 | attribute => "table:number-columns-repeated", | ||
| 586 | type => "positiveInteger" | ||
| 587 | }, | ||
| 588 | style_name => | ||
| 589 | { | ||
| 590 | attribute => "table:style-name", | ||
| 591 | type => "styleNameRef" | ||
| 592 | }, | ||
| 593 | visibility => | ||
| 594 | { | ||
| 595 | attribute => "table:visibility", | ||
| 596 | type => "table-visibility-value" | ||
| 597 | }, | ||
| 598 | default_cell_style_name => | ||
| 599 | { | ||
| 600 | attribute => "table:default-cell-style-name", | ||
| 601 | type => "styleNameRef" | ||
| 602 | }, | ||
| 603 | ); | ||
| 604 | #------------------------------------------------------------------------------ | ||
| 605 | %ODF::lpOD::ColumnGroup::ATTRIBUTE = | ||
| 606 | ( | ||
| 607 | display => | ||
| 608 | { | ||
| 609 | attribute => "table:display", | ||
| 610 | type => "boolean" | ||
| 611 | }, | ||
| 612 | ); | ||
| 613 | #------------------------------------------------------------------------------ | ||
| 614 | %ODF::lpOD::Row::ATTRIBUTE = | ||
| 615 | ( | ||
| 616 | number_rows_repeated => | ||
| 617 | { | ||
| 618 | attribute => "table:number-rows-repeated", | ||
| 619 | type => "positiveInteger" | ||
| 620 | }, | ||
| 621 | style_name => | ||
| 622 | { | ||
| 623 | attribute => "table:style-name", | ||
| 624 | type => "styleNameRef" | ||
| 625 | }, | ||
| 626 | default_cell_style_name => | ||
| 627 | { | ||
| 628 | attribute => "table:default-cell-style-name", | ||
| 629 | type => "styleNameRef" | ||
| 630 | }, | ||
| 631 | visibility => | ||
| 632 | { | ||
| 633 | attribute => "table:visibility", | ||
| 634 | type => "table-visibility-value" | ||
| 635 | }, | ||
| 636 | ); | ||
| 637 | #------------------------------------------------------------------------------ | ||
| 638 | %ODF::lpOD::RowGroup::ATTRIBUTE = | ||
| 639 | ( | ||
| 640 | display => | ||
| 641 | { | ||
| 642 | attribute => "table:display", | ||
| 643 | type => "boolean" | ||
| 644 | }, | ||
| 645 | ); | ||
| 646 | #------------------------------------------------------------------------------ | ||
| 647 | %ODF::lpOD::BibliographyMark::ATTRIBUTE = | ||
| 648 | ( | ||
| 649 | bibliography_type => | ||
| 650 | { | ||
| 651 | attribute => "text:bibliography-type", | ||
| 652 | type => "text-bibliography-types" | ||
| 653 | }, | ||
| 654 | identifier => | ||
| 655 | { | ||
| 656 | attribute => "text:identifier", | ||
| 657 | type => "string" | ||
| 658 | }, | ||
| 659 | address => | ||
| 660 | { | ||
| 661 | attribute => "text:address", | ||
| 662 | type => "string" | ||
| 663 | }, | ||
| 664 | annote => | ||
| 665 | { | ||
| 666 | attribute => "text:annote", | ||
| 667 | type => "string" | ||
| 668 | }, | ||
| 669 | author => | ||
| 670 | { | ||
| 671 | attribute => "text:author", | ||
| 672 | type => "string" | ||
| 673 | }, | ||
| 674 | booktitle => | ||
| 675 | { | ||
| 676 | attribute => "text:booktitle", | ||
| 677 | type => "string" | ||
| 678 | }, | ||
| 679 | chapter => | ||
| 680 | { | ||
| 681 | attribute => "text:chapter", | ||
| 682 | type => "string" | ||
| 683 | }, | ||
| 684 | edition => | ||
| 685 | { | ||
| 686 | attribute => "text:edition", | ||
| 687 | type => "string" | ||
| 688 | }, | ||
| 689 | editor => | ||
| 690 | { | ||
| 691 | attribute => "text:editor", | ||
| 692 | type => "string" | ||
| 693 | }, | ||
| 694 | howpublished => | ||
| 695 | { | ||
| 696 | attribute => "text:howpublished", | ||
| 697 | type => "string" | ||
| 698 | }, | ||
| 699 | institution => | ||
| 700 | { | ||
| 701 | attribute => "text:institution", | ||
| 702 | type => "string" | ||
| 703 | }, | ||
| 704 | journal => | ||
| 705 | { | ||
| 706 | attribute => "text:journal", | ||
| 707 | type => "string" | ||
| 708 | }, | ||
| 709 | month => | ||
| 710 | { | ||
| 711 | attribute => "text:month", | ||
| 712 | type => "string" | ||
| 713 | }, | ||
| 714 | note => | ||
| 715 | { | ||
| 716 | attribute => "text:note", | ||
| 717 | type => "string" | ||
| 718 | }, | ||
| 719 | number => | ||
| 720 | { | ||
| 721 | attribute => "text:number", | ||
| 722 | type => "string" | ||
| 723 | }, | ||
| 724 | organizations => | ||
| 725 | { | ||
| 726 | attribute => "text:organizations", | ||
| 727 | type => "string" | ||
| 728 | }, | ||
| 729 | pages => | ||
| 730 | { | ||
| 731 | attribute => "text:pages", | ||
| 732 | type => "string" | ||
| 733 | }, | ||
| 734 | publisher => | ||
| 735 | { | ||
| 736 | attribute => "text:publisher", | ||
| 737 | type => "string" | ||
| 738 | }, | ||
| 739 | school => | ||
| 740 | { | ||
| 741 | attribute => "text:school", | ||
| 742 | type => "string" | ||
| 743 | }, | ||
| 744 | series => | ||
| 745 | { | ||
| 746 | attribute => "text:series", | ||
| 747 | type => "string" | ||
| 748 | }, | ||
| 749 | title => | ||
| 750 | { | ||
| 751 | attribute => "text:title", | ||
| 752 | type => "string" | ||
| 753 | }, | ||
| 754 | report_type => | ||
| 755 | { | ||
| 756 | attribute => "text:report-type", | ||
| 757 | type => "string" | ||
| 758 | }, | ||
| 759 | volume => | ||
| 760 | { | ||
| 761 | attribute => "text:volume", | ||
| 762 | type => "string" | ||
| 763 | }, | ||
| 764 | year => | ||
| 765 | { | ||
| 766 | attribute => "text:year", | ||
| 767 | type => "string" | ||
| 768 | }, | ||
| 769 | url => | ||
| 770 | { | ||
| 771 | attribute => "text:url", | ||
| 772 | type => "string" | ||
| 773 | }, | ||
| 774 | custom1 => | ||
| 775 | { | ||
| 776 | attribute => "text:custom1", | ||
| 777 | type => "string" | ||
| 778 | }, | ||
| 779 | custom2 => | ||
| 780 | { | ||
| 781 | attribute => "text:custom2", | ||
| 782 | type => "string" | ||
| 783 | }, | ||
| 784 | custom3 => | ||
| 785 | { | ||
| 786 | attribute => "text:custom3", | ||
| 787 | type => "string" | ||
| 788 | }, | ||
| 789 | custom4 => | ||
| 790 | { | ||
| 791 | attribute => "text:custom4", | ||
| 792 | type => "string" | ||
| 793 | }, | ||
| 794 | custom5 => | ||
| 795 | { | ||
| 796 | attribute => "text:custom5", | ||
| 797 | type => "string" | ||
| 798 | }, | ||
| 799 | isbn => | ||
| 800 | { | ||
| 801 | attribute => "text:isbn", | ||
| 802 | type => "string" | ||
| 803 | }, | ||
| 804 | issn => | ||
| 805 | { | ||
| 806 | attribute => "text:issn", | ||
| 807 | type => "string" | ||
| 808 | }, | ||
| 809 | ); | ||
| 810 | #------------------------------------------------------------------------------ | ||
| 811 | %ODF::lpOD::ChangedRegion::ATTRIBUTE = | ||
| 812 | ( | ||
| 813 | id => | ||
| 814 | { | ||
| 815 | attribute => "text:id", | ||
| 816 | type => "ID" | ||
| 817 | }, | ||
| 818 | ); | ||
| 819 | #------------------------------------------------------------------------------ | ||
| 820 | %ODF::lpOD::Heading::ATTRIBUTE = | ||
| 821 | ( | ||
| 822 | style_name => | ||
| 823 | { | ||
| 824 | attribute => "text:style-name", | ||
| 825 | type => "styleNameRef" | ||
| 826 | }, | ||
| 827 | class_names => | ||
| 828 | { | ||
| 829 | attribute => "text:class-names", | ||
| 830 | type => "styleNameRefs" | ||
| 831 | }, | ||
| 832 | cond_style_name => | ||
| 833 | { | ||
| 834 | attribute => "text:cond-style-name", | ||
| 835 | type => "styleNameRef" | ||
| 836 | }, | ||
| 837 | outline_level => | ||
| 838 | { | ||
| 839 | attribute => "text:outline-level", | ||
| 840 | type => "positiveInteger" | ||
| 841 | }, | ||
| 842 | restart_numbering => | ||
| 843 | { | ||
| 844 | attribute => "text:restart-numbering", | ||
| 845 | type => "boolean" | ||
| 846 | }, | ||
| 847 | start_value => | ||
| 848 | { | ||
| 849 | attribute => "text:start-value", | ||
| 850 | type => "nonNegativeInteger" | ||
| 851 | }, | ||
| 852 | is_list_header => | ||
| 853 | { | ||
| 854 | attribute => "text:is-list-header", | ||
| 855 | type => "boolean" | ||
| 856 | }, | ||
| 857 | ); | ||
| 858 | #------------------------------------------------------------------------------ | ||
| 859 | %ODF::lpOD::List::ATTRIBUTE = | ||
| 860 | ( | ||
| 861 | style_name => | ||
| 862 | { | ||
| 863 | attribute => "text:style-name", | ||
| 864 | type => "styleNameRef" | ||
| 865 | }, | ||
| 866 | continue_numbering => | ||
| 867 | { | ||
| 868 | attribute => "text:continue-numbering", | ||
| 869 | type => "boolean" | ||
| 870 | }, | ||
| 871 | ); | ||
| 872 | #------------------------------------------------------------------------------ | ||
| 873 | %ODF::lpOD::ListStyle::ATTRIBUTE = | ||
| 874 | ( | ||
| 875 | name => | ||
| 876 | { | ||
| 877 | attribute => "style:name", | ||
| 878 | type => "styleName" | ||
| 879 | }, | ||
| 880 | display_name => | ||
| 881 | { | ||
| 882 | attribute => "style:display-name", | ||
| 883 | type => "string" | ||
| 884 | }, | ||
| 885 | consecutive_numbering => | ||
| 886 | { | ||
| 887 | attribute => "text:consecutive-numbering", | ||
| 888 | type => "boolean" | ||
| 889 | }, | ||
| 890 | ); | ||
| 891 | #------------------------------------------------------------------------------ | ||
| 892 | %ODF::lpOD::Note::ATTRIBUTE = | ||
| 893 | ( | ||
| 894 | note_class => | ||
| 895 | { | ||
| 896 | attribute => "text:note-class", | ||
| 897 | type => "Unknown" | ||
| 898 | }, | ||
| 899 | ); | ||
| 900 | #------------------------------------------------------------------------------ | ||
| 901 | %ODF::lpOD::Paragraph::ATTRIBUTE = | ||
| 902 | ( | ||
| 903 | style_name => | ||
| 904 | { | ||
| 905 | attribute => "text:style-name", | ||
| 906 | type => "styleNameRef" | ||
| 907 | }, | ||
| 908 | class_names => | ||
| 909 | { | ||
| 910 | attribute => "text:class-names", | ||
| 911 | type => "styleNameRefs" | ||
| 912 | }, | ||
| 913 | cond_style_name => | ||
| 914 | { | ||
| 915 | attribute => "text:cond-style-name", | ||
| 916 | type => "styleNameRef" | ||
| 917 | }, | ||
| 918 | ); | ||
| 919 | #------------------------------------------------------------------------------ | ||
| 920 | %ODF::lpOD::Section::ATTRIBUTE = | ||
| 921 | ( | ||
| 922 | style_name => | ||
| 923 | { | ||
| 924 | attribute => "text:style-name", | ||
| 925 | type => "styleNameRef" | ||
| 926 | }, | ||
| 927 | name => | ||
| 928 | { | ||
| 929 | attribute => "text:name", | ||
| 930 | type => "string" | ||
| 931 | }, | ||
| 932 | protected => | ||
| 933 | { | ||
| 934 | attribute => "text:protected", | ||
| 935 | type => "boolean" | ||
| 936 | }, | ||
| 937 | protection_key => | ||
| 938 | { | ||
| 939 | attribute => "text:protection-key", | ||
| 940 | type => "string" | ||
| 941 | }, | ||
| 942 | ); | ||
| 943 | #------------------------------------------------------------------------------ | ||
| 944 | %ODF::lpOD::TextElement::ATTRIBUTE = | ||
| 945 | ( | ||
| 946 | style_name => | ||
| 947 | { | ||
| 948 | attribute => "text:style-name", | ||
| 949 | type => "styleNameRef" | ||
| 950 | }, | ||
| 951 | class_names => | ||
| 952 | { | ||
| 953 | attribute => "text:class-names", | ||
| 954 | type => "styleNameRefs" | ||
| 955 | }, | ||
| 956 | ); | ||
| 957 | #------------------------------------------------------------------------------ | ||
| 958 | %ODF::lpOD::TOC::ATTRIBUTE = | ||
| 959 | ( | ||
| 960 | style_name => | ||
| 961 | { | ||
| 962 | attribute => "text:style-name", | ||
| 963 | type => "styleNameRef" | ||
| 964 | }, | ||
| 965 | name => | ||
| 966 | { | ||
| 967 | attribute => "text:name", | ||
| 968 | type => "string" | ||
| 969 | }, | ||
| 970 | protected => | ||
| 971 | { | ||
| 972 | attribute => "text:protected", | ||
| 973 | type => "boolean" | ||
| 974 | }, | ||
| 975 | protection_key => | ||
| 976 | { | ||
| 977 | attribute => "text:protection-key", | ||
| 978 | type => "string" | ||
| 979 | }, | ||
| 980 | ); | ||
| 981 | #------------------------------------------------------------------------------ | ||
| 982 | %ODF::lpOD::UserVariable::ATTRIBUTE = | ||
| 983 | ( | ||
| 984 | value_type => | ||
| 985 | { | ||
| 986 | attribute => "office:value-type", | ||
| 987 | type => "Unknown" | ||
| 988 | }, | ||
| 989 | value => | ||
| 990 | { | ||
| 991 | attribute => "office:value", | ||
| 992 | type => "double" | ||
| 993 | }, | ||
| 994 | value_type => | ||
| 995 | { | ||
| 996 | attribute => "office:value-type", | ||
| 997 | type => "Unknown" | ||
| 998 | }, | ||
| 999 | value => | ||
| 1000 | { | ||
| 1001 | attribute => "office:value", | ||
| 1002 | type => "double" | ||
| 1003 | }, | ||
| 1004 | value_type => | ||
| 1005 | { | ||
| 1006 | attribute => "office:value-type", | ||
| 1007 | type => "Unknown" | ||
| 1008 | }, | ||
| 1009 | value => | ||
| 1010 | { | ||
| 1011 | attribute => "office:value", | ||
| 1012 | type => "double" | ||
| 1013 | }, | ||
| 1014 | currency => | ||
| 1015 | { | ||
| 1016 | attribute => "office:currency", | ||
| 1017 | type => "string" | ||
| 1018 | }, | ||
| 1019 | value_type => | ||
| 1020 | { | ||
| 1021 | attribute => "office:value-type", | ||
| 1022 | type => "Unknown" | ||
| 1023 | }, | ||
| 1024 | date_value => | ||
| 1025 | { | ||
| 1026 | attribute => "office:date-value", | ||
| 1027 | type => "dateOrDateTime" | ||
| 1028 | }, | ||
| 1029 | value_type => | ||
| 1030 | { | ||
| 1031 | attribute => "office:value-type", | ||
| 1032 | type => "Unknown" | ||
| 1033 | }, | ||
| 1034 | time_value => | ||
| 1035 | { | ||
| 1036 | attribute => "office:time-value", | ||
| 1037 | type => "duration" | ||
| 1038 | }, | ||
| 1039 | value_type => | ||
| 1040 | { | ||
| 1041 | attribute => "office:value-type", | ||
| 1042 | type => "Unknown" | ||
| 1043 | }, | ||
| 1044 | boolean_value => | ||
| 1045 | { | ||
| 1046 | attribute => "office:boolean-value", | ||
| 1047 | type => "boolean" | ||
| 1048 | }, | ||
| 1049 | value_type => | ||
| 1050 | { | ||
| 1051 | attribute => "office:value-type", | ||
| 1052 | type => "Unknown" | ||
| 1053 | }, | ||
| 1054 | string_value => | ||
| 1055 | { | ||
| 1056 | attribute => "office:string-value", | ||
| 1057 | type => "string" | ||
| 1058 | }, | ||
| 1059 | name => | ||
| 1060 | { | ||
| 1061 | attribute => "text:name", | ||
| 1062 | type => "variableName" | ||
| 1063 | }, | ||
| 1064 | ); | ||
| 1065 | #------------------------------------------------------------------------------ | ||
| 1066 | %ODF::lpOD::SimpleVariable::ATTRIBUTE = | ||
| 1067 | ( | ||
| 1068 | value_type => | ||
| 1069 | { | ||
| 1070 | attribute => "office:value-type", | ||
| 1071 | type => "valueType" | ||
| 1072 | }, | ||
| 1073 | name => | ||
| 1074 | { | ||
| 1075 | attribute => "text:name", | ||
| 1076 | type => "variableName" | ||
| 1077 | }, | ||
| 1078 | ); | ||
| 1079 | #============================================================================== | ||
| 1080 | 1; |