Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportRenderObjects.cpp
Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Line(s) | |||||
464 | // | 464 | // | ||
465 | 465 | | |||
466 | class Q_DECL_HIDDEN OROTextBox::Private | 466 | class Q_DECL_HIDDEN OROTextBox::Private | ||
467 | { | 467 | { | ||
468 | public: | 468 | public: | ||
469 | Private(); | 469 | Private(); | ||
470 | ~Private(); | 470 | ~Private(); | ||
471 | QString text; | 471 | QString text; | ||
472 | KRTextStyleData textStyle; | 472 | KReportTextStyleData textStyle; | ||
473 | KReportLineStyle lineStyle; | 473 | KReportLineStyle lineStyle; | ||
474 | Qt::Alignment alignment; | 474 | Qt::Alignment alignment; | ||
475 | int flags; // Qt::AlignmentFlag and Qt::TextFlag OR'd | 475 | int flags; // Qt::AlignmentFlag and Qt::TextFlag OR'd | ||
476 | bool wordWrap; | 476 | bool wordWrap; | ||
477 | bool canGrow; | 477 | bool canGrow; | ||
478 | bool requiresPostProcessing; | 478 | bool requiresPostProcessing; | ||
479 | 479 | | |||
480 | }; | 480 | }; | ||
Show All 24 Lines | 504 | { | |||
505 | delete d; | 505 | delete d; | ||
506 | } | 506 | } | ||
507 | 507 | | |||
508 | void OROTextBox::setText(const QString & s) | 508 | void OROTextBox::setText(const QString & s) | ||
509 | { | 509 | { | ||
510 | d->text = s; | 510 | d->text = s; | ||
511 | } | 511 | } | ||
512 | 512 | | |||
513 | void OROTextBox::setTextStyle(const KRTextStyleData & ts) | 513 | void OROTextBox::setTextStyle(const KReportTextStyleData & ts) | ||
514 | { | 514 | { | ||
515 | d->textStyle = ts; | 515 | d->textStyle = ts; | ||
516 | } | 516 | } | ||
517 | 517 | | |||
518 | void OROTextBox::setLineStyle(const KReportLineStyle & ls) | 518 | void OROTextBox::setLineStyle(const KReportLineStyle & ls) | ||
519 | { | 519 | { | ||
520 | d->lineStyle = ls; | 520 | d->lineStyle = ls; | ||
521 | } | 521 | } | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 564 | { | |||
565 | d->wordWrap = ww; | 565 | d->wordWrap = ww; | ||
566 | } | 566 | } | ||
567 | 567 | | |||
568 | QString OROTextBox::text() const | 568 | QString OROTextBox::text() const | ||
569 | { | 569 | { | ||
570 | return d->text; | 570 | return d->text; | ||
571 | } | 571 | } | ||
572 | 572 | | |||
573 | KRTextStyleData OROTextBox::textStyle() const | 573 | KReportTextStyleData OROTextBox::textStyle() const | ||
574 | { | 574 | { | ||
575 | return d->textStyle; | 575 | return d->textStyle; | ||
576 | } | 576 | } | ||
577 | 577 | | |||
578 | bool OROTextBox::wordWrap() const | 578 | bool OROTextBox::wordWrap() const | ||
579 | { | 579 | { | ||
580 | return d->wordWrap; | 580 | return d->wordWrap; | ||
581 | } | 581 | } | ||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |