atkwrapper.cxx (9f62ea84) atkwrapper.cxx (93ed1f29)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 299 unchanged lines hidden (view full) ---

308 roleMap[accessibility::AccessibleRole::TEXT_FRAME] = registerRole("text frame");
309 roleMap[accessibility::AccessibleRole::IMAGE_MAP] = registerRole("image map");
310 roleMap[accessibility::AccessibleRole::NOTE] = registerRole("note");
311 roleMap[accessibility::AccessibleRole::TREE_ITEM] = registerRole("tree item");
312
313 initialized = true;
314 }
315
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 299 unchanged lines hidden (view full) ---

308 roleMap[accessibility::AccessibleRole::TEXT_FRAME] = registerRole("text frame");
309 roleMap[accessibility::AccessibleRole::IMAGE_MAP] = registerRole("image map");
310 roleMap[accessibility::AccessibleRole::NOTE] = registerRole("note");
311 roleMap[accessibility::AccessibleRole::TREE_ITEM] = registerRole("tree item");
312
313 initialized = true;
314 }
315
316 static const sal_Int32 nMapSize = sizeof(roleMap)/sizeof(sal_Int16);
316 static const sal_Int32 nMapSize = sizeof(roleMap)/sizeof(roleMap[0]);
317 if( 0 <= nRole && nMapSize > nRole )
318 role = roleMap[nRole];
319
320 return role;
321}
322
323
324/*****************************************************************************/

--- 625 unchanged lines hidden ---
317 if( 0 <= nRole && nMapSize > nRole )
318 role = roleMap[nRole];
319
320 return role;
321}
322
323
324/*****************************************************************************/

--- 625 unchanged lines hidden ---