https://bugs.documentfoundation.org/show_bug.cgi?id=148978
Julien Nabet <serval2...@yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #15 from Julien Nabet <serval2...@yahoo.fr> --- Taking a look at sw/source/uibase/app/applab.cxx, there are 2 functions: - lcl_InsertLabText for Labels https://opengrok.libreoffice.org/xref/core/sw/source/uibase/app/applab.cxx?r=6b147d33&mo=1968&fi=102 102 static const SwFrameFormat *lcl_InsertLabText( SwWrtShell& rSh, const SwLabItem& rItem, 103 SwFrameFormat &rFormat, SwFieldMgr& rFieldMgr, 104 sal_uInt16 nCol, sal_uInt16 nRow, bool bLast ) It uses the field to display it when clicking on "New Document" 124 OUString sDBName; 125 if( (!rItem.m_bSynchron || !(nCol|nRow)) && !(sDBName = InsertLabEnvText( rSh, rFieldMgr, rItem.m_aWriting )).isEmpty() && !bLast ) 126 { 127 sDBName = comphelper::string::setToken(sDBName, 3, DB_DELIM, u"True"); 128 SwInsertField_Data aData(SwFieldTypesEnum::DatabaseNextSet, 0, sDBName, OUString(), 0, &rSh); 129 rFieldMgr.InsertField( aData ); 130 } - lcl_InsertBCText for Business cards https://opengrok.libreoffice.org/xref/core/sw/source/uibase/app/applab.cxx?r=6b147d33&mo=1968&fi=67#67 67 static const SwFrameFormat *lcl_InsertBCText( SwWrtShell& rSh, const SwLabItem& rItem, 68 SwFrameFormat &rFormat, 69 sal_uInt16 nCol, sal_uInt16 nRow ) it doesn't use any field from database but does: 88 if(!rItem.m_bSynchron || !(nCol|nRow)) 89 { 90 SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); 91 ::GlossarySetActGroup fnSetActGroup = pFact->SetGlossaryActGroupFunc(); 92 if ( fnSetActGroup ) 93 (*fnSetActGroup)( rItem.m_sGlossaryGroup ); 94 SwGlossaryHdl* pGlosHdl = rSh.GetView().GetGlosHdl(); 95 pGlosHdl->SetCurGroup(rItem.m_sGlossaryGroup, true); 96 pGlosHdl->InsertGlossary( rItem.m_sGlossaryBlockName ); 97 } m_sGlossaryBlockName and other infos are loaded with: 259 SwLabCfgItem::SwLabCfgItem(bool bLabel) : 260 ConfigItem(bLabel ? OUString("Office.Writer/Label") : OUString("Office.Writer/BusinessCard")), 261 m_bIsLabel(bLabel) https://opengrok.libreoffice.org/xref/core/sw/source/uibase/envelp/labimg.cxx?r=0a501634#259 by using: 4732 <group oor:name="BusinessCard"> 4733 <info> 4734 <desc>Contains settings for business cards.</desc> 4735 </info> 4736 <group oor:name="Medium"> ... 4873 <group oor:name="AutoText"> 4874 <info> 4875 <desc>Contains settings for the AutoText used.</desc> 4876 </info> 4877 <prop oor:name="Group" oor:type="xs:string"> 4878 <!-- UIHints: File New BusinessCards BusinessCards --> 4879 <info> 4880 <desc>Specifies the AutoText section name.</desc> 4881 <label>AutoText section</label> 4882 </info> 4883 </prop> 4884 <prop oor:name="Block" oor:type="xs:string"> 4885 <!-- UIHints: File New BusinessCards BusinessCards --> 4886 <info> 4887 <desc>Specifies the AutoText module name.</desc> 4888 </info> 4889 </prop> 4890 </group> See https://opengrok.libreoffice.org/xref/core/officecfg/registry/schema/org/openoffice/Office/Writer.xcs#4732 (notice that there's no value for Group and Block). => - where can we find these values in UI? (without using Expert Configuration) - above all, it seems it wasn't planned at all in Business Card to use Database field so I wonder if this bug is valid (and if we shouldn't revert the commit). Finally, I think we should find what was the purpose of Business cards wizard and how to use it correctly? Let's reopen this one meanwhile. -- You are receiving this mail because: You are the assignee for the bug.