LibreOffice Module sw (master)  1
labimg.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include <sal/config.h>
21 
22 #include <o3tl/any.hxx>
23 #include <tools/stream.hxx>
24 #include <osl/diagnose.h>
25 #include <com/sun/star/uno/Sequence.hxx>
26 #include <sfx2/sfxsids.hrc>
27 #include <unotools/useroptions.hxx>
28 #include <swmodule.hxx>
29 #include <labimg.hxx>
30 #include <cmdid.h>
31 #include <swtypes.hxx>
32 #include <unomid.h>
33 
34 using namespace utl;
35 using namespace ::com::sun::star::uno;
36 
38 
39  SfxPoolItem(FN_LABEL),
40  m_lLeft (0),
41  m_lUpper(0),
42  m_nCols (1),
43  m_nRows (1),
44  m_nCol (1),
45  m_nRow (1)
46 {
47  m_bAddr =
48  m_bCont =
49  m_bSynchron = false;
50  m_bPage = true;
51  m_lHDist =
52  m_lVDist =
53  m_lWidth =
54  m_lHeight =
55  m_lPWidth =
56  m_lPHeight = 5669; // 10 cm
57 }
58 
60 {
61  m_bAddr = rItem.m_bAddr;
62  m_aWriting = rItem.m_aWriting;
63  m_bCont = rItem.m_bCont;
64  m_sDBName = rItem.m_sDBName;
65  m_aLstMake = rItem.m_aLstMake;
66  m_aLstType = rItem.m_aLstType;
67  m_aMake = rItem.m_aMake;
68  m_aType = rItem.m_aType;
69  m_bPage = rItem.m_bPage;
70  m_bSynchron = rItem.m_bSynchron;
71  m_nCol = rItem.m_nCol;
72  m_nRow = rItem.m_nRow;
73  m_lHDist = rItem.m_lHDist;
74  m_lVDist = rItem.m_lVDist;
75  m_lWidth = rItem.m_lWidth;
76  m_lHeight = rItem.m_lHeight;
77  m_lLeft = rItem.m_lLeft;
78  m_lUpper = rItem.m_lUpper;
79  m_nCols = rItem.m_nCols;
80  m_nRows = rItem.m_nRows;
81  m_lPWidth = rItem.m_lPWidth;
82  m_lPHeight = rItem.m_lPHeight;
84  m_aPrivName = rItem.m_aPrivName;
87  m_aPrivName2 = rItem.m_aPrivName2;
90  m_aPrivZip = rItem.m_aPrivZip;
91  m_aPrivCity = rItem.m_aPrivCity;
93  m_aPrivState = rItem.m_aPrivState;
94  m_aPrivTitle = rItem.m_aPrivTitle;
96  m_aPrivPhone = rItem.m_aPrivPhone;
98  m_aPrivFax = rItem.m_aPrivFax;
99  m_aPrivWWW = rItem.m_aPrivWWW;
100  m_aPrivMail = rItem.m_aPrivMail;
105  m_aCompZip = rItem.m_aCompZip;
106  m_aCompCity = rItem.m_aCompCity;
108  m_aCompState = rItem.m_aCompState;
110  m_aCompPhone = rItem.m_aCompPhone;
112  m_aCompFax = rItem.m_aCompFax;
113  m_aCompWWW = rItem.m_aCompWWW;
114  m_aCompMail = rItem.m_aCompMail;
117  return *this;
118 }
119 
120 bool SwLabItem::operator ==(const SfxPoolItem& rItem) const
121 {
122  const SwLabItem& rLab = static_cast<const SwLabItem&>( rItem);
123 
124  return m_bAddr == rLab.m_bAddr &&
125  m_bCont == rLab.m_bCont &&
126  m_bPage == rLab.m_bPage &&
127  m_bSynchron == rLab.m_bSynchron &&
128  m_nCol == rLab.m_nCol &&
129  m_nRow == rLab.m_nRow &&
130  m_lHDist == rLab.m_lHDist &&
131  m_lVDist == rLab.m_lVDist &&
132  m_lWidth == rLab.m_lWidth &&
133  m_lHeight == rLab.m_lHeight &&
134  m_lLeft == rLab.m_lLeft &&
135  m_lUpper == rLab.m_lUpper &&
136  m_nCols == rLab.m_nCols &&
137  m_nRows == rLab.m_nRows &&
138  m_lPWidth == rLab.m_lPWidth &&
139  m_lPHeight == rLab.m_lPHeight&&
140  m_aWriting == rLab.m_aWriting&&
141  m_aMake == rLab.m_aMake &&
142  m_aType == rLab.m_aType &&
143  m_aLstMake == rLab.m_aLstMake&&
144  m_aLstType == rLab.m_aLstType&&
145  m_sDBName == rLab.m_sDBName &&
147  m_aPrivName == rLab.m_aPrivName&&
150  m_aPrivName2 == rLab.m_aPrivName2&&
152  m_aPrivStreet == rLab.m_aPrivStreet&&
153  m_aPrivZip == rLab.m_aPrivZip&&
154  m_aPrivCity == rLab.m_aPrivCity&&
156  m_aPrivState == rLab.m_aPrivState&&
157  m_aPrivTitle == rLab.m_aPrivTitle&&
159  m_aPrivPhone == rLab.m_aPrivPhone&&
160  m_aPrivMobile == rLab.m_aPrivMobile&&
161  m_aPrivFax == rLab.m_aPrivFax&&
162  m_aPrivWWW == rLab.m_aPrivWWW&&
163  m_aPrivMail == rLab.m_aPrivMail&&
166  m_aCompSlogan == rLab.m_aCompSlogan&&
167  m_aCompStreet == rLab.m_aCompStreet&&
168  m_aCompZip == rLab.m_aCompZip&&
169  m_aCompCity == rLab.m_aCompCity&&
171  m_aCompState == rLab.m_aCompState&&
173  m_aCompPhone == rLab.m_aCompPhone&&
174  m_aCompMobile == rLab.m_aCompMobile&&
175  m_aCompFax == rLab.m_aCompFax&&
176  m_aCompWWW == rLab.m_aCompWWW&&
177  m_aCompMail == rLab.m_aCompMail &&
180 }
181 
183 {
184  return new SwLabItem(*this);
185 }
186 
188 {
189  static const char* aLabelPropNames[] =
190  {
191  "Medium/Continuous", // 0
192  "Medium/Brand", // 1
193  "Medium/Type", // 2
194  "Format/Column", // 3
195  "Format/Row", // 4
196  "Format/HorizontalDistance",// 5
197  "Format/VerticalDistance", // 6
198  "Format/Width", // 7
199  "Format/Height", // 8
200  "Format/LeftMargin", // 9
201  "Format/TopMargin", //10
202  "Format/PageWidth", //11
203  "Format/PageHeight", //12
204  "Option/Synchronize", //13
205  "Option/Page", //14
206  "Option/Column", //15
207  "Option/Row", //16
208  "Inscription/UseAddress", //17
209  "Inscription/Address", //18
210  "Inscription/Database" //19
211  };
212  static const char* aBusinessPropNames[] =
213  {
214  "PrivateAddress/FirstName", // 0
215  "PrivateAddress/Name", // 1
216  "PrivateAddress/ShortCut", // 2
217  "PrivateAddress/SecondFirstName", // 3
218  "PrivateAddress/SecondName", // 4
219  "PrivateAddress/SecondShortCut", // 5
220  "PrivateAddress/Street", // 6
221  "PrivateAddress/Zip", // 7
222  "PrivateAddress/City", // 8
223  "PrivateAddress/Country", // 9
224  "PrivateAddress/State", // 10
225  "PrivateAddress/Title", // 11
226  "PrivateAddress/Profession", // 12
227  "PrivateAddress/Phone", // 13
228  "PrivateAddress/Mobile", // 14
229  "PrivateAddress/Fax", // 15
230  "PrivateAddress/WebAddress", // 16
231  "PrivateAddress/Email", // 17
232  "BusinessAddress/Company", // 18
233  "BusinessAddress/CompanyExt", // 19
234  "BusinessAddress/Slogan", // 20
235  "BusinessAddress/Street", // 21
236  "BusinessAddress/Zip", // 22
237  "BusinessAddress/City", // 23
238  "BusinessAddress/Country", // 24
239  "BusinessAddress/State", // 25
240  "BusinessAddress/Position", // 26
241  "BusinessAddress/Phone", // 27
242  "BusinessAddress/Mobile", // 28
243  "BusinessAddress/Fax", // 29
244  "BusinessAddress/WebAddress", // 30
245  "BusinessAddress/Email", // 31
246  "AutoText/Group", // 32
247  "AutoText/Block" // 33
248  };
249  const int nBusinessCount = bIsLabel ? 0 : 34;
250  const int nLabelCount = bIsLabel ? 20 : 17;
251  Sequence<OUString> aNames(nBusinessCount + nLabelCount);
252  OUString* pNames = aNames.getArray();
253  int nIndex = 0;
254  for(int nLabel = 0; nLabel < nLabelCount; nLabel++)
255  pNames[nIndex++] = OUString::createFromAscii(aLabelPropNames[nLabel]);
256  for(int nBusiness = 0; nBusiness < nBusinessCount; nBusiness++)
257  pNames[nIndex++] = OUString::createFromAscii(aBusinessPropNames[nBusiness]);
258  return aNames;
259 }
260 
262  ConfigItem(bLabel ? OUString("Office.Writer/Label") : OUString("Office.Writer/BusinessCard")),
263  bIsLabel(bLabel)
264 {
266  Sequence<Any> aValues = GetProperties(aNames);
267  EnableNotification(aNames);
268  const Any* pValues = aValues.getConstArray();
269  OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
270  bool bNoConfigValues = true;
271  if(aValues.getLength() == aNames.getLength())
272  {
273  for(int nProp = 0, nProperty = 0; nProp < aNames.getLength(); nProp++, nProperty++)
274  {
275 
276  if(pValues[nProp].hasValue())
277  {
278  //to have a contiuous switch an offset is added
279  if(nProp == 17 && !bIsLabel)
280  nProperty += 3;
281  if(nProperty >= 20)
282  bNoConfigValues = false;
283  switch(nProperty)
284  {
285  case 0: aItem.m_bCont = *o3tl::doAccess<bool>(pValues[nProp]); break;// "Medium/Continuous",
286  case 1: pValues[nProp] >>= aItem.m_aMake; break;// "Medium/Brand",
287  case 2: pValues[nProp] >>= aItem.m_aType; break;// "Medium/Type",
288  case 3: pValues[nProp] >>= aItem.m_nCols; break;// "Format/Column",
289  case 4: pValues[nProp] >>= aItem.m_nRows; break;// "Format/Row",
290  case 5:
291  pValues[nProp] >>= aItem.m_lHDist;
293  break;// "Format/HorizontalDistance",
294  case 6:
295  pValues[nProp] >>= aItem.m_lVDist;
297  break;// "Format/VerticalDistance",
298  case 7:
299  pValues[nProp] >>= aItem.m_lWidth;
301  break;// "Format/Width",
302  case 8:
303  pValues[nProp] >>= aItem.m_lHeight;
305  break;// "Format/Height",
306  case 9:
307  pValues[nProp] >>= aItem.m_lLeft;
309  break;// "Format/LeftMargin",
310  case 10:
311  pValues[nProp] >>= aItem.m_lUpper;
313  break;// "Format/TopMargin",
314  case 11:
315  pValues[nProp] >>= aItem.m_lPWidth;
317  break;// "Format/PageWidth",
318  case 12:
319  pValues[nProp] >>= aItem.m_lPHeight;
321  break;// "Format/PageHeight",
322  case 13: aItem.m_bSynchron = *o3tl::doAccess<bool>(pValues[nProp]); break;// "Option/Synchronize",
323  case 14: aItem.m_bPage = *o3tl::doAccess<bool>(pValues[nProp]); break;// "Option/Page",
324  case 15: pValues[nProp] >>= aItem.m_nCol; break;// "Option/Column",
325  case 16: pValues[nProp] >>= aItem.m_nRow; break;// "Option/Row"
326  case 17: aItem.m_bAddr = *o3tl::doAccess<bool>(pValues[nProp]); break;// "Inscription/UseAddress",
327  case 18: pValues[nProp] >>= aItem.m_aWriting; break;// "Inscription/Address",
328  case 19: pValues[nProp] >>= aItem.m_sDBName; break;// "Inscription/Database"
329  case 20: pValues[nProp] >>= aItem.m_aPrivFirstName; break;// "PrivateAddress/FirstName",
330  case 21: pValues[nProp] >>= aItem.m_aPrivName; break;// "PrivateAddress/Name",
331  case 22: pValues[nProp] >>= aItem.m_aPrivShortCut; break;// "PrivateAddress/ShortCut",
332  case 23: pValues[nProp] >>= aItem.m_aPrivFirstName2; break;// "PrivateAddress/SecondFirstName",
333  case 24: pValues[nProp] >>= aItem.m_aPrivName2; break;// "PrivateAddress/SecondName",
334  case 25: pValues[nProp] >>= aItem.m_aPrivShortCut2; break;// "PrivateAddress/SecondShortCut",
335  case 26: pValues[nProp] >>= aItem.m_aPrivStreet; break;// "PrivateAddress/Street",
336  case 27: pValues[nProp] >>= aItem.m_aPrivZip; break;// "PrivateAddress/Zip",
337  case 28: pValues[nProp] >>= aItem.m_aPrivCity; break;// "PrivateAddress/City",
338  case 29: pValues[nProp] >>= aItem.m_aPrivCountry; break;// "PrivateAddress/Country",
339  case 30: pValues[nProp] >>= aItem.m_aPrivState; break;// "PrivateAddress/State",
340  case 31: pValues[nProp] >>= aItem.m_aPrivTitle; break;// "PrivateAddress/Title",
341  case 32: pValues[nProp] >>= aItem.m_aPrivProfession; break;// "PrivateAddress/Profession",
342  case 33: pValues[nProp] >>= aItem.m_aPrivPhone; break;// "PrivateAddress/Phone",
343  case 34: pValues[nProp] >>= aItem.m_aPrivMobile; break;// "PrivateAddress/Mobile",
344  case 35: pValues[nProp] >>= aItem.m_aPrivFax; break;// "PrivateAddress/Fax",
345  case 36: pValues[nProp] >>= aItem.m_aPrivWWW; break;// "PrivateAddress/WebAddress",
346  case 37: pValues[nProp] >>= aItem.m_aPrivMail; break;// "PrivateAddress/Email",
347  case 38: pValues[nProp] >>= aItem.m_aCompCompany; break;// "BusinessAddress/Company",
348  case 39: pValues[nProp] >>= aItem.m_aCompCompanyExt; break;// "BusinessAddress/CompanyExt",
349  case 40: pValues[nProp] >>= aItem.m_aCompSlogan; break;// "BusinessAddress/Slogan",
350  case 41: pValues[nProp] >>= aItem.m_aCompStreet; break;// "BusinessAddress/Street",
351  case 42: pValues[nProp] >>= aItem.m_aCompZip; break;// "BusinessAddress/Zip",
352  case 43: pValues[nProp] >>= aItem.m_aCompCity; break;// "BusinessAddress/City",
353  case 44: pValues[nProp] >>= aItem.m_aCompCountry; break;// "BusinessAddress/Country",
354  case 45: pValues[nProp] >>= aItem.m_aCompState; break;// "BusinessAddress/State",
355  case 46: pValues[nProp] >>= aItem.m_aCompPosition; break;// "BusinessAddress/Position",
356  case 47: pValues[nProp] >>= aItem.m_aCompPhone; break;// "BusinessAddress/Phone",
357  case 48: pValues[nProp] >>= aItem.m_aCompMobile; break;// "BusinessAddress/Mobile",
358  case 49: pValues[nProp] >>= aItem.m_aCompFax; break;// "BusinessAddress/Fax",
359  case 50: pValues[nProp] >>= aItem.m_aCompWWW; break;// "BusinessAddress/WebAddress",
360  case 51: pValues[nProp] >>= aItem.m_aCompMail; break;// "BusinessAddress/Email",
361  case 52: pValues[nProp] >>= aItem.m_sGlossaryGroup; break;// "AutoText/Group"
362  case 53: pValues[nProp] >>= aItem.m_sGlossaryBlockName; break;// "AutoText/Block"
363  }
364  }
365  }
366  }
367 
368  if(bIsLabel || !bNoConfigValues)
369  return;
370 
371  SvtUserOptions& rUserOpt = SW_MOD()->GetUserOptions();
372  aItem.m_aPrivFirstName = rUserOpt.GetFirstName();
373  aItem.m_aPrivName = rUserOpt.GetLastName();
374  aItem.m_aPrivShortCut = rUserOpt.GetID();
375  aItem.m_aCompCompany = rUserOpt.GetCompany();
377 
379  aItem.m_aCompZip = aItem.m_aPrivZip= rUserOpt.GetZip();
380  aItem.m_aCompCity = aItem.m_aPrivCity = rUserOpt.GetCity();
381  aItem.m_aPrivTitle = rUserOpt.GetTitle();
382  aItem.m_aCompPosition = rUserOpt.GetPosition();
383  aItem.m_aPrivPhone = rUserOpt.GetTelephoneHome();
384  aItem.m_aCompPhone = rUserOpt.GetTelephoneWork();
385  aItem.m_aCompFax = aItem.m_aPrivFax = rUserOpt.GetFax();
386  aItem.m_aCompMail = aItem.m_aPrivMail = rUserOpt.GetEmail();
388  aItem.m_bSynchron = true;
389  SetModified();
390 
391 }
392 
393 void SwLabCfgItem::Notify( const css::uno::Sequence< OUString >& ) {}
394 
396 {
398  Sequence<Any> aValues(aNames.getLength());
399  Any* pValues = aValues.getArray();
400 
401  for(int nProp = 0, nProperty = 0; nProp < aNames.getLength(); nProp++, nProperty++)
402  {
403  //to have a contiuous switch an offset is added
404  if(nProp == 17 && !bIsLabel)
405  nProperty += 3;
406  switch(nProperty)
407  {
408  case 0: pValues[nProp] <<= aItem.m_bCont; break;// "Medium/Continuous",
409  case 1: pValues[nProp] <<= aItem.m_aMake; break;// "Medium/Brand",
410  case 2: pValues[nProp] <<= aItem.m_aType; break;// "Medium/Type",
411  case 3: pValues[nProp] <<= aItem.m_nCols; break;// "Format/Column",
412  case 4: pValues[nProp] <<= aItem.m_nRows; break;// "Format/Row",
413  case 5: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lHDist));break;// "Format/HorizontalDistance",
414  case 6: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lVDist));break;// "Format/VerticalDistance",
415  case 7: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lWidth)); break;// "Format/Width",
416  case 8: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lHeight)); break;// "Format/Height",
417  case 9: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lLeft)); break;// "Format/LeftMargin",
418  case 10: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lUpper)); break;// "Format/TopMargin",
419  case 11: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lPWidth)); break;// "Format/Page Width",
420  case 12: pValues[nProp] <<= static_cast<sal_Int32>(convertTwipToMm100(aItem.m_lPHeight)); break;// "Format/PageHeight",
421  case 13: pValues[nProp] <<= aItem.m_bSynchron; break;// "Option/Synchronize",
422  case 14: pValues[nProp] <<= aItem.m_bPage; break;// "Option/Page",
423  case 15: pValues[nProp] <<= aItem.m_nCol; break;// "Option/Column",
424  case 16: pValues[nProp] <<= aItem.m_nRow; break;// "Option/Row"
425  case 17: pValues[nProp] <<= aItem.m_bAddr; break;// "Inscription/UseAddress",
426  case 18: pValues[nProp] <<= aItem.m_aWriting; break;// "Inscription/Address",
427  case 19: pValues[nProp] <<= aItem.m_sDBName; break;// "Inscription/Database"
428  case 20: pValues[nProp] <<= aItem.m_aPrivFirstName; break;// "PrivateAddress/FirstName",
429  case 21: pValues[nProp] <<= aItem.m_aPrivName; break;// "PrivateAddress/Name",
430  case 22: pValues[nProp] <<= aItem.m_aPrivShortCut; break;// "PrivateAddress/ShortCut",
431  case 23: pValues[nProp] <<= aItem.m_aPrivFirstName2; break;// "PrivateAddress/SecondFirstName",
432  case 24: pValues[nProp] <<= aItem.m_aPrivName2; break;// "PrivateAddress/SecondName",
433  case 25: pValues[nProp] <<= aItem.m_aPrivShortCut2; break;// "PrivateAddress/SecondShortCut",
434  case 26: pValues[nProp] <<= aItem.m_aPrivStreet; break;// "PrivateAddress/Street",
435  case 27: pValues[nProp] <<= aItem.m_aPrivZip; break;// "PrivateAddress/Zip",
436  case 28: pValues[nProp] <<= aItem.m_aPrivCity; break;// "PrivateAddress/City",
437  case 29: pValues[nProp] <<= aItem.m_aPrivCountry; break;// "PrivateAddress/Country",
438  case 30: pValues[nProp] <<= aItem.m_aPrivState; break;// "PrivateAddress/State",
439  case 31: pValues[nProp] <<= aItem.m_aPrivTitle; break;// "PrivateAddress/Title",
440  case 32: pValues[nProp] <<= aItem.m_aPrivProfession; break;// "PrivateAddress/Profession",
441  case 33: pValues[nProp] <<= aItem.m_aPrivPhone; break;// "PrivateAddress/Phone",
442  case 34: pValues[nProp] <<= aItem.m_aPrivMobile; break;// "PrivateAddress/Mobile",
443  case 35: pValues[nProp] <<= aItem.m_aPrivFax; break;// "PrivateAddress/Fax",
444  case 36: pValues[nProp] <<= aItem.m_aPrivWWW; break;// "PrivateAddress/WebAddress",
445  case 37: pValues[nProp] <<= aItem.m_aPrivMail; break;// "PrivateAddress/Email",
446  case 38: pValues[nProp] <<= aItem.m_aCompCompany; break;// "BusinessAddress/Company",
447  case 39: pValues[nProp] <<= aItem.m_aCompCompanyExt; break;// "BusinessAddress/CompanyExt",
448  case 40: pValues[nProp] <<= aItem.m_aCompSlogan; break;// "BusinessAddress/Slogan",
449  case 41: pValues[nProp] <<= aItem.m_aCompStreet; break;// "BusinessAddress/Street",
450  case 42: pValues[nProp] <<= aItem.m_aCompZip; break;// "BusinessAddress/Zip",
451  case 43: pValues[nProp] <<= aItem.m_aCompCity; break;// "BusinessAddress/City",
452  case 44: pValues[nProp] <<= aItem.m_aCompCountry; break;// "BusinessAddress/Country",
453  case 45: pValues[nProp] <<= aItem.m_aCompState; break;// "BusinessAddress/State",
454  case 46: pValues[nProp] <<= aItem.m_aCompPosition; break;// "BusinessAddress/Position",
455  case 47: pValues[nProp] <<= aItem.m_aCompPhone; break;// "BusinessAddress/Phone",
456  case 48: pValues[nProp] <<= aItem.m_aCompMobile; break;// "BusinessAddress/Mobile",
457  case 49: pValues[nProp] <<= aItem.m_aCompFax; break;// "BusinessAddress/Fax",
458  case 50: pValues[nProp] <<= aItem.m_aCompWWW; break;// "BusinessAddress/WebAddress",
459  case 51: pValues[nProp] <<= aItem.m_aCompMail; break;// "BusinessAddress/Email",
460  case 52: pValues[nProp] <<= aItem.m_sGlossaryGroup; break;// "AutoText/Group"
461  case 53: pValues[nProp] <<= aItem.m_sGlossaryBlockName; break;// "AutoText/Block"
462  }
463  }
464  PutProperties(aNames, aValues);
465 }
466 
467 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString GetCity() const
OUString m_aMake
Definition: labimg.hxx:48
OUString m_aCompStreet
Definition: labimg.hxx:89
OUString m_aPrivCity
Definition: labimg.hxx:76
sal_Int32 m_lHeight
Definition: labimg.hxx:53
OUString m_aCompSlogan
Definition: labimg.hxx:88
sal_Int32 m_lVDist
Definition: labimg.hxx:51
bool m_bAddr
Definition: labimg.hxx:62
OUString m_aPrivTitle
Definition: labimg.hxx:79
sal_Int32 m_lLeft
Definition: labimg.hxx:54
SwLabItem aItem
Definition: labimg.hxx:108
OUString GetZip() const
OUString GetCountry() const
OUString m_aCompCity
Definition: labimg.hxx:91
OUString m_aPrivPhone
Definition: labimg.hxx:81
OUString m_aCompMobile
Definition: labimg.hxx:96
OUString m_aPrivMobile
Definition: labimg.hxx:82
OUString m_aLstType
Definition: labimg.hxx:44
sal_Int32 m_lUpper
Definition: labimg.hxx:55
css::uno::Sequence< OUString > GetPropertyNames() const
Definition: labimg.cxx:187
OUString m_aPrivMail
Definition: labimg.hxx:85
OUString m_aCompCompanyExt
Definition: labimg.hxx:87
OUString m_aPrivWWW
Definition: labimg.hxx:84
OUString m_sGlossaryBlockName
Definition: labimg.hxx:102
sal_Int32 m_lPWidth
Definition: labimg.hxx:61
OUString m_aPrivShortCut2
Definition: labimg.hxx:73
OUString GetTelephoneWork() const
OUString m_aPrivStreet
Definition: labimg.hxx:74
OUString GetState() const
bool EnableNotification(const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
OUString m_aPrivProfession
Definition: labimg.hxx:80
bool m_bCont
Definition: labimg.hxx:63
SwLabItem()
Definition: labimg.cxx:37
OUString m_aCompZip
Definition: labimg.hxx:90
OUString m_aPrivState
Definition: labimg.hxx:78
OUString GetTitle() const
OUString m_aPrivFax
Definition: labimg.hxx:83
OUString m_aPrivCountry
Definition: labimg.hxx:77
OUString m_aPrivZip
Definition: labimg.hxx:75
#define SW_MOD()
Definition: swmodule.hxx:256
bool PutProperties(const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
OUString m_aPrivFirstName2
Definition: labimg.hxx:71
sal_Int32 m_lHDist
Definition: labimg.hxx:50
SwLabItem & operator=(const SwLabItem &rItem)
Definition: labimg.cxx:59
sal_Int32 m_nRows
Definition: labimg.hxx:57
virtual bool operator==(const SfxPoolItem &rItem) const override
Definition: labimg.cxx:120
OUString m_aType
Definition: labimg.hxx:49
OUString m_aCompFax
Definition: labimg.hxx:97
OUString GetTelephoneHome() const
css::uno::Sequence< css::uno::Any > GetProperties(const css::uno::Sequence< OUString > &rNames)
sal_Int32 m_nCols
Definition: labimg.hxx:56
OUString m_aCompWWW
Definition: labimg.hxx:98
OUString m_aCompPhone
Definition: labimg.hxx:95
bool m_bPage
Definition: labimg.hxx:64
OUString GetID() const
SwLabCfgItem(bool bLabel)
Definition: labimg.cxx:261
sal_Int32 m_nCol
Definition: labimg.hxx:58
OUString m_aPrivShortCut
Definition: labimg.hxx:70
OUString m_aCompMail
Definition: labimg.hxx:99
sal_Int32 m_lPHeight
Definition: labimg.hxx:60
OUString GetFirstName() const
OUString m_sGlossaryGroup
Definition: labimg.hxx:101
virtual SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
Definition: labimg.cxx:182
OUString m_aCompState
Definition: labimg.hxx:93
OUString GetEmail() const
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: labimg.cxx:393
OUString GetLastName() const
virtual void ImplCommit() override
Definition: labimg.cxx:395
sal_Int32 m_nRow
Definition: labimg.hxx:59
OUString m_aPrivName2
Definition: labimg.hxx:72
bool m_bSynchron
Definition: labimg.hxx:65
OUString m_aCompPosition
Definition: labimg.hxx:94
OUString GetCompany() const
OUString m_aLstMake
Definition: labimg.hxx:43
constexpr sal_Int64 convertTwipToMm100(sal_Int64 n)
OUString m_sDBName
Definition: labimg.hxx:45
OUString m_aCompCompany
Definition: labimg.hxx:86
OUString GetStreet() const
bool const bIsLabel
Definition: labimg.hxx:109
constexpr sal_Int64 convertMm100ToTwip(sal_Int64 n)
sal_Int32 m_lWidth
Definition: labimg.hxx:52
OUString GetPosition() const
OUString GetFax() const
OUString m_aPrivName
Definition: labimg.hxx:69
OUString m_aWriting
Definition: labimg.hxx:47
OUString m_aCompCountry
Definition: labimg.hxx:92
OUString m_aPrivFirstName
Definition: labimg.hxx:68