summaryrefslogtreecommitdiffstats
path: root/inc/bf_svx/optgrid.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'inc/bf_svx/optgrid.hxx')
-rw-r--r--inc/bf_svx/optgrid.hxx81
1 files changed, 81 insertions, 0 deletions
diff --git a/inc/bf_svx/optgrid.hxx b/inc/bf_svx/optgrid.hxx
new file mode 100644
index 000000000..c11014c26
--- /dev/null
+++ b/inc/bf_svx/optgrid.hxx
@@ -0,0 +1,81 @@
+/* -*- 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 .
+ */
+#ifndef _SVX_OPTGRID_HXX
+#define _SVX_OPTGRID_HXX
+
+#include <bf_svtools/bf_solar.h>
+
+#include <vcl/field.hxx>
+namespace binfilter {
+
+class SvxGridTabPage;
+
+// class SvxOptionsGrid --------------------------------------------------
+
+class SvxOptionsGrid
+{
+protected:
+ UINT32 nFldDrawX;
+ UINT32 nFldDivisionX;
+ UINT32 nFldDrawY;
+ UINT32 nFldDivisionY;
+ UINT32 nFldSnapX;
+ UINT32 nFldSnapY;
+ BOOL bUseGridsnap:1;
+ BOOL bSynchronize:1;
+ BOOL bGridVisible:1;
+ BOOL bEqualGrid: 1;
+
+public:
+ SvxOptionsGrid();
+ ~SvxOptionsGrid();
+
+ void SetFldDrawX( UINT32 nSet){nFldDrawX = nSet;}
+ void SetFldDivisionX(UINT32 nSet){nFldDivisionX = nSet;}
+ void SetFldDrawY ( UINT32 nSet){nFldDrawY = nSet;}
+ void SetFldDivisionY(UINT32 nSet){nFldDivisionY = nSet;}
+ void SetFldSnapX( UINT32 nSet){nFldSnapX = nSet;}
+ void SetFldSnapY ( UINT32 nSet){nFldSnapY = nSet;}
+ void SetUseGridSnap( BOOL bSet ) {bUseGridsnap = bSet;}
+ void SetSynchronize( BOOL bSet ) {bSynchronize = bSet;}
+ void SetGridVisible( BOOL bSet ) {bGridVisible = bSet;}
+ void SetEqualGrid( BOOL bSet ) {bEqualGrid = bSet;}
+
+ UINT32 GetFldDrawX( ) const { return nFldDrawX; }
+ UINT32 GetFldDivisionX() const { return nFldDivisionX;}
+ UINT32 GetFldDrawY ( ) const { return nFldDrawY; }
+ UINT32 GetFldDivisionY() const { return nFldDivisionY;}
+ UINT32 GetFldSnapX( ) const { return nFldSnapX; }
+ UINT32 GetFldSnapY ( ) const { return nFldSnapY; }
+ BOOL GetUseGridSnap( ) const { return bUseGridsnap; }
+ BOOL GetSynchronize( ) const { return bSynchronize; }
+ BOOL GetGridVisible( ) const { return bGridVisible; }
+ BOOL GetEqualGrid() const { return bEqualGrid; }
+};
+
+// class SvxGridItem -----------------------------------------------------
+
+
+// class SvxGridTabPage --------------------------------------------------
+
+
+}//end of namespace binfilter
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */