diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 18:36:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 07:34:29 -0600 |
commit | 15246c959ae5ab4e124859a4d8981676f9eb657f (patch) | |
tree | 87813888699be2b850201725c45564c8c6423262 /extensions/source/propctrlr/formcomponenthandler.cxx | |
parent | 710178094dfb21b0864335b1fa1a3401e4d82959 (diff) |
Remove visual noise from extensions
Change-Id: I0397d0d0e5343b7ed192a790664b068ac6955bd3
Reviewed-on: https://gerrit.libreoffice.org/8259
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions/source/propctrlr/formcomponenthandler.cxx')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 1e8bd1127bdb..66c145181d14 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -108,10 +108,10 @@ extern "C" void SAL_CALL createRegistryInfo_FormComponentPropertyHandler() ::pcr::FormComponentPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star; using namespace uno; @@ -132,9 +132,9 @@ namespace pcr namespace WritingMode2 = ::com::sun::star::text::WritingMode2; - //==================================================================== + //= FormComponentPropertyHandler - //==================================================================== + DBG_NAME( FormComponentPropertyHandler ) #define PROPERTY_ID_ROWSET 1 @@ -173,7 +173,7 @@ namespace pcr return aSupported; } - //============================================ + // TODO: -> export from toolkit struct LanguageDependentProp { @@ -647,7 +647,7 @@ namespace pcr switch ( nPropId ) { - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_SHOW_POSITION: case PROPERTY_ID_SHOW_NAVIGATION: case PROPERTY_ID_SHOW_RECORDACTIONS: @@ -667,7 +667,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_DATASOURCE: { OSL_ENSURE( _rControlValueType.getTypeClass() == TypeClass_STRING, @@ -684,7 +684,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_CONTROLLABEL: { OUString sControlValue; @@ -709,7 +709,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_DATEMIN: case PROPERTY_ID_DATEMAX: case PROPERTY_ID_DEFAULT_DATE: @@ -973,7 +973,7 @@ namespace pcr PropertyId nPropId( impl_getPropertyId_throw( _rPropertyName ) ); Property aProperty( impl_getPropertyFromId_throw( nPropId ) ); - ////////////////////////////////////////////////////////////////////// + // for the MultiLine property, we have different UI translations depending on the control // type if ( nPropId == PROPERTY_ID_MULTILINE ) @@ -993,7 +993,7 @@ namespace pcr throw UnknownPropertyException(); } - ////////////////////////////////////////////////////////////////////// + LineDescriptor aDescriptor; aDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( nPropId ) ); @@ -1004,7 +1004,7 @@ namespace pcr sal_Bool bReadOnly = sal_False; aDescriptor.Control.clear(); - ////////////////////////////////////////////////////////////////////// + bool bNeedDefaultStringIfVoidAllowed = false; @@ -1239,11 +1239,11 @@ namespace pcr break; } - ////////////////////////////////////////////////////////////////////// + if ( eType == TypeClass_SEQUENCE ) nControlType = PropertyControlType::StringListField; - ////////////////////////////////////////////////////////////////////// + // boolean values if ( eType == TypeClass_BOOLEAN ) { @@ -1261,7 +1261,7 @@ namespace pcr bNeedDefaultStringIfVoidAllowed = true; } - ////////////////////////////////////////////////////////////////////// + // enum properties sal_uInt32 nPropertyUIFlags = m_pInfoService->getPropertyUIFlags( nPropId ); bool bIsEnumProperty = ( nPropertyUIFlags & PROP_FLAG_ENUM ) != 0; @@ -1307,7 +1307,7 @@ namespace pcr } } - ////////////////////////////////////////////////////////////////////// + switch( nPropId ) { case PROPERTY_ID_REPEAT_DELAY: @@ -1353,7 +1353,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////////////// + // DataSource case PROPERTY_ID_DATASOURCE: { @@ -2029,7 +2029,7 @@ namespace pcr { try { - ////////////////////////////////////////////////////////////////// + // component class m_eComponentClass = eUnknown; @@ -2048,7 +2048,7 @@ namespace pcr m_eComponentClass = eFormControl; } - ////////////////////////////////////////////////////////////////// + // (database) sub form? Reference< XForm > xAsForm( m_xComponent, UNO_QUERY ); if ( xAsForm.is() ) @@ -2057,13 +2057,13 @@ namespace pcr m_bComponentIsSubForm = xFormsParent.is(); } - ////////////////////////////////////////////////////////////////// + // ClassId Reference< XChild > xCompAsChild( m_xComponent, UNO_QUERY ); if ( xCompAsChild.is() ) m_xObjectParent = xCompAsChild->getParent(); - ////////////////////////////////////////////////////////////////// + // ClassId impl_classifyControlModel_throw(); } @@ -2448,14 +2448,14 @@ namespace pcr { WaitCursor aWaitCursor( impl_getDefaultDialogParent_nothrow() ); - //////////////////////////////////////////////////////////// + // Setzen der UI-Daten _out_rProperty.DisplayName = m_pInfoService->getPropertyTranslation( PROPERTY_ID_COMMAND ); _out_rProperty.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( PROPERTY_ID_COMMAND ) ); _out_rProperty.PrimaryButtonId = OUString::createFromAscii(UID_PROP_DLG_SQLCOMMAND); - //////////////////////////////////////////////////////////// + sal_Int32 nCommandType = CommandType::COMMAND; impl_getPropertyValue_throw( PROPERTY_COMMANDTYPE ) >>= nCommandType; @@ -2558,7 +2558,7 @@ namespace pcr { OSL_PRECOND( m_xComponent.is(), "FormComponentPropertyHandler::impl_describeListSourceUI_throw: no component!" ); - //////////////////////////////////////////////////////////// + // Auslesen des ListSourceTypes Any aListSourceType( m_xComponent->getPropertyValue( PROPERTY_LISTSOURCETYPE ) ); @@ -2568,7 +2568,7 @@ namespace pcr _out_rDescriptor.DisplayName = m_pInfoService->getPropertyTranslation( PROPERTY_ID_LISTSOURCE ); _out_rDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( PROPERTY_ID_LISTSOURCE ) ); - //////////////////////////////////////////////////////////// + // Enums setzen switch( nListSourceType ) { @@ -3017,13 +3017,13 @@ namespace pcr //- FormSQLCommandUI - implementation - //.................................................................... + FormSQLCommandUI::FormSQLCommandUI( const Reference< XPropertySet >& _rxForm ) :SQLCommandPropertyUI( _rxForm ) { } - //.................................................................... + OUString FormSQLCommandUI::getSQLCommand() const { OUString sCommand; @@ -3031,7 +3031,7 @@ namespace pcr return sCommand; } - //.................................................................... + sal_Bool FormSQLCommandUI::getEscapeProcessing() const { sal_Bool bEscapeProcessing( sal_False ); @@ -3039,19 +3039,19 @@ namespace pcr return bEscapeProcessing; } - //.................................................................... + void FormSQLCommandUI::setSQLCommand( const OUString& _rCommand ) const { m_xObject->setPropertyValue( PROPERTY_COMMAND, makeAny( _rCommand ) ); } - //.................................................................... + void FormSQLCommandUI::setEscapeProcessing( const sal_Bool _bEscapeProcessing ) const { m_xObject->setPropertyValue( PROPERTY_ESCAPE_PROCESSING, makeAny( _bEscapeProcessing ) ); } - //.................................................................... + OUString* FormSQLCommandUI::getPropertiesToDisable() { static OUString s_aCommandProps[] = { @@ -3086,14 +3086,14 @@ namespace pcr //- ValueListCommandUI - implementation - //.................................................................... + ValueListCommandUI::ValueListCommandUI( const Reference< XPropertySet >& _rxListOrCombo ) :SQLCommandPropertyUI( _rxListOrCombo ) ,m_bPropertyValueIsList( false ) { } - //.................................................................... + OUString ValueListCommandUI::getSQLCommand() const { OUString sValue; @@ -3117,7 +3117,7 @@ namespace pcr return sValue; } - //.................................................................... + sal_Bool ValueListCommandUI::getEscapeProcessing() const { enum ListSourceType eType( ListSourceType_SQL ); @@ -3127,7 +3127,7 @@ namespace pcr return ( eType == ListSourceType_SQL ); } - //.................................................................... + void ValueListCommandUI::setSQLCommand( const OUString& _rCommand ) const { Any aValue; @@ -3138,14 +3138,14 @@ namespace pcr m_xObject->setPropertyValue( PROPERTY_LISTSOURCE, aValue ); } - //.................................................................... + void ValueListCommandUI::setEscapeProcessing( const sal_Bool _bEscapeProcessing ) const { m_xObject->setPropertyValue( PROPERTY_LISTSOURCETYPE, makeAny( _bEscapeProcessing ? ListSourceType_SQL : ListSourceType_SQLPASSTHROUGH ) ); } - //.................................................................... + OUString* ValueListCommandUI::getPropertiesToDisable() { static OUString s_aListSourceProps[] = { @@ -3310,8 +3310,8 @@ namespace pcr return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |