LibreOffice Module sw (master)  1
Classes | Enumerations
crstate.hxx File Reference
#include <com/sun/star/text/HoriOrientation.hpp>
#include <tools/gen.hxx>
#include "swrect.hxx"
#include <memory>
Include dependency graph for crstate.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SwFillCursorPos
 
struct  Sw2LinesPos
 
struct  SwSpecialPos
 
struct  SwCursorMoveState
 

Enumerations

enum  SwFillMode {
  SwFillMode::Tab,
  SwFillMode::TabSpace,
  SwFillMode::Space,
  SwFillMode::Margin,
  SwFillMode::Indent
}
 
enum  MultiPortionType : sal_uInt8 {
  MultiPortionType::TWOLINE = 0,
  MultiPortionType::BIDI = 1,
  MultiPortionType::ROT_270 = 3,
  MultiPortionType::RUBY = 4,
  MultiPortionType::ROT_90 = 7
}
 
enum  SwSPExtendRange : sal_uInt8 {
  SwSPExtendRange::NONE,
  SwSPExtendRange::BEFORE,
  SwSPExtendRange::BEHIND
}
 SwSpecialPos. More...
 
enum  CursorMoveState {
  CursorMoveState::NONE,
  CursorMoveState::UpDown,
  CursorMoveState::RightMargin,
  CursorMoveState::LeftMargin,
  CursorMoveState::SetOnlyText,
  CursorMoveState::TableSel
}
 

Enumeration Type Documentation

enum CursorMoveState
strong
Enumerator
NONE 

default

UpDown 

Cursor Up/Down.

RightMargin 

at right margin

LeftMargin 

at left margin

SetOnlyText 

stay with the cursor inside text

TableSel 

not in repeated headlines

Definition at line 121 of file crstate.hxx.

enum MultiPortionType : sal_uInt8
strong
Enumerator
TWOLINE 
BIDI 
ROT_270 
RUBY 
ROT_90 

Definition at line 55 of file crstate.hxx.

enum SwFillMode
strong
Enumerator
Tab 

default, fill with tabs

TabSpace 

fill with spaces and tabs

Space 

fill with spaces

Margin 

only align left, center, right

Indent 

by left paragraph indentation

Definition at line 28 of file crstate.hxx.

enum SwSPExtendRange : sal_uInt8
strong

SwSpecialPos.

This structure is used to pass some additional information during the call of SwTextFrame::GetCharRect(). An SwSpecialPos defines a position inside a portion which does not have a representation in the core string or which is only represented by one position, e.g., field portions, number portions, ergo sum and quo vadis portions.

nCharOfst - The offset inside the special portion. Fields and its follow fields are treated as one long special portion. nLineOfst - The number of lines between the beginning of the special portion and nCharOfst. A line offset required to be nCharOfst relative to the beginning of the line. nExtendRange - Setting this identifies portions which are in front or behind the core string (number portion, quo vadis)

Examples 1)

Get the position of the second character inside a number portion:
    nCharOfst = 2; nLineOfst = 0; nExtendRange = SP_EXTEND_RANGE_BEFORE;
    Call SwTextFrame:::GetCharRect with core string position 0.

Example 2)

Field A - Length = 5
Follow field B - Length = 9
Get the position of the third character in follow field B, core position
of field A is 33.
    nCharOfst = 7; nLineOfst = 0; nExtendRange = SP_EXTEND_RANGE_NONE;
    Call SwTextFrame:::GetCharRect with core string position 33.
Enumerator
NONE 
BEFORE 
BEHIND 

Definition at line 103 of file crstate.hxx.