summaryrefslogtreecommitdiff
path: root/sc/inc/printopt.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-28 13:49:05 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-28 13:41:48 +0100
commit6c09362c257b26ebf26fea0168f7db752212da70 (patch)
treefbdf45c92cbbbc03bef6eb57d550d488f3b93698 /sc/inc/printopt.hxx
parent9f18e327a1a51316ea5bc9f3997d83f657032226 (diff)
tdf#132145: Synchronize ScPrintCfg with configuration
Change-Id: I903e8277fea5c223081244ae30dff31bbda7d554 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125904 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/inc/printopt.hxx')
-rw-r--r--sc/inc/printopt.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx
index 1f00ab1cf486..f646a3548246 100644
--- a/sc/inc/printopt.hxx
+++ b/sc/inc/printopt.hxx
@@ -69,16 +69,17 @@ private:
// config item
-class ScPrintCfg final : public ScPrintOptions, public utl::ConfigItem
+class ScPrintCfg final : private ScPrintOptions, public utl::ConfigItem
{
private:
static css::uno::Sequence<OUString> GetPropertyNames();
-
+ void ReadCfg();
virtual void ImplCommit() override;
public:
ScPrintCfg();
+ const ScPrintOptions& GetOptions() const { return *this; }
void SetOptions( const ScPrintOptions& rNew );
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;