tabpagemodel.cxx (b0724fc6) | tabpagemodel.cxx (030daa25) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 66 unchanged lines hidden (view full) --- 75// ---------------------------------------------------- 76UnoControlTabPageModel::UnoControlTabPageModel( Reference< XMultiServiceFactory > const & i_factory ) 77 :ControlModelContainerBase( i_factory ) 78{ 79 ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); 80 ImplRegisterProperty( BASEPROPERTY_TITLE ); 81 ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); 82 ImplRegisterProperty( BASEPROPERTY_HELPURL ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 66 unchanged lines hidden (view full) --- 75// ---------------------------------------------------- 76UnoControlTabPageModel::UnoControlTabPageModel( Reference< XMultiServiceFactory > const & i_factory ) 77 :ControlModelContainerBase( i_factory ) 78{ 79 ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL ); 80 ImplRegisterProperty( BASEPROPERTY_TITLE ); 81 ImplRegisterProperty( BASEPROPERTY_HELPTEXT ); 82 ImplRegisterProperty( BASEPROPERTY_HELPURL ); |
83 ImplRegisterProperty( BASEPROPERTY_IMAGEURL ); 84 ImplRegisterProperty( BASEPROPERTY_ENABLED ); | |
85} 86 87::rtl::OUString UnoControlTabPageModel::getServiceName( ) throw(RuntimeException) 88{ 89 return ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageModel ); 90} 91 92Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const --- 68 unchanged lines hidden (view full) --- 161 } 162 Reference<XPropertySet> xDialogProp(xDialogModel,UNO_QUERY); 163 if ( xDialogProp.is() ) 164 { 165 static const ::rtl::OUString s_sResourceResolver(RTL_CONSTASCII_USTRINGPARAM("ResourceResolver")); 166 Reference<XPropertySet> xThis(*this,UNO_QUERY); 167 xThis->setPropertyValue(s_sResourceResolver,xDialogProp->getPropertyValue(s_sResourceResolver)); 168 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE))); | 83} 84 85::rtl::OUString UnoControlTabPageModel::getServiceName( ) throw(RuntimeException) 86{ 87 return ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageModel ); 88} 89 90Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const --- 68 unchanged lines hidden (view full) --- 159 } 160 Reference<XPropertySet> xDialogProp(xDialogModel,UNO_QUERY); 161 if ( xDialogProp.is() ) 162 { 163 static const ::rtl::OUString s_sResourceResolver(RTL_CONSTASCII_USTRINGPARAM("ResourceResolver")); 164 Reference<XPropertySet> xThis(*this,UNO_QUERY); 165 xThis->setPropertyValue(s_sResourceResolver,xDialogProp->getPropertyValue(s_sResourceResolver)); 166 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE))); |
169 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_IMAGEURL),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_IMAGEURL))); | |
170 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT))); | 167 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT))); |
171 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED))); | |
172 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_HELPURL),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPURL))); 173 } 174 } 175 } 176 else 177 m_nTabPageId = -1; 178} 179//===== Service =============================================================== --- 147 unchanged lines hidden --- | 168 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_HELPURL),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPURL))); 169 } 170 } 171 } 172 else 173 m_nTabPageId = -1; 174} 175//===== Service =============================================================== --- 147 unchanged lines hidden --- |