LCOV - code coverage report
Current view: top level - libreoffice/vcl/unx/gtk/a11y - atkwrapper.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 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 __ATK_WRAPPER_HXX__
      21             : #define __ATK_WRAPPER_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             : 
      47             : struct _AtkObjectWrapper
      48             : {
      49             :     AtkObject aParent;
      50             : 
      51             :     ::com::sun::star::accessibility::XAccessible               *mpAccessible;
      52             :     ::com::sun::star::accessibility::XAccessibleContext        *mpContext;
      53             :     ::com::sun::star::accessibility::XAccessibleAction         *mpAction;
      54             :     ::com::sun::star::accessibility::XAccessibleComponent      *mpComponent;
      55             :     ::com::sun::star::accessibility::XAccessibleEditableText   *mpEditableText;
      56             :     ::com::sun::star::accessibility::XAccessibleHypertext      *mpHypertext;
      57             :     ::com::sun::star::accessibility::XAccessibleImage          *mpImage;
      58             :     ::com::sun::star::accessibility::XAccessibleMultiLineText  *mpMultiLineText;
      59             :     ::com::sun::star::accessibility::XAccessibleSelection      *mpSelection;
      60             :     ::com::sun::star::accessibility::XAccessibleTable          *mpTable;
      61             :     ::com::sun::star::accessibility::XAccessibleText           *mpText;
      62             :     ::com::sun::star::accessibility::XAccessibleTextMarkup     *mpTextMarkup;
      63             :     ::com::sun::star::accessibility::XAccessibleTextAttributes *mpTextAttributes;
      64             :     ::com::sun::star::accessibility::XAccessibleValue          *mpValue;
      65             : 
      66             :     AtkObject *child_about_to_be_removed;
      67             :     gint       index_of_child_about_to_be_removed;
      68             : //    ::rtl::OString * m_pKeyBindings
      69             : };
      70             : 
      71             : struct _AtkObjectWrapperClass
      72             : {
      73             :     AtkObjectClass aParentClass;
      74             : };
      75             : 
      76             : GType                  atk_object_wrapper_get_type (void) G_GNUC_CONST;
      77             : AtkObject *            atk_object_wrapper_ref(
      78             :     const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible,
      79             :     bool create = true );
      80             : 
      81             : AtkObject *            atk_object_wrapper_new(
      82             :     const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible,
      83             :     AtkObject* parent = NULL );
      84             : 
      85             : void                   atk_object_wrapper_add_child(AtkObjectWrapper* wrapper, AtkObject *child, gint index);
      86             : void                   atk_object_wrapper_remove_child(AtkObjectWrapper* wrapper, AtkObject *child, gint index);
      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 rtl::OUString& rString )
     110             : {
     111           0 :     rtl::OString aUtf8 = rtl::OUStringToOString( rString, RTL_TEXTENCODING_UTF8 );
     112           0 :     return g_strdup( aUtf8.getStr() );
     113             : }
     114             : 
     115             : #define OUStringToConstGChar( string ) rtl::OUStringToOString( string, RTL_TEXTENCODING_UTF8 ).getStr()
     116             : 
     117             : #endif /* __ATK_WRAPPER_HXX__ */
     118             : 
     119             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10