• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
InlineTag Struct Reference

#include <catalogstring.h>

Public Types

enum  InlineElement {
  _unknown, bpt, ept, ph,
  it, mrk, g, sub,
  _pairedXmlTagDelimiter, x, bx, ex,
  InlineElementCount
}
 

Public Member Functions

 InlineTag ()
 
 InlineTag (int start_, int end_, InlineElement type_, QString id_=QString(), QString xid_=QString(), QString equivText_=QString(), QString ctype_=QString())
 
QString displayName () const
 
const char * getElementName () const
 
InlineTag getPlaceholder () const
 
bool isEmpty () const
 
bool isPaired () const
 
const char * name () const
 
bool operator< (const InlineTag &other) const
 

Static Public Member Functions

static const char * getElementName (InlineElement type)
 
static InlineElement getElementType (const QByteArray &)
 
static bool isPaired (InlineElement type)
 

Public Attributes

QString ctype
 
int end
 
QString equivText
 
QString id
 
int start
 
InlineElement type
 
QString xid
 

Detailed Description

data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE_SYMBOL in the 'plainttext' and a struct TagRange

describes which tag is behind TAGRANGE_IMAGE_SYMBOL char (or chars – starting and ending) in source or target string start==end for non-paired tags

Definition at line 44 of file catalogstring.h.

Member Enumeration Documentation

enum InlineTag::InlineElement
See also
http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html
Enumerator
_unknown 
bpt 
ept 
ph 
it 
mrk 
g 
sub 
_pairedXmlTagDelimiter 
x 
bx 
ex 
InlineElementCount 

Definition at line 49 of file catalogstring.h.

Constructor & Destructor Documentation

InlineTag::InlineTag ( )
inlineexplicit

Definition at line 76 of file catalogstring.h.

InlineTag::InlineTag ( int  start_,
int  end_,
InlineElement  type_,
QString  id_ = QString(),
QString  xid_ = QString(),
QString  equivText_ = QString(),
QString  ctype_ = QString() 
)
inline

Definition at line 78 of file catalogstring.h.

Member Function Documentation

QString InlineTag::displayName ( ) const

Definition at line 68 of file catalogstring.cpp.

const char * InlineTag::getElementName ( InlineElement  type)
static

Definition at line 29 of file catalogstring.cpp.

const char* InlineTag::getElementName ( ) const
inline

Definition at line 103 of file catalogstring.h.

InlineTag::InlineElement InlineTag::getElementType ( const QByteArray &  tag)
static
Returns
0 if type is unknown

Definition at line 58 of file catalogstring.cpp.

InlineTag InlineTag::getPlaceholder ( ) const

used to denote tag that doesn't present in target, to have parallel numbering in view

Returns
TagRange object prototype to be inserted into target
See also
isEmpty()

Definition at line 50 of file catalogstring.cpp.

bool InlineTag::isEmpty ( ) const
inline

for situations when target doesn't contain tag (of the same type and with the same id) from source true means that the object corresponds to some tag in source, but target does not contain it.

See also
getPlaceholder()

Definition at line 89 of file catalogstring.h.

static bool InlineTag::isPaired ( InlineElement  type)
inlinestatic

Definition at line 105 of file catalogstring.h.

bool InlineTag::isPaired ( ) const
inline

Definition at line 106 of file catalogstring.h.

const char* InlineTag::name ( ) const
inline

Definition at line 104 of file catalogstring.h.

bool InlineTag::operator< ( const InlineTag &  other) const
inline

Definition at line 110 of file catalogstring.h.

Member Data Documentation

QString InlineTag::ctype

Definition at line 74 of file catalogstring.h.

int InlineTag::end

Definition at line 69 of file catalogstring.h.

QString InlineTag::equivText

Definition at line 73 of file catalogstring.h.

QString InlineTag::id

Definition at line 71 of file catalogstring.h.

int InlineTag::start

Definition at line 68 of file catalogstring.h.

InlineElement InlineTag::type

Definition at line 70 of file catalogstring.h.

QString InlineTag::xid

Definition at line 72 of file catalogstring.h.


The documentation for this struct was generated from the following files:
  • catalogstring.h
  • catalogstring.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal