~ubuntu-branches/ubuntu/wily/atkmm1.6/wily

« back to all changes in this revision

Viewing changes to atk/atkmm/text.cc

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2011-01-24 02:45:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110124024518-nng7ttflo7gsm5ow
Tags: 2.22.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1318
1318
 
1319
1319
Glib::ustring Text::get_text_after_offset(int offset, TextBoundary boundary_type, int& start_offset, int& end_offset) const
1320
1320
{
1321
 
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_text_after_offset(const_cast<AtkText*>(gobj()), offset, ((AtkTextBoundary)(boundary_type)), &start_offset, &end_offset));
 
1321
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_text_after_offset(const_cast<AtkText*>(gobj()), offset, ((AtkTextBoundary)(boundary_type)), &(start_offset), &(end_offset)));
1322
1322
}
1323
1323
 
1324
1324
Glib::ustring Text::get_text_at_offset(int offset, TextBoundary boundary_type, int& start_offset, int& end_offset) const
1325
1325
{
1326
 
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_text_at_offset(const_cast<AtkText*>(gobj()), offset, ((AtkTextBoundary)(boundary_type)), &start_offset, &end_offset));
 
1326
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_text_at_offset(const_cast<AtkText*>(gobj()), offset, ((AtkTextBoundary)(boundary_type)), &(start_offset), &(end_offset)));
1327
1327
}
1328
1328
 
1329
1329
Glib::ustring Text::get_text_before_offset(int offset, TextBoundary boundary_type, int& start_offset, int& end_offset) const
1330
1330
{
1331
 
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_text_before_offset(const_cast<AtkText*>(gobj()), offset, ((AtkTextBoundary)(boundary_type)), &start_offset, &end_offset));
 
1331
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_text_before_offset(const_cast<AtkText*>(gobj()), offset, ((AtkTextBoundary)(boundary_type)), &(start_offset), &(end_offset)));
1332
1332
}
1333
1333
 
1334
1334
int Text::get_caret_offset() const
1338
1338
 
1339
1339
void Text::get_character_extents(int offset, int& x, int& y, int& width, int& height, CoordType coords) const
1340
1340
{
1341
 
atk_text_get_character_extents(const_cast<AtkText*>(gobj()), offset, &x, &y, &width, &height, ((AtkCoordType)(coords))); 
 
1341
atk_text_get_character_extents(const_cast<AtkText*>(gobj()), offset, &(x), &(y), &(width), &(height), ((AtkCoordType)(coords))); 
1342
1342
}
1343
1343
 
1344
1344
AttributeSet Text::get_run_attributes(int offset, int& start_offset, int& end_offset) const
1345
1345
{
1346
 
  return AttributeSet(atk_text_get_run_attributes(const_cast<AtkText*>(gobj()), offset, &start_offset, &end_offset), Glib::OWNERSHIP_DEEP);
 
1346
  return AttributeSet(atk_text_get_run_attributes(const_cast<AtkText*>(gobj()), offset, &(start_offset), &(end_offset)), Glib::OWNERSHIP_DEEP);
1347
1347
}
1348
1348
 
1349
1349
AttributeSet Text::get_default_attributes() const
1368
1368
 
1369
1369
Glib::ustring Text::get_selection(int selection_num, int& start_offset, int& end_offset) const
1370
1370
{
1371
 
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_selection(const_cast<AtkText*>(gobj()), selection_num, &start_offset, &end_offset));
 
1371
  return Glib::convert_return_gchar_ptr_to_ustring(atk_text_get_selection(const_cast<AtkText*>(gobj()), selection_num, &(start_offset), &(end_offset)));
1372
1372
}
1373
1373
 
1374
1374
bool Text::add_selection(int start_offset, int end_offset)
1501
1501
)  );
1502
1502
 
1503
1503
  if(base && base->get_text_after_offset)
1504
 
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_text_after_offset)(const_cast<AtkText*>(gobj()),offset,((AtkTextBoundary)(boundary_type)),&start_offset,&end_offset));
 
1504
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_text_after_offset)(const_cast<AtkText*>(gobj()),offset,((AtkTextBoundary)(boundary_type)),&(start_offset),&(end_offset)));
1505
1505
 
1506
1506
  typedef Glib::ustring RType;
1507
1507
  return RType();
1514
1514
)  );
1515
1515
 
1516
1516
  if(base && base->get_text_at_offset)
1517
 
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_text_at_offset)(const_cast<AtkText*>(gobj()),offset,((AtkTextBoundary)(boundary_type)),&start_offset,&end_offset));
 
1517
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_text_at_offset)(const_cast<AtkText*>(gobj()),offset,((AtkTextBoundary)(boundary_type)),&(start_offset),&(end_offset)));
1518
1518
 
1519
1519
  typedef Glib::ustring RType;
1520
1520
  return RType();
1527
1527
)  );
1528
1528
 
1529
1529
  if(base && base->get_text_before_offset)
1530
 
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_text_before_offset)(const_cast<AtkText*>(gobj()),offset,((AtkTextBoundary)(boundary_type)),&start_offset,&end_offset));
 
1530
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_text_before_offset)(const_cast<AtkText*>(gobj()),offset,((AtkTextBoundary)(boundary_type)),&(start_offset),&(end_offset)));
1531
1531
 
1532
1532
  typedef Glib::ustring RType;
1533
1533
  return RType();
1553
1553
)  );
1554
1554
 
1555
1555
  if(base && base->get_character_extents)
1556
 
    (*base->get_character_extents)(const_cast<AtkText*>(gobj()),offset,&x,&y,&width,&height,((AtkCoordType)(coords)));
 
1556
    (*base->get_character_extents)(const_cast<AtkText*>(gobj()),offset,&(x),&(y),&(width),&(height),((AtkCoordType)(coords)));
1557
1557
}
1558
1558
AtkAttributeSet* Atk::Text::get_run_attributes_vfunc(int offset, int& start_offset, int& end_offset) const
1559
1559
{
1563
1563
)  );
1564
1564
 
1565
1565
  if(base && base->get_run_attributes)
1566
 
    return (*base->get_run_attributes)(const_cast<AtkText*>(gobj()),offset,&start_offset,&end_offset);
 
1566
    return (*base->get_run_attributes)(const_cast<AtkText*>(gobj()),offset,&(start_offset),&(end_offset));
1567
1567
 
1568
1568
  typedef AtkAttributeSet* RType;
1569
1569
  return RType();
1628
1628
)  );
1629
1629
 
1630
1630
  if(base && base->get_selection)
1631
 
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_selection)(const_cast<AtkText*>(gobj()),selection_num,&start_offset,&end_offset));
 
1631
    return Glib::convert_const_gchar_ptr_to_ustring((*base->get_selection)(const_cast<AtkText*>(gobj()),selection_num,&(start_offset),&(end_offset)));
1632
1632
 
1633
1633
  typedef Glib::ustring RType;
1634
1634
  return RType();