summaryrefslogtreecommitdiff
path: root/include/svx/xflhtit.hxx
blob: f6717d9b47d168ac2f5adff53666431052cf909b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* -*- 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 INCLUDED_SVX_XFLHTIT_HXX
#define INCLUDED_SVX_XFLHTIT_HXX

#include <svx/xit.hxx>
#include <svx/xhatch.hxx>
#include <svx/svxdllapi.h>

class SdrModel;


// class XFillHatchItem

class SVX_DLLPUBLIC XFillHatchItem : public NameOrIndex
{
    XHatch  aHatch;

public:
                            static SfxPoolItem* CreateDefault();
                            XFillHatchItem() : NameOrIndex(XATTR_FILLHATCH, -1) {}
                            XFillHatchItem(const OUString& rName, const XHatch& rTheHatch);
                            XFillHatchItem(const XHatch& rTheHatch);
                            XFillHatchItem(const XFillHatchItem& rItem);

    virtual bool            operator==(const SfxPoolItem& rItem) const override;
    virtual SfxPoolItem*    Clone(SfxItemPool* pPool = nullptr) const override;

    virtual bool            QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
    virtual bool            PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
    virtual bool GetPresentation( SfxItemPresentation ePres,
                                  MapUnit eCoreMetric,
                                  MapUnit ePresMetric,
                                  OUString &rText, const IntlWrapper& ) const override;
    virtual bool            HasMetrics() const override;
    virtual void            ScaleMetrics(long nMul, long nDiv) override;

    const XHatch&           GetHatchValue() const { return aHatch;} // GetValue -> GetHatchValue

    static bool CompareValueFunc( const NameOrIndex* p1, const NameOrIndex* p2 );
    XFillHatchItem* checkForUniqueItem( SdrModel* pModel ) const;
};

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
a>Michel Renon That project file handles 12 global build options : 6 about tests, 3 about clean, 2 about l10n, 1 default. There is one run command to launch 'soffice'. Note that QtCreator will add automatically run commands for each subproject. Change-Id: I3650a9041654cbec7d51d8cbb7951a11ed49aad5 Reviewed-on: https://gerrit.libreoffice.org/17458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> 2015-07-29More whitespace missedMaxim Monastirsky Change-Id: I045f72c66a80984650bc523489bd89ed96230c57 2015-07-28QtCreator integration : remove unnecessary whitespaces.Michel Renon Change-Id: Iee8a6add830be94e6a6942dc9c4464b1a91656ff Reviewed-on: https://gerrit.libreoffice.org/17389 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com> 2015-07-27tdf#92561 : QtCreator doesn't find any generated c++ headers.Michel Renon Use lib.include to list : - all include paths (with generated c++ headers), - header files for each lib/module. Change-Id: I44f20ddbcaf2ffa844ec02977dea10f32fe9d92f Reviewed-on: https://gerrit.libreoffice.org/17055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com> 2015-07-20tdf#92560 : QtCreator integration complains about a "ucpp" without a .pro fileMichel Renon The script gbuild-to-ide now handles correctly specific case where a module is not a direct subfolder of LibreOffice base folder. Currently, 3 modules : external/neon, external/clucene, external/ucpp. Change-Id: I9477519a530439d43919b4e1b51dc2c71ee05fe0 Reviewed-on: https://gerrit.libreoffice.org/17054 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> 2015-05-25QtCreator IDE integration.Michel Renon First version of QtCreator IDE integration : 'make qtcreator-ide-integration' generates .pro and .pro.user files for each subfolder of LibreOffice. It also creates a 'lo.pro' meta project that list all other .pro files. Developers can use use QtCreator to edit, compile and debug LibreOffice. Change-Id: Ib05d8c36a7ca055ecd7a4db5776f4c28bf05676c Reviewed-on: https://gerrit.libreoffice.org/15804 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> 2015-05-19An attempt to fix xcode-ide-integrationYurii Kolesnykov Added more Xcode specific files to .gitignore. Made some properties common in gbuil-to-ide to avoid code duplication/bugs. Xcode projects are broken for now. Change-Id: I9530435ffe54158ae68ddae0581ac68f968af235 Reviewed-on: https://gerrit.libreoffice.org/15694 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> 2015-03-30fix gbuild-to-ide scriptMarkus Mohrhard Change-Id: Iff624d9e31ef5ba7d87b92124c60b02cd577c50b 2015-03-25fdo#84628 Created .project file generator.Gulsah Kose This patch is starting to EclipseCDT Integration. Written the .project file generating function. Change-Id: If38077561820d9a333d186a2785ecddd1113fe92 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/14871 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> 2015-01-09Remove extra new-line characters before regex matching in gbuild-to-ide.Ashod Nakashian At least on some 64-bit Cygwin installations, the input gbuild-to-ide gets include \r\n EOL. Python3 regex excludes \n from .* but leaves \r in the matching group. This training cr ends up in the file paths in VS project files, breaking it as they are invalid characters. Change-Id: I481c1adbf6f6db7ab0ee0d3a768b7a397dc78ee5 Reviewed-on: https://gerrit.libreoffice.org/13803 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> 2014-10-09make gbuild-to-ide VS files work with separate builddirPeter Foley Change-Id: I847885885ed12dbbd64e3b694799e4835497d736 Reviewed-on: https://gerrit.libreoffice.org/11799 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2014-10-08gbuild-to-ide improvmentsPeter Foley Use gperf instead of ls to find binpath, so that vs2012/3 can be tested on non-Windows systems. Output the vcxproj and vcxproj.filters files with indentation and formatting. Make some minor changes to improve pep8 compliance. Change-Id: Ie8ac11ecf75ad170f0756f803c45356685792e5c Reviewed-on: https://gerrit.libreoffice.org/11797 Tested-by: David Ostrovsky <david@ostrovsky.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2014-10-03gbuild-to-ide: Add support for vs2013David Ostrovsky Change-Id: I385e756109ab0a47feeeb4407ba4a2a4b68548dd Reviewed-on: https://gerrit.libreoffice.org/11728 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net> 2014-10-01gbuild-to-ide: Make it work for GNU make 4.xDavid Ostrovsky Since GNU make 4.0 the output of --print-data-base command has been slightly changed, so that class specific attributed aren'tt prefixed with "#" char any more. To prevent the duplication of used regexs or discontinuation of supporting widely used GNU make version 3.8x detect the case that matches this regex: target : VAR := VALUE pand repend '#' character to retry the match for "pseudo" hash-starting line. This way the same script works for both worlds. Test Plan: * have full build of LibreOffice * install GNU make 4 * verify that gbuild-to-ide is able to parse and emit sane debug project configuration for both GNU make versions: $ make-3.8 debug-ide-integration $ make-4 debug-ide-integration Change-Id: I7d760d9570f2df510571cc1e8fd7f31115d43b92 Reviewed-on: https://gerrit.libreoffice.org/11751 Tested-by: Peter Foley <pefoley2@verizon.net> Reviewed-by: Peter Foley <pefoley2@verizon.net> 2014-09-26improve gbuild-to-ide error messagePeter Foley Change-Id: Ia8986764e48f1dbe39374d511a188bd2b5f49e13 Reviewed-on: https://gerrit.libreoffice.org/11654 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> 2014-09-24Make gbuild-to-ide more pep8 compliantPeter Foley Minor style cleanup Remove unused variables Change-Id: Id4c190f24f51dfc676c268dac1c19e3f03d3988d Reviewed-on: https://gerrit.libreoffice.org/11633 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> 2014-09-24Make gbuild-to-ide bail out before parsing if ide type is invalidPeter Foley Also fix the vim modeline to maintain consistant formatting Change-Id: Ia42ec2a69f9c3037a6390ca4f5c4198031b7aa64 Reviewed-on: https://gerrit.libreoffice.org/11632 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> 2014-09-06clang does not like gnu++11 that much, use c++11 insteadMarkus Mohrhard Change-Id: I82c3a4da388cf436ba4f5380c5833a451e28cfd5 2014-08-11write directly files understood by YCMMarkus Mohrhard Change-Id: I262050f625a0b3ff04a274c88b446d1c2b2aa19d Reviewed-on: https://gerrit.libreoffice.org/10821 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> 2014-08-11add a IDE generator for clang json database formatMarkus Mohrhard This can be used for YouCompleteMe a vim plugin that allows auto-completition based on clang. This is much better than the normal static analyzer based auto-completition. Change-Id: I4872d2cb3b3a404af55eacf5c71d6a2715771ab6 Reviewed-on: https://gerrit.libreoffice.org/10820 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> 2014-08-11add the cxx flags to the ide parserMarkus Mohrhard Change-Id: Ied5f8ec9af69365e3375de26d325984c57327460 Reviewed-on: https://gerrit.libreoffice.org/10819 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> 2014-08-11split isystem includes from normal includesMarkus Mohrhard All includes coming from isystem where wrong as the regex was not able to recognize that the isystem and following path belong together. Additionally stripping the first two characters resulted in broken paths in this case. Change-Id: Iaa8e484d1ddcd4c8744d1e37a006ebf915cdfc84 Reviewed-on: https://gerrit.libreoffice.org/10815 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> 2014-07-03Don't stop on os.makedirs when making vs2012-ide-integrationNiklas Johansson At the moment it always stops on folders that already exists. See https://bugs.freedesktop.org/show_bug.cgi?id=70414#c18 and the following comments for example of the error messages that I face without this patch. Change-Id: I1a1f337872ce3a817d425ff10255e3ae9a73c1a2 Reviewed-on: https://gerrit.libreoffice.org/10062 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> 2014-02-23fdo#70414: Use correct target names for building Visual Studio projects.Honza Havlíček Visual Studio projects use target Library_{library_name}/Executable_{executable_name} for building the project and Library_{library_name}.clean/Executable_{executable_name}.clean for cleaning the project. In most cases, the name of library/executable is identical to the name of Library_*/Executable_* makefile, but in ~12 cases, the names are different (e.g. makefile is Library_syssh_win, but target is Library_syssh). VS fails when it tries to build the project with incorrect target name. This patch replaces the names of targets with correct ones. Dependences also used incorrect names of libraries. Change-Id: Ifba50465512e24e65a3c6505a5f40d477ec8cdd9 Reviewed-on: https://gerrit.libreoffice.org/8189 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2014-02-21fdo#70414: Add dependencies for solution and create solution for all projectsHonza Havlíček Add new Visual Studio solution for all generated projects with name LibreOffice.sln and add dependencies between projects that are in same solution. That allows building by "Build Solution" from menu of Visual Studio for most projects (12 projects out of 319 fail). Change-Id: I834f36f01dfa64ce43a5f9da605efbeefc92bc66 Reviewed-on: https://gerrit.libreoffice.org/8150 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2014-02-12Fixes for kdevelop IDE integrationAdam Mróz Script bin/gbuild-to-ide is parsing messages basing on regular expressions. First problem appears when used language is not English - that's why setting LC_MESSAGES variable in Makefile. Second problem appears with quote symbol. For me (Archlinux) script was not working. After some investigation I found out that reason was that my output from make included ' symbol when regular expression assumed that it should be `. That's why using [\'`]. Example: recipe to execute (from '/home/sadam/libreoffice/core/idlc/Executable_idlc.mk', line 28): Conflicts: bin/gbuild-to-ide Change-Id: I0083c69820bd58ce2ac296f21985408c69840639 Reviewed-on: https://gerrit.libreoffice.org/7979 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> 2014-02-10fdo#70414 Added generator of VS2012 project filesHonza Havlíček Change-Id: Ib087a24ae6de049ffb6d93b5ac66452700edddb3 Reviewed-on: https://gerrit.libreoffice.org/7955 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> 2013-12-06Source more PEP8 friendlyJesús Corrius Change-Id: I033f2a365454c9f98ce2c34f7d1d5ad3c1516202 2013-11-28Point to some documentationTor Lillqvist Change-Id: Ia467db7fd2ebaf85600e5a0c9f11f1e576363177 2013-11-27Add initial hacks for eventual Xcode supportTor Lillqvist Just some late-night hacking without much thinking whether it makes any sense and without any clear picture of what I am doing. Probably useless. No promises I will ever continue on this. Change-Id: Ie61925129bb678a17b30cb25a7882ccfe3a1de82 2013-11-26Make it easier to debug the gbuild-to-ide scriptTor Lillqvist Add an --input option so that the input doesn't have to be generated each time but can (manually) be stored in a file and that then given to the script when debugging it interactively. Change-Id: Icdb6abc828c6d16e29a99494d00eb0c8435f2826 2013-11-26Add Emacs modesTor Lillqvist Change-Id: If5e171ba124722b20b49470a77ee6bca21ae635c 2013-11-19related fdo#70414 gbuild to ide: kdevelopBjoern Michaelsen This provides kdevelop integration and generates one project file for each old-style module (top level dir). This project file has: - has four build configurations: - build the module of the project or build all of LibreOffice - for each of the above a debug and a nondebug build - has seven launch targets: - running the unitchecks, the slowchecks and subsequentchecks - for each of the above once for the module and once for all - running LibreOffice interactively - has custom include paths and thus provides full autocompletion Change-Id: I6dd51133147d019fc403e3bd814bc6103df94cac Reviewed-on: https://gerrit.libreoffice.org/6694 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>