LCOV - code coverage report
Current view: top level - vcl/unx/gtk/a11y - atkwrapper.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 3 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_VCL_UNX_GTK_A11Y_ATKWRAPPER_HXX
      21             : #define INCLUDED_VCL_UNX_GTK_A11Y_ATKWRAPPER_HXX
      22             : 
      23             : #include <atk/atk.h>
      24             : #include <com/sun/star/accessibility/XAccessible.hpp>
      25             : 
      26             : extern "C" {
      27             : 
      28             : typedef struct _AtkObjectWrapper      AtkObjectWrapper;
      29             : typedef struct _AtkObjectWrapperClass AtkObjectWrapperClass;
      30             : 
      31             : namespace com { namespace sun { namespace star { namespace accessibility {
      32             :     class XAccessibleAction;
      33             :     class XAccessibleComponent;
      34             :     class XAccessibleEditableText;
      35             :     class XAccessibleHypertext;
      36             :     class XAccessibleImage;
      37             :     class XAccessibleMultiLineText;
      38             :     class XAccessibleSelection;
      39             :     class XAccessibleTable;
      40             :     class XAccessibleText;
      41             :     class XAccessibleTextMarkup;
      42             :     class XAccessibleTextAttributes;
      43             :     class XAccessibleValue;
      44             : } } } }
      45             : 
      46             : struct _AtkObjectWrapper
      47             : {
      48             :     AtkObject aParent;
      49             : 
      50             :     ::com::sun::star::accessibility::XAccessible               *mpAccessible;
      51             :     ::com::sun::star::accessibility::XAccessibleContext        *mpContext;
      52             :     ::com::sun::star::accessibility::XAccessibleAction         *mpAction;
      53             :     ::com::sun::star::accessibility::XAccessibleComponent      *mpComponent;
      54             :     ::com::sun::star::accessibility::XAccessibleEditableText   *mpEditableText;
      55             :     ::com::sun::star::accessibility::XAccessibleHypertext      *mpHypertext;
      56             :     ::com::sun::star::accessibility::XAccessibleImage          *mpImage;
      57             :     ::com::sun::star::accessibility::XAccessibleMultiLineText  *mpMultiLineText;
      58             :     ::com::sun::star::accessibility::XAccessibleSelection      *mpSelection;
      59             :     ::com::sun::star::accessibility::XAccessibleTable          *mpTable;
      60             :     ::com::sun::star::accessibility::XAccessibleText           *mpText;
      61             :     ::com::sun::star::accessibility::XAccessibleTextMarkup     *mpTextMarkup;
      62             :     ::com::sun::star::accessibility::XAccessibleTextAttributes *mpTextAttributes;
      63             :     ::com::sun::star::accessibility::XAccessibleValue          *mpValue;
      64             : 
      65             :     AtkObject *child_about_to_be_removed;
      66             :     gint       index_of_child_about_to_be_removed;
      67             : //    OString * m_pKeyBindings
      68             : };
      69             : 
      70             : struct _AtkObjectWrapperClass
      71             : {
      72             :     AtkObjectClass aParentClass;
      73             : };
      74             : 
      75             : GType                  atk_object_wrapper_get_type() G_GNUC_CONST;
      76             : AtkObject *            atk_object_wrapper_ref(
      77             :     const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible,
      78             :     bool create = true );
      79             : 
      80             : AtkObject *            atk_object_wrapper_new(
      81             :     const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible,
      82             :     AtkObject* parent = NULL );
      83             : 
      84             : void                   atk_object_wrapper_add_child(AtkObjectWrapper* wrapper, AtkObject *child, gint index);
      85             : void                   atk_object_wrapper_remove_child(AtkObjectWrapper* wrapper, AtkObject *child, gint index);
      86             : void                   atk_object_wrapper_set_role(AtkObjectWrapper* wrapper, sal_Int16 role);
      87             : 
      88             : void                   atk_object_wrapper_dispose(AtkObjectWrapper* wrapper);
      89             : 
      90             : AtkStateType mapAtkState( sal_Int16 nState );
      91             : 
      92             : void                   actionIfaceInit(AtkActionIface *iface);
      93             : void                   componentIfaceInit(AtkComponentIface *iface);
      94             : void                   editableTextIfaceInit(AtkEditableTextIface *iface);
      95             : void                   hypertextIfaceInit(AtkHypertextIface *iface);
      96             : void                   imageIfaceInit(AtkImageIface *iface);
      97             : void                   selectionIfaceInit(AtkSelectionIface *iface);
      98             : void                   tableIfaceInit(AtkTableIface *iface);
      99             : void                   textIfaceInit(AtkTextIface *iface);
     100             : void                   valueIfaceInit(AtkValueIface *iface);
     101             : 
     102             : } // extern "C"
     103             : 
     104             : #define ATK_TYPE_OBJECT_WRAPPER atk_object_wrapper_get_type()
     105             : #define ATK_OBJECT_WRAPPER(obj) \
     106             :     (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT_WRAPPER, AtkObjectWrapper))
     107             : 
     108             : static inline gchar *
     109           0 : OUStringToGChar(const OUString& rString )
     110             : {
     111           0 :     OString aUtf8 = OUStringToOString( rString, RTL_TEXTENCODING_UTF8 );
     112           0 :     return g_strdup( aUtf8.getStr() );
     113             : }
     114             : 
     115             : #define OUStringToConstGChar( string ) OUStringToOString( string, RTL_TEXTENCODING_UTF8 ).getStr()
     116             : 
     117             : #endif // INCLUDED_VCL_UNX_GTK_A11Y_ATKWRAPPER_HXX
     118             : 
     119             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11