summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2016-05-25 16:10:23 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-05-30 20:18:01 +0000
commit697eaa91bd008e992b325e05ce3f20853ad965f7 (patch)
treee23100edec6cd604658ec2a781b6418c207e1b83 /sc
parentf65b29ff13211449144455668014a80aa8b331a3 (diff)
tdf#100068: Initial implementation of ScreenshotId
it's the same as HelpId in default implementation and extended with '=?config=foo' string otherwise, depending on different configurations the dialog/tabpage can have (e.g. different widgets hidden/shown) Change-Id: I01312a5a88ef7ba784bca315b336420cdb63c8dc Reviewed-on: https://gerrit.libreoffice.org/25455 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/scuiimoptdlg.cxx10
-rw-r--r--sc/source/ui/inc/scuiimoptdlg.hxx3
2 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/scuiimoptdlg.cxx b/sc/source/ui/dbgui/scuiimoptdlg.cxx
index 114ec3c88e5f..a32b3615a927 100644
--- a/sc/source/ui/dbgui/scuiimoptdlg.cxx
+++ b/sc/source/ui/dbgui/scuiimoptdlg.cxx
@@ -107,7 +107,8 @@ ScImportOptionsDlg::ScImportOptionsDlg(
bool bOnlyDbtoolsEncodings,
bool bImport )
: ModalDialog ( pParent, "ImOptDialog",
- "modules/scalc/ui/imoptdialog.ui" )
+ "modules/scalc/ui/imoptdialog.ui" ),
+ m_bIsAsciiImport( bAscii )
{
get(m_pFieldFrame, "fieldframe");
get(m_pFtCharset, "charsetft");
@@ -291,7 +292,7 @@ sal_uInt16 ScImportOptionsDlg::GetCodeFromCombo( const ComboBox& rEd ) const
if ( aStr.isEmpty() )
{
- nCode = 0; // kein Trennzeichen
+ nCode = 0; // no separator
}
else
{
@@ -304,6 +305,11 @@ sal_uInt16 ScImportOptionsDlg::GetCodeFromCombo( const ComboBox& rEd ) const
return nCode;
}
+OString ScImportOptionsDlg::GetScreenshotId() const
+{
+ return (m_bIsAsciiImport) ? GetHelpId() : GetHelpId() + "?config=NonTextImport";
+}
+
IMPL_LINK_TYPED( ScImportOptionsDlg, FixedWidthHdl, Button*, pCheckBox, void )
{
if (pCheckBox == m_pCbFixed)
diff --git a/sc/source/ui/inc/scuiimoptdlg.hxx b/sc/source/ui/inc/scuiimoptdlg.hxx
index 9848e332e1f0..f4a29cadc476 100644
--- a/sc/source/ui/inc/scuiimoptdlg.hxx
+++ b/sc/source/ui/inc/scuiimoptdlg.hxx
@@ -40,6 +40,7 @@ public:
virtual void dispose() override;
void GetImportOptions( ScImportOptions& rOptions ) const;
+ virtual OString GetScreenshotId() const override;
private:
VclPtr<VclFrame> m_pFieldFrame;
@@ -60,6 +61,8 @@ private:
ScDelimiterTable* pFieldSepTab;
ScDelimiterTable* pTextSepTab;
+ bool m_bIsAsciiImport;
+
private:
sal_uInt16 GetCodeFromCombo( const ComboBox& rEd ) const;