Rename GetSelectEntryData -> GetSelectedEntryData
Change-Id: Ia6402f6d2c978cbd5557052a43e9728ca9e11173 Reviewed-on: https://gerrit.libreoffice.org/42285 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
parent
83de03e077
commit
b9a8ac48d7
@ -448,7 +448,7 @@ void LanguageBox::ClearBox()
|
||||
|
||||
void LanguageBox::SetLanguage()
|
||||
{
|
||||
LanguageEntry* pEntry = static_cast<LanguageEntry*>(GetSelectEntryData());
|
||||
LanguageEntry* pEntry = static_cast<LanguageEntry*>(GetSelectedEntryData());
|
||||
if ( pEntry )
|
||||
GetShell()->GetCurLocalizationMgr()->handleSetCurrentLocale( pEntry->m_aLocale );
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ OUString CommandCategoryListBox::MapCommand2UIName(const OUString& sCommand)
|
||||
void CommandCategoryListBox::categorySelected( const VclPtr<SfxConfigFunctionListBox>& pFunctionListBox,
|
||||
const OUString& filterTerm )
|
||||
{
|
||||
SfxGroupInfo_Impl *pInfo = static_cast<SfxGroupInfo_Impl*>(GetSelectEntryData());
|
||||
SfxGroupInfo_Impl *pInfo = static_cast<SfxGroupInfo_Impl*>(GetSelectedEntryData());
|
||||
pFunctionListBox->SetUpdateMode(false);
|
||||
pFunctionListBox->ClearAll();
|
||||
|
||||
|
@ -198,7 +198,7 @@ SotClipboardFormatId SvPasteObjectDialog::GetFormat( const TransferableDataHelpe
|
||||
|
||||
if( Dialog::Execute() == RET_OK )
|
||||
{
|
||||
nSelFormat = static_cast<SotClipboardFormatId>(reinterpret_cast<sal_uLong>(ObjectLB().GetSelectEntryData()));
|
||||
nSelFormat = static_cast<SotClipboardFormatId>(reinterpret_cast<sal_uLong>(ObjectLB().GetSelectedEntryData()));
|
||||
}
|
||||
|
||||
return nSelFormat;
|
||||
|
@ -1329,7 +1329,7 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
// handle settings for UI Language
|
||||
// a change of setting needs to bring up a warning message
|
||||
OUString aLangString;
|
||||
sal_Int32 d = (sal_Int32)reinterpret_cast<sal_IntPtr>(m_pUserInterfaceLB->GetSelectEntryData());
|
||||
sal_Int32 d = (sal_Int32)reinterpret_cast<sal_IntPtr>(m_pUserInterfaceLB->GetSelectedEntryData());
|
||||
if( d > 0 && seqInstalledLanguages.getLength() > d-1)
|
||||
aLangString = seqInstalledLanguages[d-1];
|
||||
|
||||
@ -1408,7 +1408,7 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
|
||||
// Configured currency, for example, USD-en-US or EUR-de-DE, or empty for locale default.
|
||||
OUString sOldCurr = pLangConfig->aSysLocaleOptions.GetCurrencyConfigString();
|
||||
const NfCurrencyEntry* pCurr = static_cast<const NfCurrencyEntry*>(m_pCurrencyLB->GetSelectEntryData());
|
||||
const NfCurrencyEntry* pCurr = static_cast<const NfCurrencyEntry*>(m_pCurrencyLB->GetSelectedEntryData());
|
||||
OUString sNewCurr;
|
||||
if ( pCurr )
|
||||
sNewCurr = SvtSysLocaleOptions::CreateCurrencyConfigString(
|
||||
|
@ -260,7 +260,7 @@ bool SvxSaveTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
|
||||
if ( aODFVersionLB->IsValueChangedFromSaved() )
|
||||
{
|
||||
sal_IntPtr nVersion = sal_IntPtr( aODFVersionLB->GetSelectEntryData() );
|
||||
sal_IntPtr nVersion = sal_IntPtr( aODFVersionLB->GetSelectedEntryData() );
|
||||
aSaveOpt.SetODFDefaultVersion( SvtSaveOptions::ODFDefaultVersion( nVersion ) );
|
||||
}
|
||||
|
||||
@ -631,7 +631,7 @@ IMPL_LINK( SvxSaveTabPage, FilterHdl_Impl, ListBox&, rBox, void )
|
||||
|
||||
IMPL_LINK_NOARG(SvxSaveTabPage, ODFVersionHdl_Impl, ListBox&, void)
|
||||
{
|
||||
sal_IntPtr nVersion = sal_IntPtr( aODFVersionLB->GetSelectEntryData() );
|
||||
sal_IntPtr nVersion = sal_IntPtr( aODFVersionLB->GetSelectedEntryData() );
|
||||
bool bShown = SvtSaveOptions::ODFDefaultVersion( nVersion ) != SvtSaveOptions::ODFVER_LATEST;
|
||||
if ( bShown )
|
||||
{
|
||||
@ -647,7 +647,7 @@ IMPL_LINK_NOARG(SvxSaveTabPage, ODFVersionHdl_Impl, ListBox&, void)
|
||||
}
|
||||
|
||||
bShown = !bHasODFFormat
|
||||
|| ( aSaveAsLB->GetSelectEntryData() != nullptr );
|
||||
|| ( aSaveAsLB->GetSelectedEntryData() != nullptr );
|
||||
}
|
||||
|
||||
aODFWarningFI->Show( bShown );
|
||||
|
@ -101,7 +101,7 @@ struct SvxBackgroundPage_Impl
|
||||
/// Returns the fill style of the currently selected entry.
|
||||
static drawing::FillStyle lcl_getFillStyle(ListBox const * pLbSelect)
|
||||
{
|
||||
return (drawing::FillStyle)reinterpret_cast<sal_uLong>(pLbSelect->GetSelectEntryData());
|
||||
return (drawing::FillStyle)reinterpret_cast<sal_uLong>(pLbSelect->GetSelectedEntryData());
|
||||
}
|
||||
|
||||
// Selects the entry matching the specified fill style.
|
||||
|
@ -1781,7 +1781,7 @@ IMPL_LINK( SvxNumOptionsTabPage, NumberTypeSelectHdl_Impl, ListBox&, rBox, void
|
||||
{
|
||||
SvxNumberFormat aNumFmt(pActNum->GetLevel(i));
|
||||
// PAGEDESC does not exist
|
||||
SvxNumType nNumType = (SvxNumType)reinterpret_cast<sal_uLong>(rBox.GetSelectEntryData());
|
||||
SvxNumType nNumType = (SvxNumType)reinterpret_cast<sal_uLong>(rBox.GetSelectedEntryData());
|
||||
aNumFmt.SetNumberingType(nNumType);
|
||||
sal_uInt16 nNumberingType = aNumFmt.GetNumberingType();
|
||||
if(SVX_NUM_BITMAP == (nNumberingType&(~LINK_TOKEN)))
|
||||
|
@ -1304,7 +1304,7 @@ IMPL_LINK( SvxSwPosSizeTabPage, PosHdl, ListBox&, rLB, void )
|
||||
{
|
||||
|
||||
if (pRelLB->GetSelectedEntryPos() != LISTBOX_ENTRY_NOTFOUND)
|
||||
nRel = static_cast<RelationMap *>(pRelLB->GetSelectEntryData())->nRelation;
|
||||
nRel = static_cast<RelationMap *>(pRelLB->GetSelectedEntryData())->nRelation;
|
||||
|
||||
FillRelLB(pMap, nMapPos, nAlign, nRel, *pRelLB, *pRelFT);
|
||||
}
|
||||
@ -1421,7 +1421,7 @@ short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBo
|
||||
{
|
||||
if (rRelationLB.GetSelectedEntryPos() != LISTBOX_ENTRY_NOTFOUND)
|
||||
{
|
||||
LB nRel = static_cast<RelationMap *>(rRelationLB.GetSelectEntryData())->nLBRelation;
|
||||
LB nRel = static_cast<RelationMap *>(rRelationLB.GetSelectedEntryData())->nLBRelation;
|
||||
std::size_t nMapCount = ::lcl_GetFrmMapCount(pMap);
|
||||
SvxSwFramePosString::StringId eStrId = pMap[nMapPos].eStrId;
|
||||
|
||||
|
@ -1115,7 +1115,7 @@ IMPL_LINK_NOARG(UpdateDialog, selectionHandler, SvTreeListBox*, void)
|
||||
{
|
||||
OUStringBuffer b;
|
||||
UpdateDialog::Index const * p = static_cast< UpdateDialog::Index const * >(
|
||||
m_pUpdates->GetSelectEntryData());
|
||||
m_pUpdates->GetSelectedEntryData());
|
||||
clearDescription();
|
||||
|
||||
if ( p != nullptr )
|
||||
|
@ -182,7 +182,7 @@ namespace dbp
|
||||
rContext.xForm->setPropertyValue("DataSourceName", makeAny( sDataSource ) );
|
||||
}
|
||||
OUString sCommand = m_pTable->GetSelectedEntry();
|
||||
sal_Int32 nCommandType = reinterpret_cast< sal_IntPtr >( m_pTable->GetSelectEntryData() );
|
||||
sal_Int32 nCommandType = reinterpret_cast< sal_IntPtr >( m_pTable->GetSelectedEntryData() );
|
||||
|
||||
rContext.xForm->setPropertyValue("Command", makeAny( sCommand ) );
|
||||
rContext.xForm->setPropertyValue("CommandType", makeAny( nCommandType ) );
|
||||
|
@ -1682,7 +1682,7 @@ void ImplErrorDialog::dispose()
|
||||
|
||||
IMPL_LINK_NOARG(ImplErrorDialog, SelectHdl, ListBox&, void)
|
||||
{
|
||||
OUString* pStr = static_cast<OUString*>(m_pErrors->GetSelectEntryData());
|
||||
OUString* pStr = static_cast<OUString*>(m_pErrors->GetSelectedEntryData());
|
||||
m_pExplanation->SetText( pStr ? *pStr : OUString() );
|
||||
}
|
||||
|
||||
|
@ -228,7 +228,7 @@ inline void SvtExpFileDlg_Impl::SetNoFilterListSelection( )
|
||||
inline SvtFileDialogFilter_Impl* SvtExpFileDlg_Impl::GetSelectedFilterEntry( OUString& _rDisplayName ) const
|
||||
{
|
||||
_rDisplayName = _pLbFilter->GetSelectedEntry();
|
||||
return static_cast< SvtFileDialogFilter_Impl* >( _pLbFilter->GetSelectEntryData () );
|
||||
return static_cast< SvtFileDialogFilter_Impl* >( _pLbFilter->GetSelectedEntryData () );
|
||||
}
|
||||
|
||||
inline bool SvtExpFileDlg_Impl::IsFilterListTravelSelect() const
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
|
||||
void SelectEntryPos ( sal_uLong nPos );
|
||||
sal_uLong GetSelectedEntryPos () const;
|
||||
void* GetSelectEntryData () const { return GetEntryData(GetSelectedEntryPos()); }
|
||||
void* GetSelectedEntryData () const { return GetEntryData(GetSelectedEntryPos()); }
|
||||
|
||||
OUString GetText ( sal_uLong nPos ) const;
|
||||
sal_uLong GetCheckedEntryCount() const;
|
||||
|
@ -174,7 +174,7 @@ public:
|
||||
|
||||
void SetEntryData( sal_Int32 nPos, void* pNewData );
|
||||
void* GetEntryData( sal_Int32 nPos ) const;
|
||||
void* GetSelectEntryData() const { return GetEntryData(GetSelectedEntryPos()); }
|
||||
void* GetSelectedEntryData() const { return GetEntryData(GetSelectedEntryPos()); }
|
||||
|
||||
/** this methods stores a combination of flags from the
|
||||
ListBoxEntryFlags::* defines at the given entry.
|
||||
|
@ -224,11 +224,11 @@ sal_Int32 ODateTimeDialog::getFormatKey(bool _bDate) const
|
||||
sal_Int32 nFormatKey;
|
||||
if ( _bDate )
|
||||
{
|
||||
nFormatKey = static_cast<sal_Int32>(reinterpret_cast<sal_IntPtr>(m_pDateListBox->GetSelectEntryData()));
|
||||
nFormatKey = static_cast<sal_Int32>(reinterpret_cast<sal_IntPtr>(m_pDateListBox->GetSelectedEntryData()));
|
||||
}
|
||||
else
|
||||
{
|
||||
nFormatKey = static_cast<sal_Int32>(reinterpret_cast<sal_IntPtr>(m_pTimeListBox->GetSelectEntryData()));
|
||||
nFormatKey = static_cast<sal_Int32>(reinterpret_cast<sal_IntPtr>(m_pTimeListBox->GetSelectedEntryData()));
|
||||
}
|
||||
return nFormatKey;
|
||||
}
|
||||
|
@ -925,7 +925,7 @@ void OGroupsSortingDialog::SaveData( sal_Int32 _nRow)
|
||||
xGroup->setKeepTogether( m_pKeepTogetherLst->GetSelectedEntryPos() );
|
||||
if ( m_pGroupOnLst->IsValueChangedFromSaved() )
|
||||
{
|
||||
sal_Int16 nGroupOn = static_cast<sal_Int16>(reinterpret_cast<sal_IntPtr>(m_pGroupOnLst->GetSelectEntryData()));
|
||||
sal_Int16 nGroupOn = static_cast<sal_Int16>(reinterpret_cast<sal_IntPtr>(m_pGroupOnLst->GetSelectedEntryData()));
|
||||
xGroup->setGroupOn( nGroupOn );
|
||||
}
|
||||
if ( m_pGroupIntervalEd->IsValueChangedFromSaved() )
|
||||
|
@ -1820,7 +1820,7 @@ void CustomAnimationPane::onAdd()
|
||||
return;
|
||||
|
||||
mpLBAnimation->SelectEntryPos(nFirstEffect);
|
||||
void* pEntryData = mpLBAnimation->GetSelectEntryData();
|
||||
void* pEntryData = mpLBAnimation->GetSelectedEntryData();
|
||||
if( pEntryData )
|
||||
pDescriptor = *static_cast< CustomAnimationPresetPtr* >( pEntryData );
|
||||
|
||||
@ -2112,7 +2112,7 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void)
|
||||
{
|
||||
if( maListSelection.size() == 1 )
|
||||
{
|
||||
CustomAnimationPresetPtr* pPreset = static_cast< CustomAnimationPresetPtr* >(mpLBAnimation->GetSelectEntryData());
|
||||
CustomAnimationPresetPtr* pPreset = static_cast< CustomAnimationPresetPtr* >(mpLBAnimation->GetSelectedEntryData());
|
||||
PathKind ePathKind = getCreatePathKind();
|
||||
|
||||
// tdf#99137, the selected entry may also be a subcategory title, so not an effect
|
||||
|
@ -575,7 +575,7 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, DownHdl, Button*, void)
|
||||
if (!pImagesLst->GetEntry(nActPos + 1).isEmpty())
|
||||
{
|
||||
OUString sActEntry( pImagesLst->GetSelectedEntry() );
|
||||
OUString* pActData = static_cast<OUString*>(pImagesLst->GetSelectEntryData());
|
||||
OUString* pActData = static_cast<OUString*>(pImagesLst->GetSelectedEntryData());
|
||||
OUString sAct(*pActData);
|
||||
|
||||
OUString sDownEntry( pImagesLst->GetEntry(nActPos + 1) );
|
||||
@ -607,7 +607,7 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, RemoveHdl, Button*, void)
|
||||
|
||||
IMPL_LINK_NOARG(SdPhotoAlbumDialog, SelectHdl, ListBox&, void)
|
||||
{
|
||||
OUString* pData = static_cast<OUString*>(pImagesLst->GetSelectEntryData());
|
||||
OUString* pData = static_cast<OUString*>(pImagesLst->GetSelectedEntryData());
|
||||
OUString sImgUrl = pData ? *pData : "";
|
||||
|
||||
if (sImgUrl != SdResId(STR_PHOTO_ALBUM_TEXTBOX))
|
||||
|
@ -1083,7 +1083,7 @@ void SearchTabPage_Impl::SetDoubleClickHdl( const Link<ListBox&,void>& rLink )
|
||||
OUString SearchTabPage_Impl::GetSelectedEntry() const
|
||||
{
|
||||
OUString aRet;
|
||||
OUString* pData = static_cast<OUString*>(m_pResultsLB->GetSelectEntryData());
|
||||
OUString* pData = static_cast<OUString*>(m_pResultsLB->GetSelectedEntryData());
|
||||
if ( pData )
|
||||
aRet = *pData;
|
||||
return aRet;
|
||||
@ -1329,7 +1329,7 @@ void BookmarksTabPage_Impl::SetDoubleClickHdl( const Link<ListBox&,void>& rLink
|
||||
OUString BookmarksTabPage_Impl::GetSelectedEntry() const
|
||||
{
|
||||
OUString aRet;
|
||||
OUString* pData = static_cast<OUString*>(m_pBookmarksBox->GetSelectEntryData());
|
||||
OUString* pData = static_cast<OUString*>(m_pBookmarksBox->GetSelectedEntryData());
|
||||
if ( pData )
|
||||
aRet = *pData;
|
||||
return aRet;
|
||||
@ -1569,7 +1569,7 @@ IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, InitHdl, Timer *, void)
|
||||
|
||||
IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, SelectFactoryHdl, Timer *, void)
|
||||
{
|
||||
OUString* pFactory = static_cast<OUString*>(m_pActiveLB->GetSelectEntryData());
|
||||
OUString* pFactory = static_cast<OUString*>(m_pActiveLB->GetSelectedEntryData());
|
||||
if ( pFactory )
|
||||
{
|
||||
SetFactory( pFactory->toAsciiLowerCase(), false );
|
||||
|
@ -1554,7 +1554,7 @@ void CustomPropertiesWindow::dispose()
|
||||
IMPL_LINK(CustomPropertiesWindow, TypeHdl, ListBox&, rListBox, void)
|
||||
{
|
||||
CustomPropertiesTypeBox* pBox = static_cast<CustomPropertiesTypeBox*>(&rListBox);
|
||||
long nType = reinterpret_cast<long>( pBox->GetSelectEntryData() );
|
||||
long nType = reinterpret_cast<long>( pBox->GetSelectedEntryData() );
|
||||
CustomPropertyLine* pLine = pBox->GetLine();
|
||||
pLine->m_aValueEdit->Show( (CUSTOM_TYPE_TEXT == nType) || (CUSTOM_TYPE_NUMBER == nType) );
|
||||
pLine->m_aDateField->Show( (CUSTOM_TYPE_DATE == nType) || (CUSTOM_TYPE_DATETIME == nType) );
|
||||
@ -1626,7 +1626,7 @@ bool CustomPropertiesWindow::IsLineValid( CustomPropertyLine* pLine ) const
|
||||
bool bIsValid = true;
|
||||
pLine->m_bTypeLostFocus = false;
|
||||
long nType = reinterpret_cast<long>(
|
||||
pLine->m_aTypeBox->GetSelectEntryData() );
|
||||
pLine->m_aTypeBox->GetSelectedEntryData() );
|
||||
OUString sValue = pLine->m_aValueEdit->GetText();
|
||||
if ( sValue.isEmpty() )
|
||||
return true;
|
||||
@ -1889,7 +1889,7 @@ Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties() c
|
||||
{
|
||||
aPropertiesSeq[i].Name = sPropertyName;
|
||||
long nType = reinterpret_cast<long>(
|
||||
pLine->m_aTypeBox->GetSelectEntryData() );
|
||||
pLine->m_aTypeBox->GetSelectedEntryData() );
|
||||
if ( CUSTOM_TYPE_NUMBER == nType )
|
||||
{
|
||||
double nValue = 0;
|
||||
|
@ -630,7 +630,7 @@ IMPL_LINK_NOARG(SvxRubyDialog, CharStyleHdl_Impl, ListBox&, void)
|
||||
AssertOneEntry();
|
||||
OUString sStyleName;
|
||||
if (LISTBOX_ENTRY_NOTFOUND != m_pCharStyleLB->GetSelectedEntryPos())
|
||||
sStyleName = *static_cast<OUString*>(m_pCharStyleLB->GetSelectEntryData());
|
||||
sStyleName = *static_cast<OUString*>(m_pCharStyleLB->GetSelectedEntryData());
|
||||
Sequence<PropertyValues>& aRubyValues = m_pImpl->GetRubyValues();
|
||||
for (PropertyValues & rProps : aRubyValues)
|
||||
{
|
||||
|
@ -817,7 +817,7 @@ void SwCaptionOptPage::SaveEntry(SvTreeListEntry const * pEntry)
|
||||
pOpt->SetCategory("");
|
||||
else
|
||||
pOpt->SetCategory(comphelper::string::strip(aName, ' '));
|
||||
pOpt->SetNumType((sal_uInt16)reinterpret_cast<sal_uLong>(m_pFormatBox->GetSelectEntryData()));
|
||||
pOpt->SetNumType((sal_uInt16)reinterpret_cast<sal_uLong>(m_pFormatBox->GetSelectedEntryData()));
|
||||
pOpt->SetCaption(m_pTextEdit->IsEnabled() ? m_pTextEdit->GetText() : OUString() );
|
||||
pOpt->SetPos(m_pPosBox->GetSelectedEntryPos());
|
||||
sal_Int32 nPos = m_pLbLevel->GetSelectedEntryPos();
|
||||
|
@ -435,7 +435,7 @@ void SwMMResultEmailDialog::FillInEmailSettings()
|
||||
if (m_pAttachmentED->GetText().isEmpty())
|
||||
{
|
||||
OUString sAttach = "." + lcl_GetExtensionForDocType(
|
||||
reinterpret_cast<sal_uLong>(m_pSendAsLB->GetSelectEntryData()));
|
||||
reinterpret_cast<sal_uLong>(m_pSendAsLB->GetSelectedEntryData()));
|
||||
m_pAttachmentED->SetText(sAttach);
|
||||
|
||||
}
|
||||
@ -860,7 +860,7 @@ IMPL_LINK(SwMMResultPrintDialog, PrinterSetupHdl_Impl, Button*, pButton, void)
|
||||
|
||||
IMPL_LINK(SwMMResultEmailDialog, SendTypeHdl_Impl, ListBox&, rBox, void)
|
||||
{
|
||||
sal_uLong nDocType = reinterpret_cast<sal_uLong>(rBox.GetSelectEntryData());
|
||||
sal_uLong nDocType = reinterpret_cast<sal_uLong>(rBox.GetSelectedEntryData());
|
||||
bool bEnable = MM_DOCTYPE_HTML != nDocType && MM_DOCTYPE_TEXT != nDocType;
|
||||
m_pSendAsPB->Enable( bEnable );
|
||||
m_pAttachmentGroup->Enable( bEnable );
|
||||
@ -941,7 +941,7 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void)
|
||||
rtl_TextEncoding eEncoding = ::osl_getThreadTextEncoding();
|
||||
SfxFilterContainer* pFilterContainer = SwDocShell::Factory().GetFilterContainer();
|
||||
std::shared_ptr<const SfxFilter> pSfxFlt;
|
||||
sal_uLong nDocType = reinterpret_cast<sal_uLong>(m_pSendAsLB->GetSelectEntryData());
|
||||
sal_uLong nDocType = reinterpret_cast<sal_uLong>(m_pSendAsLB->GetSelectedEntryData());
|
||||
OUString sExtension = lcl_GetExtensionForDocType(nDocType);
|
||||
switch( nDocType )
|
||||
{
|
||||
@ -1034,7 +1034,7 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void)
|
||||
++nTokenCount;
|
||||
}
|
||||
sAttach = comphelper::string::setToken(sAttach, nTokenCount - 1, '.', lcl_GetExtensionForDocType(
|
||||
reinterpret_cast<sal_uLong>(m_pSendAsLB->GetSelectEntryData())));
|
||||
reinterpret_cast<sal_uLong>(m_pSendAsLB->GetSelectedEntryData())));
|
||||
m_pAttachmentED->SetText(sAttach);
|
||||
}
|
||||
else
|
||||
|
@ -270,7 +270,7 @@ IMPL_LINK_NOARG(SwEnvPage, FieldHdl, Button*, void)
|
||||
{
|
||||
OUString aStr("<" + m_pDatabaseLB->GetSelectedEntry() + "." +
|
||||
m_pTableLB->GetSelectedEntry() + "." +
|
||||
OUString(m_pTableLB->GetSelectEntryData() == nullptr ? '0' : '1') + "." +
|
||||
OUString(m_pTableLB->GetSelectedEntryData() == nullptr ? '0' : '1') + "." +
|
||||
m_pDBFieldLB->GetSelectedEntry() + ">");
|
||||
m_pAddrEdit->ReplaceSelected(aStr);
|
||||
Selection aSel = m_pAddrEdit->GetSelection();
|
||||
|
@ -349,7 +349,7 @@ IMPL_LINK_NOARG(SwLabPage, FieldHdl, Button*, void)
|
||||
{
|
||||
OUString aStr("<" + m_pDatabaseLB->GetSelectedEntry() + "." +
|
||||
m_pTableLB->GetSelectedEntry() + "." +
|
||||
(m_pTableLB->GetSelectEntryData() == nullptr ? OUString("0") : OUString("1")) + "." +
|
||||
(m_pTableLB->GetSelectedEntryData() == nullptr ? OUString("0") : OUString("1")) + "." +
|
||||
m_pDBFieldLB->GetSelectedEntry() + ">");
|
||||
m_pWritingEdit->ReplaceSelected(aStr);
|
||||
Selection aSel = m_pWritingEdit->GetSelection();
|
||||
@ -640,7 +640,7 @@ DeactivateRC SwVisitingCardPage::DeactivatePage(SfxItemSet* _pSet)
|
||||
|
||||
bool SwVisitingCardPage::FillItemSet(SfxItemSet* rSet)
|
||||
{
|
||||
const OUString* pGroup = static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectEntryData());
|
||||
const OUString* pGroup = static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectedEntryData());
|
||||
OSL_ENSURE(pGroup, "no group selected?");
|
||||
|
||||
if (pGroup)
|
||||
|
@ -79,7 +79,7 @@ void SwVisitingCardPage::InitFrameControl()
|
||||
if(LISTBOX_ENTRY_NOTFOUND == m_pAutoTextGroupLB->GetSelectedEntryPos())
|
||||
m_pAutoTextGroupLB->SelectEntryPos(0);
|
||||
const OUString *pCurGroupName(
|
||||
static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectEntryData()));
|
||||
static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectedEntryData()));
|
||||
if(m_xAutoText->hasByName(*pCurGroupName))
|
||||
{
|
||||
uno::Any aGroup = m_xAutoText->getByName(*pCurGroupName);
|
||||
@ -112,7 +112,7 @@ IMPL_LINK_NOARG(SwVisitingCardPage, FrameControlInitializedHdl, SwOneExampleFram
|
||||
|
||||
if(LISTBOX_ENTRY_NOTFOUND != m_pAutoTextGroupLB->GetSelectedEntryPos())
|
||||
{
|
||||
const OUString *pGroup( static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectEntryData()) );
|
||||
const OUString *pGroup( static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectedEntryData()) );
|
||||
uno::Any aGroup = m_xAutoText->getByName(*pGroup);
|
||||
uno::Reference< text::XAutoTextGroup > xGroup;
|
||||
aGroup >>= xGroup;
|
||||
@ -143,7 +143,7 @@ IMPL_LINK( SwVisitingCardPage, AutoTextSelectHdl, ListBox&, rBox, void )
|
||||
{
|
||||
if (m_pAutoTextGroupLB == &rBox)
|
||||
{
|
||||
const OUString *pGroup( static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectEntryData()));
|
||||
const OUString *pGroup( static_cast<const OUString*>(m_pAutoTextGroupLB->GetSelectedEntryData()));
|
||||
uno::Any aGroup = m_xAutoText->getByName(*pGroup);
|
||||
uno::Reference< text::XAutoTextGroup > xGroup;
|
||||
aGroup >>= xGroup;
|
||||
|
@ -515,7 +515,7 @@ bool SwMailMergeDlg::ExecQryShell()
|
||||
if (!AskUserFilename()) {
|
||||
pModOpt->SetNameFromColumn(m_pColumnLB->GetSelectedEntry());
|
||||
if( m_pFilterLB->GetSelectedEntryPos() != LISTBOX_ENTRY_NOTFOUND)
|
||||
m_sSaveFilter = *static_cast<const OUString*>(m_pFilterLB->GetSelectEntryData());
|
||||
m_sSaveFilter = *static_cast<const OUString*>(m_pFilterLB->GetSelectedEntryData());
|
||||
m_sFilename = OUString();
|
||||
} else {
|
||||
//#i97667# reset column name - otherwise it's remembered from the last run
|
||||
|
@ -243,7 +243,7 @@ void SwColumnDlg::ObjectHdl(ListBox const * pBox)
|
||||
{
|
||||
pTabPage->FillItemSet(pSet);
|
||||
}
|
||||
nOldSelection = reinterpret_cast<sal_IntPtr>(m_pApplyToLB->GetSelectEntryData());
|
||||
nOldSelection = reinterpret_cast<sal_IntPtr>(m_pApplyToLB->GetSelectedEntryData());
|
||||
long nWidth = nSelectionWidth;
|
||||
switch(nOldSelection)
|
||||
{
|
||||
|
@ -266,7 +266,7 @@ void SwCaptionDialog::Apply()
|
||||
aOpt.SetCategory(comphelper::string::strip(aName, ' '));
|
||||
aOpt.SetNumSeparator( m_pNumberingSeparatorED->GetText() );
|
||||
}
|
||||
aOpt.SetNumType( (sal_uInt16)reinterpret_cast<sal_uIntPtr>(m_pFormatBox->GetSelectEntryData()) );
|
||||
aOpt.SetNumType( (sal_uInt16)reinterpret_cast<sal_uIntPtr>(m_pFormatBox->GetSelectedEntryData()) );
|
||||
aOpt.SetSeparator( m_pSepEdit->IsEnabled() ? m_pSepEdit->GetText() : OUString() );
|
||||
aOpt.SetCaption( m_pTextEdit->GetText() );
|
||||
aOpt.SetPos( m_pPosBox->GetSelectedEntryPos() );
|
||||
@ -347,7 +347,7 @@ void SwCaptionDialog::DrawSample()
|
||||
bool bNone = sFieldTypeName == m_sNone;
|
||||
if( !bNone )
|
||||
{
|
||||
const sal_uInt16 nNumFormat = (sal_uInt16)reinterpret_cast<sal_uIntPtr>(m_pFormatBox->GetSelectEntryData());
|
||||
const sal_uInt16 nNumFormat = (sal_uInt16)reinterpret_cast<sal_uIntPtr>(m_pFormatBox->GetSelectedEntryData());
|
||||
if( SVX_NUM_NUMBER_NONE != nNumFormat )
|
||||
{
|
||||
// category
|
||||
|
@ -1661,7 +1661,7 @@ sal_Int16 SwFramePage::GetAlignment(FrameMap *pMap, sal_Int32 nMapPos,
|
||||
return 0;
|
||||
|
||||
const RelationMap *const pRelationMap = static_cast<const RelationMap *>(
|
||||
rRelationLB.GetSelectEntryData());
|
||||
rRelationLB.GetSelectedEntryData());
|
||||
const LB nRel = pRelationMap->nLBRelation;
|
||||
const SvxSwFramePosString::StringId eStrId = pMap[nMapPos].eStrId;
|
||||
|
||||
@ -1979,7 +1979,7 @@ IMPL_LINK( SwFramePage, PosHdl, ListBox&, rLB, void )
|
||||
{
|
||||
|
||||
if (pRelLB->GetSelectedEntryPos() != LISTBOX_ENTRY_NOTFOUND)
|
||||
nRel = static_cast<RelationMap *>(pRelLB->GetSelectEntryData())->nRelation;
|
||||
nRel = static_cast<RelationMap *>(pRelLB->GetSelectedEntryData())->nRelation;
|
||||
|
||||
FillRelLB(pMap, nMapPos, nAlign, nRel, *pRelLB, *pRelFT);
|
||||
}
|
||||
|
@ -1241,7 +1241,7 @@ void SwTOXSelectTabPage::FillTOXDescription()
|
||||
rDesc.SetStyleNames(aStyleArr[i], i);
|
||||
|
||||
rDesc.SetLanguage(m_pLanguageLB->GetSelectLanguage());
|
||||
const OUString* pEntryData = static_cast<const OUString*>(m_pSortAlgorithmLB->GetSelectEntryData());
|
||||
const OUString* pEntryData = static_cast<const OUString*>(m_pSortAlgorithmLB->GetSelectedEntryData());
|
||||
OSL_ENSURE(pEntryData, "no entry data available");
|
||||
if(pEntryData)
|
||||
rDesc.SetSortAlgorithm(*pEntryData);
|
||||
@ -1295,7 +1295,7 @@ DeactivateRC SwTOXSelectTabPage::DeactivatePage( SfxItemSet* _pSet )
|
||||
{
|
||||
if(_pSet)
|
||||
_pSet->Put(SfxUInt16Item(FN_PARAM_TOX_TYPE,
|
||||
(sal_uInt16)reinterpret_cast<sal_IntPtr>(m_pTypeLB->GetSelectEntryData())));
|
||||
(sal_uInt16)reinterpret_cast<sal_IntPtr>(m_pTypeLB->GetSelectedEntryData())));
|
||||
FillTOXDescription();
|
||||
return DeactivateRC::LeavePage;
|
||||
}
|
||||
@ -1309,7 +1309,7 @@ IMPL_LINK(SwTOXSelectTabPage, TOXTypeHdl, ListBox&, rBox, void)
|
||||
{
|
||||
SwMultiTOXTabDialog* pTOXDlg = static_cast<SwMultiTOXTabDialog*>(GetTabDialog());
|
||||
const sal_uInt16 nType = sal::static_int_cast< sal_uInt16 >(reinterpret_cast< sal_uIntPtr >(
|
||||
rBox.GetSelectEntryData()));
|
||||
rBox.GetSelectedEntryData()));
|
||||
CurTOXType eCurType = lcl_UserData2TOXTypes(nType);
|
||||
pTOXDlg->SetCurrentTOXType(eCurType);
|
||||
|
||||
@ -1438,7 +1438,7 @@ void SwTOXSelectTabPage::LanguageHdl( ListBox const * pBox )
|
||||
|
||||
OUString sOldString;
|
||||
void* pUserData;
|
||||
if( nullptr != (pUserData = m_pSortAlgorithmLB->GetSelectEntryData()) )
|
||||
if( nullptr != (pUserData = m_pSortAlgorithmLB->GetSelectedEntryData()) )
|
||||
sOldString = *static_cast<OUString*>(pUserData);
|
||||
sal_Int32 nEnd = m_pSortAlgorithmLB->GetEntryCount();
|
||||
for( sal_Int32 n = 0; n < nEnd; ++n )
|
||||
@ -2217,11 +2217,11 @@ void SwTOXEntryTabPage::UpdateDescriptor()
|
||||
{
|
||||
rDesc.SetSortByDocument(m_pSortDocPosRB->IsChecked());
|
||||
SwTOXSortKey aKey1, aKey2, aKey3;
|
||||
aKey1.eField = (ToxAuthorityField)reinterpret_cast<sal_uIntPtr>(m_pFirstKeyLB->GetSelectEntryData());
|
||||
aKey1.eField = (ToxAuthorityField)reinterpret_cast<sal_uIntPtr>(m_pFirstKeyLB->GetSelectedEntryData());
|
||||
aKey1.bSortAscending = m_pFirstSortUpRB->IsChecked();
|
||||
aKey2.eField = (ToxAuthorityField)reinterpret_cast<sal_uIntPtr>(m_pSecondKeyLB->GetSelectEntryData());
|
||||
aKey2.eField = (ToxAuthorityField)reinterpret_cast<sal_uIntPtr>(m_pSecondKeyLB->GetSelectedEntryData());
|
||||
aKey2.bSortAscending = m_pSecondSortUpRB->IsChecked();
|
||||
aKey3.eField = (ToxAuthorityField)reinterpret_cast<sal_uIntPtr>(m_pThirdKeyLB->GetSelectEntryData());
|
||||
aKey3.eField = (ToxAuthorityField)reinterpret_cast<sal_uIntPtr>(m_pThirdKeyLB->GetSelectedEntryData());
|
||||
aKey3.bSortAscending = m_pThirdSortUpRB->IsChecked();
|
||||
|
||||
rDesc.SetSortKeys(aKey1, aKey2, aKey3);
|
||||
@ -2565,7 +2565,7 @@ IMPL_LINK(SwTOXEntryTabPage, TokenSelectedHdl, SwFormToken&, rToken, void)
|
||||
IMPL_LINK(SwTOXEntryTabPage, StyleSelectHdl, ListBox&, rBox, void)
|
||||
{
|
||||
OUString sEntry = rBox.GetSelectedEntry();
|
||||
const sal_uInt16 nId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rBox.GetSelectEntryData());
|
||||
const sal_uInt16 nId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rBox.GetSelectedEntryData());
|
||||
const bool bEqualsNoCharStyle = sEntry == sNoCharStyle;
|
||||
m_pEditStylePB->Enable(!bEqualsNoCharStyle);
|
||||
if (bEqualsNoCharStyle)
|
||||
|
@ -336,7 +336,7 @@ IMPL_LINK_NOARG(SwGlossaryGroupDlg, ModifyHdl, Edit&, void)
|
||||
bool bEnableNew = true;
|
||||
bool bEnableDel = false;
|
||||
sal_uLong nCaseReadonly =
|
||||
reinterpret_cast<sal_uLong>(m_pPathLB->GetSelectEntryData());
|
||||
reinterpret_cast<sal_uLong>(m_pPathLB->GetSelectedEntryData());
|
||||
bool bDirReadonly = 0 != (nCaseReadonly&PATH_READONLY);
|
||||
|
||||
if(sEntry.isEmpty() || bDirReadonly)
|
||||
|
@ -314,7 +314,7 @@ void SwSortDlg::Apply()
|
||||
OUString sEntry( m_pTypDLB1->GetSelectedEntry() );
|
||||
if( sEntry == aNumericText )
|
||||
sEntry.clear();
|
||||
else if( nullptr != (pUserData = m_pTypDLB1->GetSelectEntryData()) )
|
||||
else if( nullptr != (pUserData = m_pTypDLB1->GetSelectedEntryData()) )
|
||||
sEntry = *static_cast<OUString*>(pUserData);
|
||||
|
||||
SwSortKey *pKey = new SwSortKey( nCol1, sEntry,
|
||||
@ -327,7 +327,7 @@ void SwSortDlg::Apply()
|
||||
OUString sEntry( m_pTypDLB2->GetSelectedEntry() );
|
||||
if( sEntry == aNumericText )
|
||||
sEntry.clear();
|
||||
else if( nullptr != (pUserData = m_pTypDLB2->GetSelectEntryData()) )
|
||||
else if( nullptr != (pUserData = m_pTypDLB2->GetSelectedEntryData()) )
|
||||
sEntry = *static_cast<OUString*>(pUserData);
|
||||
|
||||
SwSortKey *pKey = new SwSortKey( nCol2, sEntry,
|
||||
@ -340,7 +340,7 @@ void SwSortDlg::Apply()
|
||||
OUString sEntry( m_pTypDLB3->GetSelectedEntry() );
|
||||
if( sEntry == aNumericText )
|
||||
sEntry.clear();
|
||||
else if( nullptr != (pUserData = m_pTypDLB3->GetSelectEntryData()) )
|
||||
else if( nullptr != (pUserData = m_pTypDLB3->GetSelectedEntryData()) )
|
||||
sEntry = *static_cast<OUString*>(pUserData);
|
||||
|
||||
SwSortKey *pKey = new SwSortKey( nCol3, sEntry,
|
||||
@ -444,7 +444,7 @@ void SwSortDlg::LanguageHdl(ListBox const * pLBox)
|
||||
for( int n = 0; n < nLstBoxCnt; ++n )
|
||||
{
|
||||
ListBox* pL = aLstArr[ n ];
|
||||
void* pUserData = pL->GetSelectEntryData();
|
||||
void* pUserData = pL->GetSelectedEntryData();
|
||||
if (pUserData)
|
||||
aOldStrArr[ n ] = *static_cast<OUString*>(pUserData);
|
||||
::lcl_ClearLstBoxAndDelUserData( *pL );
|
||||
|
@ -1410,7 +1410,7 @@ bool SwTextFlowPage::FillItemSet( SfxItemSet* rSet )
|
||||
{
|
||||
bModified |= nullptr != rSet->Put(
|
||||
SvxFrameDirectionItem( static_cast<SvxFrameDirection>(
|
||||
reinterpret_cast<sal_IntPtr>(m_pTextDirectionLB->GetSelectEntryData()))
|
||||
reinterpret_cast<sal_IntPtr>(m_pTextDirectionLB->GetSelectedEntryData()))
|
||||
, FN_TABLE_BOX_TEXTORIENTATION));
|
||||
}
|
||||
|
||||
|
@ -230,7 +230,7 @@ IMPL_LINK_NOARG( PageFooterPanel, FooterToggleHdl, Button*, void )
|
||||
|
||||
IMPL_LINK_NOARG( PageFooterPanel, FooterLRMarginHdl, ListBox&, void )
|
||||
{
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpFooterMarginPresetLB->GetSelectEntryData());
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpFooterMarginPresetLB->GetSelectedEntryData());
|
||||
mpFooterLRMarginItem->SetLeft(nVal);
|
||||
mpFooterLRMarginItem->SetRight(nVal);
|
||||
GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_PAGE_FOOTER_LRMARGIN,
|
||||
@ -239,7 +239,7 @@ IMPL_LINK_NOARG( PageFooterPanel, FooterLRMarginHdl, ListBox&, void )
|
||||
|
||||
IMPL_LINK_NOARG( PageFooterPanel, FooterSpacingHdl, ListBox&, void )
|
||||
{
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpFooterSpacingLB->GetSelectEntryData());
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpFooterSpacingLB->GetSelectedEntryData());
|
||||
mpFooterSpacingItem->SetUpper(nVal);
|
||||
GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_PAGE_FOOTER_SPACING,
|
||||
SfxCallMode::RECORD, { mpFooterSpacingItem.get() } );
|
||||
|
@ -233,7 +233,7 @@ IMPL_LINK_NOARG( PageHeaderPanel, HeaderToggleHdl, Button*, void )
|
||||
|
||||
IMPL_LINK_NOARG( PageHeaderPanel, HeaderLRMarginHdl, ListBox&, void )
|
||||
{
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpHeaderMarginPresetLB->GetSelectEntryData());
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpHeaderMarginPresetLB->GetSelectedEntryData());
|
||||
mpHeaderLRMarginItem->SetLeft(nVal);
|
||||
mpHeaderLRMarginItem->SetRight(nVal);
|
||||
GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_PAGE_HEADER_LRMARGIN,
|
||||
@ -242,7 +242,7 @@ IMPL_LINK_NOARG( PageHeaderPanel, HeaderLRMarginHdl, ListBox&, void )
|
||||
|
||||
IMPL_LINK_NOARG( PageHeaderPanel, HeaderSpacingHdl, ListBox&, void )
|
||||
{
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpHeaderSpacingLB->GetSelectEntryData());
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(mpHeaderSpacingLB->GetSelectedEntryData());
|
||||
mpHeaderSpacingItem->SetLower(nVal);
|
||||
GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_PAGE_HEADER_SPACING,
|
||||
SfxCallMode::RECORD, { mpHeaderSpacingItem.get() } );
|
||||
|
@ -214,7 +214,7 @@ IMPL_LINK_NOARG(WrapPropertyPanel, EnableContourHdl, Button*, void)
|
||||
|
||||
IMPL_LINK(WrapPropertyPanel, SpacingLBHdl, ListBox&, rBox, void)
|
||||
{
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(rBox.GetSelectEntryData());
|
||||
sal_uInt16 nVal = (sal_uInt16)reinterpret_cast<sal_uLong>(rBox.GetSelectedEntryData());
|
||||
|
||||
SvxLRSpaceItem aLRItem(nVal, nVal, 0, 0, RES_LR_SPACE);
|
||||
SvxULSpaceItem aULItem(nVal, nVal, RES_UL_SPACE);
|
||||
|
@ -1364,7 +1364,7 @@ Size const & PrintDialog::getJobPageSize()
|
||||
|
||||
void PrintDialog::updateNupFromPages()
|
||||
{
|
||||
sal_IntPtr nPages = sal_IntPtr(maNUpPage.mpNupPagesBox->GetSelectEntryData());
|
||||
sal_IntPtr nPages = sal_IntPtr(maNUpPage.mpNupPagesBox->GetSelectedEntryData());
|
||||
int nRows = int(maNUpPage.mpNupRowsEdt->GetValue());
|
||||
int nCols = int(maNUpPage.mpNupColEdt->GetValue());
|
||||
long nPageMargin = maNUpPage.mpPageMarginEdt->Denormalize(maNUpPage.mpPageMarginEdt->GetValue( FUNIT_100TH_MM ));
|
||||
|
@ -286,7 +286,7 @@ IMPL_LINK( RTSPaperPage, SelectHdl, ListBox&, rBox, void )
|
||||
}
|
||||
if( pKey )
|
||||
{
|
||||
PPDValue* pValue = static_cast<PPDValue*>(rBox.GetSelectEntryData());
|
||||
PPDValue* pValue = static_cast<PPDValue*>(rBox.GetSelectedEntryData());
|
||||
m_pParent->m_aJobData.m_aContext.setValue( pKey, pValue );
|
||||
update();
|
||||
}
|
||||
@ -432,7 +432,7 @@ sal_uLong RTSDevicePage::getColorDevice()
|
||||
|
||||
sal_uLong RTSDevicePage::getLevel()
|
||||
{
|
||||
sal_uLong nLevel = reinterpret_cast<sal_uLong>(m_pLevelBox->GetSelectEntryData());
|
||||
sal_uLong nLevel = reinterpret_cast<sal_uLong>(m_pLevelBox->GetSelectedEntryData());
|
||||
if (nLevel == 0)
|
||||
return 0; //automatic
|
||||
return nLevel < 10 ? nLevel-1 : 0;
|
||||
@ -440,7 +440,7 @@ sal_uLong RTSDevicePage::getLevel()
|
||||
|
||||
sal_uLong RTSDevicePage::getPDFDevice()
|
||||
{
|
||||
sal_uLong nLevel = reinterpret_cast<sal_uLong>(m_pLevelBox->GetSelectEntryData());
|
||||
sal_uLong nLevel = reinterpret_cast<sal_uLong>(m_pLevelBox->GetSelectedEntryData());
|
||||
if (nLevel > 9)
|
||||
return 2; //explicitly PDF
|
||||
else if (nLevel == 0)
|
||||
@ -460,13 +460,13 @@ IMPL_LINK( RTSDevicePage, SelectHdl, ListBox&, rBox, void )
|
||||
{
|
||||
if( &rBox == m_pPPDKeyBox )
|
||||
{
|
||||
const PPDKey* pKey = static_cast<PPDKey*>(m_pPPDKeyBox->GetSelectEntryData());
|
||||
const PPDKey* pKey = static_cast<PPDKey*>(m_pPPDKeyBox->GetSelectedEntryData());
|
||||
FillValueBox( pKey );
|
||||
}
|
||||
else if( &rBox == m_pPPDValueBox )
|
||||
{
|
||||
const PPDKey* pKey = static_cast<PPDKey*>(m_pPPDKeyBox->GetSelectEntryData());
|
||||
const PPDValue* pValue = static_cast<PPDValue*>(m_pPPDValueBox->GetSelectEntryData());
|
||||
const PPDKey* pKey = static_cast<PPDKey*>(m_pPPDKeyBox->GetSelectedEntryData());
|
||||
const PPDValue* pValue = static_cast<PPDValue*>(m_pPPDValueBox->GetSelectedEntryData());
|
||||
if (pKey && pValue)
|
||||
{
|
||||
m_pParent->m_aJobData.m_aContext.setValue( pKey, pValue );
|
||||
|
@ -104,7 +104,7 @@ void selectEncoding(ListBox *box, const OUString &encoding)
|
||||
|
||||
OUString getEncoding(ListBox const *box)
|
||||
{
|
||||
sal_uIntPtr pos = reinterpret_cast<sal_uIntPtr>(box->GetSelectEntryData());
|
||||
sal_uIntPtr pos = reinterpret_cast<sal_uIntPtr>(box->GetSelectedEntryData());
|
||||
if (pos>=numEncodings)
|
||||
return OUString();
|
||||
return s_encodings[pos].first;
|
||||
|
Loading…
x
Reference in New Issue
Block a user