Kaydet (Commit) f32f7e4b authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: prefix members of SwLabItem

Change-Id: I8346c5f7a12deb5cbd4e4d9cc87ecadb30ebbeb4
üst deb5bae0
This diff is collapsed.
......@@ -179,38 +179,38 @@ void SwLabDlg::UpdateFieldInformation(uno::Reference< frame::XModel > & xModel,
const char* pName;
OUString SwLabItem:: *pValue;
} aArr[] = {
{ "BC_PRIV_FIRSTNAME" , &SwLabItem::aPrivFirstName },
{ "BC_PRIV_NAME" , &SwLabItem::aPrivName },
{ "BC_PRIV_INITIALS" , &SwLabItem::aPrivShortCut },
{ "BC_PRIV_FIRSTNAME_2", &SwLabItem::aPrivFirstName2 },
{ "BC_PRIV_NAME_2" , &SwLabItem::aPrivName2 },
{ "BC_PRIV_INITIALS_2" , &SwLabItem::aPrivShortCut2 },
{ "BC_PRIV_STREET" , &SwLabItem::aPrivStreet },
{ "BC_PRIV_ZIP" , &SwLabItem::aPrivZip },
{ "BC_PRIV_CITY" , &SwLabItem::aPrivCity },
{ "BC_PRIV_COUNTRY" , &SwLabItem::aPrivCountry },
{ "BC_PRIV_STATE" , &SwLabItem::aPrivState },
{ "BC_PRIV_TITLE" , &SwLabItem::aPrivTitle },
{ "BC_PRIV_PROFESSION" , &SwLabItem::aPrivProfession },
{ "BC_PRIV_PHONE" , &SwLabItem::aPrivPhone },
{ "BC_PRIV_MOBILE" , &SwLabItem::aPrivMobile },
{ "BC_PRIV_FAX" , &SwLabItem::aPrivFax },
{ "BC_PRIV_WWW" , &SwLabItem::aPrivWWW },
{ "BC_PRIV_MAIL" , &SwLabItem::aPrivMail },
{ "BC_COMP_COMPANY" , &SwLabItem::aCompCompany },
{ "BC_COMP_COMPANYEXT" , &SwLabItem::aCompCompanyExt },
{ "BC_COMP_SLOGAN" , &SwLabItem::aCompSlogan },
{ "BC_COMP_STREET" , &SwLabItem::aCompStreet },
{ "BC_COMP_ZIP" , &SwLabItem::aCompZip },
{ "BC_COMP_CITY" , &SwLabItem::aCompCity },
{ "BC_COMP_COUNTRY" , &SwLabItem::aCompCountry },
{ "BC_COMP_STATE" , &SwLabItem::aCompState },
{ "BC_COMP_POSITION" , &SwLabItem::aCompPosition },
{ "BC_COMP_PHONE" , &SwLabItem::aCompPhone },
{ "BC_COMP_MOBILE" , &SwLabItem::aCompMobile },
{ "BC_COMP_FAX" , &SwLabItem::aCompFax },
{ "BC_COMP_WWW" , &SwLabItem::aCompWWW },
{ "BC_COMP_MAIL" , &SwLabItem::aCompMail },
{ "BC_PRIV_FIRSTNAME" , &SwLabItem::m_aPrivFirstName },
{ "BC_PRIV_NAME" , &SwLabItem::m_aPrivName },
{ "BC_PRIV_INITIALS" , &SwLabItem::m_aPrivShortCut },
{ "BC_PRIV_FIRSTNAME_2", &SwLabItem::m_aPrivFirstName2 },
{ "BC_PRIV_NAME_2" , &SwLabItem::m_aPrivName2 },
{ "BC_PRIV_INITIALS_2" , &SwLabItem::m_aPrivShortCut2 },
{ "BC_PRIV_STREET" , &SwLabItem::m_aPrivStreet },
{ "BC_PRIV_ZIP" , &SwLabItem::m_aPrivZip },
{ "BC_PRIV_CITY" , &SwLabItem::m_aPrivCity },
{ "BC_PRIV_COUNTRY" , &SwLabItem::m_aPrivCountry },
{ "BC_PRIV_STATE" , &SwLabItem::m_aPrivState },
{ "BC_PRIV_TITLE" , &SwLabItem::m_aPrivTitle },
{ "BC_PRIV_PROFESSION" , &SwLabItem::m_aPrivProfession },
{ "BC_PRIV_PHONE" , &SwLabItem::m_aPrivPhone },
{ "BC_PRIV_MOBILE" , &SwLabItem::m_aPrivMobile },
{ "BC_PRIV_FAX" , &SwLabItem::m_aPrivFax },
{ "BC_PRIV_WWW" , &SwLabItem::m_aPrivWWW },
{ "BC_PRIV_MAIL" , &SwLabItem::m_aPrivMail },
{ "BC_COMP_COMPANY" , &SwLabItem::m_aCompCompany },
{ "BC_COMP_COMPANYEXT" , &SwLabItem::m_aCompCompanyExt },
{ "BC_COMP_SLOGAN" , &SwLabItem::m_aCompSlogan },
{ "BC_COMP_STREET" , &SwLabItem::m_aCompStreet },
{ "BC_COMP_ZIP" , &SwLabItem::m_aCompZip },
{ "BC_COMP_CITY" , &SwLabItem::m_aCompCity },
{ "BC_COMP_COUNTRY" , &SwLabItem::m_aCompCountry },
{ "BC_COMP_STATE" , &SwLabItem::m_aCompState },
{ "BC_COMP_POSITION" , &SwLabItem::m_aCompPosition },
{ "BC_COMP_PHONE" , &SwLabItem::m_aCompPhone },
{ "BC_COMP_MOBILE" , &SwLabItem::m_aCompMobile },
{ "BC_COMP_FAX" , &SwLabItem::m_aCompFax },
{ "BC_COMP_WWW" , &SwLabItem::m_aCompWWW },
{ "BC_COMP_MAIL" , &SwLabItem::m_aCompMail },
{ 0, 0 }
};
......
This diff is collapsed.
......@@ -126,10 +126,10 @@ SfxTabPage::sfxpg SwLabPrtPage::DeactivatePage(SfxItemSet* _pSet)
void SwLabPrtPage::FillItem(SwLabItem& rItem)
{
rItem.bPage = m_pPageButton->IsChecked();
rItem.nCol = static_cast<sal_Int32>(m_pColField->GetValue());
rItem.nRow = static_cast<sal_Int32>(m_pRowField->GetValue());
rItem.bSynchron = m_pSynchronCB->IsChecked() && m_pSynchronCB->IsEnabled();
rItem.m_bPage = m_pPageButton->IsChecked();
rItem.m_nCol = static_cast<sal_Int32>(m_pColField->GetValue());
rItem.m_nRow = static_cast<sal_Int32>(m_pRowField->GetValue());
rItem.m_bSynchron = m_pSynchronCB->IsChecked() && m_pSynchronCB->IsEnabled();
}
bool SwLabPrtPage::FillItemSet(SfxItemSet* rSet)
......@@ -147,10 +147,10 @@ void SwLabPrtPage::Reset(const SfxItemSet* )
SwLabItem aItem;
GetParentSwLabDlg()->GetLabItem(aItem);
m_pColField->SetValue (aItem.nCol);
m_pRowField->SetValue (aItem.nRow);
m_pColField->SetValue (aItem.m_nCol);
m_pRowField->SetValue (aItem.m_nRow);
if (aItem.bPage)
if (aItem.m_bPage)
{
m_pPageButton->Check();
m_pPageButton->GetClickHdl().Call(m_pPageButton);
......@@ -169,13 +169,13 @@ void SwLabPrtPage::Reset(const SfxItemSet* )
else
m_pPrinterInfo->SetText(Printer::GetDefaultPrinterName());
m_pColField->SetMax(aItem.nCols);
m_pRowField->SetMax(aItem.nRows);
m_pColField->SetMax(aItem.m_nCols);
m_pRowField->SetMax(aItem.m_nRows);
m_pColField->SetLast(m_pColField->GetMax());
m_pRowField->SetLast(m_pRowField->GetMax());
m_pSynchronCB->Check(aItem.bSynchron);
m_pSynchronCB->Check(aItem.m_bSynchron);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
......@@ -40,67 +40,67 @@ public:
virtual SfxPoolItem* Clone(SfxItemPool* = 0) const override;
OUString aLstMake; // remember last selection
OUString aLstType;
OUString sDBName; // used database
OUString aWriting; // label
OUString aMake; // label mark
OUString aType; // label type
OUString aBin; // printer shaft
sal_Int32 lHDist; // horizontal distance (user)
sal_Int32 lVDist; // vertical distance (user)
sal_Int32 lWidth; // width (user)
sal_Int32 lHeight; // height (user)
sal_Int32 lLeft; // left border (user)
sal_Int32 lUpper; // upper border (user)
sal_Int32 nCols; // number of columns (user)
sal_Int32 nRows; // number of rows (user)
sal_Int32 nCol; // column for single print
sal_Int32 nRow; // row for single print
sal_Int32 lPHeight; // paper height
sal_Int32 lPWidth; // paper width
bool bAddr;// address as label?
bool bCont;// continuous paper?
bool bPage;// whole page or single labels?
bool bSynchron;// synchronise all labels
OUString m_aLstMake; // remember last selection
OUString m_aLstType;
OUString m_sDBName; // used database
OUString m_aWriting; // label
OUString m_aMake; // label mark
OUString m_aType; // label type
OUString m_aBin; // printer shaft
sal_Int32 m_lHDist; // horizontal distance (user)
sal_Int32 m_lVDist; // vertical distance (user)
sal_Int32 m_lWidth; // width (user)
sal_Int32 m_lHeight; // height (user)
sal_Int32 m_lLeft; // left border (user)
sal_Int32 m_lUpper; // upper border (user)
sal_Int32 m_nCols; // number of columns (user)
sal_Int32 m_nRows; // number of rows (user)
sal_Int32 m_nCol; // column for single print
sal_Int32 m_nRow; // row for single print
sal_Int32 m_lPHeight; // paper height
sal_Int32 m_lPWidth; // paper width
bool m_bAddr;// address as label?
bool m_bCont;// continuous paper?
bool m_bPage;// whole page or single labels?
bool m_bSynchron;// synchronise all labels
//parts of the business card
OUString aPrivFirstName;
OUString aPrivName;
OUString aPrivShortCut;
OUString aPrivFirstName2;
OUString aPrivName2;
OUString aPrivShortCut2;
OUString aPrivStreet;
OUString aPrivZip;
OUString aPrivCity;
OUString aPrivCountry;
OUString aPrivState;
OUString aPrivTitle;
OUString aPrivProfession;
OUString aPrivPhone;
OUString aPrivMobile;
OUString aPrivFax;
OUString aPrivWWW;
OUString aPrivMail;
OUString aCompCompany;
OUString aCompCompanyExt;
OUString aCompSlogan;
OUString aCompStreet;
OUString aCompZip;
OUString aCompCity;
OUString aCompCountry;
OUString aCompState;
OUString aCompPosition;
OUString aCompPhone;
OUString aCompMobile;
OUString aCompFax;
OUString aCompWWW;
OUString aCompMail;
OUString sGlossaryGroup;
OUString sGlossaryBlockName;
OUString m_aPrivFirstName;
OUString m_aPrivName;
OUString m_aPrivShortCut;
OUString m_aPrivFirstName2;
OUString m_aPrivName2;
OUString m_aPrivShortCut2;
OUString m_aPrivStreet;
OUString m_aPrivZip;
OUString m_aPrivCity;
OUString m_aPrivCountry;
OUString m_aPrivState;
OUString m_aPrivTitle;
OUString m_aPrivProfession;
OUString m_aPrivPhone;
OUString m_aPrivMobile;
OUString m_aPrivFax;
OUString m_aPrivWWW;
OUString m_aPrivMail;
OUString m_aCompCompany;
OUString m_aCompCompanyExt;
OUString m_aCompSlogan;
OUString m_aCompStreet;
OUString m_aCompZip;
OUString m_aCompCity;
OUString m_aCompCountry;
OUString m_aCompState;
OUString m_aCompPosition;
OUString m_aCompPhone;
OUString m_aCompMobile;
OUString m_aCompFax;
OUString m_aCompWWW;
OUString m_aCompMail;
OUString m_sGlossaryGroup;
OUString m_sGlossaryBlockName;
};
class SwLabCfgItem : public utl::ConfigItem
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment