LibreOffice Module cui (master)  1
hldocntp.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 <hldocntp.hxx>
21 #include <osl/file.hxx>
22 #include <sfx2/viewfrm.hxx>
23 #include <sfx2/docfilt.hxx>
24 #include <svl/stritem.hxx>
25 #include <com/sun/star/awt/XTopWindow.hpp>
26 #include <com/sun/star/uno/Reference.h>
27 #include <com/sun/star/uno/Sequence.h>
28 #include <com/sun/star/beans/PropertyValue.hpp>
29 #include <com/sun/star/uno/Exception.hpp>
30 #include <vcl/svapp.hxx>
31 #include <vcl/weld.hxx>
32 #include <tools/urlobj.hxx>
33 #include <unotools/pathoptions.hxx>
36 #include <unotools/ucbhelper.hxx>
37 
39 #include <com/sun/star/ui/dialogs/FolderPicker.hpp>
40 #include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
41 
42 #include <cuihyperdlg.hxx>
43 #include <dialmgr.hxx>
44 #include <strings.hrc>
45 
46 using namespace ::com::sun::star::lang;
47 using namespace ::com::sun::star::ui::dialogs;
48 using namespace ::com::sun::star::uno;
49 
50 using namespace ::com::sun::star;
51 
52 /*************************************************************************
53 |*
54 |* Data-struct for documenttypes in listbox
55 |*
56 |************************************************************************/
57 
58 namespace {
59 
60 struct DocumentTypeData
61 {
62  OUString aStrURL;
63  OUString aStrExt;
64  DocumentTypeData (const OUString& aURL, const OUString& aExt) : aStrURL(aURL), aStrExt(aExt)
65  {}
66 };
67 
68 }
69 
70 bool SvxHyperlinkNewDocTp::ImplGetURLObject( const OUString& rPath, const OUString& rBase, INetURLObject& aURLObject ) const
71 {
72  bool bIsValidURL = !rPath.isEmpty();
73  if ( bIsValidURL )
74  {
75  aURLObject.SetURL( rPath );
76  if ( aURLObject.GetProtocol() == INetProtocol::NotValid ) // test if the source is already a valid url
77  { // if not we have to create a url from a physical file name
78  bool wasAbs;
79  INetURLObject base(rBase);
80  base.setFinalSlash();
81  aURLObject = base.smartRel2Abs(
82  rPath, wasAbs, true, INetURLObject::EncodeMechanism::All,
83  RTL_TEXTENCODING_UTF8, true);
84  }
85  bIsValidURL = aURLObject.GetProtocol() != INetProtocol::NotValid;
86  if ( bIsValidURL )
87  {
88  OUString aBase( aURLObject.getName( INetURLObject::LAST_SEGMENT, false ) );
89  if ( aBase.isEmpty() || ( aBase[0] == '.' ) )
90  bIsValidURL = false;
91  }
92  if ( bIsValidURL )
93  {
94  sal_Int32 nPos = m_xLbDocTypes->get_selected_index();
95  if (nPos != -1)
96  aURLObject.SetExtension(reinterpret_cast<DocumentTypeData*>(m_xLbDocTypes->get_id(nPos).toInt64())->aStrExt);
97  }
98 
99  }
100  return bIsValidURL;
101 }
102 
103 /*************************************************************************
104 |*
105 |* Constructor / Destructor
106 |*
107 |************************************************************************/
108 
110  : SvxHyperlinkTabPageBase(pParent, pDlg, "cui/ui/hyperlinknewdocpage.ui", "HyperlinkNewDocPage", pItemSet)
111  , m_xRbtEditNow(xBuilder->weld_radio_button("editnow"))
112  , m_xRbtEditLater(xBuilder->weld_radio_button("editlater"))
113  , m_xCbbPath(new SvxHyperURLBox(xBuilder->weld_combo_box("path")))
114  , m_xBtCreate(xBuilder->weld_button("create"))
115  , m_xLbDocTypes(xBuilder->weld_tree_view("types"))
116 {
117  m_xCbbPath->SetSmartProtocol(INetProtocol::File);
118  m_xLbDocTypes->set_size_request(-1, m_xLbDocTypes->get_height_rows(5));
119 
120  InitStdControls();
121 
123 
124  m_xCbbPath->show();
125  m_xCbbPath->SetBaseURL(SvtPathOptions().GetWorkPath());
126 
127  // set defaults
128  m_xRbtEditNow->set_active(true);
129 
130  m_xBtCreate->connect_clicked(LINK(this, SvxHyperlinkNewDocTp, ClickNewHdl_Impl));
131 
132  FillDocumentList ();
133 }
134 
136 {
137  if (m_xLbDocTypes)
138  {
139  for (sal_Int32 n = 0, nEntryCount = m_xLbDocTypes->n_children(); n < nEntryCount; ++n)
140  delete reinterpret_cast<DocumentTypeData*>(m_xLbDocTypes->get_id(n).toInt64());
141  m_xLbDocTypes = nullptr;
142  }
143 }
144 
145 /*************************************************************************
146 |*
147 |* Fill the all dialog-controls except controls in groupbox "more..."
148 |*
149 |************************************************************************/
150 
151 
152 void SvxHyperlinkNewDocTp::FillDlgFields(const OUString& /*rStrURL*/)
153 {
154 }
155 
157 {
158  weld::WaitObject aWaitObj(mpDialog->getDialog());
159 
160  uno::Sequence< uno::Sequence< beans::PropertyValue > >
161  aDynamicMenuEntries( SvtDynamicMenuOptions().GetMenu( EDynamicMenuType::NewMenu ) );
162 
163  sal_uInt32 i, nCount = aDynamicMenuEntries.getLength();
164  for ( i = 0; i < nCount; i++ )
165  {
166  uno::Sequence< beans::PropertyValue >& rDynamicMenuEntry = aDynamicMenuEntries[ i ];
167 
168  OUString aDocumentUrl, aTitle;
169 
170  for ( int e = 0; e < rDynamicMenuEntry.getLength(); e++ )
171  {
172  if ( rDynamicMenuEntry[ e ].Name == DYNAMICMENU_PROPERTYNAME_URL )
173  rDynamicMenuEntry[ e ].Value >>= aDocumentUrl;
174  else if ( rDynamicMenuEntry[e].Name == DYNAMICMENU_PROPERTYNAME_TITLE )
175  rDynamicMenuEntry[e].Value >>= aTitle;
176  }
177  //#i96822# business cards, labels and database should not be inserted here
178  if( aDocumentUrl == "private:factory/swriter?slot=21051" ||
179  aDocumentUrl == "private:factory/swriter?slot=21052" ||
180  aDocumentUrl == "private:factory/sdatabase?Interactive" )
181  continue;
182 
183  // Insert into listbox
184  if ( !aDocumentUrl.isEmpty() )
185  {
186  if ( aDocumentUrl == "private:factory/simpress?slot=6686" ) // SJ: #106216# do not start
187  aDocumentUrl = "private:factory/simpress"; // the AutoPilot for impress
188 
189  // insert private-url and default-extension as user-data
190  std::shared_ptr<const SfxFilter> pFilter = SfxFilter::GetDefaultFilterFromFactory( aDocumentUrl );
191  if ( pFilter )
192  {
193  // insert doc-name and image
194  OUString aTitleName = aTitle.replaceFirst( "~", "" );
195 
196  OUString aStrDefExt(pFilter->GetDefaultExtension());
197  DocumentTypeData *pTypeData = new DocumentTypeData(aDocumentUrl, aStrDefExt.copy(2));
198  OUString sId(OUString::number(reinterpret_cast<sal_Int64>(pTypeData)));
199  m_xLbDocTypes->append(sId, aTitleName);
200  }
201  }
202  }
203  m_xLbDocTypes->select(0);
204 }
205 
206 /*************************************************************************
207 |*
208 |* retrieve and prepare data from dialog-fields
209 |*
210 |************************************************************************/
211 
212 void SvxHyperlinkNewDocTp::GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
213  OUString& aStrIntName, OUString& aStrFrame,
214  SvxLinkInsertMode& eMode )
215 {
216  // get data from dialog-controls
217  rStrURL = m_xCbbPath->get_active_text();
219  if ( ImplGetURLObject( rStrURL, m_xCbbPath->GetBaseURL(), aURL ) )
220  {
222  }
223 
224  GetDataFromCommonFields( aStrName, aStrIntName, aStrFrame, eMode );
225 }
226 
227 /*************************************************************************
228 |*
229 |* static method to create Tabpage
230 |*
231 |************************************************************************/
232 
233 std::unique_ptr<IconChoicePage> SvxHyperlinkNewDocTp::Create(weld::Container* pWindow, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet)
234 {
235  return std::make_unique<SvxHyperlinkNewDocTp>(pWindow, pDlg, pItemSet);
236 }
237 
238 /*************************************************************************
239 |*
240 |* Set initial focus
241 |*
242 |************************************************************************/
244 {
245  m_xCbbPath->grab_focus();
246 }
247 
248 /*************************************************************************
249 |*
250 |* Ask page whether an insert is possible
251 |*
252 \************************************************************************/
254 {
255  INetURLObject aINetURLObject;
256  bool bRet = ImplGetURLObject(m_xCbbPath->get_active_text(), m_xCbbPath->GetBaseURL(), aINetURLObject);
257  if ( !bRet )
258  {
259  std::unique_ptr<weld::MessageDialog> xWarn(Application::CreateMessageDialog(mpDialog->getDialog(),
260  VclMessageType::Warning, VclButtonsType::Ok,
261  CuiResId(RID_SVXSTR_HYPDLG_NOVALIDFILENAME)));
262  xWarn->run();
263  }
264  return bRet;
265 }
266 
267 namespace
268 {
269  struct ExecuteInfo
270  {
271  bool bRbtEditLater;
272  bool bRbtEditNow;
274  OUString aStrDocName;
275  // current document
276  css::uno::Reference<css::frame::XFrame> xFrame;
277  SfxDispatcher* pDispatcher;
278  };
279 }
280 
281 IMPL_STATIC_LINK(SvxHyperlinkNewDocTp, DispatchDocument, void*, p, void)
282 {
283  std::unique_ptr<ExecuteInfo> xExecuteInfo(static_cast<ExecuteInfo*>(p));
284  if (!xExecuteInfo->xFrame.is())
285  return;
286  try
287  {
288  //if it throws dispatcher is invalid
289  css::uno::Reference<css::awt::XTopWindow>(xExecuteInfo->xFrame->getContainerWindow(), css::uno::UNO_QUERY_THROW);
290 
291  SfxViewFrame *pViewFrame = nullptr;
292 
293  // create items
294  SfxStringItem aName( SID_FILE_NAME, xExecuteInfo->aStrDocName );
295  SfxStringItem aReferer( SID_REFERER, "private:user" );
296  SfxStringItem aFrame( SID_TARGETNAME, "_blank");
297 
298  OUString aStrFlags('S');
299  if (xExecuteInfo->bRbtEditLater)
300  {
301  aStrFlags += "H";
302  }
303  SfxStringItem aFlags (SID_OPTIONS, aStrFlags);
304 
305  // open url
306  const SfxPoolItem* pReturn = xExecuteInfo->pDispatcher->ExecuteList(
307  SID_OPENDOC, SfxCallMode::SYNCHRON,
308  { &aName, &aFlags, &aFrame, &aReferer });
309 
310  // save new doc
311  const SfxViewFrameItem *pItem = dynamic_cast<const SfxViewFrameItem*>( pReturn ); // SJ: pReturn is NULL if the Hyperlink
312  if ( pItem ) // creation is cancelled #106216#
313  {
314  pViewFrame = pItem->GetFrame();
315  if (pViewFrame)
316  {
317  SfxStringItem aNewName( SID_FILE_NAME, xExecuteInfo->aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
318  SfxUnoFrameItem aDocFrame( SID_FILLFRAME, pViewFrame->GetFrame().GetFrameInterface() );
319  fprintf(stderr, "is there a frame int %p\n", pViewFrame->GetFrame().GetFrameInterface().get() );
320  pViewFrame->GetDispatcher()->ExecuteList(
321  SID_SAVEASDOC, SfxCallMode::SYNCHRON,
322  { &aNewName }, { &aDocFrame });
323  }
324  }
325 
326  if (xExecuteInfo->bRbtEditNow)
327  {
328  css::uno::Reference<css::awt::XTopWindow> xWindow(xExecuteInfo->xFrame->getContainerWindow(), css::uno::UNO_QUERY);
329  if (xWindow.is()) //will be false if the frame was exited while the document was loading (e.g. we waited for warning dialogs)
330  xWindow->toFront();
331  }
332 
333  if (pViewFrame && xExecuteInfo->bRbtEditLater)
334  {
335  SfxObjectShell* pObjShell = pViewFrame->GetObjectShell();
336  pObjShell->DoClose();
337  }
338  }
339  catch (...)
340  {
341  }
342 }
343 
344 /*************************************************************************
345 |*
346 |* Any action to do after apply-button is pressed
347 |*
348 \************************************************************************/
350 {
351  weld::WaitObject aWait(mpDialog->getDialog());
352 
353  // get data from dialog-controls
354  OUString aStrNewName = m_xCbbPath->get_active_text();
355 
356  if ( aStrNewName.isEmpty() )
357  aStrNewName = maStrInitURL;
358 
359  // create a real URL-String
361  if ( ImplGetURLObject( aStrNewName, m_xCbbPath->GetBaseURL(), aURL ) )
362  {
363  // create Document
364  aStrNewName = aURL.GetURLPath( INetURLObject::DecodeMechanism::NONE );
365  bool bCreate = true;
366  try
367  {
368  // check if file exists, warn before we overwrite it
369  std::unique_ptr<SvStream> pIStm = ::utl::UcbStreamHelper::CreateStream( aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ), StreamMode::READ );
370 
371  bool bOk = pIStm && ( pIStm->GetError() == ERRCODE_NONE);
372 
373  pIStm.reset();
374 
375  if( bOk )
376  {
377  std::unique_ptr<weld::MessageDialog> xWarn(Application::CreateMessageDialog(mpDialog->getDialog(),
378  VclMessageType::Warning, VclButtonsType::YesNo,
379  CuiResId(RID_SVXSTR_HYPERDLG_QUERYOVERWRITE)));
380  bCreate = xWarn->run() == RET_YES;
381  }
382  }
383  catch (const uno::Exception&)
384  {
385  }
386 
387  if (bCreate && !aStrNewName.isEmpty())
388  {
389  ExecuteInfo* pExecuteInfo = new ExecuteInfo;
390 
391  pExecuteInfo->bRbtEditLater = m_xRbtEditLater->get_active();
392  pExecuteInfo->bRbtEditNow = m_xRbtEditNow->get_active();
393  // get private-url
394  sal_Int32 nPos = m_xLbDocTypes->get_selected_index();
395  if (nPos == -1)
396  nPos = 0;
397  pExecuteInfo->aURL = aURL;
398  pExecuteInfo->aStrDocName = reinterpret_cast<DocumentTypeData*>(m_xLbDocTypes->get_id(nPos).toInt64())->aStrURL;
399 
400  // current document
401  pExecuteInfo->xFrame = GetDispatcher()->GetFrame()->GetFrame().GetFrameInterface();
402  pExecuteInfo->pDispatcher = GetDispatcher();
403 
404  Application::PostUserEvent(LINK(nullptr, SvxHyperlinkNewDocTp, DispatchDocument), pExecuteInfo);
405  }
406  }
407 }
408 
409 /*************************************************************************
410 |*
411 |* Click on imagebutton : new
412 |*
413 |************************************************************************/
415 {
416  DisableClose( true );
417  uno::Reference < XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
418  uno::Reference < XFolderPicker2 > xFolderPicker = FolderPicker::create(xContext);
419 
420  OUString aStrURL;
421  OUString aTempStrURL( m_xCbbPath->get_active_text() );
422  osl::FileBase::getFileURLFromSystemPath( aTempStrURL, aStrURL );
423 
424  OUString aStrPath = aStrURL;
425  bool bZeroPath = aStrPath.isEmpty();
426  bool bHandleFileName = bZeroPath; // when path has length of 0, then the rest should always be handled
427  // as file name, otherwise we do not yet know
428 
429  if( bZeroPath )
430  aStrPath = SvtPathOptions().GetWorkPath();
431  else if( !::utl::UCBContentHelper::IsFolder( aStrURL ) )
432  bHandleFileName = true;
433 
434  xFolderPicker->setDisplayDirectory( aStrPath );
435  sal_Int16 nResult = xFolderPicker->execute();
436  DisableClose( false );
437  if( ExecutableDialogResults::OK == nResult )
438  {
439  char const sSlash[] = "/";
440 
441  INetURLObject aURL( aStrURL, INetProtocol::File );
442  OUString aStrName;
443  if( bHandleFileName )
444  aStrName = bZeroPath? aTempStrURL : aURL.getName();
445 
446  m_xCbbPath->SetBaseURL( xFolderPicker->getDirectory() );
447  OUString aStrTmp( xFolderPicker->getDirectory() );
448 
449  if( aStrTmp[ aStrTmp.getLength() - 1 ] != sSlash[0] )
450  aStrTmp += sSlash;
451 
452  // append old file name
453  if( bHandleFileName )
454  aStrTmp += aStrName;
455 
456  INetURLObject aNewURL( aStrTmp );
457 
458  if (!aStrName.isEmpty() && !aNewURL.getExtension().isEmpty() &&
459  m_xLbDocTypes->get_selected_index() != -1)
460  {
461  // get private-url
462  const sal_Int32 nPos = m_xLbDocTypes->get_selected_index();
463  aNewURL.setExtension(reinterpret_cast<DocumentTypeData*>(m_xLbDocTypes->get_id(nPos).toInt64())->aStrExt);
464  }
465 
466  if( aNewURL.GetProtocol() == INetProtocol::File )
467  {
468  osl::FileBase::getSystemPathFromFileURL(aNewURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ), aStrTmp);
469  }
470  else
471  {
473  }
474 
475  m_xCbbPath->set_entry_text( aStrTmp );
476  }
477 }
478 
479 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
URL aURL
#define DYNAMICMENU_PROPERTYNAME_URL
void FillDlgFields(const OUString &rStrURL) override
Definition: hldocntp.cxx:152
bool ImplGetURLObject(const OUString &rPath, const OUString &rBase, INetURLObject &aURLObject) const
Definition: hldocntp.cxx:70
virtual void SetInitFocus() override
Definition: hldocntp.cxx:243
OUString GetURLPath(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
IMPL_STATIC_LINK(SvxHyperlinkNewDocTp, DispatchDocument, void *, p, void)
Definition: hldocntp.cxx:281
Reference< XFrame > xFrame
sal_Int64 n
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
OUString Name
std::unique_ptr< weld::RadioButton > m_xRbtEditNow
Definition: hldocntp.hxx:32
std::unique_ptr< weld::RadioButton > m_xRbtEditLater
Definition: hldocntp.hxx:33
RET_YES
bool setFinalSlash()
static std::unique_ptr< SvStream > CreateStream(const OUString &rFileName, StreamMode eOpenMode, css::uno::Reference< css::awt::XWindow > xParentWin=nullptr)
virtual bool AskApply() override
Definition: hldocntp.cxx:253
bool setExtension(OUString const &rTheExtension, sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
SfxFrame & GetFrame() const
int nCount
void SetExtension(OUString const &rTheExtension)
void GetDataFromCommonFields(OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode)
Definition: hltpbase.cxx:430
static std::shared_ptr< const SfxFilter > GetDefaultFilterFromFactory(const OUString &rServiceName)
static std::unique_ptr< IconChoicePage > Create(weld::Container *pWindow, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
Definition: hldocntp.cxx:233
SfxDispatcher * GetDispatcher() const
Definition: hltpbase.cxx:314
virtual SfxObjectShell * GetObjectShell() override
void const * base
OUString getName(sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
int i
SvxLinkInsertMode
SvxHpLinkDlg * mpDialog
Definition: hltpbase.hxx:64
SvxHyperlinkNewDocTp(weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
Definition: hldocntp.cxx:109
IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl, weld::Button &, void)
Definition: hldocntp.cxx:414
std::unique_ptr< SvxHyperURLBox > m_xCbbPath
Definition: hldocntp.hxx:34
#define DYNAMICMENU_PROPERTYNAME_TITLE
OUString CuiResId(const char *pKey)
Definition: cuiresmgr.cxx:23
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
std::unique_ptr< weld::TreeView > m_xLbDocTypes
Definition: hldocntp.hxx:36
virtual void DoApply() override
Definition: hldocntp.cxx:349
void SetExchangeSupport()
Definition: iconcdlg.hxx:75
const OUString & GetWorkPath() const
SfxViewFrame * GetFrame() const
#define ERRCODE_NONE
OUString aName
INetProtocol GetProtocol() const
SfxViewFrame * GetFrame() const
void * p
Reference< XComponentContext > getProcessComponentContext()
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage)
ComboBox-Control for URL's with History and Autocompletion.
Definition: hltpbase.hxx:36
OUString sId
std::unique_ptr< weld::Button > m_xBtCreate
Definition: hldocntp.hxx:35
bool SetURL(OUString const &rTheAbsURIRef, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
UNOTOOLS_DLLPUBLIC bool IsFolder(OUString const &url)
void GetCurentItemData(OUString &rStrURL, OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode) override
Definition: hldocntp.cxx:212
INetURLObject smartRel2Abs(OUString const &rTheRelURIRef, bool &rWasAbsolute, bool bIgnoreFragment=false, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, bool bRelativeNonURIs=false, FSysStyle eStyle=FSysStyle::Detect) const
virtual ~SvxHyperlinkNewDocTp() override
Definition: hldocntp.cxx:135
Tabpage : Basisclass.
Definition: hltpbase.hxx:47
sal_uInt16 nPos
OUString getExtension(sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const