Files
core/basic/source/inc/stdobj.hxx
Mike Kaganski b76af7f488 Refactor basic methods representing constants
Makes them more comprehensible; uses semantic names instead of magic
numbers. Added comments to the constants that are unclear.

Change-Id: Ifcb8a0d93ce057b8af08859b87ad3af8c67479e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171443
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-08-03 21:00:23 +02:00

42 lines
1.4 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#pragma once
#include <basic/sbxobj.hxx>
#include <sbstdobj.hxx>
#include <optional>
class StarBASIC;
class SbiStdObject final : public SbxObject
{
std::optional<SbStdFactory> pStdFactory;
virtual ~SbiStdObject() override;
virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
public:
SbiStdObject(const OUString&, StarBASIC*);
virtual SbxVariable* Find(const OUString&, SbxClassType) override;
virtual void SetModified(bool) override;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */