SmartTagCtl.cxx (f6e50924) | SmartTagCtl.cxx (b6a68018) |
---|---|
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 --- 90 unchanged lines hidden (view full) --- 99 // Ask first entry for the smart tag type caption: 100 Reference< smarttags::XSmartTagAction > xAction = rActionComponents[0]; 101 102 if ( !xAction.is() ) 103 continue; 104 105 const sal_Int32 nSmartTagIndex = rActionIndices[0]; 106 const rtl::OUString aSmartTagType = xAction->getSmartTagName( nSmartTagIndex ); | 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 --- 90 unchanged lines hidden (view full) --- 99 // Ask first entry for the smart tag type caption: 100 Reference< smarttags::XSmartTagAction > xAction = rActionComponents[0]; 101 102 if ( !xAction.is() ) 103 continue; 104 105 const sal_Int32 nSmartTagIndex = rActionIndices[0]; 106 const rtl::OUString aSmartTagType = xAction->getSmartTagName( nSmartTagIndex ); |
107 const rtl::OUString aSmartTagCaption = xAction->getSmartTagCaption( nSmartTagIndex, rLocale ); | 107 const rtl::OUString aSmartTagCaption = xAction->getSmartTagCaption( nSmartTagIndex, rLocale); |
108 109 // no sub-menues if there's only one smart tag type listed: 110 PopupMenu* pSbMenu = mpMenu; 111 if ( 1 < rActionComponentsSequence.getLength() ) 112 { 113 mpMenu->InsertItem( nMenuId, aSmartTagCaption, 0, nMenuPos++); 114 pSbMenu = new PopupMenu; 115 mpMenu->SetPopupMenu( nMenuId++, pSbMenu ); --- 6 unchanged lines hidden (view full) --- 122 pSbMenu->InsertItem( nMenuId++, aSmartTagCaption2, MIB_NOSELECT, nSubMenuPos++ ); 123 pSbMenu->InsertSeparator( nSubMenuPos++ ); 124 125 // Add subitem for every action reference for the current smart tag type: 126 for ( sal_uInt16 i = 0; i < rActionComponents.getLength(); ++i ) 127 { 128 xAction = rActionComponents[i]; 129 | 108 109 // no sub-menues if there's only one smart tag type listed: 110 PopupMenu* pSbMenu = mpMenu; 111 if ( 1 < rActionComponentsSequence.getLength() ) 112 { 113 mpMenu->InsertItem( nMenuId, aSmartTagCaption, 0, nMenuPos++); 114 pSbMenu = new PopupMenu; 115 mpMenu->SetPopupMenu( nMenuId++, pSbMenu ); --- 6 unchanged lines hidden (view full) --- 122 pSbMenu->InsertItem( nMenuId++, aSmartTagCaption2, MIB_NOSELECT, nSubMenuPos++ ); 123 pSbMenu->InsertSeparator( nSubMenuPos++ ); 124 125 // Add subitem for every action reference for the current smart tag type: 126 for ( sal_uInt16 i = 0; i < rActionComponents.getLength(); ++i ) 127 { 128 xAction = rActionComponents[i]; 129 |
130 for ( sal_Int32 k = 0; k < xAction->getActionCount( aSmartTagType, xController ); ++k ) | 130 for ( sal_Int32 k = 0; k < xAction->getActionCount( aSmartTagType, xController, xSmartTagProperties ); ++k ) |
131 { 132 const sal_uInt32 nActionID = xAction->getActionID( aSmartTagType, k, xController ); 133 rtl::OUString aActionCaption = xAction->getActionCaptionFromID( nActionID, 134 aApplicationName, 135 rLocale, 136 xSmartTagProperties, 137 aRangeText, 138 rtl::OUString(), --- 83 unchanged lines hidden --- | 131 { 132 const sal_uInt32 nActionID = xAction->getActionID( aSmartTagType, k, xController ); 133 rtl::OUString aActionCaption = xAction->getActionCaptionFromID( nActionID, 134 aApplicationName, 135 rLocale, 136 xSmartTagProperties, 137 aRangeText, 138 rtl::OUString(), --- 83 unchanged lines hidden --- |