LCOV - code coverage report
Current view: top level - xmlscript/source/xmldlg_imexp - xmldlg_expmodels.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 829 0.0 %
Date: 2012-08-25 Functions: 0 29 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 3001 0.0 %

           Branch data     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                 :            : #include "exp_share.hxx"
      21                 :            : 
      22                 :            : #include <com/sun/star/form/binding/XListEntrySink.hpp>
      23                 :            : #include <com/sun/star/form/binding/XBindableValue.hpp>
      24                 :            : #include <com/sun/star/form/binding/XValueBinding.hpp>
      25                 :            : #include <com/sun/star/table/CellAddress.hpp>
      26                 :            : #include <com/sun/star/table/CellRangeAddress.hpp>
      27                 :            : #include <com/sun/star/util/XNumberFormatsSupplier.hpp>
      28                 :            : #include <com/sun/star/document/XStorageBasedDocument.hpp>
      29                 :            : #include <com/sun/star/document/XGraphicObjectResolver.hpp>
      30                 :            : #include <comphelper/componentcontext.hxx>
      31                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      32                 :            : 
      33                 :            : using namespace ::com::sun::star;
      34                 :            : using namespace ::com::sun::star::uno;
      35                 :            : using ::rtl::OUString;
      36                 :            : 
      37                 :            : namespace xmlscript
      38                 :            : {
      39                 :            : 
      40                 :          0 : static inline bool readBorderProps(
      41                 :            :     ElementDescriptor * element, Style & style )
      42                 :            : {
      43 [ #  # ][ #  # ]:          0 :     if (element->readProp( &style._border, OUSTR("Border") )) {
      44         [ #  # ]:          0 :         if (style._border == BORDER_SIMPLE /* simple */)
      45                 :            :         {
      46 [ #  # ][ #  # ]:          0 :             if (element->readProp( &style._borderColor, OUSTR("BorderColor") ))
      47                 :          0 :                 style._border = BORDER_SIMPLE_COLOR;
      48                 :            :         }
      49                 :          0 :         return true;
      50                 :            :     }
      51                 :          0 :     return false;
      52                 :            : }
      53                 :            : 
      54                 :          0 : static inline bool readFontProps( ElementDescriptor * element, Style & style )
      55                 :            : {
      56                 :            :     bool ret = element->readProp(
      57         [ #  # ]:          0 :         &style._descr, OUSTR("FontDescriptor") );
      58                 :            :     ret |= element->readProp(
      59         [ #  # ]:          0 :         &style._fontEmphasisMark, OUSTR("FontEmphasisMark") );
      60                 :            :     ret |= element->readProp(
      61         [ #  # ]:          0 :         &style._fontRelief, OUSTR("FontRelief") );
      62                 :          0 :     return ret;
      63                 :            : }
      64                 :            : 
      65                 :            : //__________________________________________________________________________________________________
      66                 :          0 : void ElementDescriptor::readMultiPageModel( StyleBag * all_styles )
      67                 :            : {
      68                 :            :     // collect styles
      69                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
      70 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
      71                 :          0 :         aStyle._set |= 0x1;
      72 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
      73                 :          0 :         aStyle._set |= 0x2;
      74 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
      75                 :          0 :         aStyle._set |= 0x20;
      76 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
      77                 :          0 :         aStyle._set |= 0x8;
      78         [ #  # ]:          0 :     if (aStyle._set)
      79                 :            :     {
      80                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
      81 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
      82                 :            :     }
      83                 :            : 
      84                 :            :     // collect elements
      85         [ #  # ]:          0 :     readDefaults();
      86                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiPageValue") ),
      87 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
      88 [ #  # ][ #  # ]:          0 :     Any aDecorationAny( _xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Decoration") ) ) );
                 [ #  # ]
      89                 :          0 :     bool bDecoration = sal_True;
      90 [ #  # ][ #  # ]:          0 :     if ( (aDecorationAny >>= bDecoration) && !bDecoration )
                 [ #  # ]
      91 [ #  # ][ #  # ]:          0 :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":withtabs") ), OUString( RTL_CONSTASCII_USTRINGPARAM("false") ) );
                 [ #  # ]
      92                 :            : 
      93         [ #  # ]:          0 :     readEvents();
      94         [ #  # ]:          0 :     uno::Reference< container::XNameContainer > xPagesContainer( _xProps, uno::UNO_QUERY );
      95 [ #  # ][ #  # ]:          0 :     if ( xPagesContainer.is() && xPagesContainer->getElementNames().getLength() )
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
           [ #  #  #  # ]
      96                 :            :     {
      97 [ #  # ][ #  # ]:          0 :         ElementDescriptor * pElem = new ElementDescriptor( _xProps, _xPropState, OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":bulletinboard") ), _xDocument );
      98         [ #  # ]:          0 :         pElem->readBullitinBoard( all_styles );
      99 [ #  # ][ #  # ]:          0 :         addSubElement( pElem );
                 [ #  # ]
     100                 :          0 :     }
     101                 :          0 : }
     102                 :            : //__________________________________________________________________________________________________
     103                 :          0 : void ElementDescriptor::readFrameModel( StyleBag * all_styles )
     104                 :            : {
     105                 :            :     // collect styles
     106                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
     107                 :            : 
     108 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     109                 :          0 :         aStyle._set |= 0x2;
     110 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     111                 :          0 :         aStyle._set |= 0x20;
     112 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     113                 :          0 :         aStyle._set |= 0x8;
     114         [ #  # ]:          0 :     if (aStyle._set)
     115                 :            :     {
     116                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     117 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     118                 :            :     }
     119                 :            : 
     120                 :            :     // collect elements
     121         [ #  # ]:          0 :     readDefaults();
     122                 :          0 :     OUString aTitle;
     123                 :            : 
     124 [ #  # ][ #  # ]:          0 :     if ( readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ) ) >>= aTitle)
                 [ #  # ]
     125                 :            :     {
     126                 :            :         ElementDescriptor * title = new ElementDescriptor(
     127                 :            :             _xProps, _xPropState,
     128 [ #  # ][ #  # ]:          0 :             OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":title") ), _xDocument );
     129                 :            :         title->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ),
     130 [ #  # ][ #  # ]:          0 :                              aTitle );
     131 [ #  # ][ #  # ]:          0 :         addSubElement( title );
                 [ #  # ]
     132                 :            :     }
     133                 :            : 
     134         [ #  # ]:          0 :     uno::Reference< container::XNameContainer > xControlContainer( _xProps, uno::UNO_QUERY );
     135 [ #  # ][ #  # ]:          0 :     if ( xControlContainer.is() && xControlContainer->getElementNames().getLength() )
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
           [ #  #  #  # ]
     136                 :            :     {
     137 [ #  # ][ #  # ]:          0 :         ElementDescriptor * pElem = new ElementDescriptor( _xProps, _xPropState, OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":bulletinboard") ), _xDocument );
     138         [ #  # ]:          0 :         pElem->readBullitinBoard( all_styles );
     139 [ #  # ][ #  # ]:          0 :         addSubElement( pElem );
                 [ #  # ]
     140                 :            :     }
     141         [ #  # ]:          0 :     readEvents();
     142                 :          0 : }
     143                 :            : //__________________________________________________________________________________________________
     144                 :          0 : void ElementDescriptor::readPageModel( StyleBag * all_styles )
     145                 :            : {
     146                 :            :     // collect styles
     147                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
     148 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     149                 :          0 :         aStyle._set |= 0x1;
     150 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     151                 :          0 :         aStyle._set |= 0x2;
     152 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     153                 :          0 :         aStyle._set |= 0x20;
     154 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     155                 :          0 :         aStyle._set |= 0x8;
     156         [ #  # ]:          0 :     if (aStyle._set)
     157                 :            :     {
     158                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     159 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     160                 :            :     }
     161                 :            : 
     162                 :            :     // collect elements
     163         [ #  # ]:          0 :     readDefaults();
     164                 :          0 :     rtl::OUString aTitle;
     165                 :            :     readStringAttr(
     166                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
     167 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":title") ) );
                 [ #  # ]
     168         [ #  # ]:          0 :     uno::Reference< container::XNameContainer > xControlContainer( _xProps, uno::UNO_QUERY );
     169 [ #  # ][ #  # ]:          0 :     if ( xControlContainer.is() && xControlContainer->getElementNames().getLength() )
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
           [ #  #  #  # ]
     170                 :            :     {
     171 [ #  # ][ #  # ]:          0 :         ElementDescriptor * pElem = new ElementDescriptor( _xProps, _xPropState, OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":bulletinboard") ), _xDocument );
     172         [ #  # ]:          0 :         pElem->readBullitinBoard( all_styles );
     173 [ #  # ][ #  # ]:          0 :         addSubElement( pElem );
                 [ #  # ]
     174                 :            :     }
     175         [ #  # ]:          0 :     readEvents();
     176                 :          0 : }
     177                 :            : 
     178                 :          0 : void ElementDescriptor::readButtonModel( StyleBag * all_styles )
     179                 :            :     SAL_THROW( (Exception) )
     180                 :            : {
     181                 :            :     // collect styles
     182                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
     183 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     184                 :          0 :         aStyle._set |= 0x1;
     185 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     186                 :          0 :         aStyle._set |= 0x2;
     187 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     188                 :          0 :         aStyle._set |= 0x20;
     189 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     190                 :          0 :         aStyle._set |= 0x8;
     191         [ #  # ]:          0 :     if (aStyle._set)
     192                 :            :     {
     193                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     194 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     195                 :            :     }
     196                 :            : 
     197                 :            :     // collect elements
     198         [ #  # ]:          0 :     readDefaults();
     199                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     200 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     201                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultButton") ),
     202 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":default") ) );
                 [ #  # ]
     203                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
     204 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     205                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     206 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     207                 :            :     readVerticalAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
     208 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":valign") ) );
                 [ #  # ]
     209                 :            :     readButtonTypeAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("PushButtonType") ),
     210 [ #  # ][ #  # ]:          0 :                         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":button-type") ) );
                 [ #  # ]
     211                 :            :     readImageURLAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
     212 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-src") ) );
                 [ #  # ]
     213                 :            : 
     214                 :            : 
     215                 :            :     readImagePositionAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
     216 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-position") ) );
                 [ #  # ]
     217                 :            :     readImageAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageAlign") ),
     218 [ #  # ][ #  # ]:          0 :                         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-align") ) );
                 [ #  # ]
     219 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Repeat") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
     220                 :            :         readLongAttr( OUSTR("RepeatDelay"),
     221 [ #  # ][ #  # ]:          0 :                       OUSTR(XMLNS_DIALOGS_PREFIX ":repeat"), true /* force */ );
                 [ #  # ]
     222 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Toggle") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
     223 [ #  # ][ #  # ]:          0 :         addAttribute( OUSTR(XMLNS_DIALOGS_PREFIX ":toggled"), OUSTR("1") );
                 [ #  # ]
     224                 :            :     readBoolAttr( OUSTR("FocusOnClick"),
     225 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":grab-focus") );
                 [ #  # ]
     226                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
     227 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
                 [ #  # ]
     228                 :            : 
     229                 :            : 
     230                 :            :     // State
     231                 :          0 :     sal_Int16 nState = 0;
     232 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
                 [ #  # ]
     233                 :            :     {
     234      [ #  #  # ]:          0 :         switch (nState)
     235                 :            :         {
     236                 :            :         case 0:
     237                 :            :             addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
     238 [ #  # ][ #  # ]:          0 :                           OUString( RTL_CONSTASCII_USTRINGPARAM("false") ) );
                 [ #  # ]
     239                 :          0 :             break;
     240                 :            :         case 1:
     241                 :            :             addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
     242 [ #  # ][ #  # ]:          0 :                           OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
                 [ #  # ]
     243                 :          0 :             break;
     244                 :            :         default:
     245                 :            :             OSL_FAIL( "### unexpected radio state!" );
     246                 :          0 :             break;
     247                 :            :         }
     248                 :            :     }
     249                 :            : 
     250         [ #  # ]:          0 :     readEvents();
     251                 :          0 : }
     252                 :            : //__________________________________________________________________________________________________
     253                 :          0 : void ElementDescriptor::readCheckBoxModel( StyleBag * all_styles )
     254                 :            :     SAL_THROW( (Exception) )
     255                 :            : {
     256                 :            :     // collect styles
     257                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 | 0x40 );
     258 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     259                 :          0 :         aStyle._set |= 0x1;
     260 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     261                 :          0 :         aStyle._set |= 0x2;
     262 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     263                 :          0 :         aStyle._set |= 0x20;
     264 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     265                 :          0 :         aStyle._set |= 0x8;
     266 [ #  # ][ #  # ]:          0 :     if (readProp( OUSTR("VisualEffect") ) >>= aStyle._visualEffect)
                 [ #  # ]
     267                 :          0 :         aStyle._set |= 0x40;
     268         [ #  # ]:          0 :     if (aStyle._set)
     269                 :            :     {
     270                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     271 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     272                 :            :     }
     273                 :            : 
     274                 :            :     // collect elements
     275         [ #  # ]:          0 :     readDefaults();
     276                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     277 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     278                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
     279 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     280                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     281 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     282                 :            :     readVerticalAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
     283 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":valign") ) );
                 [ #  # ]
     284                 :            :     readImageURLAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
     285 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-src") ) );
                 [ #  # ]
     286                 :            :     readImagePositionAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
     287 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-position") ) );
                 [ #  # ]
     288                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
     289 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
                 [ #  # ]
     290                 :            : 
     291                 :          0 :     sal_Bool bTriState = sal_False;
     292 [ #  # ][ #  # ]:          0 :     if ((readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TriState") ) ) >>= bTriState) && bTriState)
         [ #  # ][ #  # ]
         [ #  # ][ #  #  
             #  #  #  # ]
                 [ #  # ]
     293                 :            :     {
     294                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tristate") ),
     295 [ #  # ][ #  # ]:          0 :                       OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
                 [ #  # ]
     296                 :            :     }
     297                 :          0 :     sal_Int16 nState = 0;
     298 [ #  # ][ #  # ]:          0 :     if (_xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
         [ #  # ][ #  # ]
     299                 :            :     {
     300   [ #  #  #  # ]:          0 :         switch (nState)
     301                 :            :         {
     302                 :            :         case 0:
     303                 :            :             addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
     304 [ #  # ][ #  # ]:          0 :                           OUString( RTL_CONSTASCII_USTRINGPARAM("false") ) );
                 [ #  # ]
     305                 :          0 :             break;
     306                 :            :         case 1:
     307                 :            :             addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
     308 [ #  # ][ #  # ]:          0 :                           OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
                 [ #  # ]
     309                 :          0 :             break;
     310                 :            :         case 2: // tristate=true exported, checked omitted => dont know!
     311                 :            :             OSL_ENSURE( bTriState, "### detected tristate value, but TriState is not set!" );
     312                 :          0 :             break;
     313                 :            :         default:
     314                 :            :             OSL_FAIL( "### unexpected checkbox state!" );
     315                 :          0 :             break;
     316                 :            :         }
     317                 :            :     }
     318         [ #  # ]:          0 :     readEvents();
     319                 :          0 : }
     320                 :            : //__________________________________________________________________________________________________
     321                 :          0 : void ElementDescriptor::readComboBoxModel( StyleBag * all_styles )
     322                 :            :     SAL_THROW( (Exception) )
     323                 :            : {
     324                 :            :     // collect styles
     325                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     326 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     327                 :          0 :         aStyle._set |= 0x1;
     328 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     329                 :          0 :         aStyle._set |= 0x2;
     330 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     331                 :          0 :         aStyle._set |= 0x20;
     332 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     333                 :          0 :         aStyle._set |= 0x4;
     334 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     335                 :          0 :         aStyle._set |= 0x8;
     336         [ #  # ]:          0 :     if (aStyle._set)
     337                 :            :     {
     338                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     339 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     340                 :            :     }
     341                 :            : 
     342                 :            :     // collect elements
     343         [ #  # ]:          0 :     readDefaults();
     344                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     345 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     346                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
     347 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     348                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     349 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     350                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Autocomplete") ),
     351 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":autocomplete") ) );
                 [ #  # ]
     352                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     353 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     354                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     355 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     356                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Dropdown") ),
     357 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
     358                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
     359 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":maxlength") ) );
                 [ #  # ]
     360                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LineCount") ),
     361 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":linecount") ) );
                 [ #  # ]
     362                 :            :     // Cell Range, Ref Cell etc.
     363 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR(XMLNS_DIALOGS_PREFIX ":linked-cell") );
     364 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR( XMLNS_DIALOGS_PREFIX ":source-cell-range") );
     365                 :            : 
     366                 :            :     // string item list
     367         [ #  # ]:          0 :     Sequence< OUString > itemValues;
     368 [ #  # ][ #  # ]:          0 :     if ((readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("StringItemList") ) ) >>= itemValues) &&
                 [ #  # ]
           [ #  #  #  # ]
         [ #  # ][ #  # ]
           [ #  #  #  #  
                   #  # ]
     369                 :          0 :         itemValues.getLength() > 0)
     370                 :            :     {
     371                 :            :         ElementDescriptor * popup = new ElementDescriptor(
     372                 :            :             _xProps, _xPropState,
     373 [ #  # ][ #  # ]:          0 :             OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":menupopup") ), _xDocument );
     374                 :            : 
     375                 :          0 :         OUString const * pItemValues = itemValues.getConstArray();
     376         [ #  # ]:          0 :         for ( sal_Int32 nPos = 0; nPos < itemValues.getLength(); ++nPos )
     377                 :            :         {
     378                 :            :             ElementDescriptor * item = new ElementDescriptor(
     379                 :            :                 _xProps, _xPropState,
     380 [ #  # ][ #  # ]:          0 :                 OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":menuitem") ), _xDocument );
     381                 :            :             item->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ),
     382 [ #  # ][ #  # ]:          0 :                                 pItemValues[ nPos ] );
     383 [ #  # ][ #  # ]:          0 :             popup->addSubElement( item );
                 [ #  # ]
     384                 :            :         }
     385                 :            : 
     386 [ #  # ][ #  # ]:          0 :         addSubElement( popup );
                 [ #  # ]
     387                 :            :     }
     388 [ #  # ][ #  # ]:          0 :     readEvents();
     389                 :          0 : }
     390                 :            : //__________________________________________________________________________________________________
     391                 :          0 : void ElementDescriptor::readListBoxModel( StyleBag * all_styles )
     392                 :            :     SAL_THROW( (Exception) )
     393                 :            : {
     394                 :            :     // collect styles
     395                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     396 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     397                 :          0 :         aStyle._set |= 0x1;
     398 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     399                 :          0 :         aStyle._set |= 0x2;
     400 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     401                 :          0 :         aStyle._set |= 0x20;
     402 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     403                 :          0 :         aStyle._set |= 0x4;
     404 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     405                 :          0 :         aStyle._set |= 0x8;
     406         [ #  # ]:          0 :     if (aStyle._set)
     407                 :            :     {
     408                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     409 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     410                 :            :     }
     411                 :            : 
     412                 :            :     // collect elements
     413         [ #  # ]:          0 :     readDefaults();
     414                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     415 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     416                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiSelection") ),
     417 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiselection") ) );
                 [ #  # ]
     418                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     419 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     420                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Dropdown") ),
     421 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
     422                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LineCount") ),
     423 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":linecount") ) );
                 [ #  # ]
     424                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     425 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     426 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR(XMLNS_DIALOGS_PREFIX ":linked-cell") );
     427 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR( XMLNS_DIALOGS_PREFIX ":source-cell-range") );
     428                 :            :     // string item list
     429         [ #  # ]:          0 :     Sequence< OUString > itemValues;
     430 [ #  # ][ #  # ]:          0 :     if ((readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("StringItemList") ) ) >>= itemValues) &&
                 [ #  # ]
           [ #  #  #  # ]
         [ #  # ][ #  # ]
           [ #  #  #  #  
                   #  # ]
     431                 :          0 :         itemValues.getLength() > 0)
     432                 :            :     {
     433                 :            :         ElementDescriptor * popup = new ElementDescriptor(
     434                 :            :             _xProps, _xPropState,
     435 [ #  # ][ #  # ]:          0 :             OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":menupopup") ), _xDocument );
     436                 :            : 
     437                 :          0 :         OUString const * pItemValues = itemValues.getConstArray();
     438                 :            :         sal_Int32 nPos;
     439         [ #  # ]:          0 :         for ( nPos = 0; nPos < itemValues.getLength(); ++nPos )
     440                 :            :         {
     441                 :            :             ElementDescriptor * item = new ElementDescriptor(
     442                 :            :                 _xProps, _xPropState,
     443 [ #  # ][ #  # ]:          0 :                 OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":menuitem") ), _xDocument );
     444                 :            :             item->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ),
     445 [ #  # ][ #  # ]:          0 :                                 pItemValues[ nPos ] );
     446 [ #  # ][ #  # ]:          0 :             popup->addSubElement( item );
                 [ #  # ]
     447                 :            :         }
     448                 :            : 
     449         [ #  # ]:          0 :         Sequence< sal_Int16 > selected;
     450 [ #  # ][ #  # ]:          0 :         if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("SelectedItems") ) ) >>= selected)
         [ #  # ][ #  # ]
     451                 :            :         {
     452                 :          0 :             sal_Int16 const * pSelected = selected.getConstArray();
     453         [ #  # ]:          0 :             for ( nPos = selected.getLength(); nPos--; )
     454                 :            :             {
     455                 :            :                 ElementDescriptor * item = static_cast< ElementDescriptor * >(
     456 [ #  # ][ #  # ]:          0 :                     popup->getSubElement( pSelected[ nPos ] ).get() );
                 [ #  # ]
     457                 :            :                 item->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":selected") ),
     458 [ #  # ][ #  # ]:          0 :                                     OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
                 [ #  # ]
     459                 :            :             }
     460                 :            :         }
     461                 :            : 
     462 [ #  # ][ #  # ]:          0 :         addSubElement( popup );
         [ #  # ][ #  # ]
     463                 :            :     }
     464 [ #  # ][ #  # ]:          0 :     readEvents();
     465                 :          0 : }
     466                 :            : //__________________________________________________________________________________________________
     467                 :          0 : void ElementDescriptor::readRadioButtonModel( StyleBag * all_styles  )
     468                 :            :     SAL_THROW( (Exception) )
     469                 :            : {
     470                 :            :     // collect styles
     471                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 | 0x40 );
     472 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     473                 :          0 :         aStyle._set |= 0x1;
     474 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     475                 :          0 :         aStyle._set |= 0x2;
     476 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     477                 :          0 :         aStyle._set |= 0x20;
     478 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     479                 :          0 :         aStyle._set |= 0x8;
     480 [ #  # ][ #  # ]:          0 :     if (readProp( OUSTR("VisualEffect") ) >>= aStyle._visualEffect)
                 [ #  # ]
     481                 :          0 :         aStyle._set |= 0x40;
     482         [ #  # ]:          0 :     if (aStyle._set)
     483                 :            :     {
     484                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     485 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     486                 :            :     }
     487                 :            : 
     488                 :            :     // collect elements
     489         [ #  # ]:          0 :     readDefaults();
     490                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     491 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     492                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
     493 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     494                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     495 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     496                 :            :     readVerticalAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
     497 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":valign") ) );
                 [ #  # ]
     498                 :            :     readImageURLAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
     499 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-src") ) );
                 [ #  # ]
     500                 :            :     readImagePositionAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
     501 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-position") ) );
                 [ #  # ]
     502                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
     503 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
                 [ #  # ]
     504                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("GroupName") ),
     505 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":group-name") ) );
                 [ #  # ]
     506                 :            : 
     507                 :          0 :     sal_Int16 nState = 0;
     508 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
                 [ #  # ]
     509                 :            :     {
     510      [ #  #  # ]:          0 :         switch (nState)
     511                 :            :         {
     512                 :            :         case 0:
     513                 :            :             addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
     514 [ #  # ][ #  # ]:          0 :                           OUString( RTL_CONSTASCII_USTRINGPARAM("false") ) );
                 [ #  # ]
     515                 :          0 :             break;
     516                 :            :         case 1:
     517                 :            :             addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checked") ),
     518 [ #  # ][ #  # ]:          0 :                           OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
                 [ #  # ]
     519                 :          0 :             break;
     520                 :            :         default:
     521                 :            :             OSL_FAIL( "### unexpected radio state!" );
     522                 :          0 :             break;
     523                 :            :         }
     524                 :            :     }
     525 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR(XMLNS_DIALOGS_PREFIX ":linked-cell") );
     526         [ #  # ]:          0 :     readEvents();
     527                 :          0 : }
     528                 :            : //__________________________________________________________________________________________________
     529                 :          0 : void ElementDescriptor::readGroupBoxModel( StyleBag * all_styles )
     530                 :            :     SAL_THROW( (Exception) )
     531                 :            : {
     532                 :            :     // collect styles
     533                 :          0 :     Style aStyle( 0x2 | 0x8 | 0x20 );
     534 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     535                 :          0 :         aStyle._set |= 0x2;
     536 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     537                 :          0 :         aStyle._set |= 0x20;
     538 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     539                 :          0 :         aStyle._set |= 0x8;
     540         [ #  # ]:          0 :     if (aStyle._set)
     541                 :            :     {
     542                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     543 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     544                 :            :     }
     545                 :            : 
     546                 :            :     // collect elements
     547         [ #  # ]:          0 :     readDefaults();
     548                 :            : 
     549                 :          0 :     OUString aTitle;
     550 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ) ) >>= aTitle)
                 [ #  # ]
     551                 :            :     {
     552                 :            :         ElementDescriptor * title = new ElementDescriptor(
     553                 :            :             _xProps, _xPropState,
     554 [ #  # ][ #  # ]:          0 :             OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":title") ), _xDocument );
     555                 :            :         title->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ),
     556 [ #  # ][ #  # ]:          0 :                              aTitle );
     557 [ #  # ][ #  # ]:          0 :         addSubElement( title );
                 [ #  # ]
     558                 :            :     }
     559                 :            : 
     560         [ #  # ]:          0 :     readEvents();
     561                 :          0 : }
     562                 :            : //__________________________________________________________________________________________________
     563                 :          0 : void ElementDescriptor::readFixedTextModel( StyleBag * all_styles )
     564                 :            :     SAL_THROW( (Exception) )
     565                 :            : {
     566                 :            :     // collect styles
     567                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     568 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     569                 :          0 :         aStyle._set |= 0x1;
     570 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     571                 :          0 :         aStyle._set |= 0x2;
     572 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     573                 :          0 :         aStyle._set |= 0x20;
     574 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     575                 :          0 :         aStyle._set |= 0x4;
     576 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     577                 :          0 :         aStyle._set |= 0x8;
     578         [ #  # ]:          0 :     if (aStyle._set)
     579                 :            :     {
     580                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     581 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     582                 :            :     }
     583                 :            : 
     584                 :            :     // collect elements
     585         [ #  # ]:          0 :     readDefaults();
     586                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
     587 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     588                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     589 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     590                 :            :     readVerticalAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
     591 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":valign") ) );
                 [ #  # ]
     592                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
     593 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
                 [ #  # ]
     594                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     595 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     596                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("NoLabel") ),
     597 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":nolabel") ) );
                 [ #  # ]
     598         [ #  # ]:          0 :     readEvents();
     599                 :          0 : }
     600                 :            : //__________________________________________________________________________________________________
     601                 :          0 : void ElementDescriptor::readFixedHyperLinkModel( StyleBag * all_styles )
     602                 :            :     SAL_THROW( (Exception) )
     603                 :            : {
     604                 :            :     // collect styles
     605                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     606 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     607                 :          0 :         aStyle._set |= 0x1;
     608 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     609                 :          0 :         aStyle._set |= 0x2;
     610 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     611                 :          0 :         aStyle._set |= 0x20;
     612 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     613                 :          0 :         aStyle._set |= 0x4;
     614 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     615                 :          0 :         aStyle._set |= 0x8;
     616         [ #  # ]:          0 :     if (aStyle._set)
     617                 :            :     {
     618                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     619 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     620                 :            :     }
     621                 :            : 
     622                 :            :     // collect elements
     623         [ #  # ]:          0 :     readDefaults();
     624                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
     625 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     626                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("URL") ),
     627 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":url") ) );
                 [ #  # ]
     628                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Description") ),
     629 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":description") ) );
                 [ #  # ]
     630                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     631 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     632                 :            :     readVerticalAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
     633 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":valign") ) );
                 [ #  # ]
     634                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
     635 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
                 [ #  # ]
     636                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     637 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     638                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("NoLabel") ),
     639 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":nolabel") ) );
                 [ #  # ]
     640         [ #  # ]:          0 :     readEvents();
     641                 :          0 : }
     642                 :            : //__________________________________________________________________________________________________
     643                 :          0 : void ElementDescriptor::readEditModel( StyleBag * all_styles )
     644                 :            :     SAL_THROW( (Exception) )
     645                 :            : {
     646                 :            :     // collect styles
     647                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     648 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     649                 :          0 :         aStyle._set |= 0x1;
     650 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     651                 :          0 :         aStyle._set |= 0x2;
     652 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     653                 :          0 :         aStyle._set |= 0x20;
     654 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     655                 :          0 :         aStyle._set |= 0x4;
     656 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     657                 :          0 :         aStyle._set |= 0x8;
     658         [ #  # ]:          0 :     if (aStyle._set)
     659                 :            :     {
     660                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     661 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     662                 :            :     }
     663                 :            : 
     664                 :            :     // collect elements
     665         [ #  # ]:          0 :     readDefaults();
     666                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     667 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     668                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     669 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     670                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
     671 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
     672                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("HardLineBreaks") ),
     673 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":hard-linebreaks") ) );
                 [ #  # ]
     674                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("HScroll") ),
     675 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":hscroll") ) );
                 [ #  # ]
     676                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VScroll") ),
     677 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":vscroll") ) );
                 [ #  # ]
     678                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
     679 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":maxlength") ) );
                 [ #  # ]
     680                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
     681 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
                 [ #  # ]
     682                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     683 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     684                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
     685 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     686                 :            :     readLineEndFormatAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LineEndFormat") ),
     687 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":lineend-format") ) );
                 [ #  # ]
     688                 :          0 :     sal_Int16 nEcho = 0;
     689 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("EchoChar") ) ) >>= nEcho)
                 [ #  # ]
     690                 :            :     {
     691                 :          0 :         sal_Unicode cEcho = (sal_Unicode)nEcho;
     692                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":echochar") ),
     693 [ #  # ][ #  # ]:          0 :                       OUString( &cEcho, 1 ) );
     694                 :            :     }
     695 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR(XMLNS_DIALOGS_PREFIX ":linked-cell") );
     696         [ #  # ]:          0 :     readEvents();
     697                 :          0 : }
     698                 :            : //__________________________________________________________________________________________________
     699                 :          0 : void ElementDescriptor::readImageControlModel( StyleBag * all_styles )
     700                 :            :     SAL_THROW( (Exception) )
     701                 :            : {
     702                 :            :     // collect styles
     703                 :          0 :     Style aStyle( 0x1 | 0x4 );
     704 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     705                 :          0 :         aStyle._set |= 0x1;
     706 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     707                 :          0 :         aStyle._set |= 0x4;
     708         [ #  # ]:          0 :     if (aStyle._set)
     709                 :            :     {
     710                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     711 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     712                 :            :     }
     713                 :            : 
     714                 :            :     // collect elements
     715         [ #  # ]:          0 :     readDefaults();
     716                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ScaleImage") ),
     717 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":scale-image") ) );
                 [ #  # ]
     718                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     719 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     720                 :            :     readImageURLAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
     721 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":src") ) );
                 [ #  # ]
     722         [ #  # ]:          0 :     readEvents();
     723                 :          0 : }
     724                 :            : //__________________________________________________________________________________________________
     725                 :          0 : void ElementDescriptor::readFileControlModel( StyleBag * all_styles )
     726                 :            :     SAL_THROW( (Exception) )
     727                 :            : {
     728                 :            :     // collect styles
     729                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     730 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     731                 :          0 :         aStyle._set |= 0x1;
     732 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     733                 :          0 :         aStyle._set |= 0x2;
     734 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     735                 :          0 :         aStyle._set |= 0x20;
     736 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     737                 :          0 :         aStyle._set |= 0x4;
     738 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     739                 :          0 :         aStyle._set |= 0x8;
     740         [ #  # ]:          0 :     if (aStyle._set)
     741                 :            :     {
     742                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     743 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     744                 :            :     }
     745                 :            : 
     746                 :            :     // collect elements
     747         [ #  # ]:          0 :     readDefaults();
     748                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     749 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     750                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     751 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     752                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
     753 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     754                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     755 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     756         [ #  # ]:          0 :     readEvents();
     757                 :          0 : }
     758                 :            : //__________________________________________________________________________________________________
     759                 :          0 : void ElementDescriptor::readTreeControlModel( StyleBag * all_styles )
     760                 :            :     SAL_THROW( (Exception) )
     761                 :            : {
     762                 :            :     // collect styles
     763                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     764 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     765                 :          0 :         aStyle._set |= 0x1;
     766 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     767                 :          0 :         aStyle._set |= 0x4;
     768         [ #  # ]:          0 :     if (aStyle._set)
     769                 :            :     {
     770                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     771 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     772                 :            :     }
     773                 :            : 
     774                 :            :     // collect elements
     775         [ #  # ]:          0 :     readDefaults();
     776                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     777 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     778                 :            :     readSelectionTypeAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SelectionType") ),
     779 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":selectiontype") ) );
                 [ #  # ]
     780                 :            : 
     781                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("RootDisplayed") ),
     782 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":rootdisplayed") ) );
                 [ #  # ]
     783                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowsHandles") ),
     784 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":showshandles") ) );
                 [ #  # ]
     785                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowsRootHandles") ),
     786 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":showsroothandles") ) );
                 [ #  # ]
     787                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Editable") ),
     788 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":editable") ) );
                 [ #  # ]
     789                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("InvokesStopNodeEditing") ),
     790 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":invokesstopnodeediting") ) );
                 [ #  # ]
     791                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("RowHeight") ),
     792 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":rowheight") ) );
                 [ #  # ]
     793         [ #  # ]:          0 :     readEvents();
     794                 :          0 : }
     795                 :            : //__________________________________________________________________________________________________
     796                 :          0 : void ElementDescriptor::readCurrencyFieldModel( StyleBag * all_styles )
     797                 :            :     SAL_THROW( (Exception) )
     798                 :            : {
     799                 :            :     // collect styles
     800                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     801 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     802                 :          0 :         aStyle._set |= 0x1;
     803 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     804                 :          0 :         aStyle._set |= 0x2;
     805 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     806                 :          0 :         aStyle._set |= 0x20;
     807 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     808                 :          0 :         aStyle._set |= 0x4;
     809 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     810                 :          0 :         aStyle._set |= 0x8;
     811         [ #  # ]:          0 :     if (aStyle._set)
     812                 :            :     {
     813                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     814 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     815                 :            :     }
     816                 :            : 
     817                 :            :     // collect elements
     818         [ #  # ]:          0 :     readDefaults();
     819                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     820 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     821                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     822 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     823                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     824 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     825                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
     826 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
                 [ #  # ]
     827                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("CurrencySymbol") ),
     828 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":currency-symbol") ) );
                 [ #  # ]
     829                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DecimalAccuracy") ),
     830 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":decimal-accuracy") ) );
                 [ #  # ]
     831                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowThousandsSeparator") ),
     832 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":thousands-separator") ) );
                 [ #  # ]
     833                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Value") ),
     834 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     835                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMin") ),
     836 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-min") ) );
                 [ #  # ]
     837                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMax") ),
     838 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-max") ) );
                 [ #  # ]
     839                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueStep") ),
     840 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-step") ) );
                 [ #  # ]
     841                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
     842 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
     843 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Repeat") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
     844                 :            :         readLongAttr( OUSTR("RepeatDelay"),
     845 [ #  # ][ #  # ]:          0 :                       OUSTR(XMLNS_DIALOGS_PREFIX ":repeat"), true /* force */ );
                 [ #  # ]
     846                 :            :     readBoolAttr(
     847                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("PrependCurrencySymbol") ),
     848 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":prepend-symbol") ) );
                 [ #  # ]
     849                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
     850 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":enforce-format") ) );
                 [ #  # ]
     851         [ #  # ]:          0 :     readEvents();
     852                 :          0 : }
     853                 :            : //__________________________________________________________________________________________________
     854                 :          0 : void ElementDescriptor::readDateFieldModel( StyleBag * all_styles )
     855                 :            :     SAL_THROW( (Exception) )
     856                 :            : {
     857                 :            :     // collect styles
     858                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     859 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     860                 :          0 :         aStyle._set |= 0x1;
     861 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     862                 :          0 :         aStyle._set |= 0x2;
     863 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     864                 :          0 :         aStyle._set |= 0x20;
     865 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     866                 :          0 :         aStyle._set |= 0x4;
     867 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     868                 :          0 :         aStyle._set |= 0x8;
     869         [ #  # ]:          0 :     if (aStyle._set)
     870                 :            :     {
     871                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     872 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     873                 :            :     }
     874                 :            : 
     875                 :            :     // collect elements
     876         [ #  # ]:          0 :     readDefaults();
     877                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     878 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     879                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     880 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     881                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     882 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     883                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
     884 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
                 [ #  # ]
     885                 :            :     readDateFormatAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DateFormat") ),
     886 [ #  # ][ #  # ]:          0 :                         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":date-format") ) );
                 [ #  # ]
     887                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DateShowCentury") ),
     888 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":show-century") ) );
                 [ #  # ]
     889                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Date") ),
     890 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     891                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DateMin") ),
     892 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-min") ) );
                 [ #  # ]
     893                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DateMax") ),
     894 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-max") ) );
                 [ #  # ]
     895                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
     896 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
     897 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Repeat") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
     898                 :            :         readLongAttr( OUSTR("RepeatDelay"),
     899 [ #  # ][ #  # ]:          0 :                       OUSTR(XMLNS_DIALOGS_PREFIX ":repeat"), true /* force */ );
                 [ #  # ]
     900                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Dropdown") ),
     901 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":dropdown") ) );
                 [ #  # ]
     902                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
     903 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":text") ) );
                 [ #  # ]
     904                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
     905 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":enforce-format") ) );
                 [ #  # ]
     906         [ #  # ]:          0 :     readEvents();
     907                 :          0 : }
     908                 :            : //__________________________________________________________________________________________________
     909                 :          0 : void ElementDescriptor::readNumericFieldModel( StyleBag * all_styles )
     910                 :            :     SAL_THROW( (Exception) )
     911                 :            : {
     912                 :            :     // collect styles
     913                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     914 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     915                 :          0 :         aStyle._set |= 0x1;
     916 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     917                 :          0 :         aStyle._set |= 0x2;
     918 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     919                 :          0 :         aStyle._set |= 0x20;
     920 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     921                 :          0 :         aStyle._set |= 0x4;
     922 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     923                 :          0 :         aStyle._set |= 0x8;
     924         [ #  # ]:          0 :     if (aStyle._set)
     925                 :            :     {
     926                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     927 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     928                 :            :     }
     929                 :            : 
     930                 :            :     // collect elements
     931         [ #  # ]:          0 :     readDefaults();
     932                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     933 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     934                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     935 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     936                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     937 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     938                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
     939 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
                 [ #  # ]
     940                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("DecimalAccuracy") ),
     941 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":decimal-accuracy") ) );
                 [ #  # ]
     942                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowThousandsSeparator") ),
     943 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":thousands-separator") ) );
                 [ #  # ]
     944                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Value") ),
     945 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     946                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMin") ),
     947 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-min") ) );
                 [ #  # ]
     948                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMax") ),
     949 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-max") ) );
                 [ #  # ]
     950                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueStep") ),
     951 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-step") ) );
                 [ #  # ]
     952                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
     953 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
     954 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Repeat") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
     955                 :            :         readLongAttr( OUSTR("RepeatDelay"),
     956 [ #  # ][ #  # ]:          0 :                       OUSTR(XMLNS_DIALOGS_PREFIX ":repeat"), true /* force */ );
                 [ #  # ]
     957                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
     958 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":enforce-format") ) );
                 [ #  # ]
     959         [ #  # ]:          0 :     readEvents();
     960                 :          0 : }
     961                 :            : //__________________________________________________________________________________________________
     962                 :          0 : void ElementDescriptor::readTimeFieldModel( StyleBag * all_styles )
     963                 :            :     SAL_THROW( (Exception) )
     964                 :            : {
     965                 :            :     // collect styles
     966                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
     967 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
     968                 :          0 :         aStyle._set |= 0x1;
     969 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
     970                 :          0 :         aStyle._set |= 0x2;
     971 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
     972                 :          0 :         aStyle._set |= 0x20;
     973 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
     974                 :          0 :         aStyle._set |= 0x4;
     975 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
     976                 :          0 :         aStyle._set |= 0x8;
     977         [ #  # ]:          0 :     if (aStyle._set)
     978                 :            :     {
     979                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
     980 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
     981                 :            :     }
     982                 :            : 
     983                 :            :     // collect elements
     984         [ #  # ]:          0 :     readDefaults();
     985                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
     986 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
     987                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
     988 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
     989                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
     990 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
     991                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
     992 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
                 [ #  # ]
     993                 :            :     readTimeFormatAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("TimeFormat") ),
     994 [ #  # ][ #  # ]:          0 :                         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":time-format") ) );
                 [ #  # ]
     995                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Time") ),
     996 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
     997                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("TimeMin") ),
     998 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-min") ) );
                 [ #  # ]
     999                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("TimeMax") ),
    1000 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-max") ) );
                 [ #  # ]
    1001                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
    1002 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
    1003 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Repeat") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
    1004                 :            :         readLongAttr( OUSTR("RepeatDelay"),
    1005 [ #  # ][ #  # ]:          0 :                       OUSTR(XMLNS_DIALOGS_PREFIX ":repeat"), true /* force */ );
                 [ #  # ]
    1006                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
    1007 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":text") ) );
                 [ #  # ]
    1008                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
    1009 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":enforce-format") ) );
                 [ #  # ]
    1010         [ #  # ]:          0 :     readEvents();
    1011                 :          0 : }
    1012                 :            : //__________________________________________________________________________________________________
    1013                 :          0 : void ElementDescriptor::readPatternFieldModel( StyleBag * all_styles )
    1014                 :            :     SAL_THROW( (Exception) )
    1015                 :            : {
    1016                 :            :     // collect styles
    1017                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    1018 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
    1019                 :          0 :         aStyle._set |= 0x1;
    1020 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
    1021                 :          0 :         aStyle._set |= 0x2;
    1022 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
    1023                 :          0 :         aStyle._set |= 0x20;
    1024 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
    1025                 :          0 :         aStyle._set |= 0x4;
    1026 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
    1027                 :          0 :         aStyle._set |= 0x8;
    1028         [ #  # ]:          0 :     if (aStyle._set)
    1029                 :            :     {
    1030                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1031 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1032                 :            :     }
    1033                 :            : 
    1034                 :            :     // collect elements
    1035         [ #  # ]:          0 :     readDefaults();
    1036                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
    1037 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
    1038                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
    1039 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
    1040                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
    1041 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
    1042                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
    1043 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
                 [ #  # ]
    1044                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
    1045 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
    1046                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
    1047 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":maxlength") ) );
                 [ #  # ]
    1048                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EditMask") ),
    1049 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":edit-mask") ) );
                 [ #  # ]
    1050                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LiteralMask") ),
    1051 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":literal-mask") ) );
                 [ #  # ]
    1052         [ #  # ]:          0 :     readEvents();
    1053                 :          0 : }
    1054                 :            : //__________________________________________________________________________________________________
    1055                 :          0 : void ElementDescriptor::readFormattedFieldModel( StyleBag * all_styles )
    1056                 :            :     SAL_THROW( (Exception) )
    1057                 :            : {
    1058                 :            :     // collect styles
    1059                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x4 | 0x8 | 0x20 );
    1060 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
    1061                 :          0 :         aStyle._set |= 0x1;
    1062 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
    1063                 :          0 :         aStyle._set |= 0x2;
    1064 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
    1065                 :          0 :         aStyle._set |= 0x20;
    1066 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
    1067                 :          0 :         aStyle._set |= 0x4;
    1068 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
    1069                 :          0 :         aStyle._set |= 0x8;
    1070         [ #  # ]:          0 :     if (aStyle._set)
    1071                 :            :     {
    1072                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1073 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1074                 :            :     }
    1075                 :            : 
    1076                 :            :     // collect elements
    1077         [ #  # ]:          0 :     readDefaults();
    1078                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
    1079 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
    1080                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
    1081 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":readonly") ) );
                 [ #  # ]
    1082                 :            :     readBoolAttr( OUSTR("HideInactiveSelection"),
    1083 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":hide-inactive-selection") );
                 [ #  # ]
    1084                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
    1085 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":strict-format") ) );
                 [ #  # ]
    1086                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
    1087 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":text") ) );
                 [ #  # ]
    1088                 :            :     readAlignAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
    1089 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
    1090                 :            :     readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
    1091 [ #  # ][ #  # ]:          0 :                    OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":maxlength") ) );
                 [ #  # ]
    1092                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
    1093 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spin") ) );
                 [ #  # ]
    1094 [ #  # ][ #  # ]:          0 :     if (extract_throw<bool>( _xProps->getPropertyValue( OUSTR("Repeat") ) ))
         [ #  # ][ #  # ]
                 [ #  # ]
    1095                 :            :         readLongAttr( OUSTR("RepeatDelay"),
    1096 [ #  # ][ #  # ]:          0 :                       OUSTR(XMLNS_DIALOGS_PREFIX ":repeat"), true /* force */ );
                 [ #  # ]
    1097                 :            : 
    1098 [ #  # ][ #  # ]:          0 :     Any a( readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveDefault") ) ) );
    1099      [ #  #  # ]:          0 :     switch (a.getValueTypeClass())
    1100                 :            :     {
    1101                 :            :     case TypeClass_DOUBLE:
    1102                 :            :         addAttribute(
    1103                 :            :             OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-default") ),
    1104 [ #  # ][ #  # ]:          0 :             OUString::valueOf( *(double const *)a.getValue() ) );
    1105                 :          0 :         break;
    1106                 :            :     case TypeClass_STRING:
    1107                 :            :         addAttribute(
    1108                 :            :             OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-default") ),
    1109 [ #  # ][ #  # ]:          0 :             *(OUString const *)a.getValue() );
    1110                 :          0 :         break;
    1111                 :            :     default:
    1112                 :          0 :         break;
    1113                 :            :     }
    1114                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveMin") ),
    1115 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-min") ) );
                 [ #  # ]
    1116                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveMax") ),
    1117 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-max") ) );
                 [ #  # ]
    1118                 :            :     readDoubleAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveValue") ),
    1119 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
    1120                 :            : 
    1121                 :            :     // format spec
    1122                 :          0 :     sal_Int32 nKey = 0;
    1123 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("FormatKey") ) ) >>= nKey)
                 [ #  # ]
    1124                 :            :     {
    1125                 :          0 :         Reference< util::XNumberFormatsSupplier > xSupplier;
    1126 [ #  # ][ #  # ]:          0 :         if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("FormatsSupplier") ) ) >>= xSupplier)
         [ #  # ][ #  # ]
    1127                 :            :         {
    1128                 :            :             addNumberFormatAttr(
    1129 [ #  # ][ #  # ]:          0 :                 xSupplier->getNumberFormats()->getByKey( nKey ) );
         [ #  # ][ #  # ]
                 [ #  # ]
    1130                 :          0 :         }
    1131                 :            :     }
    1132                 :            :     readBoolAttr(
    1133                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("TreatAsNumber") ),
    1134 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":treat-as-number") ) );
                 [ #  # ]
    1135                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
    1136 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":enforce-format") ) );
                 [ #  # ]
    1137                 :            : 
    1138         [ #  # ]:          0 :     readEvents();
    1139                 :          0 : }
    1140                 :            : 
    1141                 :          0 : void ElementDescriptor::readSpinButtonModel( StyleBag * all_styles )
    1142                 :            :     SAL_THROW( (Exception) )
    1143                 :            : {
    1144                 :            :     // collect styles
    1145                 :          0 :     Style aStyle( 0x1 | 0x4 );
    1146 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
    1147                 :          0 :         aStyle._set |= 0x1;
    1148 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
    1149                 :          0 :         aStyle._set |= 0x4;
    1150         [ #  # ]:          0 :     if (aStyle._set)
    1151                 :            :     {
    1152                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1153 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1154                 :            :     }
    1155                 :            : 
    1156                 :            :     // collect elements
    1157         [ #  # ]:          0 :     readDefaults();
    1158                 :            :     readOrientationAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Orientation") ),
    1159 [ #  # ][ #  # ]:          0 :                          OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
    1160                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SpinIncrement") ),
    1161 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":increment") ) );
                 [ #  # ]
    1162                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SpinValue") ),
    1163 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":curval") ) );
                 [ #  # ]
    1164                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SpinValueMax") ),
    1165 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":maxval") ) );
                 [ #  # ]
    1166                 :            :     readLongAttr( OUSTR("SpinValueMin"),
    1167 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":minval") );
                 [ #  # ]
    1168                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Repeat") ),
    1169 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":repeat") ) );
                 [ #  # ]
    1170 [ #  # ][ #  # ]:          0 :     readLongAttr( OUSTR("RepeatDelay"), OUSTR(XMLNS_DIALOGS_PREFIX ":repeat-delay") );
                 [ #  # ]
    1171                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
    1172 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
    1173                 :            :     readHexLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SymbolColor") ),
    1174 [ #  # ][ #  # ]:          0 :                      OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":symbol-color") ) );
                 [ #  # ]
    1175 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR(XMLNS_DIALOGS_PREFIX ":linked-cell") );
    1176         [ #  # ]:          0 :     readEvents();
    1177                 :          0 : }
    1178                 :            : 
    1179                 :            : //__________________________________________________________________________________________________
    1180                 :          0 : void ElementDescriptor::readFixedLineModel( StyleBag * all_styles )
    1181                 :            :     SAL_THROW( (Exception) )
    1182                 :            : {
    1183                 :            :     // collect styles
    1184                 :          0 :     Style aStyle( 0x2 | 0x8 | 0x20 );
    1185 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
    1186                 :          0 :         aStyle._set |= 0x2;
    1187 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
    1188                 :          0 :         aStyle._set |= 0x20;
    1189 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
    1190                 :          0 :         aStyle._set |= 0x8;
    1191         [ #  # ]:          0 :     if (aStyle._set)
    1192                 :            :     {
    1193                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1194 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1195                 :            :     }
    1196                 :            : 
    1197                 :            :     // collect elements
    1198         [ #  # ]:          0 :     readDefaults();
    1199                 :            :     readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
    1200 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
    1201                 :            :     readOrientationAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Orientation") ),
    1202 [ #  # ][ #  # ]:          0 :                          OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
    1203         [ #  # ]:          0 :     readEvents();
    1204                 :          0 : }
    1205                 :            : //__________________________________________________________________________________________________
    1206                 :          0 : void ElementDescriptor::readProgressBarModel( StyleBag * all_styles )
    1207                 :            :     SAL_THROW( (Exception) )
    1208                 :            : {
    1209                 :            :     // collect styles
    1210                 :          0 :     Style aStyle( 0x1 | 0x4 | 0x10 );
    1211 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
    1212                 :          0 :         aStyle._set |= 0x1;
    1213 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
    1214                 :          0 :         aStyle._set |= 0x4;
    1215 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("FillColor") ) ) >>= aStyle._descr)
         [ #  # ][ #  # ]
    1216                 :          0 :         aStyle._set |= 0x10;
    1217         [ #  # ]:          0 :     if (aStyle._set)
    1218                 :            :     {
    1219                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1220 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1221                 :            :     }
    1222                 :            : 
    1223                 :            :     // collect elements
    1224         [ #  # ]:          0 :     readDefaults();
    1225                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ProgressValue") ),
    1226 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
                 [ #  # ]
    1227                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ProgressValueMin") ),
    1228 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-min") ) );
                 [ #  # ]
    1229                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ProgressValueMax") ),
    1230 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value-max") ) );
                 [ #  # ]
    1231         [ #  # ]:          0 :     readEvents();
    1232                 :          0 : }
    1233                 :            : //__________________________________________________________________________________________________
    1234                 :          0 : void ElementDescriptor::readScrollBarModel( StyleBag * all_styles )
    1235                 :            :     SAL_THROW( (Exception) )
    1236                 :            : {
    1237                 :            :     // collect styles
    1238                 :          0 :     Style aStyle( 0x1 | 0x4 );
    1239 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
    1240                 :          0 :         aStyle._set |= 0x1;
    1241 [ #  # ][ #  # ]:          0 :     if (readBorderProps( this, aStyle ))
    1242                 :          0 :         aStyle._set |= 0x4;
    1243         [ #  # ]:          0 :     if (aStyle._set)
    1244                 :            :     {
    1245                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1246 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1247                 :            :     }
    1248                 :            : 
    1249                 :            :     // collect elements
    1250         [ #  # ]:          0 :     readDefaults();
    1251                 :            :     readOrientationAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Orientation") ),
    1252 [ #  # ][ #  # ]:          0 :                          OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":align") ) );
                 [ #  # ]
    1253                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("BlockIncrement") ),
    1254 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":pageincrement") ) );
                 [ #  # ]
    1255                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LineIncrement") ),
    1256 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":increment") ) );
                 [ #  # ]
    1257                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ScrollValue") ),
    1258 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":curpos") ) );
                 [ #  # ]
    1259                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ScrollValueMax") ),
    1260 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":maxpos") ) );
                 [ #  # ]
    1261                 :            :     readLongAttr( OUSTR("ScrollValueMin"),
    1262 [ #  # ][ #  # ]:          0 :                   OUSTR(XMLNS_DIALOGS_PREFIX ":minpos") );
                 [ #  # ]
    1263                 :            :     readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("VisibleSize") ),
    1264 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":visible-size") ) );
                 [ #  # ]
    1265 [ #  # ][ #  # ]:          0 :     readLongAttr( OUSTR("RepeatDelay"), OUSTR(XMLNS_DIALOGS_PREFIX ":repeat") );
                 [ #  # ]
    1266                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
    1267 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tabstop") ) );
                 [ #  # ]
    1268                 :            :     readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LiveScroll") ),
    1269 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":live-scroll") ) );
                 [ #  # ]
    1270                 :            :     readHexLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("SymbolColor") ),
    1271 [ #  # ][ #  # ]:          0 :                      OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":symbol-color") ) );
                 [ #  # ]
    1272 [ #  # ][ #  # ]:          0 :     readDataAwareAttr( OUSTR(XMLNS_DIALOGS_PREFIX ":linked-cell") );
    1273         [ #  # ]:          0 :     readEvents();
    1274                 :          0 : }
    1275                 :            : //__________________________________________________________________________________________________
    1276                 :          0 : void ElementDescriptor::readDialogModel( StyleBag * all_styles )
    1277                 :            :     SAL_THROW( (Exception) )
    1278                 :            : {
    1279                 :            :     // collect elements
    1280                 :            :     addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("xmlns:" XMLNS_DIALOGS_PREFIX) ),
    1281 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_URI) ) );
                 [ #  # ]
    1282                 :            :     addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("xmlns:" XMLNS_SCRIPT_PREFIX) ),
    1283 [ #  # ][ #  # ]:          0 :                   OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_SCRIPT_URI) ) );
                 [ #  # ]
    1284                 :            : 
    1285                 :            :     // collect styles
    1286                 :          0 :     Style aStyle( 0x1 | 0x2 | 0x8 | 0x20 );
    1287 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("BackgroundColor") ) ) >>= aStyle._backgroundColor)
                 [ #  # ]
    1288                 :          0 :         aStyle._set |= 0x1;
    1289 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextColor") ) ) >>= aStyle._textColor)
                 [ #  # ]
    1290                 :          0 :         aStyle._set |= 0x2;
    1291 [ #  # ][ #  # ]:          0 :     if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("TextLineColor") ) ) >>= aStyle._textLineColor)
                 [ #  # ]
    1292                 :          0 :         aStyle._set |= 0x20;
    1293 [ #  # ][ #  # ]:          0 :     if (readFontProps( this, aStyle ))
    1294                 :          0 :         aStyle._set |= 0x8;
    1295         [ #  # ]:          0 :     if (aStyle._set)
    1296                 :            :     {
    1297                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":style-id") ),
    1298 [ #  # ][ #  # ]:          0 :                       all_styles->getStyleId( aStyle ) );
                 [ #  # ]
    1299                 :            :     }
    1300                 :            : 
    1301                 :            :     // collect elements
    1302         [ #  # ]:          0 :     readDefaults( false, false );
    1303                 :            :     readBoolAttr(
    1304                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("Closeable") ),
    1305 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":closeable") ) );
                 [ #  # ]
    1306                 :            :     readBoolAttr(
    1307                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("Moveable") ),
    1308 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":moveable") ) );
                 [ #  # ]
    1309                 :            :     readBoolAttr(
    1310                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("Sizeable") ),
    1311 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":resizeable") ) );
                 [ #  # ]
    1312                 :            :     readStringAttr(
    1313                 :            :         OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
    1314 [ #  # ][ #  # ]:          0 :         OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":title") ) );
                 [ #  # ]
    1315                 :            : 
    1316 [ #  # ][ #  # ]:          0 :     Any aDecorationAny( _xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Decoration") ) ) );
                 [ #  # ]
    1317                 :          0 :     bool bDecoration = sal_False;
    1318 [ #  # ][ #  # ]:          0 :     if ( (aDecorationAny >>= bDecoration) && !bDecoration )
                 [ #  # ]
    1319                 :            :         addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":withtitlebar") ),
    1320 [ #  # ][ #  # ]:          0 :                       OUString( RTL_CONSTASCII_USTRINGPARAM("false") ) );
                 [ #  # ]
    1321                 :            :     readImageURLAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ),
    1322 [ #  # ][ #  # ]:          0 :                            OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":image-src") ) );
                 [ #  # ]
    1323         [ #  # ]:          0 :     readEvents();
    1324                 :          0 : }
    1325                 :            : 
    1326                 :          0 : void ElementDescriptor::readBullitinBoard( StyleBag * all_styles )
    1327                 :            :     SAL_THROW( (Exception) )
    1328                 :            : {
    1329                 :            :     // collect elements
    1330         [ #  # ]:          0 :     ::std::vector< ElementDescriptor* > all_elements;
    1331                 :            :     // read out all props
    1332         [ #  # ]:          0 :     Reference<  container::XNameContainer > xDialogModel( _xProps, UNO_QUERY );
    1333         [ #  # ]:          0 :     if ( !xDialogModel.is() )
    1334                 :          0 :         return; // #TODO throw???
    1335 [ #  # ][ #  # ]:          0 :     Sequence< OUString > aElements( xDialogModel->getElementNames() );
    1336                 :          0 :     OUString const * pElements = aElements.getConstArray();
    1337                 :            : 
    1338                 :          0 :     ElementDescriptor * pRadioGroup = 0;
    1339                 :            : 
    1340                 :            :     sal_Int32 nPos;
    1341         [ #  # ]:          0 :     for ( nPos = 0; nPos < aElements.getLength(); ++nPos )
    1342                 :            :     {
    1343 [ #  # ][ #  # ]:          0 :         Any aControlModel( xDialogModel->getByName( pElements[ nPos ] ) );
    1344                 :          0 :         Reference< beans::XPropertySet > xProps;
    1345         [ #  # ]:          0 :         OSL_VERIFY( aControlModel >>= xProps );
    1346         [ #  # ]:          0 :         if (! xProps.is())
    1347                 :          0 :             continue;
    1348         [ #  # ]:          0 :         Reference< beans::XPropertyState > xPropState( xProps, UNO_QUERY );
    1349                 :            :         OSL_ENSURE( xPropState.is(), "no XPropertyState!" );
    1350         [ #  # ]:          0 :         if (! xPropState.is())
    1351                 :          0 :             continue;
    1352         [ #  # ]:          0 :         Reference< lang::XServiceInfo > xServiceInfo( xProps, UNO_QUERY );
    1353                 :            :         OSL_ENSURE( xServiceInfo.is(), "no XServiceInfo!" );
    1354         [ #  # ]:          0 :         if (! xServiceInfo.is())
    1355                 :          0 :             continue;
    1356                 :            : 
    1357                 :          0 :         ElementDescriptor * pElem = 0;
    1358                 :            : 
    1359                 :            :         // group up radio buttons
    1360 [ #  # ][ #  # ]:          0 :         if ( xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlRadioButtonModel") ) ) )
         [ #  # ][ #  # ]
    1361                 :            :         {
    1362         [ #  # ]:          0 :             if (! pRadioGroup) // open radiogroup
    1363                 :            :             {
    1364                 :            :                 pRadioGroup = new ElementDescriptor(
    1365                 :            :                     xProps, xPropState,
    1366 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":radiogroup") ), _xDocument );
    1367         [ #  # ]:          0 :                 all_elements.push_back( pRadioGroup );
    1368                 :            :             }
    1369                 :            : 
    1370                 :            :             pElem = new ElementDescriptor(
    1371                 :            :                 xProps, xPropState,
    1372 [ #  # ][ #  # ]:          0 :                 OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":radio") ), _xDocument );
    1373         [ #  # ]:          0 :             pElem->readRadioButtonModel( all_styles );
    1374 [ #  # ][ #  # ]:          0 :             pRadioGroup->addSubElement( pElem );
                 [ #  # ]
    1375                 :            :         }
    1376                 :            :         else // no radio
    1377                 :            :         {
    1378                 :          0 :             pRadioGroup = 0; // close radiogroup
    1379                 :            : 
    1380 [ #  # ][ #  # ]:          0 :             if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlButtonModel") ) ) )
         [ #  # ][ #  # ]
    1381                 :            :             {
    1382                 :            :                 pElem = new ElementDescriptor(
    1383                 :            :                     xProps, xPropState,
    1384 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":button") ), _xDocument );
    1385         [ #  # ]:          0 :                 pElem->readButtonModel( all_styles );
    1386                 :            :             }
    1387 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlCheckBoxModel") ) ) )
         [ #  # ][ #  # ]
    1388                 :            :             {
    1389                 :            :                 pElem = new ElementDescriptor(
    1390                 :            :                     xProps, xPropState,
    1391 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":checkbox") ), _xDocument );
    1392         [ #  # ]:          0 :                 pElem->readCheckBoxModel( all_styles );
    1393                 :            :             }
    1394 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlComboBoxModel") ) ) )
         [ #  # ][ #  # ]
    1395                 :            :             {
    1396                 :            :                 pElem = new ElementDescriptor(
    1397                 :            :                     xProps, xPropState,
    1398 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":combobox") ), _xDocument );
    1399         [ #  # ]:          0 :                 pElem->readComboBoxModel( all_styles );
    1400                 :            :             }
    1401 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlListBoxModel") ) ) )
         [ #  # ][ #  # ]
    1402                 :            :             {
    1403                 :            :                 pElem = new ElementDescriptor(
    1404                 :            :                     xProps, xPropState,
    1405 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":menulist") ), _xDocument );
    1406         [ #  # ]:          0 :                 pElem->readListBoxModel( all_styles );
    1407                 :            :             }
    1408 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlGroupBoxModel") ) ) )
         [ #  # ][ #  # ]
    1409                 :            :             {
    1410                 :            :                 pElem = new ElementDescriptor(
    1411                 :            :                     xProps, xPropState,
    1412 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":titledbox") ), _xDocument );
    1413         [ #  # ]:          0 :                 pElem->readGroupBoxModel( all_styles );
    1414                 :            :             }
    1415 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoMultiPageModel") ) ) )
         [ #  # ][ #  # ]
    1416                 :            :             {
    1417                 :            :                 pElem = new ElementDescriptor(
    1418                 :            :                     xProps, xPropState,
    1419 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multipage") ), _xDocument );
    1420         [ #  # ]:          0 :                 pElem->readMultiPageModel( all_styles );
    1421                 :            :             }
    1422 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoFrameModel") ) ) )
         [ #  # ][ #  # ]
    1423                 :            :             {
    1424                 :            :                 pElem = new ElementDescriptor(
    1425                 :            :                     xProps, xPropState,
    1426 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":frame") ), _xDocument );
    1427         [ #  # ]:          0 :                 pElem->readFrameModel( all_styles );
    1428                 :            :             }
    1429 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoPageModel") ) ) )
         [ #  # ][ #  # ]
    1430                 :            :             {
    1431                 :            :                 pElem = new ElementDescriptor(
    1432                 :            :                     xProps, xPropState,
    1433 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":page") ), _xDocument );
    1434         [ #  # ]:          0 :                 pElem->readPageModel( all_styles );
    1435                 :            :             }
    1436 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedTextModel") ) ) )
         [ #  # ][ #  # ]
    1437                 :            :             {
    1438                 :            :                 pElem = new ElementDescriptor(
    1439                 :            :                     xProps, xPropState,
    1440 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":text") ), _xDocument );
    1441         [ #  # ]:          0 :                 pElem->readFixedTextModel( all_styles );
    1442                 :            :             }
    1443 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlEditModel") ) ) )
         [ #  # ][ #  # ]
    1444                 :            :             {
    1445                 :            :                 pElem = new ElementDescriptor(
    1446                 :            :                     xProps, xPropState,
    1447 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":textfield") ), _xDocument );
    1448         [ #  # ]:          0 :                 pElem->readEditModel( all_styles );
    1449                 :            :             }
    1450                 :            :             // FixedHyperLink
    1451 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedHyperlinkModel") ) ) )
         [ #  # ][ #  # ]
    1452                 :            :             {
    1453                 :            :                 pElem = new ElementDescriptor(
    1454                 :            :                     xProps, xPropState,
    1455 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":linklabel") ), _xDocument );
    1456         [ #  # ]:          0 :                 pElem->readFixedHyperLinkModel( all_styles );
    1457                 :            :             }
    1458 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlImageControlModel") ) ) )
         [ #  # ][ #  # ]
    1459                 :            :             {
    1460                 :            :                 pElem = new ElementDescriptor(
    1461                 :            :                     xProps, xPropState,
    1462 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":img") ), _xDocument );
    1463         [ #  # ]:          0 :                 pElem->readImageControlModel( all_styles );
    1464                 :            :             }
    1465 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFileControlModel") ) ) )
         [ #  # ][ #  # ]
    1466                 :            :             {
    1467                 :            :                 pElem = new ElementDescriptor(
    1468                 :            :                     xProps, xPropState,
    1469 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":filecontrol") ), _xDocument );
    1470         [ #  # ]:          0 :                 pElem->readFileControlModel( all_styles );
    1471                 :            :             }
    1472 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.tree.TreeControlModel") ) ) )
         [ #  # ][ #  # ]
    1473                 :            :             {
    1474                 :            :                 pElem = new ElementDescriptor(
    1475                 :            :                     xProps, xPropState,
    1476 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":treecontrol") ), _xDocument );
    1477         [ #  # ]:          0 :                 pElem->readTreeControlModel( all_styles );
    1478                 :            :             }
    1479 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlCurrencyFieldModel") ) ) )
         [ #  # ][ #  # ]
    1480                 :            :             {
    1481                 :            :                 pElem = new ElementDescriptor(
    1482                 :            :                     xProps, xPropState,
    1483 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":currencyfield") ), _xDocument );
    1484         [ #  # ]:          0 :                 pElem->readCurrencyFieldModel( all_styles );
    1485                 :            :             }
    1486 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlDateFieldModel") ) ) )
         [ #  # ][ #  # ]
    1487                 :            :             {
    1488                 :            :                 pElem = new ElementDescriptor(
    1489                 :            :                     xProps, xPropState,
    1490 [ #  # ][ #  # ]:          0 :                 OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":datefield") ), _xDocument );
    1491         [ #  # ]:          0 :                 pElem->readDateFieldModel( all_styles );
    1492                 :            :             }
    1493 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlNumericFieldModel") ) ) )
         [ #  # ][ #  # ]
    1494                 :            :             {
    1495                 :            :                 pElem = new ElementDescriptor(
    1496                 :            :                     xProps, xPropState,
    1497 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":numericfield") ), _xDocument );
    1498         [ #  # ]:          0 :                 pElem->readNumericFieldModel( all_styles );
    1499                 :            :             }
    1500 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlTimeFieldModel") ) ) )
         [ #  # ][ #  # ]
    1501                 :            :             {
    1502                 :            :                 pElem = new ElementDescriptor(
    1503                 :            :                     xProps, xPropState,
    1504 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":timefield") ) , _xDocument);
    1505         [ #  # ]:          0 :                 pElem->readTimeFieldModel( all_styles );
    1506                 :            :             }
    1507 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlPatternFieldModel") ) ) )
         [ #  # ][ #  # ]
    1508                 :            :             {
    1509                 :            :                 pElem = new ElementDescriptor(
    1510                 :            :                     xProps, xPropState,
    1511 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":patternfield") ), _xDocument );
    1512         [ #  # ]:          0 :                 pElem->readPatternFieldModel( all_styles );
    1513                 :            :             }
    1514 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFormattedFieldModel") ) ) )
         [ #  # ][ #  # ]
    1515                 :            :             {
    1516                 :            :                 pElem = new ElementDescriptor(
    1517                 :            :                     xProps, xPropState,
    1518 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":formattedfield") ), _xDocument );
    1519         [ #  # ]:          0 :                 pElem->readFormattedFieldModel( all_styles );
    1520                 :            :             }
    1521 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedLineModel") ) ) )
         [ #  # ][ #  # ]
    1522                 :            :             {
    1523                 :            :                 pElem = new ElementDescriptor(
    1524                 :            :                     xProps, xPropState,
    1525 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":fixedline") ), _xDocument );
    1526         [ #  # ]:          0 :                 pElem->readFixedLineModel( all_styles );
    1527                 :            :             }
    1528 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlScrollBarModel") ) ) )
         [ #  # ][ #  # ]
    1529                 :            :             {
    1530                 :            :                 pElem = new ElementDescriptor(
    1531                 :            :                     xProps, xPropState,
    1532 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":scrollbar") ), _xDocument );
    1533         [ #  # ]:          0 :                 pElem->readScrollBarModel( all_styles );
    1534                 :            :             }
    1535 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlSpinButtonModel") ) ) )
         [ #  # ][ #  # ]
    1536                 :            :             {
    1537                 :            :                 pElem = new ElementDescriptor(
    1538                 :            :                     xProps, xPropState,
    1539 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":spinbutton") ), _xDocument );
    1540         [ #  # ]:          0 :                 pElem->readSpinButtonModel( all_styles );
    1541                 :            :              }
    1542 [ #  # ][ #  # ]:          0 :             else if (xServiceInfo->supportsService( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlProgressBarModel") ) ) )
         [ #  # ][ #  # ]
    1543                 :            :             {
    1544                 :            :                 pElem = new ElementDescriptor(
    1545                 :            :                     xProps, xPropState,
    1546 [ #  # ][ #  # ]:          0 :                     OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":progressmeter") ), _xDocument );
    1547         [ #  # ]:          0 :                 pElem->readProgressBarModel( all_styles );
    1548                 :            :             }
    1549                 :            : 
    1550         [ #  # ]:          0 :             if (pElem)
    1551                 :            :             {
    1552         [ #  # ]:          0 :                 all_elements.push_back( pElem );
    1553                 :            :             }
    1554                 :            :             else
    1555                 :            :             {
    1556                 :            :                 OSL_FAIL( "unknown control type!" );
    1557                 :          0 :                 continue;
    1558                 :            :             }
    1559                 :            :         }
    1560 [ #  # ][ #  # ]:          0 :     }
         [ #  # ][ #  # ]
    1561         [ #  # ]:          0 :     if (! all_elements.empty())
    1562                 :            :     {
    1563         [ #  # ]:          0 :         for ( std::size_t n = 0; n < all_elements.size(); ++n )
    1564                 :            :         {
    1565 [ #  # ][ #  # ]:          0 :             addSubElement( all_elements[ n ] );
                 [ #  # ]
    1566                 :            :         }
    1567 [ #  # ][ #  # ]:          0 :     }
                 [ #  # ]
    1568                 :            : }
    1569                 :            : 
    1570                 :            : }
    1571                 :            : 
    1572                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10