summaryrefslogtreecommitdiff
path: root/include/basic
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-07-25 20:15:45 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-09-02 18:16:49 +0200
commit40433e2ca977173ae6909fc5c47601e11ef003e4 (patch)
tree132896643e277be1d0ba14f8aaa7f7971c293a90 /include/basic
parent9a7b942a0a3bb113cf356f2642766f7a9f909bd6 (diff)
GSOC work, implemented "Autoclose Double Quotes" option
Feature autoclosing double quotes (strings) implemented. When the user presses the '"' key, it's pair is also being inserted (only when the previous character is also a '"'), and the cursor is being placed inside the two quotes. Also, if the there was a string (like: "aaa""), the second one is not inserted. Change-Id: I3e4a5e426d2d4bdbf56899fe3e36359ae161b52a
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/codecompletecache.hxx4
-rw-r--r--include/basic/sbmod.hxx1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/basic/codecompletecache.hxx b/include/basic/codecompletecache.hxx
index e03c0576fdb7..7280030e39dc 100644
--- a/include/basic/codecompletecache.hxx
+++ b/include/basic/codecompletecache.hxx
@@ -57,6 +57,7 @@ class BASIC_DLLPUBLIC CodeCompleteOptions
private:
bool bIsCodeCompleteOn;
bool bIsProcedureAutoCompleteOn;
+ bool bIsAutoCloseQuotesOn;
SvtMiscOptions aMiscOptions;
public:
@@ -68,6 +69,9 @@ public:
static bool IsProcedureAutoCompleteOn();
static void SetProcedureAutoCompleteOn( const bool& b );
+
+ static bool IsAutoCloseQuotesOn();
+ static void SetAutoCloseQuotesOn( const bool& b );
};
class BASIC_DLLPUBLIC CodeCompleteDataCache
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx
index dbf3e69fb115..22b2bdb962ab 100644
--- a/include/basic/sbmod.hxx
+++ b/include/basic/sbmod.hxx
@@ -135,7 +135,6 @@ public:
void RemoveVars();
::com::sun::star::uno::Reference< ::com::sun::star::script::XInvocation > GetUnoModule();
bool createCOMWrapperForIface( ::com::sun::star::uno::Any& o_rRetAny, SbClassModuleObject* pProxyClassModuleObject );
- //CodeCompleteDataCache GetCodeCompleteDataFromParse();
void GetCodeCompleteDataFromParse(CodeCompleteDataCache& aCache);
SbxArrayRef GetMethods();
IncompleteProcedures GetIncompleteProcedures() const;